/* style.css — финальная красивая версия 2025 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: url('img/ДраконаМама.jpg') center center/cover no-repeat fixed; /* linear-gradient(135deg, #eff6ff 0%, #fdf4ff 100%); */
    color: #1e293b;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
    padding-top: 100px;
}

/* Контейнер */
.container {
    max-width: none;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* Гирлянда */
/* .garland {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, 
        #ef4444 0%, 
        #f97316 20%, 
        #f59e0b 40%, 
        #10b981 60%, 
        #3b82f6 80%, 
        #8b5cf6 100%
    );
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.garland-lights {
    position: absolute;
    top: -3px;
    width: 100%;
    height: 14px;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.garland-lights::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%
    );
    animation: light-sweep 3s infinite linear;
}

@keyframes light-sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
} */

/* Социальные ссылки */
.social-links {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    min-width: 900px;
    max-width: 95vw;
    z-index: 9999;
    transition: all 0.3s ease;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

/* Иконки (эмодзи или img) */
.social-link .emoji,
.social-link img {
    width: 32px;
    height: 32px;
    font-size: 20px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.social-link:hover .emoji,
.social-link:hover img {
    transform: scale(1.4) rotate(15deg);
}

/* Градиенты */
.twitch   { background: linear-gradient(135deg, #bf94ff, #9146ff); }
.discord  { background: linear-gradient(135deg, #5865f2, #8796ff); }
.telegram { background: linear-gradient(135deg, #26a5e4, #6bc9ff); }
.youtube  { background: linear-gradient(135deg, #ff0000, #ff3333); }
.tiktok   { background: linear-gradient(135deg, #FE2C55, #69C9D0); }
.website  { background: linear-gradient(135deg, #10b981, #34d399); }
.donate   { background: linear-gradient(135deg, #F57D07, #F59C07); }


/* ========== МОБИЛЬНОЕ БУРГЕР-МЕНЮ (только до 899px) ========== */
.mobile-menu-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #1e293b;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #1e293b;
    border-radius: 3px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-btn span + span {
    margin-top: 6px;
}

/* Анимация при наведении — полоски слегка раздвигаются */
.mobile-menu-btn:hover span:nth-child(1) { transform: translateY(-2px); }
.mobile-menu-btn:hover span:nth-child(3) { transform: translateY(2px); }

.mobile-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.mobile-social-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 90px;
    z-index: 9998;
}

.mobile-social-overlay.active {
    display: flex;
}

.mobile-social-panel {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px 30px 30px;
    width: 88%;
    max-width: 420px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.mobile-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px/1 sans-serif;
    cursor: pointer;
    transition: 0.3s;
}

.mobile-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.mobile-social-links {
    display: flex;
    flex-direction: column;
    gap: 22px !important;          /* было 16px → теперь больше воздуха */
    margin-top: 20px !important;
    padding: 0 20px !important;     /* добавляем боковые отступы, чтобы текст не прилипал */
}

.mobile-social-links .social-link {
    padding: 20px 32px !important;  /* было 16×24 → теперь жирнее и выше */
    border-radius: 24px !important;
    font-size: 1.22rem !important;  /* чуть крупнее шрифт */
    font-weight: 600 !important;
    justify-content: center !important;
    min-height: 64px !important;    /* гарантируем высоту */
    text-align: center !important;
    overflow: visible !important;
    position: relative !important;
}

/* Убираем обрезку текста на 100% */
.mobile-social-links .social-link::before,
.mobile-social-links .social-link::after {
    display: none !important;
}


/* ========== ПЕРЕКЛЮЧЕНИЕ: ДЕСКТОП vs МОБИЛКА ========== */
@media (max-width: 899px) {
    /* Полностью убираем десктопное меню */
    .social-links {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        left: -9999px !important;
    }

    /* Показываем бургер */
    .mobile-menu-btn {
        display: flex !important;
    }

    body {
        padding-top: 90px !important; /* чтобы не прилипало к верху */
    }
}

@media (min-width: 900px) {
    .mobile-menu-btn,
    .mobile-social-overlay {
        display: none !important;
    }
}

/* Время */
.time-section {
    text-align: center;
    margin-top: 50px !important;
    margin: 20px auto 35px;
    padding: 10px 24px;           /* минимальный вертикальный паддинг */
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    max-width: 420px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    line-height: 1.1;             /* убираем лишние отступы между строками */
}

.time-display {
    font-size: 2.8rem;            /* сильно уменьшили */
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

.date-display {
    font-size: 1rem;              /* мелкий текст даты */
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}

/* Уведомление */
.notification {
    background: linear-gradient(135deg, #f87171, #fb923c);
    color: white;
    border-radius: 20px;
    padding: 28px 32px;
    /* margin-bottom: 50px; */
    margin: 50px auto;                 /* ← центрируем по горизонтали */
    max-width: 1800px;                 /* ← основное: ограничиваем ширину */
    width: 90%;                        /* ← на мобильных всё равно красиво */
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: 0 15px 40px rgba(248,113,113,0.4);
    animation: pulse-notification 3s infinite;
    text-align: left; /* убираем глобальный center, чтобы не ломал flex */
}

@keyframes pulse-notification {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.notification-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.notification-text { font-size: 1.4rem; font-weight: 600; }
.notification-subtext { opacity: 0.9; font-size: 1.1rem; }

/* Сетка дней */
.days-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;        /* ← ВАЖНО: базовое значение — 2 колонки */
    gap: 34px;
    max-width: 1880px;
    margin: 0 auto 90px;
    padding: 0 20px;
}

/* Full HD и шире — переключаемся на 3 широкие колонки */
@media (min-width: 1620px) {
    .days-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Мобильные и планшеты — 1 колонка */
@media (max-width: 899px) {
    .days-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 16px;
    }
}

/* Карточка дня */
.day-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.4s ease;
}

.day-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

/* КЛЮЧЕВОЙ ФИКС — ГРАДИЕНТНЫЕ ШАПКИ */
.day-header {
    padding: 1rem 1rem 1rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    min-height: auto;
}

.day-header::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: inherit;
    opacity: 0.15;
    animation: shine 6s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

.day-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Градиенты через классы (чисто и надёжно) */
.header-mon { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.header-tue { background: linear-gradient(135deg, #10b981, #047857); }
.header-wed { background: linear-gradient(135deg, #f59e0b, #d97706); }
.header-thu { background: linear-gradient(135deg, #f97316, #dc2626); }
.header-fri { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.header-sat { background: linear-gradient(135deg, #6366f1, #2563eb); }
.header-sun { background: linear-gradient(135deg, #f43f5e, #d946ef); }

/* Текущий день — ОГОНЬ */
.day-card.current-day {
    transform: scale(1.04);
    border-color: #3b82f6;
    box-shadow: 0 0 0 5px rgba(59,130,246,0.3), 0 20px 60px rgba(59,130,246,0.4);
    animation: pulse-current 3s infinite;
}

@keyframes pulse-current {
    0%,100% { transform: scale(1.04); }
    50% { transform: scale(1.07); }
}

/* Контент */
.day-content {
    padding: 10px 34px 20px !important;
}

.activity-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 5px 26px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-item:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateX(8px);
}

.activity-icon {
    width: 50px; height: 50px;
    background: white;
    border-radius: 2px solid #e0e7ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    flex-shrink: 0;
}
.activity-title {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.activity-description {
    font-size: 0.95rem;
    line-height: 1.45;
}
.activity-item:hover .activity-icon {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}

/* Декорации */
.decoration-left, .decoration-right, .decoration-bottom {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}
.decoration-left  { left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, #ef4444, #10b981, #3b82f6); }
.decoration-right { right: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, #3b82f6, #10b981, #ef4444); }
.decoration-bottom { bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, #3b82f6, #10b981, #ef4444); }

/* Адаптив */
@media (max-width: 768px) {
    body { padding-top: 150px; }
    .time-display { font-size: 3.2rem; }
    .days-grid { grid-template-columns: 1fr; }
    .social-links { flex-direction: column; width: 90%; padding: 12px; }
}

.social-img {
    width: 38px;           /* размер иконки в шапке */
    height: 38px;
    margin-right: 12px;
    border-radius: 12px;   /* скругление, как у приложений */
    transition: all 0.3s ease;
}

.social-link:hover .social-img {
    transform: scale(1.25) rotate(12deg);
    border-radius: 16px;
}

/* На мобильных можно чуть меньше, чтобы не уезжало слишком низко */
@media (max-width: 899px) {
    .time-section {
        margin-top: 80px !important;
    }
}

/* Иконки активностей */
.activity-emoji {
    font-size: 38px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32,1.275);
    display: block;
}

.activity-item:hover .activity-emoji {
    transform: translateY(-10px) scale(1.3) rotate(15deg);
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.4));
}

/* Если хочешь неоновое свечение — добавь это */
.activity-emoji.neon {
    text-shadow: 0 0 20px currentColor;
}

/* Стили для твоих кастомных PNG-иконок */
.custom-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.4));
    transition: all 0.45s ease;
}

.activity-item:hover .custom-icon {
    transform: translateY(-6px) scale(1.15);
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.6));
}

/* Заметка под названием дня */
.day-note {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 12px 18px !important;
    margin: 0 24px 18px 24px !important;
    border-radius: 18px;
    /* border: 2px solid rgba(156, 163, 175,0.2); */
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    line-height: 1.4;
}

/* На мобильке чуть компактнее */
@media (max-width: 899px) {
    .day-note {
        font-size: 0.78rem;
        margin: 0 16px 20px;
        padding: 12px 16px;
    }
    
}

/* Ссылка в уведомлении — красивая и заметная */
.notification .attention-link {
    color: white !important;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.6);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    position: relative;
}

.notification .attention-link:hover {
    color: #1f22b3 !important;
    text-decoration-color: #60a5fa;
    transform: translateY(-1px);
}

/* На мобильных — жирнее палец */
@media (max-width: 899px) {
    .notification .attention-link {
        padding: 4px 0;
    }
}

/* Центрируем текст по вертикали и горизонтали внутри уведомления */
.notification-content {
    display: flex;
    align-items: center;        /* вертикальное центрирование */
    justify-content: center;    /* горизонтальное центрирование */
    flex: 1;
    padding: 20px;
    text-align: center;         /* текст внутри по центру */
}

.notification-text-wrapper {
    max-width: 90%;
}

/* Иконка остаётся слева, но не мешает центрированию */
.notification-icon {
    font-size: 52px;
    flex-shrink: 0;
}

.notification-center {
    flex: 1;
    text-align: center;   /* только здесь центрируем текст */
}

.notification-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.notification-text {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.notification-subtext {
    font-size: 1.15rem;
    opacity: 0.95;
}

/* Ссылка — красивая и без "съеденных" букв */
.attention-link {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.attention-link:hover {
    color: #fff;
    text-decoration-color: #fff;
    opacity: 0.8;
}

/* На мобильных — иконка сверху, текст по центру */
@media (max-width: 899px) {
    .notification {
        flex-direction: column;
        text-align: center;
        padding: 32px 28px;
        max-width: 95%;
        margin: 40px auto;
        gap: 20px;
    }

    .notification-icon {
        font-size: 48px;
    }

    .notification-center {
        text-align: center;
    }

    .notification-title {
        font-size: 2rem;
    }

    .notification-text {
        font-size: 1.25rem;
    }
}