/* Hero Section */
.dark-theme .hero-section {
    background: linear-gradient(to right, rgba(255, 214, 0, 0.05), transparent);
}

.dark-theme .hero-btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-color);
}

.dark-theme .hero-btn-secondary:hover {
    background-color: var(--bg-hover);
}

/* Featured Slider */
.dark-theme .slider-link {
    color: var(--bg-primary);
}

.dark-theme .slider-nav {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}/* Dark Theme Styles */

/* Root variables overrides for dark theme */
.dark-theme {
    --text-color: #FFFFFF;
    --text-secondary: #AAAAAA;
    --bg-primary: #0F0F0F;
    --bg-secondary: #212121;
    --bg-hover: #303030;
    --border-color: #383838;
    
    /* Keep primary color the same */
    --primary-color: #FFD600;
    --primary-hover: #E6C200;
    --primary-active: #CCAD00;
    
    /* Updated shadows for dark mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Theme-specific adjustments */

/* Header adjustments */
.dark-theme .header {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.dark-theme .header__search-input {
    background-color: var(--bg-primary);
    color: var(--text-color);
    border-color: var(--border-color);
}

.dark-theme .header__search-btn {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Sidebar adjustments */
.dark-theme .sidebar {
    background-color: var(--bg-primary);
}

.dark-theme .sidebar__item:hover {
    background-color: var(--bg-hover);
}

.dark-theme .sidebar__item--active {
    background-color: var(--bg-hover);
}

/* Video cards adjustments */
.dark-theme .video-card:hover .video-thumbnail::before {
    background: rgba(255, 255, 255, 0.1);
}

.dark-theme .video-duration,
.dark-theme .suggested-video-duration {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Filter buttons */
.dark-theme .topic-filter,
.dark-theme .suggestion-filter,
.dark-theme .filter-btn {
    background-color: var(--bg-secondary);
}

.dark-theme .topic-filter:hover,
.dark-theme .suggestion-filter:hover,
.dark-theme .filter-btn:hover {
    background-color: var(--bg-hover);
}

.dark-theme .topic-filter.active,
.dark-theme .suggestion-filter.active,
.dark-theme .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-primary);
}

/* Video Player Page */
.dark-theme .video-description {
    background-color: var(--bg-secondary);
}

.dark-theme .current-video-info,
.dark-theme .channel-info-container,
.dark-theme .video-description {
    border-color: var(--border-color);
}

.dark-theme .comment-input {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.dark-theme .comment-btn:disabled {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}

/* Channel Page */
.dark-theme .channel-nav {
    border-color: var(--border-color);
}

.dark-theme .view-btn.active {
    background-color: var(--bg-hover);
}

.dark-theme .channel-nav-item.active::after {
    background-color: var(--primary-color);
}

.dark-theme .featured-video-container {
    background-color: var(--bg-secondary);
}

.dark-theme .community-post {
    background-color: var(--bg-secondary);
}

/* Playlist Page */
.dark-theme .playlist-content-secondary {
    background-color: var(--bg-secondary);
}

.dark-theme .playlist-controls {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.dark-theme .playlist-video-item {
    border-color: var(--border-color);
}

.dark-theme .playlist-video-item:hover {
    background-color: var(--bg-hover);
}

.dark-theme .playlist-video-item.current {
    background-color: rgba(255, 214, 0, 0.1);
}

.dark-theme .toggle-slider {
    background-color: var(--border-color);
}

/* Shorts */
.dark-theme .shorts-comments {
    background-color: var(--bg-primary);
}

.dark-theme .comments-header {
    border-color: var(--border-color);
}

/* Watch Later & Toast */
.dark-theme .empty-state {
    background-color: var(--bg-secondary);
    color: var(--text-color);
}

.dark-theme .primary-btn {
    background-color: var(--primary-color);
    color: var(--bg-primary);
}

.dark-theme .watch-later-btn,
.dark-theme .remove-watch-later-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.dark-theme .toast {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    box-shadow: var(--shadow-lg);
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
}

.theme-toggle-icon {
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-toggle-icon {
    transform: rotate(30deg);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(33, 33, 33, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Watch Later Button */
.watch-later-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    z-index: 5;
}

.video-thumbnail:hover .watch-later-btn {
    opacity: 1;
}

.watch-later-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Remove watch later button */
.remove-watch-later-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    z-index: 5;
}

.video-card:hover .remove-watch-later-btn {
    opacity: 1;
}

.remove-watch-later-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin: 40px auto;
    max-width: 500px;
}

.empty-icon {
    font-size: 64px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.primary-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}