﻿:root {
    --primary: #8B5CF6;
    --primary-light: #A78BFA;
    --primary-dark: #7C3AED;
    --secondary: #3B82F6;
    --secondary-light: #60A5FA;
    --accent: #EC4899;
    --bg-dark: #0A0A0F;
    --bg-card: #1A1A2A;
    --bg-card-hover: #222235;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0FF;
    --text-muted: #A0A0C0;
    --text-soft: #A0A0C0;
    --border-light: 1px solid rgba(139, 92, 246, 0.2);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.3);
    --gradient-1: linear-gradient(135deg, #8B5CF6, #3B82F6);
    --gradient-2: linear-gradient(135deg, #EC4899, #8B5CF6);
    --gradient-3: linear-gradient(135deg, #8B5CF6, #3B82F6, #EC4899);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container */
.course-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

    .breadcrumb a {
        color: var(--text-muted);
        text-decoration: none;
        transition: color 0.3s;
    }

        .breadcrumb a:hover {
            color: var(--primary);
        }

    .breadcrumb i {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

/* Course Header */
.course-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .course-header {
        grid-template-columns: 1fr;
    }
}

/* Course Media (Video/Image) */
.course-media {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: var(--border-light);
}

.course-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.course-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
}

.course-media:hover .course-preview-overlay {
    opacity: 1;
}

.preview-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s;
    box-shadow: var(--shadow-glow);
}

.course-media:hover .preview-button {
    transform: scale(1);
}

.preview-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gradient-2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    z-index: 2;
}

/* Course Info */
.course-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.category-badge {
    background: rgba(139, 92, 246, 0.1);
    border: var(--border-light);
    color: var(--primary-light);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
}

.course-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.course-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: var(--bg-card);
    border-radius: 30px;
    padding: 1.5rem;
    border: var(--border-light);
}

@media (max-width: 768px) {
    .course-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.meta-item {
    text-align: center;
}

.meta-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.course-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 30px;
    padding: 1.5rem;
    border: var(--border-light);
    flex-wrap: wrap;
    gap: 1rem;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.access-badge {
    background: rgba(139, 92, 246, 0.15);
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    color: var(--primary-light);
    font-weight: 600;
    border: var(--border-light);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-glow);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

    .btn-outline:hover {
        background: var(--gradient-1);
        border-color: transparent;
        transform: translateY(-3px);
    }

/* Tabs Section */
.course-tabs {
    margin: 3rem 0;
}

.tabs-header {
    display: flex;
    gap: 0.5rem;
    border-bottom: var(--border-light);
    padding-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    white-space: nowrap;
}

    .tab-btn:hover {
        color: var(--text-primary);
    }

    .tab-btn.active {
        color: var(--primary);
    }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-1);
            border-radius: 3px 3px 0 0;
        }

.tab-content {
    padding: 2rem 0;
}

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overview Tab */
.overview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .overview-content {
        grid-template-columns: 1fr;
    }
}

.description-box {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 2rem;
    border: var(--border-light);
}

    .description-box h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .description-box p {
        color: var(--text-secondary);
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

    .features-list li {
        padding: 0.8rem 0;
        padding-left: 2rem;
        position: relative;
        color: var(--text-secondary);
        border-bottom: var(--border-light);
    }

        .features-list li:last-child {
            border-bottom: none;
        }

        .features-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--primary);
            font-weight: bold;
        }

.requirements-box {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 2rem;
    border: var(--border-light);
}

    .requirements-box h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

.requirements-list {
    list-style: none;
    padding: 0;
}

    .requirements-list li {
        padding: 0.8rem 0;
        padding-left: 2rem;
        position: relative;
        color: var(--text-secondary);
    }

        .requirements-list li::before {
            content: '•';
            position: absolute;
            left: 0;
            color: var(--primary);
            font-size: 1.5rem;
        }

/* Curriculum Tab */
.curriculum-box {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 2rem;
    border: var(--border-light);
}

.curriculum-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: var(--border-light);
}

.curriculum-stat {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

    .curriculum-stat i {
        color: var(--primary);
        font-size: 1.2rem;
    }

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    overflow: hidden;
    border: var(--border-light);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

    .accordion-header:hover {
        background: rgba(139, 92, 246, 0.05);
    }

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .accordion-header-left i {
        color: var(--primary);
        font-size: 1.2rem;
    }

    .accordion-header-left h4 {
        margin: 0;
        font-size: 1.1rem;
    }

.section-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.accordion-arrow {
    color: var(--text-muted);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 1.5rem;
    max-height: 500px;
}

.video-list {
    list-style: none;
    padding: 0;
}

.video-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: var(--border-light);
}

    .video-item:last-child {
        border-bottom: none;
    }

.video-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .video-item-left i {
        color: var(--primary);
        font-size: 1rem;
    }

        .video-item-left i.fa-lock {
            color: var(--text-muted);
        }

.video-title {
    color: var(--text-secondary);
}

.free-badge {
    background: #10B981;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

.video-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Instructor Tab */
.instructor-box {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 2rem;
    border: var(--border-light);
}

.instructor-profile {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .instructor-profile {
        flex-direction: column;
        text-align: center;
    }
}

.instructor-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 5px;
    background: var(--gradient-1);
}

    .instructor-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid var(--bg-card);
    }

.instructor-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.instructor-title {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.instructor-bio {
    color: var(--text-secondary);
    line-height: 1.8;
}

.instructor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: var(--border-light);
}

.instructor-stat {
    text-align: center;
}

.instructor-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.instructor-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Reviews Tab */
.reviews-box {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 2rem;
    border: var(--border-light);
}

.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: var(--border-light);
}

@media (max-width: 768px) {
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.average-rating {
    text-align: center;
}

.average-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stars {
    color: #FFD700;
    margin: 0.5rem 0;
}

.total-reviews {
    color: var(--text-muted);
}

.rating-bars {
    flex: 1;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rating-label {
    width: 60px;
    color: var(--text-secondary);
}

.bar-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
}

.rating-count {
    width: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: var(--border-light);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: 600;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
}

/* Related Courses */
.related-section {
    margin: 4rem 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-card {
    background: var(--bg-card);
    border-radius: 30px;
    overflow: hidden;
    border: var(--border-light);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .related-card:hover {
        transform: translateY(-8px);
        border-color: var(--primary);
        box-shadow: var(--shadow-glow);
    }

.related-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

    .related-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s;
    }

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 1.2rem;
}

    .related-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

.related-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.related-price {
    color: var(--primary);
    font-weight: 700;
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    border-top: var(--border-light);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 0.8rem;
    }

    .footer-links a {
        color: var(--text-muted);
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer-links a:hover {
            color: var(--primary);
        }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: var(--border-light);
    color: var(--text-muted);
}

/* Data Attributes (for dynamic conversion) */
[data-course-id],
[data-category-id],
[data-section-id],
[data-video-id] {
    /* These attributes will hold the dynamic IDs */
}
/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.98);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}

.video-modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
}

    .modal-close:hover {
        background: var(--gradient-1);
        transform: rotate(90deg);
    }

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
}

    .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }