/* ===== БАЗОВЫЕ СТИЛИ ДЛЯ ЛОГОТИПА ===== */
#logo {
    position: relative; /* Чтобы псевдоэлементы позиционировались относительно лого */
    display: inline-block;
    transition: transform 0.3s ease;
}

#logo a {
    display: block;
    position: relative;
}

/* ===== НОВОГОДНЕЕ ОФОРМЛЕНИЕ (зима) ===== */
body.holiday-winter #logo,
body.holiday-new-year #logo,
body.holiday-christmas #logo {
    position: relative;
    display: inline-block;
}

body.holiday-winter #logo::after,
body.holiday-new-year #logo::after,
body.holiday-christmas #logo::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 130px;
    width: 23px;
    height: 23px;
    background: url('/wp-content/themes/flatsome-child/assets/images/winter-hat.png') no-repeat center center;
    background-size: contain;
    z-index: 10;
    pointer-events: none;       /* чтобы клик по шапке не мешал переходу по ссылке */
    transform: rotate(10deg);
    filter: hue-rotate(220deg); /* смена цвета шапки */
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Эффект при наведении: возвращаем исходный цвет и чуть увеличиваем наклон */
body.holiday-winter #logo:hover::after,
body.holiday-new-year #logo:hover::after,
body.holiday-christmas #logo:hover::after {
    filter: hue-rotate(0deg);
    transform: rotate(14deg) scale(1.05);
}

/* На мобильных – шапка меньше, позиционирование подстраиваем */
@media (max-width: 768px) {
    body.holiday-winter #logo::after,
    body.holiday-new-year #logo::after,
    body.holiday-christmas #logo::after {
        width: 23px;
        height: 23px;
        top: -1px;
        right: -12px;
    }
}

/* Падающий снег (опционально, можно добавить через отдельный слой) */
body.holiday-winter::before,
body.holiday-new-year::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.8"/><circle cx="80" cy="40" r="1.5" fill="%23ffffff" opacity="0.6"/><circle cx="50" cy="70" r="2.5" fill="%23ffffff" opacity="0.7"/></svg>');
    background-repeat: repeat;
    animation: snow 10s linear infinite;
    z-index: 9999;
    opacity: 0.7;
}

@keyframes snow {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

/* ===== 23 ФЕВРАЛЯ (День защитника Отечества) ===== */
body.holiday-defender #logo::after {
    content: '★';
    position: absolute;
    top: 11px;
    right: 50px;
    font-size: 24px;
    color: #d4af37; /* Золотой */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 10;
    transform: rotate(10deg);
}

body.holiday-defender #logo:hover::after {
    transform: rotate(25deg) scale(1.2);
    color: #ff0000;
}

/* ===== 9 МАЯ (День Победы) ===== */
body.holiday-victory #logo::after {
    content: '';
    position: absolute;
    top: 13px;
    right: 46px;
    width: 50px;
    height: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="40" y="10" width="20" height="80" fill="%23ffa500"/><rect x="40" y="20" width="20" height="10" fill="%23000"/><rect x="40" y="50" width="20" height="10" fill="%23000"/><rect x="40" y="70" width="20" height="10" fill="%23000"/><path d="M50 5 L60 20 L75 20 L63 30 L68 45 L50 35 L32 45 L37 30 L25 20 L40 20 Z" fill="%23ff0000"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

body.holiday-victory #logo:hover::after {
    transform: rotate(15deg) scale(1.1);
}

/* ===== 8 МАРТА (Международный женский день) ===== */
body.holiday-women #logo::after {
    content: '🌸';
    position: absolute;
    top: 13px;
    right: 46px;
    font-size: 28px;
    color: #ff69b4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    z-index: 10;
    transform: rotate(-10deg);
}

body.holiday-women #logo:hover::after {
    transform: rotate(10deg) scale(1.2);
    color: #ff1493;
}

/* ===== ОСТАЛЬНЫЕ ПРАЗДНИКИ (шаблоны) ===== */
/* 1 мая - Праздник Весны и Труда */
body.holiday-spring #logo::after {
    content: '🌿';
    position: absolute;
    top: 13px;
    right: 46px;
    font-size: 24px;
    color: #228b22;
    transform: rotate(-5deg);
}

/* 12 июня - День России */
body.holiday-russia #logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #fff, #0039a6, #d52b1e);
    border-radius: 3px;
}

/* 4 ноября - День народного единства */
body.holiday-unity #logo::after {
    content: '✊';
    position: absolute;
    top: 13px;
    right: 46px;
    font-size: 24px;
    color: #d4af37;
    transform: rotate(10deg);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    #logo::after {
        top: 13px !important;
        right: 46px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
}
