:root {
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f8;
    --bg-sidebar: #9146ff;
    --bg-sidebar-hover: #772ce8;
    --text-primary: #18181b;
    --text-secondary: #53535f;
    --text-sidebar: #ffffff;
    --border-color: #e5e5e5;
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --player-bg: #0e0e10;
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --bg-primary: #0e0e10;
    --bg-secondary: #18181b;
    --bg-sidebar: #9146ff;
    --bg-sidebar-hover: #772ce8;
    --text-primary: #efeff1;
    --text-secondary: #adadb8;
    --text-sidebar: #ffffff;
    --border-color: #26262c;
    --card-bg: #18181b;
    --shadow: rgba(0, 0, 0, 0.3);
    --player-bg: #0e0e10;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    color: var(--text-sidebar);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.sidebar-header p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: var(--text-sidebar);
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: var(--bg-sidebar-hover);
}

.sidebar-nav a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.theme-switch-container {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.theme-switch-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.theme-buttons {
    display: flex;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.25rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.theme-button {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-sidebar);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 40px;
}

.theme-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.theme-button.active {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-button-label {
    position: absolute;
    bottom: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    opacity: 0.7;
    white-space: nowrap;
    pointer-events: none;
    font-weight: 400;
}

.theme-button.active .theme-button-label {
    opacity: 1;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Twitch Player */
.twitch-player-container {
    background-color: var(--player-bg);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 12px var(--shadow);
    max-width: 80%;
    width: 100%;
}

.twitch-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.twitch-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Content Cards */
.content-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: box-shadow 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 4px 12px var(--shadow);
}

.content-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.link-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.link-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--bg-sidebar);
}

.link-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.link-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Equipment List */
.equipment-list {
    list-style: none;
}

.equipment-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.equipment-item:last-child {
    border-bottom: none;
}

.equipment-item i {
    font-size: 2rem;
    margin-right: 1.5rem;
    color: var(--bg-sidebar);
    width: 40px;
    text-align: center;
}

.equipment-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.equipment-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table th {
    background-color: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-table td {
    color: var(--text-secondary);
}

.schedule-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--bg-sidebar);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 4rem;
}

.footer a {
    color: var(--bg-sidebar);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background-color: var(--bg-sidebar);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .schedule-table {
        font-size: 0.875rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.75rem 0.5rem;
    }
}

