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

/* Navigation Links */
.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;
}

.search-bar {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    width: 250px;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #e50914;
}

.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 Dropdown */
.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);
}

/* Featured Carousel */
.featured-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.featured-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.featured-content {
    padding: 60px;
    max-width: 50%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.featured-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #cccccc;
    line-height: 1.6;
}

.featured-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #e50914;
    color: white;
}

.btn-primary:hover {
    background: #b8070e;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Featured Navigation */
.featured-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.featured-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.featured-nav.prev {
    left: 20px;
}

.featured-nav.next {
    right: 20px;
}

/* Auto-slide Controls */
.auto-slide-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.auto-slide-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.auto-slide-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Auto-slide Progress Bar */
.auto-slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #e50914;
    width: 0%;
    transition: width 0.1s linear;
    z-index: 100;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #e50914;
}

/* Content Sections */
.content-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
}

.category-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0;
}

.category-title:hover {
    color: #e50914;
}

.section-nav {
    display: flex;
    gap: 10px;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-arrow:hover {
    background: #e50914;
    border-color: #e50914;
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Videos Grid */
.videos-carousel {
    overflow: hidden;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    transition: transform 0.3s ease;
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #e50914;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.progress-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #e50914;
    transition: width 0.3s ease;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.4;
}

.video-meta {
    color: #cccccc;
    font-size: 0.9rem;
}

.video-meta span {
    margin-right: 15px;
}

/* Channels Grid */
.channels-carousel {
    overflow: hidden;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    transition: transform 0.3s ease;
}

.channel-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #e50914;
}

.channel-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #e50914, #ff6b35);
    margin: 0 auto 15px;
    background-size: cover;
    background-position: center;
}

.channel-name {
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.channel-info {
    color: #cccccc;
    font-size: 0.9rem;
}

.channel-info div {
    margin-bottom: 5px;
}

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

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

/* 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;
}

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

    .main-content {
        padding: 0 20px;
    }

    .featured-content {
        padding: 30px;
        max-width: 70%;
    }

    .featured-title {
        font-size: 2rem;
    }

    .featured-description {
        font-size: 1rem;
    }

    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

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

    .search-bar {
        width: 200px;
    }

    .featured-content {
        padding: 20px;
        max-width: 90%;
    }

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

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

    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Community Apps Styles */
.apps-grid .app-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.apps-grid .app-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(229, 9, 20, 0.4);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.app-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e50914, #f40612);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.app-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.app-description {
    color: #b3b3b3;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.app-badge {
    display: inline-block;
    background: rgba(229, 9, 20, 0.2);
    color: #e50914;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* Login Gate Popup */
.login-gate-popup {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 40px 50px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.login-gate-popup h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.login-gate-popup p {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.login-gate-popup p a {
    color: #e50914;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.login-gate-popup p a:hover {
    color: #ff6b35;
}
