/* GlowVision Channels Page - External Styles */
/* Non-critical CSS loaded externally for caching */

/* Navigation */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e50914;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: #e50914;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    background: #b8070e;
}

.profile-container {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #333;
}

.profile-dropdown-header .user-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.profile-dropdown-header .user-email {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.profile-dropdown-menu {
    padding: 8px 0;
}

.profile-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.profile-dropdown-menu a:hover {
    background: #333;
    color: #fff;
}

.profile-dropdown-menu a .menu-icon {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.profile-dropdown-divider {
    height: 1px;
    background: #333;
    margin: 8px 0;
}

.profile-dropdown-menu a.logout-link {
    color: #e50914;
}

.profile-dropdown-menu a.logout-link:hover {
    background: rgba(229, 9, 20, 0.1);
}

/* Page Title */
.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
}

/* Channels Grid */
.channels-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.channel-card {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.channel-card:hover {
    width: 282px;
    height: 282px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: #e50914;
    background: rgba(255, 255, 255, 0.08);
}

.channel-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, #e50914, #ff6b35);
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.channel-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.channel-description {
    color: #aaaaaa;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    background: #e50914;
    border-color: #e50914;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #cccccc;
    font-size: 0.95rem;
    margin: 0 15px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #cccccc;
    width: 100%;
}

.empty-state h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Error Message */
.error-message {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: #ff6b6b;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }

    .main-content {
        padding: 20px;
    }

    .channel-card {
        width: 100%;
        max-width: 320px;
    }

    .channel-card:hover {
        width: 100%;
        max-width: 322px;
    }

    .channels-grid {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .page-title {
        font-size: 1.5rem;
    }
}
