﻿/* Dashboard Layout */
.dashboard-app-shell {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

.dashboard-sidebar {
    width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    border-right: 1px solid rgba(0,0,0,0.1);
    background: white;
}

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.brand-unlocked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-tier {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
}

.btn-logout {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn-logout:hover {
        background: #f5f5f5;
        border-color: #ccc;
    }

.dashboard-content {
    flex: 1;
    padding: 2rem;
}

.dashboard-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #666;
}

    .dashboard-footer a {
        color: #667eea;
        text-decoration: none;
    }

        .dashboard-footer a:hover {
            text-decoration: underline;
        }

/* Dashboard Navigation */
.dashboard-nav {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand-icon {
    font-size: 2rem;
}

.brand-text {
    flex: 1;
}

.brand-name {
    font-weight: 700;
    font-size: 1.125rem;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #999;
}

.nav-divider {
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.nav-section-vip {
    color: #ffa500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
    position: relative;
}

    .nav-item:hover {
        background: #f5f7fa;
        color: #667eea;
    }

    .nav-item.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

.nav-item-vip.active {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
}

.nav-icon {
    width: 20px;
    text-align: center;
}

.channel-icon {
    font-size: 1.25rem;
}

.lock-badge {
    margin-left: auto;
    font-size: 0.875rem;
}

.nav-subscription-card {
    margin-top: auto;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.subscription-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.subscription-card-tier {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.subscription-card-expiry {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.subscription-card-upgrade {
    display: block;
    text-align: center;
    padding: 0.5rem;
    background: white;
    color: #667eea;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

    .subscription-card-upgrade:hover {
        background: #f5f5f5;
    }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-action {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

    .section-action:hover {
        text-decoration: underline;
    }

/* Featured Picks Grid */
.featured-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Quick Channels Grid */
.quick-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.quick-channel-card {
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .quick-channel-card.accessible:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
    }

    .quick-channel-card.locked {
        opacity: 0.6;
        cursor: not-allowed;
    }

.channel-icon-large {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.channel-lock-badge {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.5rem;
    display: block;
}

/* Unauthorized Page */
.unauthorized-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

@media (max-width: 1024px) {
    .dashboard-sidebar {
        position: fixed;
        left: -280px;
        z-index: 1000;
        transition: left 0.3s ease;
    }

        .dashboard-sidebar.open {
            left: 0;
        }
}
