/* ==========================================================================
   HUB CORE — Глобальные переменные, сбросы, типографика и общие компоненты
   ========================================================================== */

/* 1. Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

/* 2. Глобальные переменные */
:root {
    /* Цветовая палитра */
    --ink: #0f121d;
    --text: #2f3442;
    --muted: #64748b;
    --bg: #eef2f4;
    --panel: #ffffff;
    --card: #ffffff;
    --line: rgba(15, 21, 65, 0.06);
    --border: rgba(15, 21, 65, 0.06);
    --soft: #f1f5f9;

    /* Акценты */
    --red: #f04a36;
    --red-hover: #d93d2b;
    --red-active: #c53020;
    --blue: #2563eb;
    --mint: #0ea5e9;
    --green: #10b981;

    /* Размеры и скругления */
    --radius: 14px;
    --max-w: 480px;
    --app-height: 100svh;
    --header-bg: var(--bg);
}



/* 3. Базовый сброс (Reset) */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    background: #eef2f4;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
    scroll-behavior: smooth;
}



body {
    width: 100%;
    color: var(--text);
    background: var(--bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

/* Сброс для интерактивных элементов */
button,
input,
label,
select,
textarea {
    font: inherit;
    touch-action: manipulation;
}

button,
label {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Хелпер для акцентного шрифта */
.font-outfit {
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* ==========================================================================
   4. Унифицированная шапка (.hub-header)
   ========================================================================== */
.hub-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    min-height: 64px;
    padding: 10px 16px 9px;
    border-bottom: 1px solid var(--line);
    background: var(--header-bg, #ffffff);
}

.hub-header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.hub-header-logo {
    display: block;
    width: 130px;
    height: auto;
}

.hub-header-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.1px;
}

.hub-status-dot {
    display: none !important;
}

@keyframes statusPulse {
    0% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.6; transform: scale(0.9); }
}

/* ==========================================================================
   5. Общие UI элементы (Street-Art маркеры и эффекты)
   ========================================================================= */

/* Маркер выделения (Street-Art Highlight) */
.hub-marker-red,
.chat-marker-red {
    position: relative;
    z-index: 1;
    background: none;
    color: inherit;
    font-weight: 850;
    padding: 0 4px;
}

.hub-marker-red::after,
.chat-marker-red::after {
    content: "";
    position: absolute;
    bottom: 1px;
    left: 0;
    right: 0;
    height: 45%;
    background: rgba(240, 74, 54, 0.18);
    z-index: -1;
    transform: rotate(-1deg) skewX(-3deg);
    border-radius: 1px;
}

/* Эффект зачеркивания */
.hub-strike-out,
.chat-strike-out {
    position: relative;
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
}

.hub-strike-out::after,
.chat-strike-out::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 2px;
    background: var(--red);
    transform: rotate(-3deg) translateY(-50%);
    opacity: 0.75;
}

/* ==========================================================================
   6. Базовые стили всплывающих окон (Overlays / Popups)
   ========================================================================== */
.hub-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(16, 17, 22, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: hubFadeIn 0.3s ease;
}

.hub-overlay-card {
    width: 100%;
    max-width: 420px;
    padding: 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 48px rgba(15, 21, 65, 0.25);
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: hubSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hubFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hubSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hub-stage.is-active, .test-card {
    animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   7. Верхний баннер (.hub-top-banner)
   ========================================================================== */
.hub-top-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    height: 44px; /* Increased from 36px */
    background: #0f121d; /* Sleek solid dark */
    color: #f8fafc; /* Light text */
    font-size: 13.5px; /* Increased from 12px */
    font-weight: 600;
    padding: 0 12px;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}



.hub-top-banner-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981; /* Green color */
    border-radius: 50%;
    flex-shrink: 0;
    animation: bannerDotPulse 2s infinite ease-in-out;
}

.hub-top-banner-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.1px;
}

.hub-top-banner-link {
    color: #ffffff; /* Clean white link */
    text-decoration: none; /* No default underline */
    border-bottom: 1px dashed rgba(255, 255, 255, 0.45); /* Elegant dashed line */
    font-weight: 700;
    transition: all 0.2s ease;
}

.hub-top-banner-link:hover {
    color: var(--red); /* Turn red on hover */
    border-bottom-color: var(--red);
}

.hub-top-banner-link:active {
    color: var(--red-active);
}

@keyframes bannerDotPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Дополнительная адаптивность для супер-узких экранов */
@media (max-width: 360px) {
    .hub-top-banner {
        font-size: 11px;
        gap: 6px;
    }
    .hub-top-banner-dot {
        width: 5px;
        height: 5px;
    }
}

/* (End of file) */

