/* =========================================================
   YAQEEN — PRAYER PAGE
   Clean Premium UI
   ========================================================= */

.prayer-page {
    --green: #176b4d;
    --green-dark: #0f4d38;
    --green-soft: #e7f0e9;
    --green-border: rgba(23, 107, 77, .11);

    --cream: #f8f6ef;
    --white: #fffdf9;
    --text: #24352e;
    --muted: #78827c;
    --gold: #b99b5d;

    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 24px 16px 120px;
    color: var(--text);
}

/* =========================================================
   PAGE HEADER
   ========================================================= */

.prayer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.prayer-heading-copy {
    min-width: 0;
}

.prayer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

.prayer-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.prayer-heading h1 {
    margin: 0;
    color: var(--green-dark);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 900;
}

.prayer-heading-date {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.prayer-location-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid var(--green-border);
    border-radius: 13px;
    background: rgba(255, 253, 249, .9);
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 5px 18px rgba(23, 107, 77, .05);
}

.prayer-location-pill svg {
    width: 17px;
    height: 17px;
}

/* =========================================================
   NEXT PRAYER
   ========================================================= */

.next-prayer-card {
    position: relative;
    overflow: hidden;
    min-height: 194px;
    margin-bottom: 24px;
    padding: 23px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(255,255,255,.13),
            transparent 28%
        ),
        radial-gradient(
            circle at 8% 100%,
            rgba(255,255,255,.07),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #103d2d 0%,
            #176047 58%,
            #247052 100%
        );
    box-shadow: 0 18px 42px rgba(15, 77, 56, .18);
}

.next-prayer-card::before,
.next-prayer-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.next-prayer-card::before {
    width: 260px;
    height: 260px;
    right: -115px;
    top: -140px;
}

.next-prayer-card::after {
    width: 170px;
    height: 170px;
    right: -65px;
    top: -82px;
}

.next-prayer-content {
    position: relative;
    z-index: 2;
}

.next-prayer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.next-prayer-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
}

.next-prayer-label svg {
    width: 17px;
    height: 17px;
}

.next-prayer-badge {
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.82);
    font-size: 10px;
    font-weight: 800;
}

.next-prayer-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.next-prayer-name {
    min-height: 34px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.next-prayer-main small {
    display: block;
    margin-top: 9px;
    color: rgba(255,255,255,.58);
    font-size: 11px;
    font-weight: 500;
}

.next-prayer-countdown {
    direction: ltr;
    white-space: nowrap;
    color: #fff;
    font-size: 27px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.next-prayer-time {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.62);
    font-size: 10px;
}

/* =========================================================
   SECTION TITLE
   ========================================================= */

.prayer-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 2px 11px;
}

.prayer-section-title h2 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

.prayer-section-title span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

/* =========================================================
   PRAYER CARDS
   ========================================================= */

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.prayer-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 82px;
    padding: 13px;
    overflow: hidden;
    border: 1px solid var(--green-border);
    border-radius: 19px;
    background: var(--white);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.prayer-card:hover {
    transform: translateY(-2px);
    border-color: rgba(23,107,77,.20);
    box-shadow: 0 10px 25px rgba(23,107,77,.07);
}

.prayer-card.is-next {
    border-color: rgba(23,107,77,.28);
    background: linear-gradient(
        135deg,
        #eef7f1 0%,
        #fffdf9 100%
    );
    box-shadow: 0 10px 25px rgba(23,107,77,.09);
}

.prayer-card.is-next::after {
    content: "";
    position: absolute;
    top: 11px;
    right: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(23,107,77,.09);
}

.prayer-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border-radius: 14px;
    color: var(--green);
    background: var(--green-soft);
}

.prayer-icon svg {
    width: 22px;
    height: 22px;
}

.prayer-card.is-next .prayer-icon {
    color: #fff;
    background: var(--green);
}

.prayer-info {
    min-width: 0;
    flex: 1;
}

.prayer-name {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.prayer-description {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
}

.prayer-time {
    direction: ltr;
    flex: 0 0 auto;
    color: var(--green);
    font-size: 16px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   LOCATION
   ========================================================= */

.prayer-location-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding: 15px;
    border: 1px solid #e9e3d4;
    border-radius: 19px;
    background: linear-gradient(
        135deg,
        #faf8f0,
        #f6f2e8
    );
}

.prayer-location-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.prayer-location-icon {
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    border-radius: 13px;
    color: #806c43;
    background: #eee7d5;
}

.prayer-location-icon svg {
    width: 20px;
    height: 20px;
}

.prayer-location-info strong {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
}

.prayer-location-info span {
    display: block;
    margin-top: 3px;
    color: #8b887d;
    font-size: 9px;
}

.prayer-location-button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--green);
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.prayer-location-button:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.prayer-location-button:active {
    transform: scale(.98);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .prayer-page {
        padding: 19px 13px 118px;
    }

    .prayer-heading {
        margin-bottom: 19px;
    }

    .prayer-heading h1 {
        font-size: 27px;
    }

    .prayer-heading-date {
        font-size: 11px;
    }

    .prayer-location-pill {
        width: 39px;
        min-height: 39px;
        padding: 0;
    }

    .prayer-location-pill span {
        display: none;
    }

    .next-prayer-card {
        min-height: 184px;
        padding: 21px;
        border-radius: 23px;
    }

    .next-prayer-main {
        margin-top: 22px;
    }

    .next-prayer-name {
        font-size: 27px;
    }

    .next-prayer-countdown {
        font-size: 23px;
        letter-spacing: .5px;
    }

    .prayer-grid {
        gap: 8px;
    }

    .prayer-card {
        min-height: 76px;
        padding: 11px;
        gap: 9px;
        border-radius: 17px;
    }

    .prayer-icon {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
        border-radius: 13px;
    }

    .prayer-icon svg {
        width: 20px;
        height: 20px;
    }

    .prayer-name {
        font-size: 13px;
    }

    .prayer-description {
        font-size: 8px;
    }

    .prayer-time {
        font-size: 15px;
    }

    .prayer-location-card {
        align-items: stretch;
        flex-direction: column;
    }

    .prayer-location-button {
        width: 100%;
    }
}

@media (max-width: 350px) {

    .next-prayer-main {
        gap: 8px;
    }

    .next-prayer-name {
        font-size: 24px;
    }

    .next-prayer-countdown {
        font-size: 20px;
    }

    .prayer-card {
        gap: 7px;
        padding: 9px;
    }

    .prayer-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .prayer-time {
        font-size: 14px;
    }
}
