/* Подключаем шрифты: Syne (800), Inter (400, 500), Unbounded (500, 800) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Syne:wght@800&family=Unbounded:wght@500;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('materials/background3.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

/* --- ШАПКА --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #20271F80; 
    border-bottom: 1px solid #FFFFFF; 
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 0 15px; 
    z-index: 100;
}

.logo {
    color: #FFFFFF;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 15px;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav-item {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #A6A6A6;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-item.active { color: #FFFFFF; }
.nav-item:hover {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* --- ФОН --- */
.blur-square {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0C100D80; 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 10;
}

/* --- ГЛАВНЫЙ ЭКРАН (ЦЕНТР) --- */
.hero {
    position: relative; /* Чтобы быть поверх блюра */
    z-index: 20; /* Выше чем blur-square (10), но ниже чем header (100) */
    
    /* Делаем блок на весь экран и центрируем всё внутри */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Заголовок ESQQ */
.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 50px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 5px; /* Небольшой отступ вниз */
}

/* Текст "Сделано с..." */
.hero-subtitle {
    font-family: 'Unbounded', sans-serif;
    font-size: 45px;
    font-weight: 800; /* Основная часть фразы жирная */
    color: #FFFFFF;
    margin-bottom: 25px; /* Отступ до параграфа */
}

/* Градиентное анимированное слово */
#animated-text {
    font-weight: 500;
    
    /* Делаем градиент от #B1FFE6 к #FFDB99 */
    background: linear-gradient(90deg, #B1FFE6 0%, #FFDB99 100%);
    -webkit-background-clip: text; /* Накладываем градиент только на текст */
    -webkit-text-fill-color: transparent; /* Делаем сам цвет текста прозрачным, чтобы проявился градиент */
}

/* Мигающая каретка как при печати текста */
.cursor {
    display: inline-block;
    width: 4px;
    height: 40px;
    background-color: #FFDB99;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Описание */
.hero-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #C3CFB3;
    line-height: 1.4; /* Межстрочный интервал */
}

/* --- КНОПКИ --- */
.hero-buttons {
    display: flex;
    gap: 11px; /* Отступ между кнопками */
    margin-top: 40px; /* Отступ сверху от текста */
}

/* Общие стили для обеих кнопок */
.btn {
    width: 200px;
    height: 50px;
    display: flex;
    justify-content: center; /* Центрируем текст по горизонтали */
    align-items: center; /* Центрируем текст по вертикали */
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400; /* Стандартная толщина шрифта (как просили) */
    text-decoration: none; /* Убираем подчеркивание у ссылки */
    border-radius: 12px; /* Скругление углов как на макете */
    transition: transform 0.2s ease, opacity 0.2s ease; /* Плавная анимация при наведении */
    cursor: pointer;
}

/* Эффект нажатия/наведения для красоты */
.btn:hover {
    transform: scale(1.02); /* Чуть-чуть увеличиваем при наведении */
}
.btn:active {
    transform: scale(0.98); /* Чуть-чуть сжимаем при клике */
}

/* Кнопка 1: Наш Discord */
.btn-primary {
    background-color: #F0FFD8;
    color: #000000;
}

/* Кнопка 2: Наша История */
.btn-secondary {
    /* Цвет #E5FFD8 с прозрачностью 15%. (15% в HEX это примерно 26) */
    background-color: #E5FFD826; 
    
    /* Обводка (stroke) */
    border: 1px solid #D3E9CD;
    
    color: #FFFFFF;
}

/* ========================================= */
/* --- СТРАНИЦА ЛОГИНА (login.html) --- */
/* ========================================= */

.login-wrapper {
    position: relative;
    z-index: 20;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Рамка 500х500 */
.login-box {
    width: 500px;
    height: 500px;
    background-color: transparent; /* Прозрачный фон как на скриншоте */
    border: 1px solid #D3E9CD; /* Обводка */
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px; /* Отступы по бокам внутри рамки */
}

/* Заголовок "Вход" */
.login-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 45px;
    color: #FFFFFF;
    margin-top: 55px;
    
    /* Увеличили отступ на 24px, чтобы сдвинуть всё остальное вниз */
    margin-bottom: 49px; 
}

/* Форма входа */
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Расстояние между полями ввода */
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Расстояние от текста до самого поля */
}

/* Текст над инпутами */
.input-group label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
}

/* Поля ввода (Инпуты) */
.input-group input {
    width: 100%;
    height: 45px;
    background-color: #E5FFD826; /* Цвет #E5FFD8 с прозрачностью 15% (26 в HEX) */
    border: 1px solid #D3E9CD;
    border-radius: 8px;
    padding: 0 15px;
    color: #FFFFFF;
    font-family: monospace; /* Моноширинный шрифт как на скриншоте */
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Цвет плейсхолдера */
.input-group input::placeholder {
    color: #A3BD8D;
    font-family: monospace;
}

/* Подсветка инпута при нажатии на него */
.input-group input:focus {
    border-color: #FFFFFF;
}

/* Кнопка "Войти" */
.login-btn {
    width: 100%;
    height: 50px;
    background-color: #F0FFD8;
    color: #000000;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    margin-top: 10px; /* Отступ сверху от инпутов */
    transition: transform 0.2s ease;
}

.login-btn:hover {
    transform: scale(1.02); /* Эффект при наведении */
}

/* Тонкая линия разделитель */
.login-divider {
    width: 100%;
    height: 1px;
    background-color: #D3E9CD;
    opacity: 0.6;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Блок ссылок снизу */
.login-footer {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* Серый текст */
.login-footer p {
    color: #D5D5D5; 
}

/* Ссылки */
.login-footer a {
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.login-footer a:hover {
    opacity: 0.7; /* Легкое затухание при наведении */
}

.link-reg {
    color: #B2FF77;
}

.link-info {
    color: #7CFFF8;
}
/* Общий контейнер, чтобы блоки шли друг под другом */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- ВЫДВИГАЮЩЕЕСЯ ОКНО ИНФОРМАЦИИ --- */
.info-box {
    width: 500px;
    background-color: #E5FFD820; /* 12.5% прозрачности (20 в HEX) */
    border: 1px solid transparent; /* Рамка изначально прозрачная */
    border-radius: 10px;
    text-align: center;
    
    /* Настройки для плавной анимации "выдвижения" */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 20px; /* Убираем вертикальные отступы в скрытом состоянии */
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease, border-color 0.4s ease, margin-top 0.4s ease;
}

/* Класс, который добавляется через JS для показа окна */
.info-box.show {
    max-height: 200px; /* Высота, достаточная для текста */
    opacity: 1;
    padding: 25px 20px; /* Возвращаем отступы */
    border-color: #D3E9CD; /* Показываем зеленую рамку */
    margin-top: 15px; /* Отступ от главной формы */
}

/* Текст внутри окна */
.info-box p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #FFFFFF;
    line-height: 1.5; /* Для красивых интервалов между строками */
}

/* ========================================= */
/* --- СТРАНИЦА ПРОФИЛЯ (profile.html) --- */
/* ========================================= */

.profile-wrapper {
    position: relative;
    z-index: 20;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Рамка 750х350 */
.profile-box {
    width: 750px;
    height: 350px;
    background-color: transparent;
    border: 1px solid #D3E9CD;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем всё по горизонтали */
}

/* Имя пользователя */
.profile-name {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 45px;
    color: #FFFFFF;
    margin-top: 55px; /* Отступ сверху рамки */
    margin-bottom: 42px; /* Отступ до ключа */
}

/* Строки с информацией (Ключ и Дата) */
.profile-info-row {
    display: flex;
    align-items: center;
    gap: 12px; /* Расстояние от иконки до текста */
}

#key-row {
    margin-bottom: 15px; /* Отступ от ключа до даты создания */
}

#date-row {
    margin-bottom: 45px; /* Отступ от даты до инпута */
}

/* Иконки */
.profile-icon {
    width: 20px;
    height: 20px;
}

/* Текст (белый) */
.info-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #FFFFFF;
}

/* Текст (зеленый акцент) */
.info-highlight {
    color: #CAE6B1;
}

/* Контейнер для инпута и кнопки */
.invite-container {
    position: relative;
    width: 380px; /* Ширина поля ввода (примерно как на скрине) */
}

/* Сам инпут */
.invite-input {
    width: 100%;
    height: 45px;
    background-color: #E5FFD826; /* 15% прозрачность */
    border: 1px solid #D3E9CD;
    border-radius: 8px;
    padding-left: 15px;
    padding-right: 50px; /* Место под кнопку отправки */
    
    font-family: monospace;
    font-size: 14px;
    color: #FFFFFF; /* Цвет вводимого текста */
    outline: none;
    transition: border-color 0.3s;
}

/* Плейсхолдер */
.invite-input::placeholder {
    color: #A3BD8D;
}

.invite-input:focus {
    border-color: #FFFFFF;
}

/* Кнопка отправки внутри инпута */
.invite-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%); /* Идеально центрирует по вертикали */
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invite-btn img {
    width: 18px;
    height: 18px;
    /* Если иконка черная, можно покрасить её фильтром в #A3BD8D, но если она уже в цвет - фильтр не нужен */
}