/*
Theme Name:   Hello Elementor Child — CYInsider
Theme URI:    https://cyinsider.com
Description:  Дочерняя тема для CYInsider на базе Hello Elementor
Author:       CYInsider
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/* ============================================================
   ГЛОБАЛЬНЫЕ CSS-ПЕРЕМЕННЫЕ БРЕНДА CYINSIDER
   Изменяйте только здесь — всё остальное подтянется автоматически
   ============================================================ */
:root {
    /* Основные цвета бренда */
    --cy-brand:          #0e5ed2;
    --cy-brand-dark:     #0948a8;
    --cy-brand-light:    #e8f0fb;
    --cy-brand-glow:     rgba(14, 94, 210, 0.18);

    /* Фоны */
    --cy-bg:             #f5f5f7;
    --cy-bg-card:        #ffffff;
    --cy-bg-glass:       rgba(255, 255, 255, 0.72);

    /* Типографика */
    --cy-text-primary:   #1d1d1f;
    --cy-text-secondary: #6e6e73;
    --cy-text-tertiary:  #aeaeb2;

    /* Радиусы скруглений (iOS-стиль) */
    --cy-radius-sm:      10px;
    --cy-radius-md:      16px;
    --cy-radius-lg:      24px;
    --cy-radius-xl:      32px;

    /* Тени */
    --cy-shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.06);
    --cy-shadow-md:      0 8px 24px rgba(0, 0, 0, 0.09);
    --cy-shadow-lg:      0 20px 48px rgba(0, 0, 0, 0.12);

    /* Навигация */
    --cy-nav-height:     78px;

    /* Бордеры */
    --cy-border:         rgba(0, 0, 0, 0.07);

    /* Анимация */
    --cy-ease:           cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   БАЗОВЫЙ СБРОС И ТИПОГРАФИКА
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background-color: var(--cy-bg);
    color: var(--cy-text-primary);
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    /* Отступ снизу под фиксированную навигацию */
    padding-bottom: calc(var(--cy-nav-height) + 16px);
}

/* ============================================================
   ОТСТУПЫ ДЛЯ HELLO ELEMENTOR
   Убираем лишние отступы которые тема добавляет по умолчанию
   ============================================================ */
.site-header,
.site-footer {
    display: none !important; /* Используем Elementor Header/Footer вместо встроенных */
}

.page-content,
.entry-content {
    padding: 0;
    margin: 0;
}

/* ============================================================
   ГЛОБАЛЬНЫЕ СТИЛИ ELEMENTOR-КОНТЕЙНЕРОВ
   ============================================================ */

/* Основной фон страниц */
.elementor-section-wrap,
.e-con-inner {
    background-color: transparent;
}

/* ============================================================
   ТИПОГРАФИКА — ПОДКЛЮЧЕНИЕ ШРИФТА MANROPE
   (также добавить через Elementor → Site Settings → Custom Fonts
   или через functions.php — см. файл ниже)
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', -apple-system, sans-serif;
    letter-spacing: -0.03em;
    color: var(--cy-text-primary);
}

p, li, span, a {
    font-family: 'Manrope', -apple-system, sans-serif;
}

a {
    color: var(--cy-brand);
    text-decoration: none;
    transition: opacity 0.2s var(--cy-ease);
}

a:hover {
    opacity: 0.75;
}

/* ============================================================
   ГЛОБАЛЬНЫЕ КОМПОНЕНТЫ — используются на всех страницах
   ============================================================ */

/* Карточка (универсальный стиль) */
.cy-card {
    background: var(--cy-bg-card);
    border-radius: var(--cy-radius-lg);
    border: 1px solid var(--cy-border);
    box-shadow: var(--cy-shadow-sm);
    transition: transform 0.22s var(--cy-ease), box-shadow 0.22s var(--cy-ease);
}

.cy-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cy-shadow-md);
}

/* Бейдж категории */
.cy-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--cy-brand-light);
    color: var(--cy-brand);
}

/* Кнопка бренда */
.cy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--cy-brand);
    color: #ffffff;
    border-radius: var(--cy-radius-md);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--cy-brand-glow);
    transition: transform 0.2s var(--cy-ease), box-shadow 0.2s var(--cy-ease);
}

.cy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--cy-brand-glow);
    color: #ffffff;
    opacity: 1;
}

.cy-btn:active {
    transform: scale(0.97);
}

/* ============================================================
   НИЖНЯЯ НАВИГАЦИЯ — iOS СТИЛЬ
   Фиксированная, стеклянный эффект, safe-area для iPhone
   ============================================================ */
.cy-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: var(--cy-nav-height);

    /* Стеклянный эффект */
    background: var(--cy-bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    border-top: 1px solid var(--cy-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);

    display: flex;
    align-items: flex-start;
    padding-top: 8px;

    /* iPhone home indicator */
    padding-bottom: env(safe-area-inset-bottom);
}

.cy-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 0;
    position: relative;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s var(--cy-ease);
}

.cy-nav-item:active {
    transform: scale(0.88);
}

/* Индикатор активной вкладки сверху */
.cy-nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    width: 20px;
    height: 3px;
    background: var(--cy-brand);
    border-radius: 0 0 4px 4px;
}

.cy-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s var(--cy-ease), transform 0.2s var(--cy-ease);
}

.cy-nav-item.active .cy-nav-icon {
    background: var(--cy-brand-light);
    transform: translateY(-2px);
}

.cy-nav-label {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--cy-text-tertiary);
    letter-spacing: 0.1px;
    font-family: 'Manrope', sans-serif;
    transition: color 0.2s;
}

.cy-nav-item.active .cy-nav-label {
    color: var(--cy-brand);
}

/* Badge (уведомление на иконке) */
.cy-nav-badge {
    position: absolute;
    top: 0;
    right: calc(50% - 20px);
    width: 16px;
    height: 16px;
    background: #ff3b30;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--cy-bg);
}

/* ============================================================
   СТРАНИЦА — WEATHER HUB
   ============================================================ */

/* Hero-блок с градиентом */
.cy-weather-hero {
    background: linear-gradient(135deg, var(--cy-brand) 0%, #1a78f2 50%, #0048a8 100%);
    border-radius: var(--cy-radius-xl);
    padding: 28px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(14, 94, 210, 0.32);
}

/* Декоративные круги */
.cy-weather-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

/* Карточка города */
.cy-city-card {
    background: var(--cy-bg-card);
    border-radius: var(--cy-radius-lg);
    padding: 16px;
    border: 1px solid var(--cy-border);
    box-shadow: var(--cy-shadow-sm);
    cursor: pointer;
    transition: transform 0.22s var(--cy-ease), box-shadow 0.22s var(--cy-ease), border-color 0.2s;
}

.cy-city-card:hover,
.cy-city-card.active {
    transform: translateY(-2px);
    box-shadow: var(--cy-shadow-md);
    border-color: var(--cy-brand);
}

/* ============================================================
   AI СТИЛИСТ — блок с рекомендацией по одежде
   ============================================================ */
.cy-ai-stylist {
    background: var(--cy-bg-card);
    border-radius: var(--cy-radius-lg);
    padding: 16px;
    border: 1px solid var(--cy-border);
    box-shadow: var(--cy-shadow-sm);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cy-ai-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* ============================================================
   КАРТОЧКИ НОВОСТЕЙ
   ============================================================ */
.cy-news-card {
    background: var(--cy-bg-card);
    border-radius: var(--cy-radius-lg);
    padding: 20px;
    border: 1px solid var(--cy-border);
    box-shadow: var(--cy-shadow-sm);
    margin-bottom: 12px;
    transition: transform 0.2s var(--cy-ease), box-shadow 0.2s var(--cy-ease);
}

.cy-news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cy-shadow-md);
}

/* Блок "Контекст для экспата" */
.cy-expat-context {
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--cy-brand-light);
    border-radius: var(--cy-radius-sm);
    border-left: 3px solid var(--cy-brand);
}

/* ============================================================
   МАРКЕТПЛЕЙС
   ============================================================ */
.cy-business-card {
    background: var(--cy-bg-card);
    border-radius: var(--cy-radius-lg);
    padding: 18px;
    border: 1px solid var(--cy-border);
    box-shadow: var(--cy-shadow-sm);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.2s var(--cy-ease), box-shadow 0.2s var(--cy-ease);
}

.cy-business-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cy-shadow-md);
}

.cy-premium-badge {
    padding: 3px 10px;
    background: linear-gradient(90deg, #f7c55a, #f09819);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    color: white;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .cy-weather-hero {
        padding: 20px;
        border-radius: var(--cy-radius-lg);
    }
}

@media (max-width: 480px) {
    :root {
        --cy-radius-xl: 24px;
        --cy-radius-lg: 18px;
    }
}
