﻿/* ============================================================
   episode-info.css - استایل‌های اختصاصی صفحه اطلاعات قسمت
   ============================================================ */

.episode-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.loading {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-panel {
    text-align: center;
    padding: 60px;
    background: #fff5f5;
    border-radius: 30px;
    color: #c62828;
}

    .error-panel p i {
        margin-left: 8px;
        font-size: 20px;
    }

/* کارت‌های اطلاعات */
.info-card {
    background: white;
    border-radius: 28px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .info-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    }

.card-header {
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .card-header .icon {
        font-size: 24px;
    }

    .card-header h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        letter-spacing: -0.3px;
    }

.card-body {
    padding: 24px 28px;
    line-height: 1.7;
}

/* شبکه اطلاعات پروژه */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.info-field {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 12px 16px;
}

.field-label {
    font-weight: 700;
    color: var(--primary);
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.field-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
}

/* ========== آمارها ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    background: #fef5f7;
    border-radius: 20px;
    padding: 18px 12px;
    transition: 0.2s;
}

    .stat-item:hover {
        background: #fce4ec;
    }

.stat-label {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 8px;
}

    .stat-label i {
        margin-left: 5px;
        color: var(--primary);
    }

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

/* ریسپانسیو برای تبلت */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-value {
        font-size: 22px;
    }
}

@media (max-width: 400px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* متن معرفی */
.description-text {
    font-size: 16px;
    background: #f0f7ff;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.target-goal {
    background: #fff3e0;
    padding: 12px 20px;
    border-radius: 40px;
    color: #e65100;
    font-weight: bold;
    display: inline-block;
}

    .target-goal i {
        margin-left: 6px;
    }

/* لیست موضوعات گرامری */
.topics-list, .benefits-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

    .topics-list li, .benefits-list li {
        padding: 8px 0;
        border-bottom: 1px solid #eee;
        font-size: 15px;
    }

        .topics-list li:last-child, .benefits-list li:last-child {
            border-bottom: none;
        }

/* کارت برجسته (مزایا) */
.info-card.highlight {
    border: 2px solid #ffd700;
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.2);
}

.reason {
    font-size: 18px;
    font-weight: 500;
    background: #fff8e1;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* فوتر */
.footer-note {
    background: #f5f5f5;
    text-align: center;
}

    .footer-note .card-body {
        padding: 20px;
    }

.note {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* دکمه بازگشت */
.btn-back, .btn-back-bottom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    margin: 10px 0 30px;
}

    .btn-back:hover, .btn-back-bottom:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        color: white;
    }

/* ریسپانسیو */
@media (max-width: 768px) {
    .episode-container {
        padding: 0 15px;
        margin: 20px auto;
    }

    .card-header {
        padding: 14px 20px;
    }

        .card-header h2 {
            font-size: 18px;
        }

    .card-body {
        padding: 18px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
