/* Homepage landing page styles — EliteAdmin production patterns */

.home-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.home-page .home-main {
    flex: 1;
}

/* ── Navbar ── */
.home-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0.875rem 0;
    transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.home-navbar.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    padding: 0.625rem 0;
}

.home-theme-classic .home-navbar:not(.is-scrolled) {
    background: transparent;
}

.home-theme-classic .home-navbar.is-scrolled .home-brand,
.home-theme-classic .home-navbar.is-scrolled .home-nav-link {
    color: var(--heading-color, #012970) !important;
}

.home-theme-classic .home-navbar:not(.is-scrolled) .home-brand,
.home-theme-classic .home-navbar:not(.is-scrolled) .home-nav-link {
    color: #fff;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
}

.home-brand img {
    height: 36px;
    width: auto;
}

.home-nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md, 0.5rem);
    transition: opacity 0.2s;
}

.home-nav-link:hover {
    opacity: 0.85;
}

/* ── Shared typography ── */
.home-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
}

.home-headline {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.home-description {
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.home-description p:last-child {
    margin-bottom: 0;
}

.home-description a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.home-cta-primary {
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-md, 0.5rem);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(65, 84, 241, 0.35);
}

/* ── Classic theme ── */
.home-theme-classic {
    background: #f4f6fb;
    color: var(--default-color, #444);
}

.home-hero-classic {
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    background: linear-gradient(135deg, #4154f1 0%, #6776f4 45%, #8b5cf6 100%);
    color: #fff;
}

.home-hero-classic::before,
.home-hero-classic::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.home-hero-classic::before {
    width: 480px;
    height: 480px;
    top: -120px;
    right: -80px;
    background: rgba(255, 255, 255, 0.08);
}

.home-hero-classic::after {
    width: 320px;
    height: 320px;
    bottom: -80px;
    left: -60px;
    background: rgba(255, 255, 255, 0.05);
}

.home-hero-classic .home-eyebrow {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.home-hero-classic .home-description {
    opacity: 0.95;
    max-width: 540px;
}

.home-hero-visual {
    position: relative;
    padding: 1.5rem;
}

.home-hero-mockup {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.home-hero-mockup-bar {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.home-hero-mockup-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.home-hero-mockup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.home-hero-mockup-stat {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
}

.home-hero-mockup-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.home-hero-mockup-stat small {
    opacity: 0.8;
    font-size: 0.75rem;
}

/* Features section */
.home-features {
    padding: 4rem 0;
}

.home-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading-color, #012970);
}

.home-section-subtitle {
    color: var(--muted-color, #6c757d);
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.home-feature-card {
    height: 100%;
    padding: 1.75rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s, box-shadow 0.25s;
}

.home-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(65, 84, 241, 0.12);
}

.home-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    margin-bottom: 1.125rem;
    background: color-mix(in srgb, var(--accent-color, #4154f1) 12%, transparent);
    color: var(--accent-color, #4154f1);
}

.home-feature-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading-color, #012970);
}

.home-feature-text {
    font-size: 0.9375rem;
    color: var(--muted-color, #6c757d);
    margin: 0;
    line-height: 1.6;
}

/* Bottom CTA band */
.home-cta-band {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, #4154f1 0%, #6776f4 100%);
    color: #fff;
    text-align: center;
}

.home-cta-band .home-section-title {
    color: #fff;
}

.home-cta-band p {
    opacity: 0.9;
    max-width: 520px;
    margin: 0 auto 1.5rem;
}

/* ── Minimal theme ── */
.home-theme-minimal {
    background: linear-gradient(180deg, #f8f9fc 0%, #eef1f8 100%);
}

.home-hero-minimal {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.home-minimal-card {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.home-minimal-header {
    padding: 2.5rem 2rem 0;
    text-align: center;
}

.home-minimal-body {
    padding: 2rem;
}

.home-minimal-promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: color-mix(in srgb, var(--accent-color, #4154f1) 6%, #fff);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.home-minimal-promo-content {
    flex: 1 1 280px;
}

.home-minimal-promo-visual {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--accent-color, #4154f1), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.home-theme-minimal .home-eyebrow {
    background: color-mix(in srgb, var(--accent-color, #4154f1) 12%, transparent);
    color: var(--accent-color, #4154f1);
}

.home-theme-minimal .home-headline {
    color: var(--heading-color, #012970);
}

.home-theme-minimal .home-description {
    color: var(--muted-color, #6c757d);
}

/* ── Split theme enhancements ── */
.home-split-page .auth-split-brand {
    display: flex !important;
}

.home-split-page .auth-split-form .home-mobile-brand {
    display: none;
}

.home-split-card {
    border: 0;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
}

.home-split-card .auth-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ── Footer ── */
.home-footer {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
    font-size: 0.875rem;
    color: var(--muted-color, #6c757d);
}

.home-theme-classic .home-footer {
    background: #fff;
}

.home-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* ── Rich text on public pages ── */
.home-description ul,
.home-description ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.home-description h1,
.home-description h2,
.home-description h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0.75rem 0 0.375rem;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .home-hero-classic {
        text-align: center;
    }

    .home-hero-classic .home-description {
        margin-left: auto;
        margin-right: auto;
    }

    .home-cta-group {
        justify-content: center;
    }

    .home-features {
        padding: 3rem 0;
    }

    .home-minimal-header {
        padding: 2rem 1.25rem 0;
    }

    .home-minimal-body {
        padding: 1.25rem;
    }

    .home-minimal-promo {
        padding: 1.5rem;
        text-align: center;
        justify-content: center;
    }

    .home-split-page .auth-split-form .home-mobile-brand {
        display: block;
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .home-navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-brand span {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-cta-primary {
        width: 100%;
        justify-content: center;
    }

    .home-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .home-feature-card {
        padding: 1.25rem;
    }
}

/* Settings wizard editor */
.rich-editor-field .ql-container {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 0.9375rem;
}

.rich-editor-field .ql-editor {
    min-height: 160px;
}

.rich-editor-field .ql-toolbar.ql-snow {
    border-radius: var(--radius-md, 0.5rem) var(--radius-md, 0.5rem) 0 0;
    border-color: var(--border-color, #dee2e6);
    background: var(--surface-color, #fff);
}

.rich-editor-field .ql-container.ql-snow {
    border-radius: 0 0 var(--radius-md, 0.5rem) var(--radius-md, 0.5rem);
    border-color: var(--border-color, #dee2e6);
}

.homepage-template-preview {
    height: 100px;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    pointer-events: none;
}

.homepage-template-preview-classic {
    background: linear-gradient(135deg, #4154f1, #8b5cf6);
}

.homepage-template-preview-classic::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.homepage-template-preview-split {
    background: linear-gradient(90deg, #4154f1 45%, #f4f6fb 45%);
}

.homepage-template-preview-minimal {
    background: #f4f6fb;
    border: 1px solid #dee2e6;
}

.homepage-template-preview-minimal::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 55%;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.homepage-review-description {
    max-height: 120px;
    overflow: hidden;
}

.homepage-review-description p {
    margin-bottom: 0.25rem;
}
