/**
 * Overgear Homepage Styles
 */

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0d0d14 0%, #1a1a2e 50%, #13131f 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%237c3aed" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, #0d0d14 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    background: linear-gradient(to right, #E0F268, #9DB20F, #9DB20F, #E0F268);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: #a0a0b0;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #6b6b7b;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(to right, #E0F268, #9DB20F, #9DB20F, #E0F268);
    color: #000;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(157, 178, 15, 0.4);
    color: #000;
}

.btn-primary.large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid #2a2a3e;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #9DB20F;
    color: #E0F268;
}

/* ========================================
   GAMES SECTION
   ======================================== */
.games-section {
    background: #0d0d14;
    padding: 80px 0;
}

/* Tabs Wrapper - Horizontal Scrollable */
.games-tabs-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 30px;
}

.games-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.games-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: max-content;
    padding: 0 20px;
}

.game-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #2a2a3e;
    border-radius: 30px;
    color: #a0a0b0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.game-tab:hover {
    border-color: #9DB20F;
    color: #E0F268;
}

.game-tab.active {
    background: linear-gradient(to right, #E0F268, #9DB20F, #9DB20F, #E0F268);
    border-color: transparent;
    color: #000;
}

/* Games Carousel Container with Nav Buttons */
.games-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Navigation Buttons */
.carousel-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    color: #a0a0b0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: linear-gradient(to right, #E0F268, #9DB20F);
    border-color: #9DB20F;
    color: #000;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav:disabled:hover {
    background: #1a1a2e;
    border-color: #2a2a3e;
    color: #a0a0b0;
}

.carousel-nav svg {
    width: 20px;
    height: 20px;
}

/* Games Carousel - Horizontal Scrollable with 2 Rows */
.games-carousel-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.games-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.games-carousel {
    display: grid;
    grid-template-rows: repeat(2, 120px);
    grid-auto-flow: column;
    grid-auto-columns: 260px;
    gap: 14px;
    padding: 10px 0;
    width: max-content;
}

/* Game Card - Overgear Style Large Cover */
/* Container max-width 1400px - padding 40px - nav buttons (48*2) - gaps (16*2) = 1232px available */
/* 4 cards per row: (1232 - 14*3 gaps) / 4 = 297px, use 260px for comfortable fit */
.game-card {
    text-decoration: none;
    width: 260px;
    height: 120px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-card.hiding {
    opacity: 0;
    transform: scale(0.95);
}

.game-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* Cover Image - Full Size Background */
.game-cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-cover-image {
    transform: scale(1.08);
}

/* Placeholder for missing images */
.game-cover-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a3e 100%);
}

/* Gradient Overlay */
.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

/* Card Content - Bottom Positioned */
.game-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    z-index: 2;
}

.game-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.game-count {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* Hover Border Effect */
.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: border-color 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.game-card:hover::after {
    border-color: #9DB20F;
}

/* ========================================
   DEALS SECTION
   ======================================== */
.deals-section {
    background: #13131f;
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.section-title.centered {
    text-align: center;
    width: 100%;
}

.view-all {
    color: #E0F268;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #9DB20F;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.deal-card {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-5px);
    border-color: #9DB20F;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.deal-link {
    text-decoration: none;
    display: block;
    position: relative;
}

.deal-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

.deal-label.label-hot_offer {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #fff;
}

.deal-label.label-bundle {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: #fff;
}

.deal-label.label-new_offer {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    color: #fff;
}

.deal-label.label-weekly_offer {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    color: #000;
}

.deal-label.label-preorder {
    background: linear-gradient(to right, #E0F268, #9DB20F, #9DB20F, #E0F268);
    color: #000;
}

.deal-image {
    height: 160px;
    overflow: hidden;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.deal-card:hover .deal-image img {
    transform: scale(1.05);
}

.deal-content {
    padding: 20px;
}

.deal-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.deal-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.deal-highlights li {
    font-size: 12px;
    color: #a0a0b0;
    padding: 3px 0;
    line-height: 1.4;
}

.deal-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #2a2a3e;
}

.deal-price .price-from {
    font-size: 12px;
    color: #6b6b7b;
}

.deal-price .price,
.deal-price .woocommerce-Price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works-section {
    background: #0d0d14;
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: #a0a0b0;
    font-size: 16px;
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-card {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(to right, #E0F268, #9DB20F, #9DB20F, #E0F268);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.step-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 13px;
    color: #a0a0b0;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   TRUST SECTION
   ======================================== */
.trust-section {
    background: #13131f;
    padding: 80px 0;
}

.trust-header {
    text-align: center;
    margin-bottom: 50px;
}

.trust-count {
    color: #a0a0b0;
    font-size: 16px;
    margin-top: 15px;
}

.trust-count strong {
    color: #E0F268;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.trust-card {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.trust-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.trust-card p {
    font-size: 14px;
    color: #a0a0b0;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    background: #0d0d14;
    padding: 60px 0;
    border-top: 1px solid #2a2a3e;
    border-bottom: 1px solid #2a2a3e;
}

.features-section .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.features-section .feature-item {
    text-align: center;
    padding: 20px;
}

.features-section .feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.features-section .feature-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.features-section .feature-item p {
    font-size: 12px;
    color: #6b6b7b;
    margin: 0;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(to right, #E0F268, #9DB20F, #9DB20F, #E0F268);
    padding: 80px 0;
}

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

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    background: #000;
    color: #E0F268;
}

.cta-section .btn-primary:hover {
    background: #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   CONTAINER
   ======================================== */
.overgear-homepage .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Wider container for games section */
.games-section .container {
    max-width: 1400px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 36px;
    }
    
    .deals-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .features-section .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Game cards smaller on tablet - 3 per row */
    .games-carousel {
        height: 232px; /* 2 rows: (110px * 2) + 12px gap */
    }
    
    .game-card {
        width: 220px;
        height: 110px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    /* Tabs scroll from left on mobile */
    .games-tabs {
        justify-content: flex-start;
    }
    
    /* Hide nav buttons on mobile - touch scroll instead */
    .carousel-nav {
        display: none;
    }
    
    /* Single row on mobile */
    .games-carousel {
        height: 100px; /* Single row */
        flex-wrap: nowrap;
    }
    
    /* Game cards smaller on mobile */
    .game-card {
        width: 180px;
        height: 100px;
    }
    
    .game-name {
        font-size: 14px;
    }
    
    .game-card-content {
        padding: 10px 12px;
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .features-section .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
