/* ========================================
   GameHub - Modern 2025 Design System
   ======================================== */

:root {
    /* Brand Colors - Gaming purple palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Neutrals - Modern gray scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    
    /* Shadows - Layered depth */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #ffffff;
}

/* ========================================
   Announcement Bar
   ======================================== */

.announcement-bar {
    background: linear-gradient(180deg, var(--gray-50) 0%, #fff 100%);
    border-bottom: 1px dashed var(--gray-200);
    padding: 0.5rem 0;
}

.badge-beta {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-full);
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.announcement-bar a {
    color: var(--gray-700);
    text-decoration: none;
}

.announcement-bar a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ========================================
   Modern Navbar with Glassmorphism
   ======================================== */

.navbar-modern {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--gray-900) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary);
    transition: transform var(--transition-base);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ========================================
   Hero Section - 2025 Design
   ======================================== */

.hero-pro {
    background: var(--gradient-hero);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-pro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.badge-soft {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.grad-ink {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.display-4 {
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gray-600);
}

.mini-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.mini-metrics span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.mini-metrics i {
    color: var(--primary);
}

/* ========================================
   Preview Card - Neumorphic Design
   ======================================== */

.preview-card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-base);
}

.preview-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.preview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.preview-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.preview-header .red { background: #ff5f57; }
.preview-header .yellow { background: #febc2e; }
.preview-header .green { background: #28c840; }

.preview-body {
    padding: 1.5rem;
}

.deal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border-bottom: 1px dashed var(--gray-200);
}

.deal-row:last-child {
    border-bottom: none;
}

.deal-row:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(4px);
}

.deal-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deal-meta {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.hint {
    background: rgba(99, 102, 241, 0.05);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
    margin-top: 1rem;
}

/* ========================================
   Store Logos Band
   ======================================== */

.logos-band {
    margin-top: 4rem;
}

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

.logo-pill {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-pill:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
}

/* ========================================
   Feature Cards - Modern Glass Effect
   ======================================== */

.feature .card {
    background: var(--gradient-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.feature .card:hover::before {
    transform: scaleX(1);
}

.feature .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature .icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========================================
   Timeline - Modern Vertical Flow
   ======================================== */

.timeline {
    list-style: none;
    padding: 0;
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(99, 102, 241, 0.2) 100%);
    border-radius: var(--radius-full);
}

.timeline li {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 0 4px white, 0 0 0 6px rgba(99, 102, 241, 0.2);
    z-index: 1;
}

.timeline-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
}

.timeline-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* ========================================
   Buttons - Modern Interactive
   ======================================== */

.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

/* ========================================
   Accordion - Modern Expandable
   ======================================== */

.accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md) !important;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--transition-base);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    background: white;
    color: var(--gray-800);
}

.accordion-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--gray-600);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-pro {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-pro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.ribbon {
    border: 2px dashed var(--warning);
    border-radius: var(--radius-lg);
    background: rgba(245, 158, 11, 0.05);
    padding: 1rem 1.5rem;
}

/* ========================================
   Footer - Enhanced 2025 Design
   ======================================== */

.footer-modern {
    background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
    border-top: 1px solid var(--gray-200);
    margin-top: 5rem;
    position: relative;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.footer-brand-section {
    padding-right: 2rem;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
}

.brand-icon-footer {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.footer-heading {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-links a:hover::before {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.social-icon i {
    position: relative;
    z-index: 1;
}

/* Newsletter Form - Modern Design */
.newsletter-form .input-group {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-200);
    transition: all var(--transition-base);
}

.newsletter-form .input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.newsletter-form .form-control {
    border: none;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    outline: none;
}

.newsletter-form .form-control::placeholder {
    color: var(--gray-400);
}

.newsletter-form .btn {
    border-radius: 0;
    padding: 0.875rem 1.5rem;
    border: none;
}

.newsletter-form .btn:hover {
    transform: scale(1.05);
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid var(--gray-200) !important;
    background: rgba(249, 250, 251, 0.5);
}

.footer-bottom p {
    margin: 0;
}

/* ========================================
   Back to Top Button
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Utility Classes
   ======================================== */

.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

.stat-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* ========================================
   Deals Page Styles
   ======================================== */

.deals-hero {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.stats-badge {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.deal-card {
    position: relative;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.deal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--primary);
}

.deal-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.deal-image-placeholder {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-section {
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 0;
}

.filters-section {
    background: white;
}

.pagination .page-link {
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 991px) {
    .hero-pro {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .preview-card {
        margin-top: 2rem;
    }
    
    .logos-wrap {
        justify-content: center;
    }
    
    .cta-pro {
        padding: 2rem;
    }
    
    .footer-brand-section {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .footer-heading {
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    .deal-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline li {
        padding-left: 3rem;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline li::before {
        left: 0.25rem;
    }
    
    .announcement-bar .row > div {
        margin-bottom: 0.5rem;
    }
    
    .footer-modern {
        margin-top: 3rem;
    }
    
    .footer-brand {
        justify-content: center;
        text-align: center;
    }
    
    .footer-brand-section {
        text-align: center;
    }
    
    .footer-brand-section p {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        text-align: center !important;
    }
    
    .footer-bottom .row > div {
        text-align: center !important;
    }
}

/* ========================================
   Animations
   ======================================== */

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

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

.card, .timeline-card, .preview-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

.footer-modern .row > div {
    animation: slideInUp 0.6s ease-out backwards;
}

.footer-modern .row > div:nth-child(1) { animation-delay: 0.1s; }
.footer-modern .row > div:nth-child(2) { animation-delay: 0.2s; }
.footer-modern .row > div:nth-child(3) { animation-delay: 0.3s; }
.footer-modern .row > div:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   Accessibility
   ======================================== */

.btn:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
