/* Course Detail Page Styles */
:root {
    --course-primary: #6366f1;
    --course-secondary: #475569;
    --course-bg: #f8fafc;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Hero Section */
.course-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 120px 0 60px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.course-hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.course-badge-large {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.course-badge-large.new {
    background: #10b981;
    color: white;
}

.course-hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.course-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.course-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.instructor-avatar-large {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Preview Card */
.course-preview-card {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.preview-video-large {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    background-size: cover;
    background-position: center;
}

.play-button-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

.preview-card-content {
    padding: 2rem;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-original {
    text-decoration: line-through;
    color: var(--text-tertiary);
}

.price-discount {
    background: #fef3c7;
    color: #d97706;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.btn-enroll-large {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

.btn-enroll-large:hover {
    transform: translateY(-2px);
}

/* Tabs */
.course-content-section {
    padding: 60px 0;
}

.course-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 0;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Layout Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

/* Outcomes and Tech Stack */
.learning-outcomes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.outcome-item {
    display: flex;
    gap: 1rem;
}

.outcome-icon {
    color: #10b981;
    font-weight: bold;
}

.tech-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.tech-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    transition: transform 0.2s;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 2rem;
}

.tech-info h4 {
    margin-bottom: 0.25rem;
}

.tech-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Sidebar */
.sidebar-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li::before {
    content: '→';
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .course-hero-grid {
        grid-template-columns: 1fr;
    }

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

    .course-hero-right {
        max-width: 500px;
        margin: 0 auto;
    }
}