/* --- Variables & Reset --- */
:root {
    --bg-dark: #121212;
    --bg-panel: #1e1e1e;
    --primary-orange: #ff5722; /* Phoenix Wing Orange */
    --accent-gold: #ffc107;    /* Phoenix Wing Gold */
    --accent-red: #d32f2f;     /* Phoenix Wing Red */
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --nav-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- Navigation --- */
.navbar {
    background: linear-gradient(90deg, #000000 0%, #2c0b0b 100%);
    height: var(--nav-height);
    border-bottom: 2px solid var(--primary-orange);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-orange);
}

/* --- Main Layout --- */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 120px); /* Fill space minus nav/footer */
}

.page-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* Add under .page-header section */
.status-wrapper {
    text-align: right;
}

.current-streamer {
    font-size: 0.9rem;
    color: var(--accent-gold);
    margin-top: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Update status indicator to stop blinking if offline */
.status-indicator {
    font-weight: bold;
    /* Animation is optional now since JS controls it */
}

.page-header h1 {
    font-size: 2rem;
    background: -webkit-linear-gradient(45deg, var(--primary-orange), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-indicator {
    font-weight: bold;
    color: var(--accent-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- Twitch Embed --- */
.stream-layout {
    background: var(--bg-panel);
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

#twitch-embed {
    width: 100%;
    height: 600px; /* Default height */
}

/* --- Stream Info Cards --- */
.stream-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--bg-panel);
    padding: 20px;
    border-left: 4px solid var(--primary-orange);
    border-radius: 4px;
}

.info-card h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.info-card ul {
    list-style: none;
    padding-left: 10px;
}

.info-card li {
    margin-bottom: 8px;
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: bold;
}

.btn-primary:hover {
    background: var(--accent-red);
}

/* --- Footer --- */
.footer {
    background: #000;
    color: #666;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    #twitch-embed {
        height: 400px; /* Smaller height for mobile */
    }
    .nav-links {
        display: none; /* In a real site, add a hamburger menu here */
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Streamer Selection Buttons --- */
.streamer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.streamer-btn {
    background: var(--bg-panel);
    border: 1px solid #333;
    color: var(--text-muted);
    padding: 10px;
    cursor: pointer;
    text-align: left;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.streamer-btn:hover {
    background: #2a2a2a;
    color: var(--text-main);
}

/* Style for the currently watching streamer */
.streamer-btn.active {
    background: #333;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Style for Streamers who are LIVE */
.streamer-btn.is-live {
    border-color: var(--primary-orange);
    color: var(--text-main);
    box-shadow: 0 0 5px rgba(255, 87, 34, 0.2);
}

.streamer-btn.is-live::after {
    content: "LIVE";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    background: var(--primary-orange);
    color: #fff;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: bold;
}