/* =========================================================
   ATHKARDAY - MAIN HOME PAGE
   File: assets/index.css

   Used only on:
   /index.php
========================================================= */


/* =========================================================
   1. HOME PAGE BASE
========================================================= */

.is-home-page {
    background:
        linear-gradient(
            180deg,
            #f7fbf9 0%,
            #ffffff 45%,
            #f8fbfa 100%
        );
}

.is-home-page .content {
    padding-top: 24px;
}

.is-home-page .athkar-home {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 60px;
    direction: rtl;
}


/* =========================================================
   2. AYAH HERO
========================================================= */

.is-home-page .home-hero {
    position: relative;
    min-height: 270px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 28px;

    padding: 45px 30px;

    margin-bottom: 34px;

    background:
        radial-gradient(
            circle at 50% 80%,
            rgba(255, 220, 145, 0.72),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #d8eee5 0%,
            #f5e8c7 50%,
            #d9e9df 100%
        );

    box-shadow:
        0 18px 45px rgba(35, 72, 58, 0.09);
}


/* Decorative sun */

.is-home-page .home-hero {
    position: relative;

    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 28px;

    padding: 45px 30px;

    margin-bottom: 34px;

    /*
       Temporary background.
       Next we will replace this with the actual
       mosque/sunrise hero artwork.
    */
    background:
        linear-gradient(
            180deg,
            rgba(255, 238, 206, 0.30),
            rgba(213, 235, 223, 0.35)
        ),
        linear-gradient(
            135deg,
            #dceee6 0%,
            #ffe7b7 52%,
            #d6e8de 100%
        );

    box-shadow:
        0 18px 45px rgba(35, 72, 58, 0.10);
}

.is-home-page .home-hero-content {
    position: relative;
    z-index: 2;

    text-align: center;

    max-width: 850px;
}


.is-home-page .home-ayah {
    color: #17684d;

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.8;

    font-weight: 800;

    text-align: center;

    text-shadow:
        0 2px 3px rgba(255, 255, 255, 0.75);
}


.is-home-page .home-ayah-reference {
    margin-top: 8px;

    color: #65736d;

    font-size: 16px;

    font-weight: 600;

    text-align: center;
}


/* =========================================================
   3. FOUR MAIN CARDS
========================================================= */

.is-home-page .home-main-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 24px;
}


.is-home-page .home-main-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border-radius: 22px;

    text-decoration: none;

    color: #1f3029;

    border: 1px solid rgba(37, 81, 63, 0.08);

    box-shadow:
        0 10px 30px rgba(35, 64, 53, 0.08);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}


.is-home-page .home-main-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 40px rgba(35, 64, 53, 0.14);
}


/* =========================================================
   4. CARD ART AREA
========================================================= */

.is-home-page .home-card-art {
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    overflow: hidden;
}


.is-home-page .home-card-symbol {
    position: relative;
    z-index: 2;

    font-size: 32px;

    filter:
        drop-shadow(
            0 8px 10px rgba(0, 0, 0, 0.08)
        );

    transition: transform 0.25s ease;
}


.is-home-page .home-main-card:hover
.home-card-symbol {
    transform: scale(1.08);
}


/* Morning */

.is-home-page .home-card-morning
.home-card-art {
    background:
        radial-gradient(
            circle at 50% 75%,
            #ffd678,
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #fff5c9,
            #f4e1a4
        );
}


/* Evening */

.is-home-page .home-card-evening
.home-card-art {
    background:
        radial-gradient(
            circle at 65% 35%,
            rgba(255, 255, 220, 0.75),
            transparent 17%
        ),
        linear-gradient(
            180deg,
            #c7d9ef,
            #9fbddd
        );
}


/* Dua */

.is-home-page .home-card-dua
.home-card-art {
    background:
        linear-gradient(
            180deg,
            #f8ded9,
            #efd0ca
        );
}


/* Counter */

.is-home-page .home-card-counter
.home-card-art {
    background:
        linear-gradient(
            180deg,
            #d9eee0,
            #bcdcc7
        );
}


/* =========================================================
   5. CARD CONTENT
========================================================= */

.is-home-page .home-card-body {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 22px 20px 20px;

    background: rgba(255, 255, 255, 0.95);
}


.is-home-page .home-card-body h2 {
    margin: 0 0 7px;

    color: #213d32;

    font-size: 21px;

    font-weight: 800;
}


.is-home-page .home-card-body p {
    margin: 0 0 20px;

    color: #78837e;

    font-size: 14px;

    line-height: 1.7;
}


.is-home-page .home-card-button {
    width: 100%;

    margin-top: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 15px;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}


.is-home-page .home-card-button > span {
    font-size: 22px;

    line-height: 1;
}


.is-home-page .home-main-card:hover
.home-card-button {
    filter: brightness(0.97);
}


/* Morning button */

.is-home-page .home-card-morning
.home-card-button {
    color: #715700;

    background: #fff0b5;
}


/* Evening button */

.is-home-page .home-card-evening
.home-card-button {
    color: #315b87;

    background: #dceafb;
}


/* Dua button */

.is-home-page .home-card-dua
.home-card-button {
    color: #8a554e;

    background: #fae6e2;
}


/* Counter button */

.is-home-page .home-card-counter
.home-card-button {
    color: #276645;

    background: #dcefe2;
}


/* =========================================================
   6. QUICK ACCESS CARDS
========================================================= */

.is-home-page .home-quick-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 38px;
}


.is-home-page .home-quick-card {
    min-height: 94px;

    display: grid;

    grid-template-columns:
        50px minmax(0, 1fr) 22px;

    align-items: center;

    gap: 12px;

    padding: 16px;

    background: #ffffff;

    border: 1px solid #e7ece9;

    border-radius: 17px;

    text-decoration: none;

    color: #263a31;

    box-shadow:
        0 7px 20px rgba(34, 68, 54, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.is-home-page .home-quick-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 25px rgba(34, 68, 54, 0.10);
}


.is-home-page .home-quick-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #eef6f1;

    color: #37835f;

    font-size: 22px;

    font-weight: 800;
}


.is-home-page .home-quick-card:nth-child(1)
.home-quick-icon {
    background: #f0eafa;
    color: #8267b2;
}


.is-home-page .home-quick-card:nth-child(2)
.home-quick-icon {
    background: #e5f1fb;
    color: #5584ad;
}


.is-home-page .home-quick-card:nth-child(3)
.home-quick-icon {
    background: #e5f4e9;
    color: #4c8a60;
}


.is-home-page .home-quick-card:nth-child(4)
.home-quick-icon {
    background: #f7efe2;
    color: #9c7b4e;
}


.is-home-page .home-quick-card strong {
    display: block;

    margin-bottom: 5px;

    font-size: 15px;
}


.is-home-page .home-quick-card small {
    display: block;

    color: #89928e;

    font-size: 11px;

    line-height: 1.5;
}


.is-home-page .home-quick-arrow {
    color: #9aa59f;

    font-size: 25px;
}


/* =========================================================
   7. ALL CATEGORIES
========================================================= */

.is-home-page .home-all-categories {
    padding-top: 8px;
}


.is-home-page .home-all-categories > h2 {
    margin: 0 0 18px;

    color: #254b3c;

    font-size: 24px;
}


.is-home-page .home-category-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;
}


.is-home-page .home-category-item {
    display: grid;

    grid-template-columns:
        48px minmax(0, 1fr) 22px;

    gap: 13px;

    align-items: center;

    padding: 15px 17px;

    text-decoration: none;

    color: #263b32;

    background: #ffffff;

    border: 1px solid #e6ece8;

    border-radius: 16px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.is-home-page .home-category-item:hover {
    transform: translateY(-2px);

    border-color: #cbded3;

    box-shadow:
        0 9px 24px rgba(39, 74, 59, 0.08);
}


.is-home-page .home-category-emoji {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #edf6f1;

    font-size: 23px;
}


.is-home-page .home-category-item strong {
    display: block;

    margin-bottom: 4px;

    font-size: 15px;
}


.is-home-page .home-category-item small {
    display: block;

    color: #89948f;

    font-size: 12px;

    line-height: 1.5;
}


.is-home-page .home-category-arrow {
    color: #93a19a;

    font-size: 23px;
}


/* =========================================================
   8. TABLET
========================================================= */

@media (max-width: 1000px) {

    .is-home-page .home-main-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .is-home-page .home-quick-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   9. MOBILE
========================================================= */

@media (max-width: 650px) {

    .is-home-page .content {
        padding-top: 12px;
    }

    .is-home-page .athkar-home {
        width: min(
            100% - 20px,
            1180px
        );

        padding-bottom: 35px;
    }


    /* HERO */

    .is-home-page .home-hero {
        min-height: 205px;

        padding: 35px 18px;

        margin-bottom: 20px;

        border-radius: 21px;
    }


    .is-home-page .home-ayah {
        font-size: 25px;

        line-height: 1.75;
    }


    .is-home-page .home-ayah-reference {
        margin-top: 7px;

        font-size: 13px;
    }


    /* MAIN CARDS */

    .is-home-page .home-main-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 11px;
    }


    .is-home-page .home-main-card {
        border-radius: 17px;
    }


    .is-home-page .home-card-art {
        min-height: 105px;
    }


    .is-home-page .home-card-symbol {
        font-size: 34px;
    }


    .is-home-page .home-card-body {
        padding: 14px 12px 13px;
    }


    .is-home-page .home-card-body h2 {
        font-size: 16px;
    }


    .is-home-page .home-card-body p {
        min-height: 38px;

        margin-bottom: 12px;

        font-size: 11px;
    }


    .is-home-page .home-card-button {
        padding: 8px 10px;

        font-size: 11px;
    }


    /* QUICK CARDS */

    .is-home-page .home-quick-grid {
        grid-template-columns: 1fr;

        gap: 10px;

        margin-bottom: 30px;
    }


    .is-home-page .home-quick-card {
        min-height: 78px;

        grid-template-columns:
            44px minmax(0, 1fr) 20px;

        padding: 12px 14px;
    }


    .is-home-page .home-quick-icon {
        width: 42px;
        height: 42px;

        font-size: 19px;
    }


    /* ALL CATEGORIES */

    .is-home-page .home-category-list {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   10. VERY SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .is-home-page .home-main-grid {
        grid-template-columns: 1fr;
    }

    .is-home-page .home-card-art {
        min-height: 100px;
    }

}

/* =========================================================
   HERO AYAT
========================================================= */

.is-home-page .home-second-ayah {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    max-width: 950px;

    margin: 0 auto;

    color: #17684d;

    font-size: clamp(15px, 1.55vw, 21px);
    font-weight: 700;
    line-height: 2;

    text-align: center;
}


.is-home-page .ayah-text {
    display: inline;
}


.is-home-page .ayah-ornament {
    flex-shrink: 0;

    color: #397b61;

    font-size: 22px;
}


.is-home-page .home-second-ayah-reference {
    margin-top: 3px;

    color: #818d88;

    font-size: 12px;
    font-weight: 600;

    text-align: center;
}


/* =========================================================
   DIVIDER
========================================================= */

.is-home-page .home-ayah-divider {
    width: min(400px, 70%);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    margin: 15px auto 12px;
}


.is-home-page .divider-line {
    height: 1px;

    flex: 1;

    background: #477d67;
}


.is-home-page .home-divider-icon {
    font-size: 24px;

    line-height: 1;
}


/* =========================================================
   MAIN AYAH
========================================================= */

.is-home-page .home-main-ayah-row {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;
}


.is-home-page .home-ayah {
    color: #126c4e;

    font-size: clamp(31px, 4vw, 50px);

    line-height: 1.7;

    font-weight: 800;

    text-align: center;

    text-shadow:
        0 2px 2px rgba(255,255,255,.75);
}


.is-home-page .main-ornament {
    font-size: 30px;
}


.is-home-page .home-ayah-reference {
    margin-top: 3px;

    color: #707e78;

    font-size: 14px;

    font-weight: 600;

    text-align: center;
}