/**
 * Chapter Detail Page Styles
 */

/* ========================================
   CHAPTER HERO
   ======================================== */
.chapter-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.chapter-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--platform-text-muted);
}

.breadcrumb-item a {
    color: var(--platform-primary);
    text-decoration: none;
}

.chapter-hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.stat-item i {
    font-size: 1.25rem;
}

.chapter-hero-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-wrapper {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--platform-primary), var(--platform-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    animation: float 6s ease-in-out infinite;
}

.icon-wrapper i {
    font-size: 8rem;
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ========================================
   FEATURE DETAIL CARDS
   ======================================== */
.chapter-features {
    background: white;
}

.feature-detail-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition-base);
    position: relative;
}

.feature-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--platform-primary);
}

.feature-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--platform-primary), var(--platform-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.feature-detail-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--platform-text);
}

.feature-detail-card p {
    color: var(--platform-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   PRICING DETAIL CARDS
   ======================================== */
.pricing-detail-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-detail-card.featured {
    border-color: var(--platform-primary);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--platform-primary), var(--platform-secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.pricing-badge.bg-success {
    background: var(--success-color);
}

.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 1.5rem;
}

.pricing-header h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--platform-primary);
    line-height: 1;
}

.price .period {
    font-size: 1.125rem;
    color: var(--platform-text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--platform-text);
}

.pricing-features i {
    color: var(--success-color);
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* ========================================
   VIDEO WRAPPER
   ======================================== */
.video-wrapper {
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-wrapper iframe {
    display: block;
    width: 100%;
}

/* ========================================
   ACCORDION FAQ
   ======================================== */
.accordion-item {
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--platform-primary), var(--platform-secondary));
    color: white;
}

.accordion-body {
    padding: 1.5rem;
    line-height: 1.7;
}

/* ========================================
   TERMS CARD
   ======================================== */
.terms-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-xl);
    padding: 3rem;
}

.terms-content {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 1rem;
    line-height: 1.8;
    color: var(--platform-text-muted);
}

.terms-content::-webkit-scrollbar {
    width: 8px;
}

.terms-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: var(--platform-primary);
    border-radius: 10px;
}

/* ========================================
   CTA SECTION
   ======================================== */
.chapter-cta {
    background: linear-gradient(135deg, var(--platform-primary), var(--platform-secondary));
    color: white;
}

.chapter-cta h2,
.chapter-cta p {
    color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .chapter-hero {
        padding: 3rem 0;
    }
    
    .icon-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .icon-wrapper i {
        font-size: 5rem;
    }
    
    .price .amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .chapter-hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-number {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }
    
    .pricing-detail-card {
        margin-bottom: 1rem;
    }
}