/**
 * Game Features Section Styles
 * The Heart of Gold
 */

/* ==================== */
/* Section Container */
/* ==================== */

.game-features-section {
    position: relative;
    width: 100%;
    min-height: auto;
    height: fit-content;
    padding: var(--space-xl) 0;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    overflow: hidden;
}

/* Top fade for smooth transition from overview - extended and smoother */
.game-features-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(5, 0, 16, 0.05) 15%,
        rgba(5, 0, 16, 0.15) 30%,
        rgba(10, 1, 24, 0.35) 50%,
        rgba(15, 2, 30, 0.6) 70%,
        rgba(23, 4, 38, 0.85) 85%,
        var(--color-purple-dark) 100%
    );
    z-index: 9999999999999;
    pointer-events: none;
}

/* Bottom fade for smooth transition to characters - very subtle */
.game-features-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(20, 2, 59, 0.3) 40%,
        var(--color-purple-deep) 100%
    );
    z-index: 3;
    pointer-events: none;
}

.gf-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(20, 2, 59, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(10, 1, 24, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, 
            rgba(23, 4, 38, 1) 0%,
            rgba(15, 2, 30, 0.95) 8%,
            #0a0118 25%,
            #050010 50%,
            #0a0118 75%,
            #050010 100%
        );
    z-index: 0;
}

/* ==================== */
/* Diagonal Stripes */
/* ==================== */

.gf-stripes {
    position: absolute;
    left: 0;
    right: 0;
    height: 35px;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.gf-stripes-top { top: 0; }
.gf-stripes-bottom { bottom: 0; }

.gf-stripe {
    position: absolute;
    width: 120%;
    height: 2px;
    left: -10%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(20, 10, 30, 0.8) 20%,
        rgba(30, 15, 45, 0.9) 50%,
        rgba(20, 10, 30, 0.8) 80%,
        transparent 100%
    );
    transform: rotate(-2.5deg);
}

.gf-stripes-top .gf-stripe:nth-child(1) { top: 6px; }
.gf-stripes-top .gf-stripe:nth-child(2) { top: 14px; opacity: 0.7; }
.gf-stripes-top .gf-stripe:nth-child(3) { top: 22px; opacity: 0.4; }

.gf-stripes-bottom .gf-stripe:nth-child(1) { bottom: 6px; transform: rotate(2.5deg); }
.gf-stripes-bottom .gf-stripe:nth-child(2) { bottom: 14px; transform: rotate(2.5deg); opacity: 0.7; }
.gf-stripes-bottom .gf-stripe:nth-child(3) { bottom: 22px; transform: rotate(2.5deg); opacity: 0.4; }

/* ==================== */
/* Main Wrapper - Narrower */
/* ==================== */

.gf-main-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
    align-items: stretch;
}

/* ==================== */
/* Left Panel - Narrower but Taller */
/* ==================== */

.gf-left-panel {
    position: relative;
    background-color: var(--color-pink-dark); 
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 107, 157, 0.15) 10px,
        rgba(255, 107, 157, 0.15) 20px
    );
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); 
    border-radius: 24px 0 0 24px;
    padding: var(--space-lg);
    padding-right: var(--space-xl);
    min-height: 420px;
    width: 280px;
    display: flex;
    flex-direction: column;
    box-shadow: 
        8px 0 25px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(196, 30, 92, 0.3);
    z-index: 10;
    left: -160px;
}

.gf-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Label */
.gf-label {
    margin-bottom: auto;
}

.gf-label-text {
    font-family: var(--font-pixel);
    font-size: clamp(0.55rem, 1.2vw, 0.7rem);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Big Number - Taller */
.gf-number {
    font-family: var(--font-pixel);
    font-size: clamp(5rem, 12vw, 8rem);
    color: #fff;
    line-height: 0.8;
    font-weight: 700;
    text-shadow: 
        3px 3px 0 rgba(0, 0, 0, 0.25),
        0 0 30px rgba(255, 255, 255, 0.2);
    margin: var(--space-md) 0;
}

/* Indicators */
.gf-indicators {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: auto;
}

.gf-indicator {
    position: relative;
    width: 30px;
    height: 7px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gf-indicator:hover {
    transform: scaleX(1.15);
}

.gf-indicator-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 4px;
    transition: width 0.4s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.gf-indicator.active .gf-indicator-fill {
    width: 100%;
}

/* ==================== */
/* Content Area */
/* ==================== */

.gf-content-area {
    display: flex;
    flex-direction: column;
    margin-left: -80px;
    position: relative;
    z-index: 5;
}

/* ==================== */
/* Carousel Wrapper */
/* ==================== */

.gf-carousel-wrapper {
    position: relative;
    flex: 1;
}

/* Diagonal Frame - Taller */
.gf-diagonal-frame {
    position: relative;
    width: 100%;
    height: clamp(320px, 50vh, 480px);
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-md);
    overflow: hidden;
    background: #18010c;
    box-shadow: 
        0 8px 35px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px rgba(255, 179, 217, 0.15);
}

/* Slides Container */
.gf-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.gf-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.gf-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gf-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gf-video-gradient {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(196, 30, 92, 0.15) 0%, transparent 40%),
        linear-gradient(to bottom, transparent 60%, rgba(5, 0, 16, 0.7) 100%);
    pointer-events: none;
}

/* ==================== */
/* Navigation Arrows */
/* ==================== */

.gf-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gf-arrow-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px rgba(196, 30, 92, 0.6));
    transition: filter 0.3s ease;
}

.gf-arrow-flip {
    transform: scaleX(-1);
}

.gf-nav:hover {
    transform: translateY(-50%) scale(1.2);
}

.gf-nav:hover .gf-arrow-img {
    filter: drop-shadow(0 0 16px rgba(196, 30, 92, 1));
}

.gf-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gf-prev {
    left: 15px;
}

.gf-next {
    right: var(--space-sm);
}

/* ==================== */
/* Info Bar */
/* ==================== */

.gf-info-bar {
    position: relative;
    padding: var(--space-sm) 0;
    padding-left: 7%;
    margin-top: var(--space-xs);
}

.gf-info-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.gf-title {
    font-family: var(--font-pixel);
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    color: var(--color-white);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    text-shadow: 
        0 0 15px rgba(186, 0, 93, 0.4),
        2px 2px 0 rgba(0, 0, 0, 0.4);
}

.gf-subtitle {
    font-family: var(--font-pixel);
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    color: var(--color-pink-light);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    text-shadow: 
        0 0 15px rgba(156, 0, 68, 0.4),
        2px 2px 0 rgba(0, 0, 0, 0.4);
}

.gf-description {
    font-family: var(--font-pixel-alt);
    font-size: clamp(0.65rem, 0.9vw, 0.8rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-top: var(--space-xs);
    max-width: 700px; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


/* ==================== */
/* Responsive - Large Desktops */
/* ==================== */

@media (min-width: 1400px) {
    .gf-main-wrapper {
        max-width: 1200px;
    }
    
    .gf-left-panel {
        width: 300px;
        left: -180px;
    }
    
    .gf-diagonal-frame {
        height: clamp(360px, 52vh, 520px);
    }
}

/* ==================== */
/* Responsive - Standard Desktop */
/* ==================== */

@media (max-width: 1200px) {
    .gf-main-wrapper {
        max-width: 1000px;
        grid-template-columns: 160px 1fr;
    }
    
    .gf-left-panel {
        width: 260px;
        left: -140px;
        min-height: 380px;
    }
    
    .gf-content-area {
        margin-left: -70px;
    }
    
    .gf-diagonal-frame {
        height: clamp(300px, 45vh, 420px);
    }
}

@media (max-width: 1024px) {
    .game-features-section {
        padding: var(--space-lg) 0;
    }
    
    .gf-main-wrapper {
        max-width: 900px;
        grid-template-columns: 140px 1fr;
        padding-left: var(--space-sm);
    }
    
    .gf-left-panel {
        min-height: 340px;
        width: 240px;
        left: -120px;
        padding: var(--space-md);
        padding-right: var(--space-lg);
    }
    
    .gf-number {
        font-size: 5.5rem;
    }
    
    .gf-diagonal-frame {
        height: clamp(280px, 42vh, 380px);
    }
    
    .gf-content-area {
        margin-left: -55px;
    }
}

/* ==================== */
/* Responsive - Tablet & Mobile */
/* ==================== */

@media (max-width: 768px) {
    .game-features-section {
        padding: var(--space-md) 0;
    }
    
    .gf-stripes {
        height: 25px;
    }
    
    .gf-main-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
    
    .gf-left-panel {
        min-height: auto;
        width: 100%;
        left: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-sm) var(--space-md);
        clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
        margin-bottom: var(--space-xs);
        border-radius: var(--radius-md);
    }
    
    .gf-panel-inner {
        flex-direction: row;
        align-items: center;
        gap: var(--space-sm);
        width: 100%;
    }
    
    .gf-label {
        margin-bottom: 0;
    }
    
    .gf-number {
        font-size: 2.8rem;
        margin: 0;
    }
    
    .gf-indicators {
        flex-direction: row;
        margin-top: 0;
        margin-left: auto;
    }
    
    .gf-indicator {
        width: 22px;
        height: 5px;
    }
    
    .gf-content-area {
        margin-left: 0;
    }
    
    .gf-diagonal-frame {
        height: clamp(220px, 38vh, 300px);
        clip-path: polygon(2% 0, 100% 0, 100% 100%, 0 100%);
        border-radius: var(--radius-md);
    }
    
    .gf-nav {
        width: 32px;
        height: 32px;
    }
    
    .gf-prev { left: var(--space-xs); }
    .gf-next { right: var(--space-xs); }
    
    .gf-info-bar {
        padding-left: 3%;
        text-align: left;
    }
    
    .gf-title,
    .gf-subtitle {
        font-size: 0.85rem;
    }
    
    .gf-description {
        font-size: 0.65rem;
        line-height: 1.4;
    }
    
    /* Section height and fades - Mobile */
    .game-features-section {
        padding-top: var(--space-3xl);
        padding-bottom: var(--space-4xl);
    }
    
    .game-features-section::before {
        height: 300px;
        background: linear-gradient(
            to bottom,
            var(--color-purple-dark) 0%,
            rgba(23, 4, 38, 0.85) 20%,
            rgba(15, 2, 30, 0.6) 45%,
            rgba(10, 1, 24, 0.3) 70%,
            transparent 100%
        );
    }
    
    .game-features-section::after {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .game-features-section {
        padding: var(--space-sm) 0;
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-3xl);
    }
    
    .game-features-section::before {
        height: 280px;
        background: linear-gradient(
            to bottom,
            var(--color-purple-dark) 0%,
            rgba(23, 4, 38, 0.9) 18%,
            rgba(15, 2, 30, 0.65) 42%,
            rgba(10, 1, 24, 0.35) 68%,
            transparent 100%
        );
    }
    
    .game-features-section::after {
        height: 220px;
    }
    
    .gf-main-wrapper {
        padding: 0 var(--space-xs);
    }
    
    .gf-left-panel {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .gf-label-text {
        font-size: 0.45rem;
    }
    
    .gf-number {
        font-size: 2.2rem;
    }
    
    .gf-diagonal-frame {
        height: clamp(180px, 35vh, 260px);
    }
    
    .gf-title,
    .gf-subtitle {
        font-size: 0.75rem;
    }
    
    .gf-stripes {
        height: 20px;
    }
    
    .gf-stripe {
        height: 1.5px;
    }
    
    .gf-nav {
        width: 28px;
        height: 28px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gf-slide,
    .gf-nav,
    .gf-indicator {
        transition: none;
    }
}
