/* ============================================================
   ЗИМНИЙ / НОВОГОДНИЙ СТИЛЬ SAKURA TEAMS
   Общие элементы для всех страниц сайта:
   анимированный фон, праздничный баннер, морозные заголовки.
   ============================================================ */

/* Анимированный фон (canvas) */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
}

/* Праздничная плашка — в левом краю нижнего футера */
.winter-banner {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    z-index: 2;
    display: inline-block;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.88), rgba(63, 81, 181, 0.88));
    color: #fff;
    font-family: 'Mountains of Christmas', 'Georgia', serif;
    font-size: clamp(0.72rem, 2vw, 0.95rem);
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(200, 240, 255, 0.6);
    box-shadow: 0 4px 14px rgba(79, 195, 247, 0.35);
    animation: bannerFloat 3s infinite ease-in-out;
    white-space: nowrap;
    user-select: none;
}

/* Анимация через margin (transform занят вертикальным центрированием) */
@keyframes bannerFloat {
    0%, 100% {
        margin-top: 0;
    }
    50% {
        margin-top: -4px;
    }
}

/* На очень узких экранах скрываем, чтобы не перекрывала ссылки футера */
@media (max-width: 700px) {
    .winter-banner {
        display: none;
    }
}

/* Морозный шрифт для крупных заголовков страниц */
.about-hero,
.projects-welcome,
.users-welcome,
.cabinet-welcome {
    font-family: 'Mountains of Christmas', 'Playfair Display', 'Georgia', serif !important;
    letter-spacing: 2px;
}

/* Декоративные снежинки рядом с заголовками страниц */
.about-hero::after,
.projects-welcome::after,
.users-welcome::after,
.cabinet-welcome::after {
    content: ' ❄️';
    font-size: 0.7em;
    opacity: 0.85;
}

/* Прозрачность секций, чтобы анимация была видна на фоне */
.about-section,
.projects-section,
.empty-section,
.users-section,
.admin-section,
.crm-section {
    background: rgba(10, 22, 44, 0.25) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

/* ============================================================
   ЕДИНЫЙ КАРКАС СТРАНИЦ (как на главной странице index.html)
   ============================================================ */

/* Фон как на главной странице */
body {
    background: linear-gradient(rgba(14, 30, 58, 0.82), rgba(6, 16, 36, 0.94)), url('img/New Year.png') no-repeat center center / cover !important;
}

/* ------------------- ВЕРХНЯЯ ПАНЕЛЬ (как на главной) ------------------- */
.empty-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 50px;
    background: rgba(16, 32, 60, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10;
    pointer-events: none;
    border-bottom: 1px solid rgba(121, 184, 255, 0.4);
    box-shadow: 0 0 25px rgba(79, 195, 247, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
}

.header-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    pointer-events: auto;
}

/* Отступ между кнопками меню (запасной для браузеров без поддержки flex gap) */
.header-nav > * {
    margin: 2px 4px;
}

@supports (gap: 1px) {
    .header-nav {
        gap: 8px;
    }
    .header-nav > * {
        margin: 0;
    }
}

.nav-btn {
    font-family: 'Georgia', serif;
    font-size: clamp(0.72rem, 2.2vw, 0.9rem);
    color: #dbeeff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(121, 184, 255, 0.4);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #a5e1ff, #4fc3f7);
    color: #fff;
    border-color: #4fc3f7;
    box-shadow: 0 4px 14px rgba(79, 195, 247, 0.45);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 190px;
    background: rgba(20, 40, 72, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(121, 184, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s;
    overflow: hidden;
    z-index: 30;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 18px;
    color: #dde9fb;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background: rgba(79, 195, 247, 0.3);
    color: #fff;
}

.login-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    font-family: 'Georgia', serif;
    font-size: clamp(0.72rem, 2.2vw, 0.9rem);
    color: #fff;
    background: linear-gradient(135deg, #a5e1ff, #4fc3f7);
    border: 1px solid rgba(79, 195, 247, 0.6);
    padding: 5px 16px;
    border-radius: 20px;
    cursor: pointer;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(79, 195, 247, 0.3);
    transition: all 0.3s;
    z-index: 2;
}

.login-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.45);
    transform: translateY(-50%) scale(1.04);
}

/* Кнопки-действия справа в шапке (кабинет) */
.header-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    pointer-events: auto;
    z-index: 2;
}

/* ------------------- НИЖНЯЯ ПАНЕЛЬ (как на главной) ------------------- */
.empty-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 58px;
    background: rgba(16, 32, 60, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10;
    pointer-events: none;
    border-top: 1px solid rgba(121, 184, 255, 0.4);
    box-shadow: 0 0 25px rgba(79, 195, 247, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.footer-links {
    display: flex;
    gap: 16px;
    pointer-events: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #dbeeff;
    text-decoration: none;
    font-size: clamp(0.68rem, 2.2vw, 0.82rem);
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 16px;
    transition: all 0.3s;
    white-space: nowrap;
}

.footer-links a:hover {
    background: rgba(79, 195, 247, 0.28);
    color: #fff;
    text-shadow: 0 0 8px rgba(121, 184, 255, 0.5);
}

.empty-footer::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(90deg,
            #4fc3f7, #a5e1ff 20px, #ffd54f 40px);
    animation: stripeMove 2s linear infinite;
    opacity: 0.6;
}

@keyframes stripeMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 0;
    }
}

.copyright-text {
    font-family: 'Georgia', serif;
    font-size: clamp(0.68rem, 2.6vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #a5e1ff, #4fc3f7, #ffd54f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 12px rgba(79, 195, 247, 0.4);
    white-space: nowrap;
    display: inline-block;
}

/* ---------- Контент: между шапкой и подвалом ---------- */
.about-section,
.projects-section,
.empty-section,
.users-section,
.admin-section,
.crm-section {
    top: 58px !important;
    bottom: 58px !important;
    height: auto !important;
}

/* Адаптив, как на главной странице */
@media (max-width: 700px) {
    .empty-header {
        min-height: 44px;
        padding: 6px 10px;
    }
    .empty-footer {
        height: 50px;
    }
    .about-section,
    .projects-section,
    .empty-section,
    .users-section,
    .admin-section,
    .crm-section {
        top: 52px !important;
        bottom: 50px !important;
    }
    .header-nav {
        gap: 6px;
    }
    .nav-btn {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    .dropdown-menu {
        left: auto;
        right: 0;
        min-width: 160px;
    }
    .login-btn {
        right: 8px;
        padding: 4px 12px;
        font-size: 0.7rem;
    }
    .header-actions {
        right: 8px;
        gap: 6px;
    }
    .footer-links {
        gap: 12px;
    }
    .copyright-text {
        letter-spacing: 1px;
    }
}

/* На мобильных — компактная плашка */
@media (max-width: 700px) {
    .winter-banner {
        font-size: 0.65rem;
        padding: 2px 8px;
        letter-spacing: 0.5px;
        border-radius: 14px;
    }
}
