/* ========================================
   COURSE DETAIL PAGE - SPECIFIC STYLES
   ========================================
   File: course-detail.css
   Purpose: Styles specific to course detail page
   Theme: Dark theme with purple accents and glass morphism
   ======================================== */

/* ========================================
   RESPONSIVE STYLES - MOBILE OPTIMIZATIONS
   ======================================== */
@media (max-width: 768px) {
    /* Course Cover Section Mobile */
    .course-cover > div {
        flex-direction: column !important;
        min-height: auto !important;
    }
    
    .course-cover > div > div:first-child {
        width: 100% !important;
        height: 50vh !important;
        margin-bottom: 30px;
    }
    
    .course-cover > div > div:last-child {
        width: 100% !important;
        padding: 0 20px !important;
    }
    
    /* Tab Content Mobile */
    #outline-tab {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    #outline-tab > div {
        width: 100% !important;
    }
    
    /* Tab 1 Mobile Layout - Stack video/photo and content vertically */
    #outline-tab > div:first-child {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    #outline-tab #video-photo-container {
        width: 100% !important;
        height: 50vh !important;
    }
    
    #outline-tab #video-photo-container img,
    #outline-tab #video-photo-container #course-video-player {
        height: 100% !important;
        object-fit: cover;
    }
    
    #outline-tab > div:first-child > div:last-child {
        width: 100% !important;
        height: auto !important;
        min-height: 50vh;
    }
    
    /* Author Section Mobile */
    .author-detail-section .container > div {
        flex-direction: column !important;
        text-align: center;
        gap: 30px !important;
    }
    
    .author-detail-section .container > div > div:last-child > div:nth-child(2) {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* Tab Buttons Mobile */
    .course-tab-btn {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
    }
}

/* ========================================
   TAB PANEL STYLES
   ======================================== */
.tab-panel {
    padding: 40px 0;
}

.tab-panel.active {
    display: block;
}

/* Course Content Items */
.course-content-item {
    margin-bottom: 15px;
    width: 100%;
}

.course-content-header {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.course-content-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.course-content-body {
    display: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 0 8px 8px;
}

/* FAQ Content Items */
.faq-content-item {
    margin-bottom: 15px;
    width: 100%;
}

.faq-content-header {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.faq-content-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-content-body {
    display: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 0 8px 8px;
}

/* Content Wrapper Scrollable Areas */
.course-content-wrap,
.faq-content-wrap {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 15px;
    width: 100%;
}

/* Video Player Container */
#video-photo-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

#course-preview-image,
#course-video-player {
    width: 100%;
    border-radius: 12px;
}

#course-video-player {
    height: 400px;
    display: none;
}

/* Video List Styling */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.video-item.free {
    /* Border removed */
}

.video-item.locked {
    opacity: 0.7;
}

/* Tab Navigation Styling */
.course-tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    font-family: 'SukhumvitSet', sans-serif;
    transition: all 0.3s ease;
}

.course-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.course-tab-btn.active {
    color: #fff;
    font-weight: bold;
    border-bottom: 3px solid #fff;
}

/* Icon Styling */
.faq-icon-plus,
.faq-icon-minus,
.content-icon-plus,
.content-icon-minus {
    color: #8b5cf6;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Purchase Button Styling */
.btn-purchase {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'SukhumvitSet', sans-serif;
    width: 100%;
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* Author Section Styling */
.author-detail-section {
    background: #000;
    padding: 80px 0;
}

.author-profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #8b5cf6;
    flex-shrink: 0;
}

.author-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.rating-stars svg {
    width: 16px;
    height: 16px;
    fill: #fbbf24;
}

/* Achievement Stats */
.achievement-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 0.95rem;
}

.stat-icon {
    width: 20px;
    height: 20px;
    fill: #8b5cf6;
}

/* Course Details Clean Styling */
.course-details-clean {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-row {
    display: flex;
    align-items: center;
}

.detail-label {
    color: #fff;
    font-weight: 700;
    margin-right: 15px;
    min-width: 120px;
}

.detail-value {
    color: #ccc;
    font-weight: 400;
}

.detail-value.price {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Target Audience Styling */
.target-audience {
    padding-left: 0;
}

.target-audience h4 {
    color: #8b5cf6;
    margin-bottom: 15px;
    font-family: 'SukhumvitSet', sans-serif;
}

.target-audience ul {
    color: #ccc;
    line-height: 1.8;
    list-style: none;
    padding: 0;
}

.target-audience li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.target-audience li:before {
    content: "•";
    color: #8b5cf6;
    font-weight: bold;
    position: absolute;
    left: 0;
}