/* ===================================================
   DAILY PRACTICE & TASK PLATFORM STYLES
   Friends English Academy
   =================================================== */

.practice-section {
    padding: 100px 6% 60px;
    background: #f8fafc;
    min-height: 90vh;
}

/* Practice Header */
.practice-header {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 35px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.level-pills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.level-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.level-pill-link.a1-a2 {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.level-pill-link.a1-a2.active,
.level-pill-link.a1-a2:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.level-pill-link.b1-b2 {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}
.level-pill-link.b1-b2.active,
.level-pill-link.b1-b2:hover {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.level-pill-link.c1-c2 {
    background: #faf5ff;
    color: #6b21a8;
    border-color: #e9d5ff;
}
.level-pill-link.c1-c2.active,
.level-pill-link.c1-c2:hover {
    background: #7c3aed;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* Study Tracker Card */
.study-tracker-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 26px 30px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
    position: relative;
    overflow: hidden;
}

.study-tracker-card::after {
    content: "🎓";
    position: absolute;
    right: 20px;
    bottom: -15px;
    font-size: 110px;
    opacity: 0.08;
    pointer-events: none;
}

.tracker-metric {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tracker-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tracker-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: #38bdf8;
}

.tracker-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Day Dots Bar */
.study-days-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.study-day-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Task Card */
.task-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 26px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    margin-bottom: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.task-card.completed {
    border-color: #bbf7d0;
    background: #fdfefe;
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.task-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-category-pill.speaking {
    background: #fee2e2;
    color: #991b1b;
}
.task-category-pill.grammar {
    background: #dbeafe;
    color: #1e40af;
}
.task-category-pill.vocabulary {
    background: #fef3c7;
    color: #92400e;
}
.task-category-pill.writing {
    background: #e0e7ff;
    color: #3730a3;
}
.task-category-pill.reading {
    background: #dcfce7;
    color: #166534;
}
.task-category-pill.challenge {
    background: #fce7f3;
    color: #9d174d;
}

.task-description-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 16px;
    border-left: 4px solid #3b82f6;
    white-space: pre-line;
}

.checklist-group {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid #f1f5f9;
    font-size: 14px;
    color: #475569;
}

.checklist-item i {
    color: #10b981;
    margin-top: 3px;
}

.hint-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 16px;
}

/* Submission Form in Card */
.task-submit-box {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 15px;
}

.completed-badge-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px 18px;
    color: #166534;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .practice-section {
        padding: 90px 4% 40px;
    }
    .practice-header {
        padding: 20px;
    }
    .study-tracker-card {
        padding: 20px;
    }
    .tracker-number {
        font-size: 28px;
    }
    .level-pills-bar {
        width: 100%;
    }
    .level-pill-link {
        flex: 1;
        justify-content: center;
    }
}
