﻿/* Global reset — applies to both MVC and Blazor pages */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--theme-text-primary);
}

/* ── Blazor app theme tokens ───────────────────────────────────────────────── */
/* Defined on .theme-root so they never affect MVC pages.                      */
/* Dark theme is the default; light overrides each token below.                */

/* Dark theme — default (no attribute needed) */
html {
    --theme-bg-page:            #12141c;
    --theme-bg-nav:             #1b1e2e;
    --theme-bg-surface:         #1b1e2e;
    --theme-bg-card:            #1a1a1a;
    --theme-bg-card-list:       #121212;
    --theme-border-subtle:      #2d324d;
    --theme-border-card:        #333;
    --theme-text-primary:       #e2e4e9;
    --theme-text-secondary:     #c4c9d8;
    --theme-text-muted:         #94a3b8;
    --theme-text-dim:           #64748b;
    --theme-accent:             #6366f1;
    --theme-accent-light:       #a5b4fc;
    --theme-accent-lighter:     #c4cffe;
    --theme-accent-hover:       #818cf8;
    --theme-accent-thumb-bg:    #2d3354;
    --theme-accent-thumb-border:#4f46e5;
    --theme-btn-on-accent:      #0f1120;
    --theme-success:            #4ade80;
    --theme-success-complete:   #6ee7b7;
    --theme-danger:             #f87171;
    --theme-danger-hover:       #ef4444;
    --theme-shadow:             0 4px 12px rgba(0,0,0,0.4);
    --theme-shadow-lg:          0 12px 24px rgba(0,0,0,0.5);
    --theme-nav-border:         #2d324d;
    --theme-hover-bg:           rgba(165,180,252,0.1);
    --theme-hover-border:       #3b4266;
    --theme-logo-from:          #ffffff;
    --theme-logo-to:            #a5b4fc;
}

/* Light theme — set by the blocking script before first paint */
html[data-theme="light"] {
    --theme-bg-page:            #f6f2ed;
    --theme-bg-nav:             #ffffff;
    --theme-bg-surface:         #ffffff;
    --theme-bg-card:            #ffffff;
    --theme-bg-card-list:       #f6f2ed;
    --theme-border-subtle:      #e5e7eb;
    --theme-border-card:        #dde0e6;
    --theme-text-primary:       #1a2639;
    --theme-text-secondary:     #555;
    --theme-text-muted:         #777;
    --theme-text-dim:           #999;
    --theme-accent:             #2f4a6d;
    --theme-accent-light:       #3d6089;
    --theme-accent-lighter:     #5a7fa0;
    --theme-accent-hover:       #1e3247;
    --theme-accent-thumb-bg:    #dce8f0;
    --theme-accent-thumb-border:#2f4a6d;
    --theme-btn-on-accent:      #ffffff;
    --theme-success:            #16a34a;
    --theme-success-complete:   #15803d;
    --theme-danger:             #dc2626;
    --theme-danger-hover:       #b91c1c;
    --theme-shadow:             0 4px 12px rgba(0,0,0,0.08);
    --theme-shadow-lg:          0 10px 25px rgba(0,0,0,0.08);
    --theme-nav-border:         #e5e7eb;
    --theme-hover-bg:           rgba(99,102,241,0.06);
    --theme-hover-border:       #818cf8;
    --theme-logo-from:          #1a2639;
    --theme-logo-to:            #2f4a6d;
}

/* Universal selector - limited to the MVC scope */
.mvc-pages * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Replaces the 'body' selector since .mvc-pages is ON the body */
.mvc-pages {
    margin: 0;
    background: #f6f2ed;
    min-height: 100vh;
    padding-top: 20px;
}

    .mvc-pages .site-header {
        max-width: 1400px;
        padding: 0 20px 12px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mvc-pages .container {
        width: 100%;
        max-width: 1400px;
        padding: 20px;
        margin: 0 auto;
    }

    .mvc-pages .language-bar {
        display: none;
    }

        .mvc-pages .language-bar select {
            padding: 8px 12px;
            border-radius: 8px;
            border: none;
            background: #2f4a6d;
            color: white;
        }

    .mvc-pages .logo {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        text-decoration: none;
    }

    .mvc-pages .logo-icon {
        flex-shrink: 0;
    }

    .mvc-pages .logo-text-block {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .mvc-pages .logo-name {
        font-size: 20px;
        font-weight: 800;
        color: #1a2639;
        line-height: 1.2;
        letter-spacing: -0.3px;
    }

    .mvc-pages .logo-tagline {
        font-size: 11px;
        color: #777;
        line-height: 1.3;
    }

    /* Card */
    .mvc-pages .card {
        background: #ffffff;
        border-radius: 16px;
        padding: 30px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

    .mvc-pages h1 {
        font-size: 40px;
        font-weight: 800;
        margin: 0 0 12px;
        line-height: 1.15;
        color: #1a2639;
    }

    .mvc-pages .highlight {
        color: #e55a2b;
    }

    .mvc-pages .subtitle {
        margin: 15px 0 25px;
        color: #555;
    }

    /* Desktop two-column layout */
    .mvc-pages .home-layout {
        display: flex;
        gap: 40px;
        align-items: center;
        margin-bottom: 32px;
    }

    .mvc-pages .home-left {
        flex: 1;
        min-width: 0;
    }

    .mvc-pages .home-right {
        flex: 0 0 48%;
    }

    .mvc-pages .person-placeholder {
        width: 100%;
        aspect-ratio: 3 / 4;
        background: #f0e8df;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        color: #aaa;
        font-size: 13px;
    }

    .mvc-pages .hero-image {
        width: 100%;
        height: auto;
        display: block;
        max-width: 600px;
    }

    /* Features */
    .mvc-pages .features {
        display: flex;
        flex-direction: column;
        gap: 22px;
        align-items: flex-start;
        margin-bottom: 4px;
    }

    .mvc-pages .feature {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        text-align: left;
    }

    .mvc-pages .feat-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .mvc-pages .feat-title {
        font-weight: 700;
        font-size: 16px;
        color: #1a2639;
        margin-bottom: 2px;
    }

    .mvc-pages .feat-desc {
        font-size: 14px;
        color: #666;
        line-height: 1.45;
    }

    .mvc-pages .listen-icon {
        color: #f59e0b;
    }

    .mvc-pages .recall-icon {
        color: #ec4899;
    }

    .mvc-pages .speak-icon {
        color: #222;
    }

    .mvc-pages .handsfree-icon {
        color: #06b6d4;
    }

    /* Image */
    .mvc-pages .image-section {
        position: relative;
    }

        .mvc-pages .image-section img {
            width: 260px;
            border-radius: 12px;
        }

    .mvc-pages .speech-bubble {
        position: absolute;
        top: 20px;
        left: -40px;
        background: #fff;
        padding: 10px 15px;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        font-size: 14px;
    }

        .mvc-pages .speech-bubble span {
            color: #888;
        }

    /* Social proof card */
    .mvc-pages .social-proof-card {
        display: flex;
        align-items: center;
        gap: 16px;
        background: #f8f3ed;
        border-radius: 14px;
        padding: 16px;
        margin: 28px 0;
        text-decoration: none;
        color: inherit;
        transition: background 0.2s ease;
    }

    .mvc-pages .social-proof-card:hover {
        background: #f0e8df;
    }

    .mvc-pages .social-proof-logo {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        flex-shrink: 0;
        object-fit: cover;
    }

    .mvc-pages .social-proof-info {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mvc-pages .social-proof-text {
        font-size: 14px;
        line-height: 1.5;
        color: #333;
        margin: 0;
    }

    .mvc-pages .sp-people-icon {
        display: inline;
        vertical-align: middle;
        margin-right: 4px;
        flex-shrink: 0;
    }

    .mvc-pages .yt-text {
        color: #e53935;
        font-weight: 600;
    }

    .mvc-pages .social-proof-handle {
        font-size: 13px;
        color: #555;
        margin: 0;
        display: flex;
        align-items: center;
    }

    /* Buttons */
    .mvc-pages .btn {
        display: block;
        width: 100%;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        border-radius: 12px;
        padding: 16px;
        font-size: 18px;
        transition: all 0.2s ease;
    }

    .mvc-pages .btn-primary {
        background: #1a2639;
        color: white;
        border: none;
        border-radius: 50px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .mvc-pages .btn-arrow {
        font-size: 20px;
        line-height: 1;
    }

        .mvc-pages .btn-primary span {
            display: block;
            font-size: 12px;
            opacity: 0.8;
        }

    .mvc-pages .btn-secondary {
        background: white;
        color: #333;
        border: 1px solid #ccc;
        margin-top: 10px;
    }

    .mvc-pages .btn:hover {
        transform: translateY(-1px);
        opacity: 0.95;
    }

    /* Footer */
    .mvc-pages .footer {
        text-align: center;
        margin-top: 15px;
        font-size: 12px;
        color: #777;
    }

/* Desktop: hero layout — strip card styling, expand spacing */
@media (min-width: 769px) {
    .mvc-pages {
        background:
            radial-gradient(ellipse 55% 70% at 88% 10%, rgba(255, 185, 160, 0.45) 0%, transparent 65%),
            radial-gradient(ellipse 45% 55% at 12% 80%, rgba(200, 215, 240, 0.35) 0%, transparent 65%),
            radial-gradient(ellipse 40% 40% at 50% 100%, rgba(255, 210, 180, 0.25) 0%, transparent 65%),
            #f6f2ed;
    }

    .mvc-pages .card {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 48px 30px;
    }

    .mvc-pages h1 {
        font-size: 56px;
    }

    .mvc-pages .home-layout {
        align-items: center;
        margin-bottom: 32px;
    }

    .mvc-pages .social-proof-card {
        border-radius: 16px;
    }
}

/* Mobile: card layout */
@media (max-width: 768px) {
    .mvc-pages {
        padding-bottom: 20px;
    }

    .mvc-pages .language-bar {
        display: none;
    }

    .mvc-pages .logo-tagline {
        display: none;
    }

    .mvc-pages .home-layout {
        display: block;
        margin-bottom: 0;
    }

    .mvc-pages .home-right {
        display: none;
    }
}

.mvc-pages .lang-option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mvc-pages .lang-option-list .btn {
    max-width: 100%;
}

/* Subscription page */
.mvc-pages .subscription-card {
    max-width: 460px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    text-align: center;
}

.mvc-pages .subscription-lock-icon {
    width: 80px;
    height: 80px;
    background: #eef1f7;
    border: 1.5px solid #c9d3e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mvc-pages .premium-badge {
    background: #2f4a6d;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
}

.mvc-pages .subscription-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0;
}

.mvc-pages .subscription-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.mvc-pages .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    text-align: left;
}

.mvc-pages .feature-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #333;
}

.mvc-pages .feature-list li svg {
    flex-shrink: 0;
}

.mvc-pages .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* Sitewide footer (MVC pages) */
.mvc-pages .site-footer {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 24px 20px 40px;
    font-size: 13px;
}

.mvc-pages .site-footer a {
    color: #777;
    text-decoration: underline;
}

/* Auth pages (Login / Register) */
.mvc-pages .auth-card {
    max-width: 420px;
    margin: 0 auto;
}

/* Legal pages (Privacy / Terms) — wider reading measure than the auth cards */
.mvc-pages .legal-card {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
    color: #333;
}

.mvc-pages .legal-updated {
    color: #777;
    font-size: 0.85rem;
    margin: 0 0 24px 0;
}

.mvc-pages .legal-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 28px 0 8px 0;
}

.mvc-pages .legal-card ul {
    padding-left: 20px;
}

.mvc-pages .legal-card li {
    margin-bottom: 6px;
}

.mvc-pages .legal-card a {
    color: #2f4a6d;
}

.mvc-pages .auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0 0 4px 0;
}

.mvc-pages .auth-subtitle {
    color: #555;
    font-size: 0.9rem;
    margin: 0 0 24px 0;
}

.mvc-pages .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

    .mvc-pages .form-group label {
        font-size: 14px;
        font-weight: 600;
        color: #333;
    }

    .mvc-pages .form-group input[type="email"],
    .mvc-pages .form-group input[type="password"],
    .mvc-pages .form-group input[type="text"] {
        padding: 12px 14px;
        border: 1.5px solid #ddd;
        border-radius: 10px;
        font-size: 16px;
        outline: none;
        transition: border-color 0.2s;
        background: #fafafa;
        width: 100%;
    }

    .mvc-pages .form-group input:focus {
        border-color: #2f4a6d;
        background: #fff;
    }

.mvc-pages .text-danger {
    color: #e55a2b;
    font-size: 13px;
}

.mvc-pages .validation-summary-errors ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    color: #e55a2b;
    font-size: 13px;
}

.mvc-pages .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.mvc-pages .auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
}

    .mvc-pages .auth-links a {
        color: #2f4a6d;
        text-decoration: underline;
    }

/* Header right group */
.mvc-pages .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 4px;
}

/* Account avatar — shown when logged in; Login/Register buttons show instead when logged out */
.mvc-pages .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2f4a6d;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.mvc-pages .user-avatar:hover {
    background: #1e3247;
}

.mvc-pages .nav-link-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #2f4a6d;
    white-space: nowrap;
}

.mvc-pages .nav-link-btn:hover {
    background: rgba(47, 74, 109, 0.1);
}

.mvc-pages .nav-link-btn-primary {
    background: #2f4a6d;
    color: #fff;
}

.mvc-pages .nav-link-btn-primary:hover {
    background: #1e3247;
}

/* Nav dropdown */
.mvc-pages .nav-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mvc-pages .nav-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 200px;
    z-index: 200;
    padding: 8px 0;
}

.mvc-pages .nav-dropdown.open {
    display: block;
}

.mvc-pages .nav-dropdown-user {
    padding: 12px 16px 10px;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mvc-pages .nav-dropdown-user strong {
    color: #2f4a6d;
    display: block;
    font-size: 14px;
}

.mvc-pages .nav-dropdown-item,
.mvc-pages .nav-dropdown-item-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
    box-sizing: border-box;
}

.mvc-pages .nav-dropdown-item:hover,
.mvc-pages .nav-dropdown-item-btn:hover {
    background: #f3eee8;
    color: #2f4a6d;
}

/* Testimonials */
.mvc-pages .testimonials {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 8px;
}

.mvc-pages .testimonial-card {
    background: #fdf5ee;
    border-radius: 14px;
    padding: 20px 20px 16px 20px;
}

.mvc-pages .testimonial-quote-mark {
    font-size: 52px;
    line-height: 1;
    color: #e55a2b;
    font-family: Georgia, serif;
    margin-bottom: 4px;
}

.mvc-pages .testimonial-text {
    font-style: italic;
    font-size: 15px;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.mvc-pages .testimonial-author {
    font-size: 13px;
    color: #888;
    margin: 0;
}
