/* Mode Ramadan — Phase 9 */

.qhp-ramadan-widget {
    background: linear-gradient(135deg, #0e2218 0%, #1a3a26 50%, #152e1e 100%);
    border: 1px solid rgba(212,175,55,.25);
    border-radius: var(--qhp-radius, 22px);
    padding: 20px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.qhp-ramadan-widget[hidden] { display: none !important; }

/* Reflet subtil en arrière-plan */
.qhp-ramadan-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 0%, rgba(212,175,55,.08) 0%, transparent 65%);
    pointer-events: none;
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.qhp-rd-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.qhp-rd-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qhp-rd-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(212,175,55,.15);
    border: 1px solid rgba(212,175,55,.35);
    color: #d4af37;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.qhp-rd-day {
    font-size: 13px;
    color: rgba(212,175,55,.75);
    font-weight: 700;
}
.qhp-rd-day strong {
    color: #d4af37;
    font-size: 15px;
}

/* ── Verset ──────────────────────────────────────────────────────────────── */
.qhp-rd-verse {
    text-align: right;
    max-width: 360px;
}
.qhp-rd-verse-ar {
    display: block;
    font-size: 15px;
    color: rgba(212,175,55,.85);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    direction: rtl;
}
.qhp-rd-verse-ref {
    display: block;
    font-size: 11px;
    color: rgba(212,175,55,.5);
    margin-top: 3px;
    font-style: italic;
}

/* ── Corps : countdown + horaires ────────────────────────────────────────── */
.qhp-rd-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}
.qhp-rd-countdown-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.qhp-rd-next-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(212,175,55,.6);
    font-weight: 700;
}
.qhp-rd-countdown {
    font-size: 42px;
    font-weight: 900;
    color: #d4af37;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
    letter-spacing: .02em;
}

/* ── Horaires Suhoor / Iftar ─────────────────────────────────────────────── */
.qhp-rd-times {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}
.qhp-rd-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.03);
    min-width: 100px;
    text-align: right;
}
.qhp-rd-time--iftar {
    border-color: rgba(212,175,55,.2);
    background: rgba(212,175,55,.06);
}
.qhp-rd-time-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.4);
    font-weight: 700;
}
.qhp-rd-time--iftar .qhp-rd-time-label {
    color: rgba(212,175,55,.6);
}
.qhp-rd-suhoor,
.qhp-rd-iftar {
    font-size: 20px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #eef3f8;
}
.qhp-rd-time--iftar .qhp-rd-iftar {
    color: #d4af37;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .qhp-rd-header { flex-direction: column; }
    .qhp-rd-verse  { text-align: left; max-width: 100%; }
    .qhp-rd-verse-ar { font-size: 13px; }
    .qhp-rd-body   { grid-template-columns: 1fr; }
    .qhp-rd-times  { flex-direction: row; align-items: stretch; }
    .qhp-rd-time   { flex: 1; align-items: center; text-align: center; }
    .qhp-rd-countdown { font-size: 32px; }
}
