/* Global base for marketing only when planner.css is not loaded.
   App pages rely on planner.css (Desktop theme) loaded after this file. */
html, body {
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Do NOT override .btn-primary / body colors here — that forced forest marketing onto the planner app. */

.content {
    padding-top: 1.1rem;
}

/* Marketing-only link colors (scoped) */
.mkt-shell a, .mkt-shell .btn-link {
    color: #2a6b5a;
}

.mkt-shell a:hover {
    color: #1e4f43;
}

.mkt-shell .btn-primary,
.btn-lwh-primary {
    color: #fff;
    background-color: #2a6b5a;
    border-color: #245c4e;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem rgba(123, 107, 143, 0.35);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #b42318;
    font-size: 0.875rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* --- Life with Him brand --- */
:root {
    --lwh-forest: #2a6b5a;
    --lwh-forest-dark: #1e4f43;
    --lwh-navy: #1a3a4a;
    --lwh-cream: #f7f4ef;
    --lwh-sand: #ebe4d8;
    --lwh-gold: #c4a35a;
    --lwh-text: #1f2d2a;
}

.btn-lwh-primary {
    color: #fff;
    background-color: var(--lwh-forest);
    border: 1px solid var(--lwh-forest-dark);
}

.btn-lwh-primary:hover {
    color: #fff;
    background-color: var(--lwh-forest-dark);
    border-color: var(--lwh-navy);
}

.btn-lwh-outline {
    color: var(--lwh-forest);
    background: transparent;
    border: 1px solid var(--lwh-forest);
}

.btn-lwh-outline:hover {
    color: #fff;
    background: var(--lwh-forest);
}

.lwh-topbar {
    justify-content: space-between !important;
    background: #fffefb !important;
}

.lwh-topbar-title {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--lwh-navy);
}

.lwh-topbar-hint {
    font-size: 0.8rem;
    color: #6b7c76;
}

/* Sidebar section headings (public / planner / account / admin) */
.nav-section-label {
    padding: 1rem 1rem 0.35rem 1.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 244, 239, 0.45);
}

.lwh-sidebar-brand .navbar-brand {
    font-weight: 650;
    letter-spacing: 0.02em;
}

/* === Marketing layout (no app sidebar) — intentionally different from planner shell === */
.mkt-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f7f4ef;
    color: #1f2d2a;
}

.mkt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    background: #fffefb;
    border-bottom: 1px solid #e5ddd0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.mkt-logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1a3a4a;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.mkt-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
}

.mkt-nav a {
    color: #2a6b5a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.mkt-nav a:hover {
    color: #1e4f43;
    text-decoration: underline;
}

.mkt-nav-muted {
    color: #5a6b65 !important;
    font-weight: 500 !important;
}

.mkt-cta {
    background: #2a6b5a !important;
    color: #fff !important;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    text-decoration: none !important;
}

.mkt-cta:hover {
    background: #1e4f43 !important;
    color: #fff !important;
}

.mkt-inline-form {
    display: inline;
    margin: 0;
}

.mkt-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: #5a6b65;
    cursor: pointer;
    text-decoration: none;
}

.mkt-link-btn:hover {
    color: #1e4f43;
    text-decoration: underline;
}

.mkt-account-menu {
    position: relative;
}

.mkt-account-summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: #2a6b5a;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    user-select: none;
}

.mkt-account-summary::-webkit-details-marker {
    display: none;
}

.mkt-account-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 10.5rem;
    background: #fff;
    border: 1px solid #e5ddd0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 0.35rem;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.mkt-account-panel a,
.mkt-account-signout {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: #1f2d2a !important;
    text-decoration: none !important;
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.mkt-account-panel a:hover,
.mkt-account-signout:hover {
    background: #f0ebe3;
}

.mkt-account-signout {
    color: #8a3a3a !important;
}

.mkt-account-panel form {
    margin: 0;
}

.mkt-main {
    flex: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2.5rem;
}

.mkt-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e5ddd0;
    background: #fffefb;
    color: #6b7c76;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
}

.mkt-footer a {
    color: #2a6b5a;
}

.mkt-footer-sep {
    opacity: 0.5;
}

.mkt-build {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.75;
}

.mkt-banner {
    background: #c4a35a;
    color: #1a3a4a;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 0.75rem;
}

/* PWA install control in sidebar nav */
.lwh-install-nav {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lwh-install-btn {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(196, 163, 90, 0.55);
    border-radius: 0.5rem;
    background: rgba(196, 163, 90, 0.18);
    color: #f7f4ef !important;
    cursor: pointer;
    padding: 0.55rem 0.85rem;
}

.lwh-install-btn:hover:not(:disabled) {
    background: rgba(196, 163, 90, 0.32);
    color: #fff !important;
}

.lwh-install-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.lwh-install-status {
    opacity: 0.9;
    font-size: 0.95rem;
}

.lwh-install-icon {
    display: inline-block;
    width: 1.25rem;
    margin-right: 0.5rem;
    font-weight: 700;
}

.lwh-install-help {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
    color: rgba(247, 244, 239, 0.92);
    font-size: 0.78rem;
    line-height: 1.4;
}

.lwh-install-feedback {
    background: rgba(42, 107, 90, 0.35);
    border-radius: 0.4rem;
    padding: 0.45rem 0.6rem;
    color: #f7f4ef;
    font-size: 0.78rem;
}

.lwh-install-cta {
    min-height: 3rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.lwh-install-feedback[data-state="error"] {
    background: #fdecea !important;
    color: #7a1f1a !important;
    border: 1px solid #f0c2bd;
}

/* Install control on light pages (account / marketing) */
.lwh-install-panel-light .lwh-install-feedback {
    background: #e8f3ef;
    color: #1a3d34;
    border: 1px solid #b7d8cb;
}

.lwh-install-panel-light .lwh-install-help-block {
    background: #f4f7f6;
    border: 1px solid #d5e0dc;
    border-radius: 0.5rem;
    padding: 0.75rem 0.9rem;
    color: #3d4f49;
    font-size: 0.85rem;
    line-height: 1.45;
}

.lwh-install-panel-light .lwh-install-status-banner {
    background: #e8f3ef;
    border: 1px solid #b7d8cb;
    color: #1a3d34;
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    font-weight: 600;
}

/* Install control in dark sidebar */
.lwh-install-panel-dark .lwh-install-help-block {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
    color: rgba(247, 244, 239, 0.92);
    font-size: 0.78rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.lwh-install-panel-dark .btn {
    width: 100%;
}

.lwh-install-panel-dark .lwh-install-status-banner {
    color: rgba(247, 244, 239, 0.95);
    font-size: 0.95rem;
    opacity: 0.95;
}

.lwh-hero {
    background: linear-gradient(145deg, #1a3a4a 0%, #1e4f43 55%, #2a6b5a 100%);
    color: #f7f4ef;
    border-radius: 1rem;
    padding: 2.5rem 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 12px 32px rgba(26, 58, 74, 0.22);
}

.lwh-hero-inner {
    max-width: 40rem;
}

.lwh-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.lwh-hero h1 {
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.lwh-lead {
    font-size: 1.1rem;
    line-height: 1.55;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.lwh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lwh-hero .btn-lwh-primary {
    background: var(--lwh-gold);
    border-color: #a8863f;
    color: #1a3a4a;
}

.lwh-hero .btn-lwh-primary:hover {
    background: #d4b56a;
    color: #1a3a4a;
}

.lwh-hero .btn-lwh-outline {
    color: #f7f4ef;
    border-color: rgba(247, 244, 239, 0.65);
}

.lwh-hero .btn-lwh-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.lwh-section {
    padding-bottom: 2rem;
}

.lwh-card {
    background: #fffefb;
    border: 1px solid var(--lwh-sand);
    border-radius: 0.85rem;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 14px rgba(26, 58, 74, 0.06);
}

.lwh-auth-wrap {
    display: flex;
    justify-content: center;
    padding: 1rem 0 2.5rem;
}

.lwh-auth-card {
    width: 100%;
    max-width: 26rem;
    background: #fffefb;
    border: 1px solid var(--lwh-sand);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 10px 28px rgba(26, 58, 74, 0.08);
}

.lwh-code {
    background: #1a3a4a;
    color: #e8f0ec;
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* --- Admin panel --- */
.admin-shell {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    align-items: start;
    min-height: 60vh;
}

.admin-side {
    background: #1a3a4a;
    color: #f7f4ef;
    border-radius: 0.85rem;
    padding: 1rem 0.75rem;
    position: sticky;
    top: 0.75rem;
}

.admin-side-title {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.75rem;
    opacity: 0.75;
    padding: 0.25rem 0.65rem 0.75rem;
}

.admin-side-link {
    display: block;
    color: rgba(247, 244, 239, 0.9);
    text-decoration: none;
    padding: 0.45rem 0.65rem;
    border-radius: 0.4rem;
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}

.admin-side-link:hover,
.admin-side-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-side-hr {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 0.65rem 0.35rem;
}

.admin-main {
    min-width: 0;
}

.admin-page h1 {
    font-size: 1.65rem;
    margin-bottom: 0.35rem;
}

/* --- Random quote areas (admin → API → UI) --- */
.quote-area {
    background: #fffefb;
    border: 1px solid var(--lwh-sand);
    border-radius: 0.85rem;
    padding: 1rem 1.15rem;
    box-shadow: 0 4px 14px rgba(26, 58, 74, 0.06);
}

.quote-area-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7c76;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.quote-area-body {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.45;
    color: var(--lwh-navy);
    font-style: italic;
}

.quote-area-attr {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6b7c76;
}

.quote-area-refresh {
    margin-top: 0.75rem;
}

.quote-area-hero {
    background: linear-gradient(145deg, #1a3a4a 0%, #2a6b5a 100%);
    color: #f7f4ef;
    border: none;
}

.quote-area-hero .quote-area-title,
.quote-area-hero .quote-area-attr {
    color: rgba(247, 244, 239, 0.8);
}

.quote-area-hero .quote-area-body {
    color: #fff;
    font-size: 1.35rem;
}

.quote-area-hero .quote-area-refresh {
    border-color: rgba(255, 255, 255, 0.45);
    color: #f7f4ef;
}

.quote-area-compact {
    min-height: 9rem;
}

.quote-area-inline {
    border-style: dashed;
    background: #f3faf6;
}

/* --- Sales page --- */
.sales-plan {
    display: flex;
    flex-direction: column;
    position: relative;
}

.sales-plan-hot {
    border-color: var(--lwh-gold);
    box-shadow: 0 8px 24px rgba(196, 163, 90, 0.2);
}

.sales-plan-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--lwh-gold);
    color: #1a3a4a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.sales-price {
    margin: 0.35rem 0 0.75rem;
}

.sales-price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lwh-navy);
}

.sales-price-period {
    color: #6b7c76;
    margin-left: 0.25rem;
}

.sales-feature-list {
    padding-left: 1.1rem;
    margin-bottom: 1.25rem;
    color: #3d4f49;
}

.sales-feature-list li {
    margin-bottom: 0.35rem;
}

/* Admin media field (devotion image/video upload + interactive picker) */
.media-field-preview {
    display: block;
    max-width: 100%;
    max-height: 220px;
    border-radius: 8px;
    background: #f3f5f4;
}

.media-field-current {
    max-width: 32rem;
}

@media (max-width: 768px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-side {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        align-items: center;
    }

    .admin-side-title {
        width: 100%;
        padding-bottom: 0.35rem;
    }

    .admin-side-hr {
        display: none;
    }
}
