/* ============================================
   CSS RESET & VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* BRAND COLORS */
    --brand-gold: #fceba2;
    --brand-gold-dark: #e6d48a;
    --brand-dark: #1A1A1A;
    --brand-darker: #0F0F0F;
    --brand-gray: #2A2A2A;
    --brand-light-gray: #3A3A3A;

    /* TEXT */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;

    /* ACCENTS */
    --accent-twitch: #9146FF;
    --accent-youtube: #FF0000;
    --accent-discord: #5865F2;
    --accent-instagram: #E4405F;
    --accent-tiktok: #00F2EA;
    --accent-spotify: #1DB954;

    /* TRANSITIONS */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* FOCUS STYLES */
    --focus-outline: 3px solid var(--brand-gold);
    --focus-outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--brand-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ACCESSIBILITY - FOCUS STYLES
   ============================================ */
*:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* Skip to main content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--brand-gold);
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 8px;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================
   BACKGROUND & PATTERNS
   ============================================ */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(180deg, var(--brand-darker) 0%, var(--brand-dark) 50%, var(--brand-darker) 100%);
}

/* SVG BACKGROUND PATTERN - Decorative X's and dots */
.svg-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 3rem;
    background: transparent;
    transition: all var(--transition-slow);
}

.nav-menu.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 3rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* LOGO SECTION */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    transition: transform var(--transition-normal);
}

.logo-section:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.logo-text .highlight {
    color: var(--brand-gold);
}

/* NAVIGATION LINKS */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--brand-gold);
}

/* X Icon before active link */
.nav-links a.active::before,
.nav-links a:hover::before {
    content: '×';
    font-size: 1.2rem;
    color: var(--brand-gold);
    margin-right: 0.3rem;
}

.nav-links a.active {
    color: var(--brand-gold);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--brand-gold);
    transition: all var(--transition-normal);
    display: block;
    border-radius: 2px;
}

/* Mobile toggle animation when active */
.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   HERO SECTION - STREAM & VIDEO WINDOWS
   ============================================ */
.hero-section {
    min-height: 100vh;
    padding: 120px 3rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.windows-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    width: 100%;
}

/* WINDOW CARDS */
.window-card {
    position: relative;
    background: var(--brand-dark);
    border: 1px solid var(--brand-light-gray);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-slow);
    text-decoration: none;
    display: block;
}

.window-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gold);
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.window-card:hover::before,
.window-card:focus-visible::before {
    transform: scaleX(1);
}

.window-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.window-card:focus-visible {
    border-color: var(--brand-gold);
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* Window Header */
.window-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(201, 184, 150, 0.05);
}

.window-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-gray);
    background-image: url('canva_M.png');
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.window-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.window-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Window Content - Video Area */
.window-content {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--brand-gray);
    overflow: hidden;
}

/* Placeholder styling */
.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-gray) 0%, var(--brand-dark) 100%);
    gap: 1rem;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
}

.window-card:hover .play-button {
    transform: scale(1.1);
}

.play-button svg {
    width: 30px;
    height: 30px;
    fill: white;
    margin-left: 5px;
}

.platform-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.platform-badge.youtube {
    color: #FF0000;
}

.platform-badge.twitch {
    color: #9146FF;
}

/* Window Footer */
.window-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--brand-light-gray);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF4444;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #FF4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* ============================================
   SHOP SECTION - GAMES & ACCESSORIES
   ============================================ */
.shop-section {
    padding: 6rem 3rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-gold);
    padding: 0.8rem 2rem;
    background: var(--brand-dark);
    border: 2px solid var(--brand-gold);
    position: relative;
    margin-bottom: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--brand-gold);
    z-index: -1;
    transform: translate(4px, 4px);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.tab-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color var(--transition-normal);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gold);
    transition: width var(--transition-normal);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--brand-gold);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-btn:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* CAROUSEL CONTAINER */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track.dragging {
    cursor: grabbing;
    transition: none;
}

/* PRODUCT CARDS */
.product-card {
    min-width: calc(33.333% - 1.33rem);
    max-width: calc(33.333% - 1.33rem);
    width: calc(33.333% - 1.33rem);
    flex: 0 0 calc(33.333% - 1.33rem);
    background: var(--brand-dark);
    border: 1px solid var(--brand-light-gray);
    overflow: hidden;
    transition: all var(--transition-slow);
    cursor: pointer;
    opacity: 1 !important;
    transform: none !important;
}

.product-card:hover {
    border-color: var(--brand-gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-card:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

.product-header {
    padding: 1rem;
    text-align: center;
    background: rgba(201, 184, 150, 0.1);
    border-bottom: 1px solid var(--brand-light-gray);
}

.product-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-gold);
}

.product-image {
    aspect-ratio: 1;
    background: var(--brand-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

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

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--brand-dark);
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 10;
    border-radius: 4px;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
    background: var(--brand-gold);
    color: var(--brand-dark);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

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

/* Auto-scroll indicator */
.scroll-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-light-gray);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.indicator-dot:hover,
.indicator-dot:focus-visible {
    background: var(--brand-gold);
    transform: scale(1.2);
}

.indicator-dot.active {
    background: var(--brand-gold);
    transform: scale(1.2);
}

/* ============================================
   FOOTER - SOCIAL LINKS
   ============================================ */
.footer {
    padding: 4rem 3rem 2rem;
    background: var(--brand-dark);
    border-top: 1px solid var(--brand-light-gray);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gray);
    border: 1px solid var(--brand-light-gray);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-5px);
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    box-shadow: 0 10px 30px rgba(201, 184, 150, 0.2);
}

.social-link:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Platform specific colors on hover */
.social-link.discord:hover {
    color: var(--accent-discord);
    border-color: var(--accent-discord);
}

.social-link.instagram:hover {
    color: var(--accent-instagram);
    border-color: var(--accent-instagram);
}

.social-link.youtube:hover {
    color: var(--accent-youtube);
    border-color: var(--accent-youtube);
}

.social-link.twitch:hover {
    color: var(--accent-twitch);
    border-color: var(--accent-twitch);
}

.social-link.tiktok:hover {
    color: var(--accent-tiktok);
    border-color: var(--accent-tiktok);
}

.social-link.spotify:hover {
    color: var(--accent-spotify);
    border-color: var(--accent-spotify);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--brand-gold);
}

/* ============================================
   LOADING STATES & ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading shimmer effect */
.loading-shimmer {
    background: linear-gradient(90deg, var(--brand-gray) 0%, var(--brand-light-gray) 50%, var(--brand-gray) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .nav-menu,
    .svg-background,
    .carousel-btn,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .window-card,
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .carousel-track {
        transition: none;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --brand-gold: #ffeb3b;
        --text-secondary: #ffffff;
    }
    
    .window-card,
    .product-card {
        border-width: 2px;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .product-card {
        min-width: calc(50% - 1rem);
        max-width: calc(50% - 1rem);
        width: calc(50% - 1rem);
        flex: 0 0 calc(50% - 1rem);
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        padding: 1rem 1.5rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--brand-darker);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right var(--transition-slow);
        border-left: 1px solid var(--brand-gold);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 1rem 0;
        width: 100%;
        justify-content: center;
    }

    .windows-container {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 100px 1.5rem 3rem;
    }

    .shop-section {
        padding: 4rem 1.5rem;
    }

    .product-card {
        min-width: 80%;
        max-width: 80%;
        width: 80%;
        flex: 0 0 80%;
    }

    .category-tabs {
        gap: 1.5rem;
    }

    .tab-btn {
        font-size: 1rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

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

    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 40px !important;
        height: 40px !important;
    }

    .section-label {
        font-size: 0.8rem;
        padding: 0.6rem 1.5rem;
    }

    .product-card {
        min-width: 90%;
        max-width: 90%;
        width: 90%;
        flex: 0 0 90%;
    }
    
    .window-header {
        padding: 0.75rem 1rem;
    }
    
    .window-footer {
        padding: 0.75rem 1rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
