/*
Theme Name: Letundra
Theme URI: https://letundra.com
Description: Кастомная моно-языковая тема Letundra. Язык сайта задаётся константой LETUNDRA_LANG в wp-config.php.
Version: 1.0.0
Author: Letundra
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: letundra
*/

body,
button,
input,
textarea,
select {
    font-family: 'Montserrat', sans-serif;
}

.header {
    z-index: 1000;
}

/* Отступ под фикс-шапку только у главного контейнера статьи,
   без контейнеров комментариев и формы. */
.news > .news-container {
    padding-top: 90px;
}

/* Обычные записи и страницы */
.page__container {
    max-width: 932px;
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 60px;
}

.page__title {
    margin: 16px 0 24px;
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    color: #fff;
}

.page__content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.7;
}

.page__content h2,
.page__content h3 {
    color: #fff;
    margin: 28px 0 12px;
}

.page__content p {
    margin-bottom: 16px;
}

.page__content a {
    color: #FAC94B;
    text-decoration: underline;
}

/* Ссылки-документы (правовая документация): 16px, плотно, вместо крупного h3.
   :has() убирает отступы h3 у заголовков-ссылок, без поддержки остаются штатные. */
.page__content h3 a {
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
}
.page__content h3:has(> a) {
    margin: 0;
    font-weight: 500;
    line-height: 26px;
}

.page__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.page__content ul,
.page__content ol {
    margin: 0 0 16px 20px;
}

.page__content li {
    margin-bottom: 8px;
}

/* Список стран */
.countries-archive .container {
    padding-top: 110px;
    padding-bottom: 80px;
}

.countries-archive__title {
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: #fff;
    text-align: center;
}

.countries-archive__search {
    max-width: 520px;
    margin: 0 auto 32px;
}

.countries-archive__input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 16px;
}

.countries-archive__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.countries-archive__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.countries-archive__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    transition: background 0.15s ease;
}

.countries-archive__link:hover {
    background: rgba(118, 11, 255, 0.5);
}

.countries-archive__flag {
    flex: 0 0 auto;
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

.countries-archive__name {
    font-size: 16px;
}

.countries-archive__empty {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Кнопка Загрузить ещё в ленте новостей */
.timeline__show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    max-width: 100%;
    margin: 30px auto 0;
    padding: 16px 32px;
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
}

.timeline__show-more:hover {
    background: rgba(255, 255, 255, 0.18);
}

.timeline__show-more.is-loading {
    opacity: 0.7;
    cursor: default;
}

/* Новости внутри страны: заголовки белые, без подчёркивания,
   поверх правила .country__content-block a. */
.country__content-block .news-block a,
.country__content-block .news-block__content-link {
    color: #fff;
    text-decoration: none;
}

.country__content-block .news-block__btn-more-news {
    color: #fff;
}

/* Плавная анимация аккордеона новостей */
.news-block__inner--animated {
    overflow: hidden;
    max-height: 1400px;
    transition: max-height 0.45s ease, padding 0.45s ease;
}

.news-block--collapsed .news-block__inner--animated {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.news-block__header {
    cursor: pointer;
}

.news-accordion__trigger-icon {
    transition: transform 0.3s ease;
}

.timeline__dates-marker {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fa904b;
}

