/* ========================================
   ALL PRODUCTS PAGE - Gaming Theme
   Inheriting from Landing Page Design System
   ======================================== */

/* Base Styles & Design System */
:root {
    /* Primary Colors - Golden/Amber Theme */
    --primary-900: #1a0f00;
    --primary-800: #2d1a00;
    --primary-700: #4a2c05;
    --primary-600: #6b4423;
    --primary-500: #b8860b;
    --primary-400: #ffd700;
    --primary-300: #ffe55c;
    --primary-200: #fff1a8;
    --primary-100: #fff9d4;

    /* Accent Colors */
    --accent-gold: #ffd700;
    --accent-amber: #ff9500;
    --accent-orange: #ff6b35;
    --accent-copper: #cd7f32;

    /* Neutral Colors */
    --bg-dark: #0f0a05;
    --bg-card: rgba(255, 215, 0, 0.05);
    --bg-card-hover: rgba(255, 215, 0, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #d4b896;
    --text-tertiary: #8b7355;
    --border-color: rgba(255, 215, 0, 0.15);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    --gradient-accent: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* Base styles (html, body, main-content) are in base.css */
/* Reset for content areas only - don't affect navigation or footer */
.main-content *,
.main-content *::before,
.main-content *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 149, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ========================================
   MAIN CONTENT
   ======================================== */

/* Main content layout is defined in base.css */

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   HERO BANNER SECTION
   ======================================== */

.hero-banner {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 149, 0, 0.10) 100%);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.8s ease-out;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

.hero-banner-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-400);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.hero-badge svg {
    color: var(--primary-400);
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffe55c 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hero-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ========================================
   SEARCH & FILTER SECTION
   ======================================== */

.search-filter-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-400);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-label svg {
    color: var(--primary-400);
}

.filter-label {
    color: var(--primary-400);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.5rem 0 1rem;
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-400);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon svg {
    width: 20px;
    height: 20px;
}

.filter-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.filter-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-400);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-btn:hover svg {
    transform: scale(1.1);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: #1a0f00;
    border-color: var(--primary-400);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.products-section {
    margin-bottom: 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-slow);
    animation: fadeInUp 0.5s ease-out both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-400);
    box-shadow: 0 12px 48px rgba(255, 215, 0, 0.4);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-img.lazy-load {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 149, 0, 0.1));
}

.product-header {
    padding: 1.5rem;
    text-align: center;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    transition: all var(--transition-base);
}

.product-card:hover .product-name {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hidden Initially Class */
.product-card.hidden-initially {
    display: none !important;
}

/* ========================================
   SHOW MORE BUTTON
   ======================================== */

.show-more-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.show-more-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: var(--gradient-primary);
    color: #1a0f00;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.5);
    transition: all var(--transition-base);
}

.show-more-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(255, 215, 0, 0.7);
}

.btn-icon {
    transition: transform var(--transition-base);
}

.show-more-btn:hover .btn-icon {
    transform: translateY(4px);
}

/* ========================================
   PRODUCTS COUNT
   ======================================== */

.products-count {
    text-align: center;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-top: 2rem;
}

/* ========================================
   ERROR & EMPTY STATES
   ======================================== */

.error-container,
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-2xl);
    color: var(--text-primary);
}

.error-icon,
.no-products-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.7;
}

.error-container h3,
.no-products h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
    font-weight: 700;
}

.error-container p,
.no-products p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========================================
   HELP SECTION
   ======================================== */

.help-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.help-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.help-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.help-icon {
    font-size: 2.5rem;
}

.help-header h3 {
    margin: 0;
    font-size: 1.75rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.help-content p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

.help-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
}

.help-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.help-link-icon {
    font-size: 1.25rem;
}

/* ========================================
   FOOTER
   ======================================== */

/* Footer styles are in footer.css - import that file in your HTML */

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 100px 0 60px;
    }

    .main-container {
        padding: 0 1rem;
    }

    .hero-banner {
        padding: 2rem 1.5rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-stat .stat-number {
        font-size: 1.5rem;
    }

    .search-filter-section {
        padding: 1.5rem;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

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

    .help-actions {
        flex-direction: column;
    }

    .help-link {
        justify-content: center;
    }

    .show-more-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .search-filter-section {
        padding: 1rem;
    }

    .section-label,
    .filter-label {
        font-size: 0.8rem;
    }

    .help-card {
        padding: 1.5rem;
    }
}

/* Scrollbar styles are in navigation.css - imported globally */
