/* ==========================================================================
   TeamPollster.com HARMONIZED BRAND DIRECTORY (Vite & Tailwind Tokens Sync)
   ========================================================================== */

:root {
    /* Alusvärvid otse index.css failist (muudetud käsitletavateks HEX/RGBA väärtusteks) */
    --bg-white: #ffffff;
    --bg-slate-50: #f8fafc;
    --border-slate-200: #e2e8f0;
    --text-slate-900: #0f172a;
    --text-slate-600: #475569;
    --text-slate-500: #64748b;
    --text-slate-200: #cbd5e1;

    /* Brändi spetsiifilised värvid ja gradiendid otse Landing.tsx failist */
    --brand-deep-green: #0b3d2e;
    --brand-emerald-500: #10b981;
    --brand-emerald-600: #059669;
    --brand-dark-blue: #0a2540;

    /* Legacy Fallback Aliases to clear unresolved compiler warnings */
    --color-secondary: var(--brand-emerald-500);
    --color-text-light: var(--text-slate-500);
    --color-border: var(--border-slate-200);
    --color-primary: var(--brand-deep-green);
    --color-accent: var(--brand-emerald-500);
    --color-bg-secondary: var(--bg-slate-50);

    /* Ant Design & Shadcn raadiuse sünkroniseerimine (borderRadius: 8) */
    --radius-standard: 8px;
    --radius-large: 16px;

    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max-width: 80rem; /* max-w-7xl ekvivalent */
}

/* Lähtestamine ja tüpograafia ühtlustamine base-kihiga */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: var(--border-slate-200);
}

body {
    font-family: var(--font-sans), sans-serif;
    color: var(--text-slate-900);
    background-color: var(--bg-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Crawleri-sõbralik tekstihierarhia */
h1, h2, h3, h4 {
    color: var(--text-slate-900);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-slate-600);
}

/* Frosted Glass päis (Kopeerib täpselt Landing.tsx sticky headerit) */
.header-navigation {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-slate-200);
    position: sticky;
    top: 0;
    z-index: 40;
    height: 4rem;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-icon-box {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-standard);
    background: linear-gradient(135deg, var(--brand-deep-green) 0%, var(--brand-emerald-500) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-weight: 700;
}

.brand-logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-slate-900);
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-links a {
    color: var(--text-slate-600);
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-slate-900);
}

/* Right-side header cluster (lang switcher + sign-in) to mirror React shell */
.header-actions-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.static-lang-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--bg-slate-50);
    border: 1px solid var(--border-slate-200);
    border-radius: var(--radius-standard);
    padding: 2px;
    gap: 2px;
}

.lang-pill {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-slate-500);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    line-height: 1.2;
    cursor: default;
    user-select: none;
}

.lang-pill.active {
    background: var(--bg-white);
    color: var(--text-slate-900);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-static-signin {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.25rem;
    padding: 0 0.85rem;
    border-radius: var(--radius-standard);
    background: var(--brand-emerald-600);
    color: var(--bg-white) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: background-color 0.2s;
}

.btn-static-signin:hover {
    background: var(--brand-emerald-500);
}

.signin-icon {
    width: 1rem;
    height: 1rem;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hero sektsioon koos Landing.tsx ametliku kolmikhübriid-gradiendiga */
.hero-showcase {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #06241b 0%, var(--brand-deep-green) 50%, var(--brand-dark-blue) 100%);
    color: var(--bg-white);
    padding: 6rem 1.5rem;
    text-align: center;
}

/* Radial valguskumad hero taustal */
.hero-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
            radial-gradient(circle at 20% 20%, var(--brand-emerald-500) 0, transparent 40%),
            radial-gradient(circle at 80% 60%, #1e40af 0, transparent 40%);
    pointer-events: none;
}

.hero-content-shell {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
    z-index: 10;
}

.hero-showcase h1 {
    color: var(--bg-white);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-showcase p {
    color: var(--text-slate-200);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Sisulehtede üldine wrapper konsteiner */
.main-wrapper {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 0 1.5rem;
    min-height: 60vh;
}

/* Komponendid: Kaardid ja Grid süsteemid */
.grid-layout-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card, .pricing-card, .blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-slate-200);
    border-radius: var(--radius-large);
    padding: 2rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover, .blog-card:hover {
    shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Sisendväljad ja nupud - Ant Design sünkroonsus */
.input-field-standard {
    width: 100%;
    height: 2.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 1rem;
    color: var(--text-slate-900);
    background-color: var(--bg-white);
    border: 1px solid var(--border-slate-200);
    border-radius: var(--radius-standard);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field-standard:focus {
    outline: none;
    border-color: var(--brand-emerald-500);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.btn-brand-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-emerald-600);
    color: var(--bg-white) !important;
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: var(--radius-standard);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-brand-primary:hover {
    background-color: var(--brand-emerald-500);
    text-decoration: none;
}

/* Globaalne jalus */
.footer-global {
    background-color: var(--bg-white);
    border-t: 1px solid var(--border-slate-200);
    color: var(--text-slate-500);
    padding: 2rem 1.5rem;
    margin-top: 6rem;
    font-size: 0.875rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-slate-500);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-slate-900);
}

/* Mobile Toggle Utilities */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-slate-900);
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
}

.mobile-menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-navigation-tray {
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-slate-200);
    padding: 1.5rem;
    display: none;
    z-index: 30;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.mobile-navigation-tray.is-active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-slate-600);
    text-decoration: none;
}

/* Viewport Specific Adjustments */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .mobile-menu-toggle, .mobile-navigation-tray {
        display: none !important;
    }
}