/* Shared BibleWish site styles */

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

html {
    background-color: #0b0a09;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #0b0a09;
    color: #e5e7eb;
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: env(safe-area-inset-bottom);
    background: #0b0a09;
    pointer-events: none;
    z-index: 999;
}

body.radial-page {
    min-height: 100vh;
    min-height: 100svh;
    background: radial-gradient(circle at top, #2a1f1a, #0b0a09);
}

body.centered-page {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

body.safe-area {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c9b89e;
    margin-bottom: 12px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.actions-home {
    margin-top: 36px;
    margin-bottom: 8px;
}

.actions-section {
    margin: 18px 0 36px;
}

.actions-top {
    margin-top: 20px;
}

.open-button,
.secondary-button {
    display: inline-block;
    padding: 12px 26px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.open-button {
    background: rgba(255, 200, 120, 0.12);
    border: 1px solid rgba(255, 200, 120, 0.4);
    color: #e7dccf;
}

.open-button:hover {
    background: rgba(255, 200, 120, 0.22);
    border-color: rgba(255, 200, 120, 0.6);
    transform: translateY(-1px);
}

.secondary-button {
    border: 1px solid rgba(214, 207, 199, 0.22);
    color: #d6cfc7;
    background: rgba(255, 255, 255, 0.03);
}

.secondary-button:hover {
    border-color: rgba(255, 200, 120, 0.32);
    color: #e7dccf;
    background: rgba(255, 200, 120, 0.08);
    transform: translateY(-1px);
}

.footer {
    font-size: 0.9rem;
    color: #94a3b8;
}

body.home-page .container {
    max-width: 720px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.home-page .primary-action {
    margin-top: 36px;
    margin-bottom: 16px;
}

body.home-page .primary-action .open-button {
    font-size: 1.14rem;
    padding: 15px 34px;
    background: linear-gradient(180deg, #d8b06c, #b98a45);
    border-color: rgba(255, 200, 120, 0.78);
    color: #23170c;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(185, 138, 69, 0.28);
}

body.home-page .primary-action .open-button:hover {
    background: linear-gradient(180deg, #e0ba78, #c6944b);
    border-color: rgba(255, 215, 160, 0.9);
    color: #1a1008;
}

body.home-page .logo {
    max-width: 180px;
    margin: 0 auto 32px;
    filter: drop-shadow(0 0 18px rgba(255, 200, 120, 0.25));
}

body.home-page h1 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    font-weight: 600;
}

body.home-page h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #d6cfc7;
    margin-bottom: 28px;
}

body.home-page p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d6cfc7;
    margin-bottom: 20px;
}

body.home-page .badge {
    display: inline-block;
    margin-top: 24px;
}

body.home-page .footer {
    margin-top: 32px;
    white-space: nowrap;
}

body.about-page .container {
    max-width: 760px;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.about-page h1 {
    font-size: 2.3rem;
    margin: 0 0 18px;
    font-weight: 600;
}

body.about-page p {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #d6cfc7;
    margin: 0 0 20px;
    max-width: 640px;
}

body.about-page .verse {
    margin: 8px auto 32px;
    padding: 24px 20px;
    max-width: 600px;
    border-left: 3px solid rgba(255, 200, 120, 0.5);
    background: rgba(255, 255, 255, 0.03);
}

body.about-page .verse-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #e7dccf;
    font-style: italic;
    margin-bottom: 10px;
}

body.about-page .verse-ref {
    display: block;
    font-size: 0.95rem;
    color: #c9b89e;
}

body.about-page .principles {
    margin: 8px auto 24px;
    max-width: 560px;
    text-align: left;
}

body.about-page .principles h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #e7dccf;
    margin-bottom: 16px;
    text-align: center;
}

body.about-page .principles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.about-page .principles li {
    font-size: 1rem;
    line-height: 1.6;
    color: #d6cfc7;
    margin-bottom: 12px;
    padding-left: 18px;
    position: relative;
}

body.about-page .principles li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 200, 120, 0.6);
}

body.about-page .principles-note {
    margin-top: 0;
    font-size: 0.95rem;
    color: #c9b89e;
    font-style: italic;
    text-align: center;
}

body.about-page .creator {
    margin-top: 28px;
    padding: 20px 22px;
    max-width: 560px;
    border: 1px solid rgba(255, 200, 120, 0.18);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

body.about-page .creator-title {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c9b89e;
    margin-bottom: 10px;
}

body.about-page .creator p {
    margin: 0;
}

body.about-page .creator a {
    color: #e7dccf;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 200, 120, 0.28);
}

body.about-page .creator a:hover {
    color: #fff0d8;
    border-bottom-color: rgba(255, 200, 120, 0.52);
}

body.about-page .footer {
    margin-top: 28px;
}

body.read-page {
    color: #e7dccf;
    padding: 0 20px;
}

body.read-page .reader-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 0;
    padding-top: calc(40px + env(safe-area-inset-top));
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

body.read-page .header {
    text-align: center;
    margin-bottom: 32px;
}

body.read-page .header h1 {
    margin: 0 0 18px;
    font-size: 2rem;
    font-weight: 600;
    color: #e7dccf;
}

body.read-page .selectors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

body.read-page select {
    background: #1a1613;
    color: #e7dccf;
    border: 1px solid rgba(255, 200, 120, 0.3);
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 6px;
    min-width: 180px;
}

body.read-page .scripture {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.read-page .scripture.rtl {
    direction: rtl;
    text-align: right;
}

body.read-page .verse {
    margin-bottom: 10px;
}

body.read-page .number {
    color: rgba(255, 200, 120, 0.6);
    font-size: 0.9rem;
    margin-right: 6px;
}

body.faithful-archive {
    color: #e8e2d6;
    line-height: 1.7;
}

body.faithful-archive .container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

body.faithful-archive .topbar {
    text-align: center;
    margin-bottom: 36px;
}

body.faithful-archive h1,
body.faithful-archive h2 {
    letter-spacing: 0;
    font-weight: 600;
}

body.faithful-archive h1 {
    margin: 0 0 12px;
    font-size: clamp(2.4rem, 5vw, 4rem);
}

body.faithful-archive .subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #d6cfc7;
}

body.faithful-archive .scripture {
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 22px 24px;
    border-left: 3px solid rgba(200, 169, 106, 0.52);
    background: rgba(255, 255, 255, 0.03);
    color: #e3d6bd;
    font-size: 1.1rem;
    text-align: center;
}

body.faithful-archive .divider {
    width: 72px;
    height: 1px;
    background-color: rgba(200, 169, 106, 0.75);
    margin: 0 auto 34px;
}

body.faithful-archive .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

body.faithful-archive .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(200, 169, 106, 0.14);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

body.faithful-archive .card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

body.faithful-archive .card-content {
    padding: 22px 20px 24px;
}

body.faithful-archive .card h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

body.faithful-archive .card p {
    margin: 0 0 18px;
    font-size: 1rem;
    color: #d6cfc7;
}

body.faithful-archive .card .button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(200, 169, 106, 0.34);
    color: #f0e7d7;
    background: rgba(200, 169, 106, 0.08);
    font-size: 0.9rem;
}

body.faithful-archive .card .button:hover {
    background: rgba(200, 169, 106, 0.16);
}

body.faithful-archive .archive-note {
    margin-top: 26px;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid rgba(232, 226, 214, 0.12);
    background: rgba(255, 255, 255, 0.025);
    color: #cec2ac;
    text-align: center;
}

body.faithful-archive .footer-note {
    margin-top: 36px;
    font-size: 0.95rem;
    color: #9e9586;
    text-align: center;
}

body.faithful-profile {
    color: #e8e2d6;
    line-height: 1.7;
}

body.faithful-profile .container {
    max-width: 1000px;
    margin: auto;
    padding: 60px 20px;
}

body.faithful-profile .topbar {
    text-align: center;
    margin-bottom: 42px;
}

body.faithful-profile h1,
body.faithful-profile h2 {
    letter-spacing: 0;
    font-weight: 600;
}

body.faithful-profile h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

body.faithful-profile h2 {
    font-size: 1.6rem;
    margin-top: 60px;
}

body.faithful-profile .subtitle {
    font-size: 1rem;
    color: #d6cfc7;
    margin-bottom: 30px;
}

body.faithful-profile .divider {
    width: 60px;
    height: 1px;
    background-color: #c8a96a;
    margin: 30px 0;
}

body.faithful-profile .hero {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

body.faithful-profile .hero img {
    width: 300px;
    max-width: 100%;
    border: 1px solid #2a2825;
}

body.faithful-profile .portrait-placeholder {
    width: 300px;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a2825;
    background:
        radial-gradient(circle at top, rgba(255, 200, 120, 0.14), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    color: #c9b89e;
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

body.faithful-profile .quote {
    font-style: italic;
    margin-top: 20px;
    color: #c9b89e;
}

body.faithful-profile .tag {
    display: inline-block;
    border: 1px solid #c8a96a;
    padding: 5px 12px;
    margin: 6px 6px 0 0;
    font-size: 0.9rem;
    border-radius: 999px;
}

body.faithful-profile .video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

body.faithful-profile iframe {
    width: 100%;
    height: 300px;
    border: none;
}

body.faithful-profile .footer-note {
    margin-top: 80px;
    font-size: 0.85rem;
    color: #8f8777;
    border-top: 1px solid #2a2825;
    padding-top: 20px;
    text-align: center;
}

body.faithful-profile a:not(.open-button):not(.secondary-button) {
    color: #c8a96a;
    text-decoration: none;
}

body.faithful-profile a:not(.open-button):not(.secondary-button):hover {
    text-decoration: underline;
}

body.faithful-profile .profile-link-row {
    margin-top: 20px;
}

@media (max-width: 768px) {
    body.faithful-profile .hero {
        flex-direction: column;
        text-align: center;
    }

    body.faithful-profile .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.read-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.read-page .reader-container {
        padding-top: calc(28px + env(safe-area-inset-top));
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
    }

    body.read-page select {
        width: 100%;
        min-width: 0;
    }

    body.read-page .selectors {
        gap: 10px;
    }

    body.faithful-archive .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.faithful-archive .scripture {
        text-align: left;
    }
}
