﻿.ad2-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ad2-header {
    width: min(
        var(--ad-content),
        calc(100% - 48px)
    );

    margin: 0 auto;

    min-height: 82px;

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

    gap: 32px;
}

.ad2-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad2-brand-mark {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--ad-text);
    color: var(--ad-gold);

    font-size: 20px;
}

.ad2-brand strong {
    display: block;
    font-size: 15px;
    letter-spacing: -.02em;
}

.ad2-brand small {
    display: block;
    margin-top: 2px;

    color: var(--ad-text-soft);

    font-size: 11px;
}

.ad2-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.ad2-nav-link {
    position: relative;

    color: var(--ad-text-soft);

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

    transition:
        color .2s ease;
}

.ad2-nav-link:hover,
.ad2-nav-link.is-active {
    color: var(--ad-text);
}

.ad2-nav-link.is-active::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -10px;

    width: 4px;
    height: 4px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: var(--ad-gold);
}

.ad2-main {
    width: min(
        var(--ad-content),
        calc(100% - 48px)
    );

    flex: 1;

    margin: 0 auto;
}

.ad2-page {
    padding: 42px 0 80px;
}

.ad2-footer {
    width: min(
        var(--ad-content),
        calc(100% - 48px)
    );

    margin: auto auto 0;

    padding: 24px 0 30px;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid var(--ad-border);

    color: var(--ad-text-soft);
    font-size: 11px;
}

/* =========================================================
   FULL-WIDTH HEADER
   Full viewport header with content aligned to the main grid.
   ========================================================= */

.ad2-header {
    width: 100%;
    max-width: none;

    padding-left:
        max(
            24px,
            calc((100vw - var(--ad-content)) / 2)
        );

    padding-right:
        max(
            24px,
            calc((100vw - var(--ad-content)) / 2)
        );
}

.ad2-brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: inherit;
}

/* =========================================================
   AD2_SHAHADA_START
   Dashboard Shahada
   ========================================================= */

.ad2-shahada {
    position: relative;

    margin-top: 4rem;
    padding: 3.25rem 1.5rem 3.5rem;

    overflow: hidden;

    text-align: center;

    border-top: 1px solid rgba(185, 154, 69, 0.16);
    border-bottom: 1px solid rgba(185, 154, 69, 0.10);
}

.ad2-shahada::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: min(620px, 80vw);
    height: 240px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(185, 154, 69, 0.10) 0%,
            rgba(185, 154, 69, 0.035) 34%,
            transparent 72%
        );

    pointer-events: none;
}

.ad2-shahada-inner {
    position: relative;

    z-index: 1;

    width: min(900px, 100%);

    margin: 0 auto;
}

.ad2-shahada-eyebrow {
    display: block;

    margin-bottom: 1.15rem;

    color: var(--accent, var(--ad-gold));

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

    letter-spacing: 0.20em;

    text-transform: uppercase;
}

.ad2-shahada-arabic {
    margin: 0 auto;

    max-width: 820px;

    color: var(--accent, var(--ad-gold));

    font-family:
        "Noto Naskh Arabic",
        "Amiri",
        "Segoe UI",
        serif;

    font-size:
        clamp(
            1.65rem,
            3.2vw,
            2.65rem
        );

    font-weight: 500;

    line-height: 1.8;

    letter-spacing: 0;

    text-shadow:
        0 0 18px rgba(185, 154, 69, 0.20),
        0 0 42px rgba(185, 154, 69, 0.10);
}

.ad2-shahada-transliteration {
    margin: 1.35rem auto 0;

    max-width: 780px;

    color: var(--text, var(--ad-text));

    font-size:
        clamp(
            0.82rem,
            1.45vw,
            1rem
        );

    font-weight: 500;

    line-height: 1.7;

    letter-spacing: 0.01em;
}

.ad2-shahada-translation {
    margin: 0.7rem auto 0;

    max-width: 720px;

    color:
        var(
            --text-muted,
            var(--ad-text-soft)
        );

    font-size:
        clamp(
            0.72rem,
            1.2vw,
            0.86rem
        );

    line-height: 1.65;
}

/* Dark mode */

:root[data-theme="dark"] .ad2-shahada {
    border-color:
        rgba(214, 184, 90, 0.15);
}

:root[data-theme="dark"] .ad2-shahada-arabic {
    color: #d6b85a;

    text-shadow:
        0 0 18px rgba(214, 184, 90, 0.25),
        0 0 48px rgba(214, 184, 90, 0.12);
}

/* Light mode */

:root[data-theme="light"] .ad2-shahada {
    border-color:
        rgba(181, 138, 42, 0.15);
}

:root[data-theme="light"] .ad2-shahada-arabic {
    color: #a67d22;

    text-shadow:
        0 0 14px rgba(181, 138, 42, 0.16);
}

/* Mobile */

@media (max-width: 700px) {

    .ad2-shahada {
        margin-top: 3rem;

        padding:
            2.5rem 1rem 2.75rem;
    }

    .ad2-shahada-eyebrow {
        margin-bottom: 0.8rem;

        font-size: 0.58rem;
    }

    .ad2-shahada-arabic {
        font-size:
            clamp(
                1.35rem,
                6vw,
                1.9rem
            );

        line-height: 1.85;
    }

    .ad2-shahada-transliteration {
        margin-top: 1rem;

        font-size: 0.76rem;

        line-height: 1.65;
    }

    .ad2-shahada-translation {
        font-size: 0.68rem;

        line-height: 1.6;
    }
}

/* =========================================================
   AD2_SHAHADA_END
   ========================================================= */

