/* --- LANDING PAGE --- */

/* --- LANDING PAGE (FIXED NAV) --- */

/* Навигация */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.8); /* Темный фон */
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
    flex-wrap: wrap; /* Позволяет перенос на очень маленьких экранах */
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #f0c674;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap; /* Логотип в одну строку */
}

/* Контейнер ссылок справа */
.links {
    display: flex;
    align-items: center;
    gap: 20px; /* Гарантированный отступ между кнопками */
}

.links a {
    color: #ccc;
    font-weight: bold;
    font-size: 0.9em;
    text-decoration: none;
    white-space: nowrap; /* Текст не переносится */
    transition: color 0.2s;
}

.links a:hover {
    color: #fff;
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 600px) {
    .landing-nav {
        flex-direction: column; /* Логотип сверху, ссылки снизу */
        padding: 15px;
        gap: 15px;
    }

    .links {
        width: 100%;
        justify-content: center; /* Центрируем ссылки */
        gap: 15px;
    }

    /* Чуть уменьшим кнопку на мобилке */
    .btn-cta.small {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* Кнопки призыва к действию (CTA) */
.btn-cta {
    background: #d00;
    color: #fff !important; /* Важно перебить цвет ссылки */
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(200, 0, 0, 0.5);
    border: none;
    font-weight: bold;
    display: inline-block;
}

.btn-cta:hover {
    background: #f00;
    transform: scale(1.05);
}

.btn-cta.small {
    padding: 8px 15px;
    font-size: 0.85em;
}

.btn-cta.big {
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: 900;
    letter-spacing: 2px;
}
/* Hero Блок */
.hero-section {
    height: 80vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), #121214),
    url('../../images/location/city_center_square.jpg'); /* Фоновая картинка */
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}
.hero-content { max-width: 800px; padding: 20px; }
.hero-content h1 { font-size: 4em; margin-bottom: 20px; text-shadow: 0 5px 15px #000; }
.hero-content p { font-size: 1.2em; color: #ddd; margin-bottom: 40px; text-shadow: 0 2px 5px #000; }

/* Секция новостей */
.news-section { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }
.news-section h2 { text-align: center; margin-bottom: 40px; color: #888; font-size: 1.5em; border-bottom: 2px solid #333; padding-bottom: 10px; display: inline-block; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.news-card {
    background: #1e1e22; border: 1px solid #333; border-radius: 8px; overflow: hidden;
    transition: transform 0.3s;
}
.news-card:hover { transform: translateY(-5px); border-color: #555; }

.news-img { height: 180px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }

.news-body { padding: 20px; }
.news-date { font-size: 0.8em; color: #666; margin-bottom: 5px; }
.news-body h3 { margin: 0 0 10px 0; color: #f0c674; font-size: 1.2em; }
.news-body p { color: #aaa; font-size: 0.9em; line-height: 1.5; margin-bottom: 15px; }
.read-more { color: #4d79ff; font-size: 0.9em; font-weight: bold; }

/* Полная новость */
.news-view-container { max-width: 800px; margin: 100px auto 40px; padding: 0 20px; }
.back-link { display: inline-block; margin-bottom: 20px; color: #888; }
.article-full { background: #1e1e22; padding: 30px; border-radius: 8px; border: 1px solid #333; }
.article-banner { width: 100%; height: 300px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }
.article-content { line-height: 1.6; color: #ccc; margin-top: 20px; }
.article-date { color: #666; margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; }

/* Футер */
.landing-footer { text-align: center; padding: 40px; color: #444; font-size: 0.9em; border-top: 1px solid #222; margin-top: 40px; }
/* --- AUTH PAGES (Login/Register) --- */

.auth-page-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: url('../../images/location/city_gates.jpg') no-repeat center center/cover;
    position: relative;
}

/* Затемнение фона */
.auth-page-wrapper::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(3px);
}

.auth-box {
    position: relative; z-index: 2;
    width: 100%; max-width: 450px;
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.auth-header h2 { color: #f0c674; margin: 0 0 10px 0; text-align: center; }
.auth-header p { color: #aaa; text-align: center; margin-bottom: 20px; font-size: 0.9em; }

.auth-error {
    background: rgba(220, 53, 69, 0.2); border: 1px solid #dc3545; color: #ff8888;
    padding: 10px; border-radius: 4px; margin-bottom: 20px; text-align: center; font-weight: bold;
}

/* Форма */
.cyber-form .form-group { margin-bottom: 15px; }
.cyber-form label { display: block; color: #ccc; font-size: 0.85em; margin-bottom: 5px; font-weight: bold; }
.cyber-form input {
    width: 100%; padding: 12px;
    background: #000; border: 1px solid #444; border-radius: 4px;
    color: #fff; font-family: inherit; transition: 0.2s;
}
.cyber-form input:focus { border-color: #4d79ff; outline: none; box-shadow: 0 0 10px rgba(77, 121, 255, 0.2); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Выбор пола */
.gender-selector { display: flex; gap: 15px; }
.gender-option {
    flex: 1; background: #222; border: 1px solid #444; border-radius: 6px;
    padding: 10px; text-align: center; cursor: pointer; transition: 0.2s;
    opacity: 0.6;
}
.gender-option:hover { opacity: 1; background: #333; }
.gender-option.active {
    opacity: 1; border-color: #4d79ff; background: rgba(77, 121, 255, 0.1);
    box-shadow: 0 0 15px rgba(77, 121, 255, 0.2);
}
.gender-option.female.active { border-color: #ff4da6; background: rgba(255, 77, 166, 0.1); box-shadow: 0 0 15px rgba(255, 77, 166, 0.2); }

.g-icon { font-size: 2em; margin-bottom: 5px; }

.btn-cta { width: 100%; margin-top: 10px; }

.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9em; color: #888; }
.auth-footer a { color: #4d79ff; font-weight: bold; }
.auth-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #75b798;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}