/* Общие стили */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #001f3f, #0074D9);
    color: white;
    overflow-x: hidden;
}

/* 2. УНИВЕРСАЛЬНЫЙ ЭФФЕКТ СТЕКЛА (применяется ко всем блокам) */
.post {
    /* Меняем фон на более светлый/яркий, чтобы был виден эффект "стекла" */
    background: rgba(255, 255, 255, 0.1) !important;
    
    /* Увеличиваем силу размытия */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    
    /* Добавляем очень тонкую белую границу (она подчеркивает край стекла) */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    border-radius: 20px !important;
}

/* 3. ЭФФЕКТ ПРИ НАВЕДЕНИИ (для блоков) */
.post:hover, .bot-card:hover {
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.3) !important;
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
}

/* 4. СТИЛЬ КНОПОК (неоновое свечение) */
.main-button, .secondary-button, .auth-btn, .nav-btn, .post button {
    transition: all 0.3s ease !important;
}

.main-button:hover, .secondary-button:hover, .auth-btn:hover, .post button:hover {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6) !important;
    transform: translateY(-2px) scale(1.05) !important;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- АНИМАЦИЯ ТЕКСТА И КНОПОК --- */
.hero h1 {
    opacity: 0;
    letter-spacing: -2px;
    animation: fadeInUp 1.2s ease-out forwards, trackingIn 1.2s ease-out forwards;
}

.hero .subtitle {
    opacity: 0;
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 0.4s;
}

/* Добавляем анимацию для блока с кнопками */
.hero-buttons {
    opacity: 0;
    display: flex !important; /* Добавили это */
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes trackingIn {
    to { letter-spacing: normal; }
}
/* Невидимая полоска-триггер для захвата мыши */
/* Невидимая полоска-триггер для захвата мыши */
.nav-trigger {
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px; /* Увеличили зону захвата */
    z-index: 999;
}

/* Панель навигации */
.navbar {
    position: fixed;
    top: -80px; /* Изначально спрятана */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4); /* Чуть заметнее */
    border-radius: 0 0 20px 20px;
    transition: top 0.5s ease;
    z-index: 1000;
}

/* Анимация: когда мы наводим на триггер ИЛИ на саму панель */
.nav-trigger:hover + .navbar,
.navbar:hover {
    top: 0;
}

.logo {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Текст по центру */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 15%;
    height: 100vh;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0;
}

.about-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.fade-text {
    font-size: 2.5rem;             /* Делаем чуть крупнее */
    font-weight: 800;              /* Делаем шрифт очень жирным */
    color: rgba(255, 255, 255, 0.7); /* Тот же полупрозрачный белый, что у заголовка */
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.2;              /* Чтобы строки не слипались */
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

.main-button {
    padding: 15px 30px;
    background: white;
    color: #0074D9;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: transform 0.3s, background 0.3s;
}

.main-button:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.scroll-indicator {
    position: absolute;
    bottom: 40px; /* Отступ от нижнего края экрана */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
    /* Анимация пульсации */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { height: 40px; opacity: 0.3; }
    50% { height: 60px; opacity: 1; }
}
/* Контейнер для выравнивания кнопок */
.button-group {
    display: flex;
    flex-direction: column; /* Кнопки друг под другом */
    align-items: center;    /* Выравнивание по центру */
    gap: 15px;              /* Отступ между кнопками */
    margin-top: 30px;
}

/* Общий стиль для кнопок */
.main-button, .secondary-button {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px; /* Скругление */
    transition: all 0.3s ease;
    text-align: center;
    width: 280px; /* Фиксированная ширина, чтобы не «пропадали» */
    display: inline-block;
    box-sizing: border-box;
}

/* Кнопка 1: Белая заливка */
.main-button {
    background-color: #ffffff;
    color: #0074D9;
    border: none;
}

.main-button:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

/* Кнопка 2: Прозрачная с рамкой */
.secondary-button {
    background-color: transparent;
    color: white;
    border: 2px solid white; /* Вот твой "корпус" */
}
.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}
/* Центрированный контент для спецстраниц */
.hero-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

/* Карточка для бота */
.bot-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 30px;
    max-width: 500px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bot-card p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}
.apply-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 300px;
    margin-top: 30px;
}

.apply-form input, .apply-form textarea {
    padding: 15px;
    border-radius: 15px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.apply-form textarea { height: 100px; resize: none; }

.apply-form button {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* Контейнер для кнопок под заголовком */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

/* Стили самих кнопок */
.auth-btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.auth-btn-login {
    border: 1px solid #38BDF8;
    color: #38BDF8;
}

.auth-btn-login:hover {
    background: rgba(56, 189, 248, 0.1);
}

.auth-btn-register {
    background: #38BDF8;
    color: #0F172A;
}

.auth-btn-register:hover {
    background: #22D3EE;
    transform: translateY(-2px);
}

/* Стили для страницы регистрации */
.registration-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    gap: 15px;
}

.registration-form input {
    padding: 12px;
    width: 300px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #1e293b;
    color: white;
    font-size: 16px;
}

.registration-form button {
    padding: 12px 30px;
    background: #3b82f6; /* Твой основной синий цвет */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.registration-form button:hover {
    background: #2563eb;
}

.registration-form a {
    color: #94a3b8;
    text-decoration: none;
    margin-top: 10px;
}

/* Стили для контейнера профиля */
#profile-content {
    max-width: 400px;
    margin: 40px auto;
    padding: 25px;
    background: #000000;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

#profile-content p {
    margin: 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

#profile-content strong {
    color: #0056b3;
}

/* Кнопка выхода */
#logout-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#logout-btn:hover {
    background-color: #ff6b81;
}

/* Заголовок профиля */
h1 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

/* Стили для ссылок в меню навигации */
/* Делаем все ссылки в меню красивыми кнопками */
.menu a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    background: rgba(255, 255, 255, 0.1) !important; /* Легкий фон */
    border: 2px solid transparent !important;       /* Прозрачная обводка по умолчанию */
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    margin-left: 10px !important;
}

.menu a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important; /* Появление обводки при наведении */
}
/* Специальная обводка для кнопки Профиль */
.menu a[href="profile.html"] {
    border: 2px solid #38BDF8 !important; /* Яркая голубая обводка */
    color: #38BDF8 !important;
}

.menu a[href="profile.html"]:hover {
    background: rgba(56, 189, 248, 0.1) !important;
}

/* Полностью убираем кнопку Профиль из навигации */
.navbar .menu a[href="profile.html"],
.navbar .menu a[href="profile"] {
    display: none !important;
}

/* 1. Убираем Профиль из навигации */
.navbar .menu a[href="profile.html"] {
    display: none !important;
}

/* 2. Делаем кнопки в центре экрана (hero) видимыми и красивыми */
#auth-buttons-hero a {
    padding: 15px 30px !important;
    background: white !important;
    color: #0074D9 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    border-radius: 25px !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    margin: 5px !important;
}

#auth-buttons-hero a:hover {
    background: #e0e0e0 !important;
    transform: scale(1.05) !important;
}
/* --- СТИЛИ ФОРУМА --- */

/* Контейнер для списка постов */
#posts-container {
    max-width: 800px;
    margin: 40px auto;
}

/* Карточка каждого поста */
.post {
    background: rgba(255, 255, 255, 0.05); /* Легкий полупрозрачный фон */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.post h2 {
    color: #38BDF8;
    margin-top: 0;
}

.post img {
    max-width: 100%;
    border-radius: 15px;
    margin: 15px 0;
}

/* Разделитель перед комментариями */
.post hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 25px 0;
}

/* Секция комментариев */
.comment-section {
    margin-top: 15px;
}

.comment {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-size: 0.95em;
    border-left: 3px solid #38BDF8;
}

.comment b {
    color: #38BDF8;
    margin-right: 10px;
}

/* Инпут комментария */
.post input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    box-sizing: border-box; /* Чтобы инпут не вылезал за границы */
}

/* Кнопка отправки коммента */
.post button {
    margin-top: 10px;
    padding: 10px 25px;
    background: #38BDF8;
    color: #0F172A;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

/* Кнопка гамбургера по умолчанию скрыта */
.hamburger {
    display: none; 
}

@media screen and (max-width: 900px) {
    /* Сбрасываем позиционирование для мобильных */
    .navbar {
        position: fixed !important;
        top: 0 !important; /* Убираем уход вверх */
        left: -100% !important; /* Прячем вбок */
        width: 250px !important;
        height: 100% !important;
        background: #001f3f !important;
        flex-direction: column !important;
        padding-top: 80px !important;
        transition: 0.4s !important;
        z-index: 1500 !important;
    }

    /* Когда меню активно, оно выезжает слева */
    .navbar.active { 
        left: 0 !important; 
    }

    /* Показываем кнопку гамбургера */
    .hamburger {
        display: block !important;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 2000;
        background: rgba(0, 0, 0, 0.5);
        border: none;
        color: white;
        font-size: 30px;
        padding: 5px 15px;
        border-radius: 8px;
        cursor: pointer;
    }

    /* Выравниваем меню внутри панели */
    .menu { 
        display: flex !important; 
        flex-direction: column !important; 
        width: 100% !important; 
    }
    
    .menu a { 
        margin: 10px 0 !important; 
        width: 80% !important; 
        text-align: center !important; 
    }
}

.nav-btn {
    color: white !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    margin-left: 10px !important;
    display: inline-block !important;
}

/* Специальный стиль для кнопки ФОРУМ */
.forum-btn {
    border: 2px solid #38BDF8 !important; /* Голубая обводка */
    color: #38BDF8 !important;
}

.forum-btn:hover {
    background: rgba(56, 189, 248, 0.1) !important;
}

/* --- СТИЛИ ТОЛЬКО ДЛЯ АДМИНКИ --- */
#admin-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    color: white; /* Чтобы текст был виден на твоем темном фоне */
}

/* Карточки постов в админке */
#admin-posts .post {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

/* Кнопки в админке */
#admin-posts button {
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* Зеленая кнопка ОДОБРИТЬ */
#admin-posts button:nth-child(3) {
    background: #22c55e;
    color: white;
}

/* Красная кнопка ОТКЛОНИТЬ */
#admin-posts button:nth-child(4) {
    background: #ef4444;
    color: white;
}

#admin-posts button:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.gold-user {
    color: #FFD700 !important; /* Золотой цвет */
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); /* Легкое свечение */
}

.gold-user::before {
    content: "👑 "; /* Корона */
    font-size: 1.1em;
}

#typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: #38BDF8; /* Твой фирменный голубой цвет */
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Принудительно растягиваем контейнер редактора */
#editor-container {
    width: 100% !important;
    min-height: 300px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 0 10px 10px !important;
    display: block !important;
    overflow: hidden !important;
}

/* Фиксируем тулбар, чтобы он не схлопывался */
.ql-toolbar.ql-snow {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px 10px 0 0 !important;
    box-sizing: border-box !important;
}

/* Чтобы контент внутри не уезжал */
.ql-container.ql-snow {
    border: none !important;
}

/* 1. Делаем фон панели инструментов более непрозрачным для контраста */
.ql-toolbar.ql-snow {
    background: rgba(255, 255, 255, 0.2) !important; /* Чуть плотнее */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px 10px 0 0 !important;
}

/* 2. Делаем сами иконки белыми и яркими */
.ql-snow .ql-stroke {
    stroke: #ffffff !important;
    stroke-width: 2 !important; /* Чуть жирнее линии */
}

.ql-snow .ql-fill {
    fill: #ffffff !important;
}

/* 3. Добавляем эффект при наведении, чтобы кнопки "оживали" */
.ql-snow button:hover, 
.ql-snow .ql-picker-label:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px;
}

/* 4. Исправляем выпадающие списки (например, "Normal") */
.ql-snow .ql-picker-label {
    color: #ffffff !important;
}

.ql-snow .ql-picker-options {
    background: #1e3a8a !important; /* Цвет самого выпадающего списка */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* --- СЕТКА СОБЫТИЙ И АНИМАЦИЯ --- */
.events-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px; 
    padding: 40px; 
    max-width: 1000px; 
    margin: 0 auto; 
}

.event-card { 
    background: rgba(255,255,255,0.05); 
    padding: 15px; 
    border-radius: 15px; 
    cursor: pointer; 
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    /* Анимация */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.event-card.active { 
    opacity: 1; 
    transform: translateY(0); 
}

.event-card img { 
    width: 100%; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 10px; 
    margin-bottom: 10px;
}

.event-card h3 {
    font-size: 1rem; 
    margin: 5px 0;
}

/* Анимация появления для кнопок при загрузке */
.main-button, .secondary-button, .auth-btn {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Изначально скрыты */
}

/* Настраиваем задержку, чтобы они вылетали по очереди, если их много */
.main-button { animation-delay: 1.0s; }
.secondary-button { animation-delay: 1.2s; }

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
