/* Shared UI Components Styles */

/* TODO: Agent 2 - Review and organize these shared components into the new shared layer architecture */

/* Category Pills */
.category-pill {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
}

.category-pill:hover {
    background: #e50914;
    border-color: #e50914;
    transform: scale(1.05);
}

.category-pill.active {
    background: #e50914;
    border-color: #e50914;
}

/* Course Count Badge */
.course-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(5px);
}

/* Show course count always, not just on hover */
.slide-thumbnail .course-count {
    opacity: 1;
}

/* Slide item link styles */
.slide-item {
    text-decoration: none;
    color: inherit;
}

/* Loading message styles */
.loading-message {
    text-align: center;
    padding: 40px;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    padding: 8px 16px;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    outline: none;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 준비중 코스 스타일 */
.coming-soon-course {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.coming-soon-course::after {
    content: '준비중';
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(229, 9, 20, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
}

.coming-soon-course:hover {
    transform: none;
}

.coming-soon-course .play-overlay {
    opacity: 0.3;
}

/* 🚀 인라인 스타일 제거 - 새로운 클래스들 */

/* 특별 네비게이션 링크 (기존 인라인 스타일 대체) */
.nav-special-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
}

.nav-special-link:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* 모바일 메뉴 숨김 (기존 display: none 대체) */
.mobile-menu-hidden {
    display: none;
}

/* 코스 썸네일 배경 이미지 (기존 인라인 스타일 대체) */
.course-thumbnail[data-bg] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* JavaScript로 동적 배경 이미지 설정을 위한 헬퍼 */
.course-thumbnail {
    position: relative;
    overflow: hidden;
}

/* 메인 헤더 네비게이션 스타일 (인라인 스타일 대체) */
.nav-flex-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.netflix-logo-red {
    color: #ff0033;
}

/* Remove any floating elements */
.floating-notes,
.note-widget,
.floating-note-button {
    display: none !important;
}

/* 반응형 대응 */
@media (max-width: 768px) {
    .nav-special-link {
        padding: 6px 12px !important;
        font-size: 0.9rem !important;
    }

    .mobile-menu-hidden {
        display: block;
    }

    .nav-flex-container {
        gap: 30px;
    }
}