/* ═══════════════════════════════════════════════════════════
 *  AMNT Mawaqit Header Bar v4 — Responsive
 * ═══════════════════════════════════════════════════════════ */

.amnt-mwq-bar {
    position: relative;
    z-index: 99999;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

/* ── Desktop : tout sur une ligne centrée ── */

.amnt-mwq-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    white-space: nowrap;
    gap: 0;
}

.amnt-mwq-bar__hijri {
    font-weight: 400;
}

.amnt-mwq-bar__sep {
    margin: 0 10px;
    opacity: 0.5;
    font-weight: 300;
    user-select: none;
}

.amnt-mwq-bar__prayer {
    display: inline;
}

.amnt-mwq-bar__label {
    font-weight: 600;
}

.amnt-mwq-bar__time {
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
 *  RESPONSIVE
 * ═══════════════════════════════════════════════════════════ */

/* ── Tablette (< 900px) : un peu plus compact ── */
@media (max-width: 900px) {
    .amnt-mwq-bar {
        font-size: 13px;
    }

    .amnt-mwq-bar__sep {
        margin: 0 7px;
    }

    .amnt-mwq-bar__inner {
        padding: 7px 14px;
    }
}

/* ── Mobile (< 640px) : date + prières sur 2 lignes ── */
@media (max-width: 640px) {
    .amnt-mwq-bar {
        font-size: 12px;
    }

    .amnt-mwq-bar__inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 6px 10px;
        white-space: normal;
        gap: 2px 0;
    }

    /* Date Hijri seule sur sa ligne */
    .amnt-mwq-bar__hijri {
        width: 100%;
        text-align: center;
        font-size: 11px;
        opacity: 0.85;
        padding-bottom: 3px;
    }

    /* Cacher le séparateur juste après la date */
    .amnt-mwq-bar__hijri + .amnt-mwq-bar__sep {
        display: none;
    }

    .amnt-mwq-bar__sep {
        margin: 0 5px;
    }

    /* Les 5 prières restent sur une ligne */
    .amnt-mwq-bar__prayer {
        white-space: nowrap;
    }
}

/* ── Petit mobile (< 400px) : encore plus compact ── */
@media (max-width: 400px) {
    .amnt-mwq-bar {
        font-size: 11px;
    }

    .amnt-mwq-bar__inner {
        padding: 5px 6px;
    }

    .amnt-mwq-bar__sep {
        margin: 0 3px;
    }

    .amnt-mwq-bar__hijri {
        font-size: 10px;
    }

    /* Abréger les noms des prières sur très petit écran */
    .amnt-mwq-bar__label {
        font-size: 0;      /* cache le texte complet */
    }
    .amnt-mwq-bar__label::before {
        font-size: 11px;   /* affiche l'abréviation */
    }
    [data-prayer="fajr"]    .amnt-mwq-bar__label::before { content: "Faj:"; }
    [data-prayer="dhuhr"]   .amnt-mwq-bar__label::before { content: "Dhu:"; }
    [data-prayer="asr"]     .amnt-mwq-bar__label::before { content: "Asr:"; }
    [data-prayer="maghrib"] .amnt-mwq-bar__label::before { content: "Mag:"; }
    [data-prayer="isha"]    .amnt-mwq-bar__label::before { content: "Ish:"; }
}
