/* POZİTİF MOTORS — Premium Luxury Automotive Style Sheet */
@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Condensed:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --bg-main: #030304;
    --bg-card: rgba(18, 18, 22, 0.75);
    --bg-card-hover: rgba(28, 28, 35, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(239, 68, 68, 0.5);
    --accent-red: #ef4444;
    --accent-gold: #d97706;
    --text-primary: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-heading: 'Libre Caslon Condensed', Georgia, serif;
    --text-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Light Theme Variables */
html.light, body.light {
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(220, 38, 38, 0.5);
    --text-primary: #0f172a;
    --text-muted: #64748b;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--text-body);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    transition: background-color 300ms ease, color 300ms ease;
}

/* Typography Hierarchy - Bold Impactful Headings */
h1, h2, h3, h4, h5, h6, .font-serif, .brand-title, .hero-heading, .section-title {
    font-family: var(--text-heading) !important;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.hero-heading {
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.75rem;
    line-height: 1.1;
}

/* Glassmorphism Cards */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.glass-panel-hover {
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
    background: var(--bg-card-hover);
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(239, 68, 68, 0.12);
}

/* Light Mode Overrides */
html.light .glass-panel {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

html.light .glass-panel-hover:hover {
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.1);
}

html.light body {
    background-color: #f8fafc;
}

html.light .bg-zinc-950 {
    background-color: #ffffff !important;
}

html.light .bg-zinc-950\/80 {
    background-color: rgba(255, 255, 255, 0.85) !important;
}

html.light .bg-zinc-950\/90 {
    background-color: rgba(255, 255, 255, 0.92) !important;
}

html.light .bg-zinc-900 {
    background-color: #f1f5f9 !important;
}

html.light .bg-zinc-900\/80 {
    background-color: rgba(241, 245, 249, 0.85) !important;
}

html.light .text-white {
    color: #0f172a !important;
}

/* Hero Section text must stay white even in light mode for cinematic contrast */
#hero .text-white, #hero h1, #hero p, #hero a span {
    color: #ffffff !important;
}

html.light .text-zinc-100 {
    color: #1e293b !important;
}

html.light .text-zinc-200 {
    color: #1e293b !important;
}

html.light .text-zinc-300 {
    color: #334155 !important;
}

html.light .text-zinc-400 {
    color: #64748b !important;
}

html.light .border-zinc-900, 
html.light .border-zinc-800,
html.light .border-zinc-700 {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

html.light .border-zinc-900\/80,
html.light .border-zinc-800\/80 {
    border-color: rgba(0, 0, 0, 0.06) !important;
}

/* Hero Cinematic Track & Sticky Section ALWAYS Pure Black & Full Video Visibility */
#hero-scroll-wrapper {
    position: relative;
    width: 100%;
    background-color: #000000 !important;
    min-height: 350vh;
}

#hero {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000 !important;
    overflow: hidden;
    z-index: 10;
}

#hero video, #hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95 !important;
    filter: brightness(0.98) contrast(1.05) !important;
    z-index: 1;
    pointer-events: none;
}

/* Hero Harf Harf Typewriter & Stagger Reveal Animasyonu */
.char-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px) scale(0.9);
    filter: blur(8px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
    white-space: pre;
}

.char-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.hero-fade-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.hero-fade-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ef4444;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 250ms ease;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.35);
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.5);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--border-color);
    color: #f4f4f5;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 250ms ease;
    backdrop-filter: blur(12px);
    cursor: pointer;
}

html.light .btn-secondary {
    background: rgba(241, 245, 249, 0.9);
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(39, 39, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: #ffffff;
}

html.light .btn-secondary:hover {
    background: rgba(226, 232, 240, 1);
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.2);
}

/* Filter Badges */
.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    background: rgba(18, 18, 22, 0.7);
    border: 1px solid var(--border-color);
    color: #a1a1aa;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 200ms ease;
    cursor: pointer;
}

html.light .filter-btn {
    background: #ffffff;
    color: #64748b;
    border-color: rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

html.light .filter-btn:hover {
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.25);
}

.filter-btn.active {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.8);
    color: #f87171 !important;
}

/* Theme Switch Toggle Button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--border-color);
    color: #f4f4f5;
    transition: all 200ms ease;
    cursor: pointer;
}

html.light .theme-toggle-btn {
    background: #f1f5f9;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
    transform: scale(1.06);
    border-color: #ef4444;
}

/* Detail Tabs */
.detail-tab-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.875rem;
    background: rgba(18, 18, 22, 0.6);
    border: 1px solid var(--border-color);
    color: #a1a1aa;
    font-size: 0.8125rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 200ms ease;
    cursor: pointer;
}

html.light .detail-tab-btn {
    background: #f1f5f9;
    color: #64748b;
    border-color: rgba(0, 0, 0, 0.08);
}

.detail-tab-btn:hover {
    color: #ffffff;
    background: rgba(30, 30, 38, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

html.light .detail-tab-btn:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.detail-tab-btn.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.8);
    color: #f87171 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

/* Action Icon Buttons */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    background-color: rgba(24, 24, 27, 0.85);
    border: 1px solid var(--border-color);
    color: #d4d4d8;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.action-btn:hover {
    background-color: rgba(39, 39, 42, 0.95);
    border-color: rgba(239, 68, 68, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0) scale(0.94);
}


/* ==========================================================================
   RACING GAME FULLSCREEN (100vh) SHOWROOM & 2S BRAKE VIDEO ENGINE
   ========================================================================== */

.fullscreen-showroom-section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 2rem 2rem 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(ellipse at 50% 70%, #150608 0%, #08080c 50%, #030305 100%);
    overflow: hidden;
}

.game-showroom-stage {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2.5rem;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 75%, rgba(45, 12, 18, 0.75) 0%, rgba(10, 10, 15, 0.95) 55%, #050508 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.95), 0 35px 90px rgba(0, 0, 0, 0.95);
}

/* 2s Brake Video Player Staging */
.stage-brake-video {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: contain;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 20px rgba(239, 68, 68, 0.25));
    user-select: none;
    pointer-events: none;
    transition: opacity 250ms ease;
}

/* Garage Turntable & Spotlight Floor */
.stage-floor-spotlight {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 220px;
    background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.4) 0%, rgba(239, 68, 68, 0.09) 45%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(25px);
    z-index: 1;
}

.stage-floor-circle {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%) rotateX(75deg);
    width: 920px;
    height: 440px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.3), inset 0 0 50px rgba(239, 68, 68, 0.2);
    pointer-events: none;
    z-index: 1;
}

.stage-floor-circle::after {
    content: '';
    position: absolute;
    inset: 25px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Stage Car Wrapper (Massive Full Screen Staging) */
.stage-car-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1240px;
    height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity, filter;
}

.stage-car-image {
    width: 100%;
    height: 100%;
    max-width: 1120px;
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 25px rgba(239, 68, 68, 0.3));
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Aggressive Brake Drift Animations */
.animate-brake-right {
    animation: carBrakeSlideRight 1.6s cubic-bezier(0.12, 0.8, 0.22, 1) forwards;
}

.animate-brake-left {
    animation: carBrakeSlideLeft 1.6s cubic-bezier(0.12, 0.8, 0.22, 1) forwards;
}

.animate-brake-initial {
    animation: carBrakeInitial 1.4s cubic-bezier(0.15, 0.85, 0.25, 1) forwards;
}

@keyframes carBrakeSlideRight {
    0% {
        transform: translate3d(120%, 0, 0) scale(0.85) skewX(-10deg) rotate(3deg);
        opacity: 0;
        filter: blur(10px);
    }
    40% {
        transform: translate3d(-7%, 0, 0) scale(1.04) skewX(5deg) rotate(-2deg);
        opacity: 1;
        filter: blur(0px);
    }
    60% {
        transform: translate3d(3%, 4px, 0) scale(0.97) skewX(-2.5deg) rotate(1deg);
    }
    80% {
        transform: translate3d(-1%, -1px, 0) scale(1.01) skewX(0.8deg) rotate(-0.3deg);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1) skewX(0deg) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes carBrakeSlideLeft {
    0% {
        transform: translate3d(-120%, 0, 0) scale(0.85) skewX(10deg) rotate(-3deg);
        opacity: 0;
        filter: blur(10px);
    }
    40% {
        transform: translate3d(7%, 0, 0) scale(1.04) skewX(-5deg) rotate(2deg);
        opacity: 1;
        filter: blur(0px);
    }
    60% {
        transform: translate3d(-3%, 4px, 0) scale(0.97) skewX(2.5deg) rotate(-1deg);
    }
    80% {
        transform: translate3d(1%, -1px, 0) scale(1.01) skewX(-0.8deg) rotate(0.3deg);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1) skewX(0deg) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes carBrakeInitial {
    0% {
        transform: scale(0.8) translate3d(0, 40px, 0);
        opacity: 0;
        filter: blur(12px);
    }
    60% {
        transform: scale(1.03) translate3d(0, -6px, 0);
        opacity: 1;
        filter: blur(0);
    }
    80% {
        transform: scale(0.99) translate3d(0, 2px, 0);
    }
    100% {
        transform: scale(1) translate3d(0, 0, 0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Floor Brake Flash Ripple */
.brake-flash-effect {
    animation: floorFlash 1.6s ease-out forwards;
}

@keyframes floorFlash {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.6);
    }
    35% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
    100% {
        opacity: 0.35;
        transform: translateX(-50%) scale(1);
    }
}

/* HUD Information Cards (Flanking Stage) */
.hud-card {
    background: rgba(12, 13, 18, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    padding: 1.75rem;
    z-index: 20;
    will-change: transform, opacity;
    min-width: 320px;
    max-width: 380px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .hud-card {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }
}

.hud-card-left {
    animation: hudSlideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hud-card-right {
    animation: hudSlideRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

@keyframes hudSlideLeft {
    0% {
        transform: translate3d(-60px, 0, 0);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes hudSlideRight {
    0% {
        transform: translate3d(60px, 0, 0);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

/* Game Stage Navigation Arrows */
.stage-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: rgba(18, 20, 28, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.stage-nav-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(239, 68, 68, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
}

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

.stage-nav-prev {
    left: 1.5rem;
}

.stage-nav-next {
    right: 1.5rem;
}

/* Bottom Game Thumbnail Selector Strip */
.game-thumb-item {
    position: relative;
    flex-shrink: 0;
    width: 140px;
    height: 85px;
    border-radius: 1rem;
    background: rgba(18, 20, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-col: column;
    justify-content: space-between;
}

.game-thumb-item:hover {
    background: rgba(28, 30, 42, 0.9);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-4px);
}

.game-thumb-item.active {
    border-color: #ef4444;
    background: rgba(35, 15, 20, 0.95);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4), inset 0 0 10px rgba(239, 68, 68, 0.2);
    transform: translateY(-4px) scale(1.04);
}

.game-thumb-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
}

/* Light Theme Adaptations for Game Stage */
html.light .game-showroom-stage {
    background: radial-gradient(ellipse at 50% 75%, rgba(254, 226, 226, 0.8) 0%, rgba(241, 245, 249, 0.95) 55%, #e2e8f0 100%);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.04), 0 20px 50px rgba(0, 0, 0, 0.08);
}

html.light .hud-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

html.light .stage-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

html.light .stage-nav-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

html.light .game-thumb-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

html.light .game-thumb-item.active {
    background: rgba(254, 242, 242, 0.95);
    border-color: #ef4444;
}

