﻿/* Общие стили */
body {
    transition: background-color .3s, color .3s;
    font-family: 'Poppins', sans-serif;
}

a {
    transition: color .2s;
}

/* Hero common styles */
#hero {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 100vh;
}

    #hero .overlay {
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.6);
    }

    #hero .hero-content {
        position: relative;
        z-index: 10;
    }

    #hero img {
        filter: brightness(1.2) contrast(1.1);
    }

.speaker-card img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover; /* ключевое свойство */
}

/* Шиммер-эффект для кнопок */
.btn-shimmer {
    background: linear-gradient(90deg, #ff0000 0%, #660000 50%, #ff0000 100%);
    background-size: 200% 100%;
    animation: shimmer 2.5s ease infinite;
    color: white;
}

@keyframes shimmer {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: -200% 0%;
    }
}

/* Тикер */
.ticker-wrap {
    overflow: hidden;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 15s linear infinite;
    font-weight: bold;
}

@keyframes ticker {
    0% {
        transform: translate3d(0,0,0);
    }

    100% {
        transform: translate3d(-100%,0,0);
    }
}

/* Анимации */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

@keyframes float {
    0%,100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(4deg);
    }

    75% {
        transform: translateY(8px) rotate(-4deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.icon {
    position: absolute;
    transform: translate(-50%, -50%);
}

/* Светлая тема */
/* Улучшённая светлая тема */
.light-theme {
    /* Градиент фона страницы для глубины */
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
    color: #111827;
}

    /* Header в светлой теме */
    .light-theme header {
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Тикер */
    .light-theme .ticker-wrap {
        background: #fee2e2;
    }

    .light-theme .ticker {
        color: #b91c1c;
    }

    /* Ссылки */
    .light-theme a {
        color: #b91c1c;
    }

        .light-theme a:hover {
            color: #7f1d1d;
        }

    /* Карточки */
    .light-theme .card,
    .light-theme .bg-white {
        background: #ffffff;
        border: none;
        border-radius: .75rem;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    }

    /* Кнопки shimmer в светлой теме — чуть ярче */
    .light-theme .btn-shimmer {
        background: linear-gradient(90deg, #ff4d4d 0%, #cc0000 50%, #ff4d4d 100%);
        background-size: 200% 100%;
        animation: shimmer 2.5s ease infinite;
        color: white;
    }

    /* Переносим ticker ниже header */
    .light-theme .ticker-wrap {
        position: fixed;
        top: 5rem; /* теперь идеально под header */
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, #f87171, #ef4444, #f87171);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        height: 1.6rem; /* аккуратная высота */
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .light-theme h3 {
        color: #ffffff;
    }

    .light-theme p {
        color: #ffffff;
    }

    .light-theme .ticker {
        color: #ffffff;
        font-weight: 700;
        font-size: 0.8rem;
        white-space: nowrap;
        animation: ticker 15s linear infinite;
    }

@keyframes ticker {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}


/* Тёмная тема */
.dark-theme {
    background-color: #2d3748;
    color: #f9fafb;
}

    .dark-theme header {
        background-color: #1f2937;
    }

    .dark-theme .ticker-wrap {
        background: #111827;
    }

    .dark-theme .ticker {
        color: #e5e7eb;
    }

    .dark-theme a {
        color: #f3f4f6;
    }

        .dark-theme a:hover {
            color: #fbbf24;
        }

    .dark-theme .card {
        background: #374151;
        border-radius: .5rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

/* Переключатель темы */
.theme-toggle {
    display: flex;
    align-items: center;
}

    .theme-toggle input {
        appearance: none;
        width: 40px;
        height: 20px;
        background: #ccc;
        border-radius: 9999px;
        position: relative;
        cursor: pointer;
        transition: background .3s;
    }

        .theme-toggle input:checked {
            background: #4b5563;
        }

        .theme-toggle input::after {
            content: '';
            width: 16px;
            height: 16px;
            background: white;
            border-radius: 50%;
            position: absolute;
            top: 2px;
            left: 2px;
            transition: transform .3s;
        }

        .theme-toggle input:checked::after {
            transform: translateX(20px);
        }

    .theme-toggle label {
        margin-left: 8px;
        font-size: .875rem;
    }


