/**
 * NurVonAmazon.de - Stylesheet
 * Mobile-First Responsive Design
 */

/* === CSS Variables === */
:root {
    --primary: #FF9900;
    --primary-dark: #E68A00;
    --secondary: #232F3E;
    --success: #067D62;
    --background: #FAFAFA;
    --card-bg: #FFFFFF;
    --text: #0F1111;
    --text-muted: #565959;
    --border: #DDD;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --discount-red: #CC0C39;
    --prime-blue: #00A8E1;
    --max-width: 1280px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* === Container === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* === Header & Navigation === */
.site-header {
    background-color: var(--secondary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo:hover {
    color: var(--primary);
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--secondary);
        padding: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .site-nav.active {
        transform: translateY(0);
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #37475A 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero .tagline {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

/* === Search Form === */
.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(255,153,0,0.3);
}

.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

/* === Feature Boxes === */
.features {
    padding: 3rem 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-box {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: var(--border-radius);
    background-color: var(--background);
}

.feature-box .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.feature-box p {
    color: var(--text-muted);
}

/* === Categories Grid === */
.categories {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.category-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.category-card h3 {
    font-size: 1rem;
    color: var(--secondary);
}

/* === Product Grid === */
.products-section {
    padding: 3rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === Product Card === */
.product-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.wishlist-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.wishlist-btn:active {
    transform: scale(0.95);
}

.product-card > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Product Actions Inline */
.product-actions-inline {
    padding: 0 1rem 1rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.btn-details {
    display: block;
    text-align: center;
    padding: 0.5rem;
    background: var(--background);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: var(--secondary);
    color: white;
}

.product-image {
    position: relative;
    padding: 1rem;
    background-color: white;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.product-image .no-image {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.discount-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: var(--discount-red);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: bold;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text);
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.stars {
    color: var(--primary);
    margin-right: 0.25rem;
}

.rating-count {
    color: var(--text-muted);
}

.product-price {
    margin-bottom: 0.75rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--discount-red);
    margin-right: 0.5rem;
}

.original-price {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.prime-badge {
    background-color: var(--prime-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.amazon-badge {
    background-color: var(--success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* === Pagination === */
.pagination {
    margin: 2rem 0;
    text-align: center;
}

.pagination-list {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: white;
    color: var(--text);
    transition: var(--transition);
}

.pagination-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-link.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
}

/* === Breadcrumbs === */
.breadcrumbs {
    padding: 1rem 0;
    background-color: white;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.breadcrumbs li::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumbs li:last-child::after {
    content: "";
}

.breadcrumbs .current {
    color: var(--text-muted);
}

/* === Filter Buttons === */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    background-color: white;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* === No Results === */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-results-suggestions {
    background-color: var(--background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: left;
}

.no-results-suggestions ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.no-results-suggestions li {
    margin-bottom: 0.5rem;
}

/* === Loading Spinner === */
.loading-spinner {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Footer === */
.site-footer {
    background-color: var(--secondary);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: var(--border-radius);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* === Responsive Typography === */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
}
