/* ========================================= */
/* BLUE DIAMOND THEME - MAIN STYLESHEET      */
/* ========================================= */

/* 1. Глобални променливи (Цветова палитра) */
:root {
    --color-bg-page: #f0f9ff;       /* Very Pale Blue (Alice Blue/Slate 50) */
    --color-bg-card: #ffffff;       /* White */
    --color-bg-accent: #e0f2fe;     /* Sky Blue 100 (Замества Blush/Pink) */
    --color-text-main: #0f172a;     /* Slate 900 */
    --color-primary: #1e3a8a;       /* Royal Blue (Замества Gold) */
    --color-primary-light: #3b82f6; /* Bright Blue */
    --color-secondary: #64748b;     /* Slate 500 */
    --color-cta: #2563eb;           /* Call to Action Blue */
    --color-border: #e2e8f0;        /* Slate 200 */
}

/* 2. Основни настройки */
body {
    background-color: var(--color-bg-page) !important;
    font-family: 'Inter', sans-serif;
    color: var(--color-text-main);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif-font {
    font-family: 'Playfair Display', serif; /* Добавя луксозно усещане */
}

/* 3. Пренаписване на стари класове (Overrides) */
.bg-blush {
    background-color: var(--color-bg-accent) !important;
    border-color: #bae6fd !important;
    color: var(--color-primary);
}

.text-accent-dark {
    color: var(--color-primary) !important;
}

.border-accent-dark {
    border-color: var(--color-primary) !important;
}

.bg-primary {
    background-color: #ffffff !important;
    border: 1px solid var(--color-border);
}

.bg-secondary {
    background-color: #475569 !important; /* Slate color */
}

/* 4. Ценови Карти (Pricing Cards) */
.pricing-card {
    background-color: #ffffff;
    border: 2px solid var(--color-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem;
    position: relative;
    overflow: visible; /* ВАЖНО: Позволява на етикетите TOP да излизат извън кутията */
}

/* Картата по средата (Най-продаваната - 2 бр) */
.pricing-card[data-qty="2"] {
    background-color: #eff6ff !important;
    border-color: var(--color-primary-light) !important;
}

/* Избрана карта (State: Selected) */
.pricing-card.selected {
    border-color: var(--color-primary) !important;
    background-color: #dbeafe !important; /* Blue 100 */
    transform: scale(1.03);
    box-shadow: 0 20px 25px -5px rgba(30, 58, 138, 0.15), 0 8px 10px -6px rgba(30, 58, 138, 0.1);
    z-index: 10;
}

/* 5. Плаващи елементи (Desktop Base Styles) */
.floating-bubble {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 4px solid var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-main);
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Под банера за бисквитки */
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.floating-bubble:hover {
    transform: scale(1.05);
    background: #fff;
}

.floating-viewers-bubble {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 49;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 6. Анимации */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.animate-pulse-custom {
    animation: pulse-blue 2s infinite;
}

/* 7. Marquee (Лентата с бягащ текст) */
.marquee-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.marquee-track span {
    padding-right: 4rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* 8. Модали (Modals) */
.modal {
    display: none; /* Скрито по подразбиране */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.7); /* Тъмно син полупрозрачен фон */
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    text-align: center;
}

/* 9. Upsell елементи */
.upsell-option {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.upsell-option:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary-light);
}

/* 10. FAQ (Често задавани въпроси) */
.faq-question {
    cursor: pointer;
    background: white;
    transition: background-color 0.3s ease;
}
.faq-question:hover {
    background-color: #f8fafc;
}
.faq-answer {
    border-top: 1px solid var(--color-border);
}

/* 11. Картички (Radio Options) */
.card-option {
    position: relative;
    border: 2px solid transparent;
}
/* Когато е избрана (JS добавя клас .selected) */
.card-option.selected {
    border-color: var(--color-primary);
    background-color: #eff6ff;
}
.card-option.selected::after {
    content: '✔';
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================================= */
/* 📱 MOBILE FIXES & Z-INDEX (Критични поправки за мобилни)   */
/* ========================================================= */

/* 1. Банер за бисквитки - Най-висок приоритет */
#cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 2147483647 !important; /* Максимален слой */
    
    /* Повдигане за iPhone (Safe Area) */
    padding-bottom: env(safe-area-inset-bottom) !important; 
    margin-bottom: 0 !important;
}

/* 2. Мобилни настройки за плаващите елементи */
@media (max-width: 640px) {
    
    /* Плаващият бутон за поръчка (Мобилна версия) */
    .floating-bubble {
        position: fixed !important;
        /* Повдигаме го малко от дъното, за да се вижда заоблянето */
        bottom: 15px !important; 
        
        /* Задаваме отстъпи отляво и отдясно */
        left: 15px !important;
        right: 15px !important;
        width: auto !important; /* Вече не е 100%, а се определя от отстъпите */
        
        /* Правим го напълно заоблен */
        border-radius: 50px !important; 
        
        padding: 12px 10px !important;
        
        /* Разпределение на елементите */
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        
        animation: none !important; 
        
        /* Слой */
        z-index: 9999 !important; 
        
        /* Важно за iPhone: добавяме малко допълнително място отдолу, ако има "home bar" */
        margin-bottom: env(safe-area-inset-bottom) !important;
        
        background: #ffffff !important;
        /* Силна сянка, за да се отделя от сайта */
        box-shadow: 0 4px 20px rgba(30, 58, 138, 0.25) !important;
        border: 2px solid var(--color-primary) !important;
    }

    /* Плаващото балонче "42 гледат" */
    .floating-viewers-bubble {
        /* Повдигаме го над основния бутон */
        bottom: 80px !important; 
        left: 10px !important;
        z-index: 9998 !important; /* Под бутона за поръчка */
    }

    /* Корекция на заглавията за мобилни */
    h1 {
        font-size: 2rem !important; 
        line-height: 1.2 !important;
    }
}

/* ========================= */
/* ❄️ SNOWFALL EFFECT ❄️   */
/* ========================= */

.snowflake {
    position: absolute;
    top: -30px;
    color: #dbeafe; /* Ice Blue */
    text-shadow: 0 0 2px rgba(30, 58, 138, 0.4); 
    pointer-events: none;
    user-select: none;
    /* На мобилни го слагаме под интерфейса (9997), за да не пречи на бутоните */
    z-index: 9997 !important; 
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-30px) translateX(0) rotate(0deg);
        opacity: 0.9;
    }
    100% {
        transform: translateY(105vh) translateX(50px) rotate(360deg);
        opacity: 0.2;
    }
}
/* --- INTER FONT --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-cyrillic_cyrillic-ext_latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-cyrillic_cyrillic-ext_latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-cyrillic_cyrillic-ext_latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-cyrillic_cyrillic-ext_latin-700.woff2') format('woff2');
}

/* --- PLAYFAIR DISPLAY FONT --- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-v40-cyrillic_latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-v40-cyrillic_latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-v40-cyrillic_latin-700.woff2') format('woff2');
}