/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */
:root {
    --color-bg: #0a0a0c;
    --color-bg-light: #16161a;
    --color-primary: #FF9500; /* Apple/Google Orange */
    --color-primary-glow: rgba(255, 149, 0, 0.4);
    --color-text: #ffffff;
    --color-text-muted: #a1a1aa;
    
    --glass-bg: rgba(25, 25, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==========================================================================
   Background Animation
   ========================================================================== */
.bg-animated {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(255, 149, 0, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
    animation: rotateBg 60s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.glass-panel-heavy {
    background: rgba(15, 15, 18, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
    width: auto;
    border-radius: 8px; /* Assuming the logo is square, adds nice corners */
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-secondary {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px; /* Pill shape (Apple style) */
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
    box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px var(--color-primary-glow);
    background-color: #ffa32a;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ==========================================================================
   Main Content & Hero
   ========================================================================== */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.text-orange {
    color: var(--color-primary);
}

.hero-subtitle {
    color: var(--color-text-muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* ==========================================================================
   Stream Section
   ========================================================================== */
.stream-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stream-info {
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    align-self: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Status: Loading */
.status-loading .status-dot {
    background-color: #888;
    animation: pulse 1.5s infinite opacity;
}

/* Status: Live */
.status-live .status-dot {
    background-color: #ff3b30;
    box-shadow: 0 0 10px #ff3b30;
    animation: pulse-red 2s infinite;
}

/* Status: Offline */
.status-offline .status-dot {
    background-color: var(--color-text-muted);
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.player-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: 4px; /* Slight border effect */
}

#twitch-embed {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
}

#twitch-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text);
}

.separator {
    opacity: 0.3;
}

/* ==========================================================================
   Animations (Fade In Up)
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

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

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    text-align: center;
}

.cookie-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container { padding: 1rem; }
    .main-content { padding: 6rem 1rem 2rem; }
    .player-box { border-radius: 12px; padding: 2px; }
    #twitch-embed { border-radius: 10px; }
    .cookie-buttons { flex-direction: column; }
}
