﻿/* ── hub.css — Sola Tools Hub Landing Page ────────────── */
/* Inherits the same brand tokens as the survey stylesheet  */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --teal: #0B7C87;
    --teal-2: #0D7B8F;
    --teal-3: #e0f5f7;
    --teal-4: #7EDBE6;
    --coral: #e05533;
    --coral-2: #fbeee9;
    --amber: #c47b12;
    --amber-2: #fef3e0;
    --gold: #FFD400;
    --warm-orange: #F5A623;
    --ink: #1a1f2e;
    --ink-2: #4a5568;
    --ink-3: #8a94a6;
    --surface: #ffffff;
    --bg: #f4f6f9;
    --border: rgba(0,0,0,.09);
    --border-2: rgba(0,0,0,.15);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
    --font-body: 'Nunito', sans-serif;
    --font-display: 'Poppins', Georgia, serif;
    --trans: all .22s cubic-bezier(.4,0,.2,1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Page shell ──────────────────────────────────────── */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* ── Top bar ─────────────────────────────────────────── */
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

/*.topbar-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}*/

.topbar-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 12px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.01em;
}

.brand-sub {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .07em;
}

.topbar-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-3);
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
    background: #0D7B8F;
    position: relative;
    overflow: hidden;
    padding: 2.5rem 1.25rem 3.25rem;
}

    .hero::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        right: 0;
        height: 38px;
        background: var(--bg);
        clip-path: ellipse(55% 100% at 50% 100%);
    }

    /* Subtle watermark pattern */
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('../images/logo/header image_design element.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover; /* fills entire width/height */
        opacity: 15%;
    }

.hero-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    margin-bottom: .75rem;
}

.pulse-dot {
    color: #4ade80;
    animation: pulse-glow 2s ease-in-out infinite;
    font-size: 9px;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(.8);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 6vw, 36px);
    font-weight: 300;
    color: #F5ED27;
    line-height: 1.2;
    margin-bottom: .6rem;
}

    .hero-title em {
        font-style: italic;
    }

.hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,.72);
    font-weight: 600;
}

/* ── Content area ────────────────────────────────────── */
.tool-grid-wrap {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

/* ── Featured dashboards block ───────────────────────── */
.featured-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: var(--teal);
    margin-bottom: 1rem;
}

    .featured-label i {
        font-size: 9px;
    }

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Dash card ───────────────────────────────────────── */
.dash-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 14px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: var(--trans);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .dash-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--accent, var(--teal));
        border-radius: 0 3px 3px 0;
        opacity: 0;
        transition: opacity .2s;
    }

    .dash-card:hover {
        border-color: var(--accent, var(--teal));
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

        .dash-card:hover::before {
            opacity: 1;
        }

.dash-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-bg, var(--teal-3));
    color: var(--accent, var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--trans);
}

.dash-card:hover .dash-card-icon {
    background: var(--accent, var(--teal));
    color: #fff;
}

.dash-card-body {
    flex: 1;
    min-width: 0;
}

.dash-card-title {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-card-desc {
    display: block;
    font-size: 11.5px;
    color: var(--ink-3);
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-card-arrow {
    font-size: 10px;
    color: var(--ink-3);
    flex-shrink: 0;
    transition: var(--trans);
}

.dash-card:hover .dash-card-arrow {
    color: var(--accent, var(--teal));
    transform: translateX(2px);
}

/* ── Secondary tools ─────────────────────────────────── */
.secondary-label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: var(--ink-3);
    margin-bottom: 1rem;
}

.secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Tool card (secondary) ───────────────────────────── */
.tool-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 15px 15px;
    text-align: left;
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-body);
}

    .tool-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
        border-color: var(--border-2);
    }

    .tool-card.locked {
        opacity: .85;
    }

        .tool-card.locked:hover {
            opacity: 1;
        }

.tool-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.tool-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--accent-bg, var(--teal-3));
    color: var(--accent, var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: .03em;
}

.locked-badge {
    background: rgba(0,0,0,.06);
    color: var(--ink-3);
}

.tool-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
}

.tool-desc {
    font-size: 12px;
    color: var(--ink-3);
    font-weight: 600;
    line-height: 1.4;
}

/* ── Footer ──────────────────────────────────────────── */
.hub-footer {
    text-align: center;
    padding: 1.5rem 1.25rem;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-dot {
    opacity: .4;
}

/* ── Modal ───────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26,31,46,.55);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

    .modal-backdrop.open {
        opacity: 1;
        pointer-events: all;
    }

.modal-card {
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 2rem 1.75rem 2.5rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
    transform: translateY(30px);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 -8px 40px rgba(0,0,0,.12);
}

.modal-backdrop.open .modal-card {
    transform: translateY(0);
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--ink-3);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: .65rem;
    line-height: 1.25;
}

.modal-body {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.btn-modal-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 100%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--trans);
    box-shadow: 0 4px 14px rgba(11,124,135,.3);
    margin-bottom: 10px;
}

    .btn-modal-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(11,124,135,.38);
    }

.btn-modal-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--border-2);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--ink-3);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans);
}

    .btn-modal-ghost:hover {
        border-color: var(--ink-3);
        color: var(--ink);
        background: var(--bg);
    }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 500px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .secondary-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 2rem 1.25rem 3rem;
    }

    .tool-grid-wrap {
        padding: 1.5rem 1rem 2rem;
    }
}

@media (min-width: 501px) and (max-width: 640px) {
    .dash-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-user {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    white-space: nowrap;
}

.topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans);
}

    .topbar-btn:hover {
        background: var(--teal-2);
        color: #fff;
        transform: translateY(-1px);
    }