/* ════════════════════════════════════════════════════════
   Campaign / Challenge Pages — Porto-consistent Styles
   ════════════════════════════════════════════════════════ */

/* ── Day Cards ─────────────────────────────────────────── */
.challenge-day-card .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.challenge-day-card .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.challenge-day-card.locked .card {
    opacity: 0.75;
    cursor: default;
}

.challenge-day-card.locked .card:hover {
    transform: none;
    box-shadow: none !important;
}

.challenge-day-card.current .card {
    box-shadow: 0 0 0 3px #7b98bf, 0 0.5rem 1rem rgba(123, 152, 191, 0.25) !important;
}

/* ── Progress Bar ───────────────────────────────────────── */
.progress {
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 0.6s ease;
    border-radius: 5px;
}

/* ── Section Cards ──────────────────────────────────────── */
.challenge-section-content {
    line-height: 1.75;
    font-size: 1.05rem;
}

.challenge-section-content p {
    margin-bottom: 1rem;
}

.challenge-section-content ul,
.challenge-section-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.challenge-what-to-do {
    border-radius: 8px;
}

.challenge-what-to-share {
    border-radius: 8px;
    background: linear-gradient(135deg, #7b98bf 0%, #5a7da8 100%) !important;
}

.challenge-intention {
    border-radius: 8px;
    border-left: 4px solid #7b98bf;
}

/* ── How-It-Works Rich Content ──────────────────────────── */
.challenge-how-it-works {
    line-height: 1.8;
    font-size: 1.05rem;
}

.challenge-how-it-works h2,
.challenge-how-it-works h3,
.challenge-how-it-works h4 {
    color: #7b98bf;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.challenge-how-it-works ul,
.challenge-how-it-works ol {
    padding-left: 1.5rem;
}

.challenge-how-it-works li {
    margin-bottom: 0.4rem;
}

/* ── Description Section ────────────────────────────────── */
.challenge-description {
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ── Hero Countdown Stats ───────────────────────────────── */
.section-height-5 .text-8 {
    font-size: 2rem;
    font-weight: 700;
}

/* ── Submission Form ────────────────────────────────────── */
#submissionForm .form-control {
    border-color: #dee2e6;
    border-radius: 8px;
    padding: 0.6rem 1rem;
}

#submissionForm .form-control:focus {
    border-color: #7b98bf;
    box-shadow: 0 0 0 0.2rem rgba(123, 152, 191, 0.25);
}

#submissionForm .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* ── Badge Pill ─────────────────────────────────────────── */
.challenge-section-content .badge,
.challenge-day-card .badge {
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ── Navigation Pills (prev/next day) ───────────────────── */
.challenge-day-nav .btn {
    font-size: 0.85rem;
}

/* ── RTL Adjustments ────────────────────────────────────── */
html[dir="rtl"] .challenge-what-to-do,
html[dir="rtl"] .challenge-intention {
    border-left: none;
    border-right: 4px solid currentColor;
}

html[dir="rtl"] .challenge-how-it-works ul,
html[dir="rtl"] .challenge-how-it-works ol,
html[dir="rtl"] .challenge-section-content ul,
html[dir="rtl"] .challenge-section-content ol {
    padding-left: 0;
    padding-right: 1.5rem;
}

/* ── Responsive Adjustments ─────────────────────────────── */
@media (max-width: 768px) {
    .challenge-day-card .card {
        margin-bottom: 1rem;
    }

    #submissionForm {
        padding: 0;
    }
}
