/* Premium Course Details Styles */

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-muted-light: #94a3b8;
}

/* Hero Section */
.course-hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, rgba(15,23,42,0) 50%);
    z-index: 0;
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.course-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.course-badge.bestseller {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

.instructor-meta img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.glass-meta {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted-light);
}

.meta-item i {
    color: var(--primary-color);
}

/* Sticky Sidebar */
.course-sidebar-wrapper {
    position: sticky;
    top: 30px;
    z-index: 100;
}

.premium-sidebar-card {
    background: white;
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    transform: translateY(-80px);
    transition: transform 0.3s ease;
}

.premium-sidebar-card:hover {
    transform: translateY(-85px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.video-preview-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(255,255,255, 0.7);
    animation: pulsePlay 2s infinite;
}

@keyframes pulsePlay {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255,255,255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255, 0); }
}

.sidebar-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.sidebar-original-price {
    font-size: 1.2rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 10px;
}

.discount-tag {
    background: #fee2e2;
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
}

.btn-premium-enroll {
    background: linear-gradient(45deg, var(--primary-color), #6366f1);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-premium-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(45deg, #2563eb, #4f46e5);
}

.feature-list li {
    padding: 8px 0;
    color: #475569;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.feature-list li i {
    width: 24px;
    color: var(--primary-color);
}

/* Navigation Tabs */
.course-nav-tabs {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 20px;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.course-nav-tabs .nav-link {
    color: #64748b;
    font-weight: 600;
    padding: 20px 15px;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    transition: all 0.3s;
}

.course-nav-tabs .nav-link:hover {
    color: var(--primary-color);
}

.course-nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

/* Content Sections */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--primary-color);
    margin-right: 12px;
}

.content-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.outcome-item i {
    color: #10b981;
    margin-top: 4px;
}

/* Curriculum Accordion */
.curriculum-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.curriculum-accordion .accordion-button {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
    padding: 18px 20px;
    box-shadow: none !important;
}

.curriculum-accordion .accordion-button:not(.collapsed) {
    background: #eff6ff;
    color: var(--primary-color);
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-item:hover {
    background: #f8fafc;
}

/* Responsive */
@media (max-width: 991px) {
    .premium-sidebar-card {
        transform: none;
        margin-top: 30px;
    }
    .premium-sidebar-card:hover {
        transform: none;
    }
}
