@import url(
    "https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Poppins:wght@400;500;600;700&display=swap"
);


:root {
    --blue: #0c5d9e;
    --blue-light: #2a78b5;
    --blue-deep: #073f6e;

    --gold: #ee9a2b;
    --gold-deep: #a5681b;

    --ink: #17212b;
    --muted: #66717d;
    --wash: #f4f8fc;
    --paper: #ffffff;

    --line: rgba(12, 93, 158, 0.14);

    --shadow:
        0 20px 55px rgba(17, 45, 70, 0.09);
}


* {
    box-sizing: border-box;
}


body {
    margin: 0;
    min-height: 100vh;

    color: var(--ink);

    background:
        radial-gradient(
            circle at top right,
            rgba(238, 154, 43, 0.13),
            transparent 30rem
        ),
        var(--wash);

    font-family:
        "Poppins",
        Arial,
        sans-serif;
}


img {
    display: block;
    max-width: 100%;
}


button,
a {
    font: inherit;
}


.dashboard-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


.dashboard-header {
    min-height: 94px;

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

    gap: 24px;

    border-bottom: 1px solid var(--line);
}


.dashboard-brand {
    display: inline-flex;
    align-items: center;

    gap: 13px;

    color: var(--blue-deep);

    font-family:
        "Cinzel",
        Georgia,
        serif;

    font-size: 0.93rem;
    font-weight: 700;

    text-decoration: none;
}


.dashboard-brand img {
    width: 55px;
    height: 43px;

    object-fit: contain;
}


.account-area {
    display: flex;
    align-items: center;

    gap: 18px;
}


.account-copy {
    display: flex;
    flex-direction: column;

    text-align: right;
}


.account-copy strong {
    color: var(--blue-deep);

    font-size: 0.82rem;
}


.account-copy span {
    margin-top: 3px;

    color: var(--muted);

    font-size: 0.7rem;
}


.account-area button {
    min-height: 40px;

    padding: 0 15px;

    border:
        1px solid var(--line);

    border-radius: 8px;

    color: var(--blue-deep);

    background: var(--paper);

    font-weight: 700;

    cursor: pointer;

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


.account-area button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 24px rgba(17, 45, 70, 0.10);
}

.welcome-panel {
    position: relative;
    isolation: isolate;

    overflow: hidden;

    padding: 86px 42px 58px;

    margin-bottom: 18px;

    border-radius: 20px;
}

.welcome-panel::before {
    content: "";

    position: absolute;
    z-index: -2;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(244, 248, 252, 0.98) 0%,
            rgba(244, 248, 252, 0.93) 38%,
            rgba(244, 248, 252, 0.58) 66%,
            rgba(244, 248, 252, 0.18) 100%
        ),
        url("/static/images/dashboard_hero_open_bible_welcome_back.jpg");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.welcome-panel::after {
    content: "";

    position: absolute;
    z-index: -1;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(244, 248, 252, 0.16)
        );

    pointer-events: none;
}

.welcome-panel .eyebrow {
    text-shadow:
        0 0 3px rgba(255, 255, 255, 1),
        0 0 7px rgba(255, 255, 255, 0.88);
}

.welcome-panel h1 {
    text-shadow:
        0 0 3px rgba(255, 255, 255, 0.98),
        0 0 8px rgba(255, 255, 255, 0.82),
        0 1px 2px rgba(255, 255, 255, 0.65);
}

.welcome-panel > p:last-child {
    text-shadow:
        0 0 3px rgba(255, 255, 255, 1),
        0 0 8px rgba(255, 255, 255, 0.92),
        0 0 14px rgba(255, 255, 255, 0.72),
        0 1px 2px rgba(255, 255, 255, 0.62);
}

.eyebrow {
    margin: 0 0 15px;

    color: var(--gold-deep);

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.welcome-panel h1 {
    margin: 0;

    color: var(--blue-deep);

    font-family:
        "Cinzel",
        Georgia,
        serif;

    font-size:
        clamp(2.5rem, 5vw, 4.6rem);

    line-height: 1.08;
    letter-spacing: -0.03em;

    text-shadow:
        0 0 3px rgba(255, 255, 255, 1),
        0 0 8px rgba(255, 255, 255, 0.94),
        0 0 14px rgba(255, 255, 255, 0.72),
        0 1px 2px rgba(255, 255, 255, 0.62);
}

.welcome-panel > p:last-child {
    margin: 20px 0 0;

    color: var(--muted);

    font-size: 1.05rem;
}


.dashboard-grid {
    display: grid;

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

    gap: 18px;

    padding-bottom: 80px;
}


.dashboard-grid article {
    min-height: 270px;

    display: flex;
    flex-direction: column;

    padding: 29px 26px;

    border: 1px solid var(--line);
    border-radius: 19px;

    background:
        rgba(255, 255, 255, 0.82);

    box-shadow: var(--shadow);

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


.dashboard-grid article:hover {
    transform: translateY(-7px);

    box-shadow:
        0 26px 60px rgba(17, 45, 70, 0.14);
}


.dashboard-grid article > span,
.ministry-card-content > span,
.dashboard-grid article > div > span:first-child {
    color: var(--gold-deep);

    font-family:
        "Cinzel",
        Georgia,
        serif;

    font-size: 0.75rem;
    font-weight: 700;
}


.dashboard-grid h2 {
    margin: 24px 0 12px;

    color: var(--blue-deep);

    font-family:
        "Cinzel",
        Georgia,
        serif;

    font-size: 1.1rem;
}


.dashboard-grid p {
    margin: 0;

    color: var(--muted);

    font-size: 0.88rem;
    line-height: 1.7;
}


.dashboard-grid small {
    margin-top: auto;
    padding-top: 22px;

    color: var(--gold-deep);

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}


@media (max-width: 900px) {

    .dashboard-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 590px) {

    .dashboard-shell {
        width:
            min(100% - 24px, 1180px);
    }


    .dashboard-brand span {
        display: none;
    }


    .account-copy {
        display: none;
    }


    .welcome-panel {
    padding: 58px 22px 46px;
    margin-bottom: 14px;

    text-align: center;
}

.welcome-panel::before {
    background:
        linear-gradient(
            90deg,
            rgba(244, 248, 252, 0.98) 0%,
            rgba(244, 248, 252, 0.95) 42%,
            rgba(244, 248, 252, 0.78) 70%,
            rgba(244, 248, 252, 0.34) 100%
        ),
        url("/static/images/dashboard_hero_open_bible_welcome_back.jpg");

    background-size: cover;
    background-position: 60% center;
}

.welcome-panel > p:last-child {
    font-weight: 600;
}

    .dashboard-grid {
        grid-template-columns: 1fr;
    }


    .dashboard-grid article {
        min-height: 245px;
    }

}
.dashboard-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.dashboard-card-link article {
    height: 100%;
}

.locked-card {
    opacity: 0.52;
    filter: grayscale(0.35);
    cursor: not-allowed;
}

.locked-card:hover {
    transform: none;
    box-shadow: var(--shadow);
}

/* =========================================================
   MEMBER MINISTRY HERO CARDS
   ========================================================= */

.dashboard-grid article.ministry-card {
    padding: 0;
    overflow: hidden;
}

.ministry-card-image {
    width: 100%;
    height: 155px;

    background:
        linear-gradient(
            135deg,
            rgba(7, 63, 110, 0.92),
            rgba(12, 93, 158, 0.62)
        );

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-bottom:
        3px solid rgba(238, 154, 43, 0.78);

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

.ministry-card-content {
    min-height: 220px;

    display: flex;
    flex-direction: column;

    padding: 23px 25px 25px;
}

.ministry-card-content h2 {
    margin-top: 13px;
}

.dashboard-card-link:hover .ministry-card-image {
    transform: scale(1.035);
}

.dashboard-card-link:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;

    border-radius: 19px;
}


/* Mobile ministry cards */

@media (max-width: 590px) {

    .dashboard-grid article.ministry-card {
        min-height: 0;
    }

    .ministry-card-image {
        height: 185px;
    }

    .ministry-card-content {
        min-height: 205px;

        padding:
            22px 22px 24px;
    }

    .ministry-card-content h2 {
        margin-top: 11px;

        font-size: 1.18rem;
    }

    .ministry-card-content p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

}
.discipleship-card-image {
    background-image:
        url("/static/images/dashboard_discipleship.jpg");
}

.sermons-card-image {
    background-image:
        url("/static/images/dashboard_sermons.jpg");
}

.wednesday-card-image {
    background-image:
        url("/static/images/dashboard_wednesday.jpg");
}

.announcements-card-image {
    background-image:
        url("/static/images/dashboard_announcements.jpg");
}

/* =========================================================
   PUSH NOTIFICATION OPT-IN
   ========================================================= */

.notification-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;

    margin: 0 0 24px;
    padding: 25px 28px;

    border: 1px solid var(--line);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.88);

    box-shadow:
        0 12px 32px rgba(17, 45, 70, 0.07);
}

.notification-panel-copy {
    max-width: 720px;
}

.notification-panel-copy .eyebrow {
    margin-bottom: 7px;
}

.notification-panel h2 {
    margin: 0;

    color: var(--blue-deep);

    font-family:
        "Cinzel",
        Georgia,
        serif;

    font-size: 1.2rem;
}

.notification-panel-copy > p:not(.eyebrow):not(.notification-status) {
    margin: 8px 0 0;

    color: var(--muted);

    font-size: 0.88rem;
    line-height: 1.6;
}

.notification-status {
    margin: 8px 0 0;

    color: var(--blue-deep);

    font-size: 0.8rem;
    font-weight: 600;
}

.notification-panel-action {
    flex: 0 0 auto;
}

#enable-notifications-button {
    min-height: 46px;

    padding: 0 22px;

    border: 0;
    border-radius: 9px;

    color: #ffffff;
    background: var(--blue);

    font-weight: 700;

    cursor: pointer;

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

#enable-notifications-button:hover {
    transform: translateY(-2px);

    background: var(--blue-deep);

    box-shadow:
        0 10px 24px rgba(7, 63, 110, 0.18);
}

#enable-notifications-button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

#enable-notifications-button:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
}


@media (max-width: 590px) {

    .notification-panel {
        align-items: stretch;
        flex-direction: column;

        gap: 18px;

        padding: 22px;

        text-align: center;
    }

    #enable-notifications-button {
        width: 100%;
    }

}

/* Consistent dashboard card numbering */
.ministry-card-number {
    color: var(--gold-deep);
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.media-card-image {
    background-image:
        url("/static/images/dashboard_media.jpg");
}

.communications-card-image {
    background-image:
        url("/static/images/dashboard_communications.jpg");
}

.pastoral-card-image {
    background-image:
        url("/static/images/dashboard_pastoral.jpg");
}

.users-card-image {
    background-image:
        url("/static/images/dashboard_users.jpg");
}
