/*
 * СЕЗОННЫЕ ОБНОВЛЕНИЯ И НОВЫЕ СТИЛИ
 * Добавляет вайб сезонности и новые компоненты
 */

/* ==========================================
   СЕЗОННОСТЬ - Зимний вайб ❄️
   ========================================== */

/* Снежинки фон */
body::after {
    content: '❄️';
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 40px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    animation: snowfall 8s ease-in-out infinite;
}

@keyframes snowfall {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.15;
    }
    50% { 
        transform: translateY(20px) rotate(180deg);
        opacity: 0.25;
    }
}

/* Зимние декоративные элементы */
.hero-section-norman::after {
    content: '🎄';
    position: absolute;
    bottom: 20px;
    left: 40px;
    font-size: 60px;
    opacity: 0.1;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

/* Новогодний акцент */
:root {
    --seasonal-accent: #2E7D32; /* Зелёный ёлки */
    --seasonal-light: #81C784;
    --seasonal-glow: rgba(46, 125, 50, 0.2);
}

/* ==========================================
   КОМПАКТНАЯ СЕКЦИЯ "КАК ЭТО РАБОТАЕТ"
   ========================================== */

.how-it-works-compact {
    margin-top: 48px;
    padding: 40px;
    background: linear-gradient(135deg, #fff 0%, #faf8f3 100%);
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.compact-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 32px 0;
    text-align: center;
}

.compact-steps {
    display: grid;
    gap: 24px;
}

.compact-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.compact-step:hover {
    border-color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.compact-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(216, 67, 21, 0.3);
}

.compact-step-content {
    flex: 1;
}

.compact-step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.compact-step-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

.inline-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    transition: all 0.2s;
}

.inline-link:hover {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================
   TELEGRAM МОТИВАЦИЯ (ШАГ 3)
   ========================================== */

.telegram-motivation {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 20px;
    border: 3px dashed #2196F3;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}

/* Декоративный фон */
.telegram-motivation::before {
    content: '📱';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.motivation-icon {
    flex-shrink: 0;
    font-size: 64px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.motivation-content {
    flex: 1;
}

.motivation-title {
    font-size: 22px;
    font-weight: 700;
    color: #1565C0;
    margin: 0 0 12px 0;
}

.motivation-text {
    font-size: 16px;
    line-height: 1.7;
    color: #424242;
    margin: 0 0 20px 0;
}

.motivation-benefits {
    display: grid;
    gap: 12px;
}

.motivation-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #424242;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.benefit-emoji {
    font-size: 24px;
}

/* ==========================================
   НИЖНЯЯ НАВИГАЦИЯ - Обновления
   ========================================== */

/* Делаем все кнопки одинаковой ширины */
/* Нижняя навигация - красивое выравнивание */
.bottom-nav {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    gap: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 0;
}

.nav-item {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-color);
}

.nav-item:hover {
    background: var(--bg-light);
}

.nav-item:active {
    background: var(--bg-canvas);
    transform: scale(0.98);
}

.nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.nav-icon {
    font-size: 26px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nav-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.nav-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .nav-item {
        padding: 12px 8px;
    }
    
    .nav-icon {
        font-size: 24px;
    }
    
    .nav-label {
        font-size: 12px;
    }
    
    .nav-desc {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .nav-label {
        font-size: 11px;
    }
    
    .nav-desc {
        display: none;
    }
}

/* Убираем излишнюю анимацию step-icon */
.step-icon {
    font-size: 64px;
    margin-bottom: 16px;
    /* Убрали animation: float */
}

/* ==========================================
   АДАПТИВНОСТЬ
   ========================================== */

@media (max-width: 768px) {
    .compact-steps {
        gap: 16px;
    }
    
    .compact-step {
        padding: 20px;
        gap: 16px;
    }
    
    .compact-step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .compact-step-title {
        font-size: 16px;
    }
    
    .compact-step-text {
        font-size: 14px;
    }
    
    .telegram-motivation {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }
    
    .motivation-icon {
        font-size: 48px;
        text-align: center;
    }
    
    .motivation-title {
        font-size: 20px;
    }
    
    .motivation-text {
        font-size: 15px;
    }
    
    .nav-label {
        font-size: 12px;
    }
    
    .nav-desc {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .how-it-works-compact {
        padding: 24px 20px;
    }
    
    .compact-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .compact-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .compact-step:hover {
        transform: translateY(-4px);
    }
    
    .telegram-motivation {
        padding: 20px;
    }
    
    .motivation-title {
        font-size: 18px;
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    .nav-label {
        font-size: 11px;
    }
    
    .nav-desc {
        display: none; /* Скрываем подписи на малых экранах */
    }
}

/* ==========================================
   СЕЗОННЫЕ ЭФФЕКТЫ ДЛЯ КНОПОК
   ========================================== */

/* Лёгкий праздничный эффект для primary кнопок */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '✨';
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    opacity: 0;
    transition: all 0.5s ease;
}

.btn-primary:hover::before {
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    animation: sparkle 1s ease infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.2); }
}

/* Праздничные акценты на карточках товаров */
.product-card::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--seasonal-accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::before {
    opacity: 0.6;
    animation: glow-dot 1.5s ease infinite;
}

@keyframes glow-dot {
    0%, 100% { box-shadow: 0 0 0 0 var(--seasonal-glow); }
    50% { box-shadow: 0 0 0 8px var(--seasonal-glow); }
}
