/* add.css — дополнительные стили темы sol */

/* =========================
   BASE FONT SIZE
   Базовый размер шрифта всего сайта.
   Все размеры в rem масштабируются от этого значения.
========================= */
body {
    font-size: 1.125rem; /* ← МЕНЯТЬ ЗДЕСЬ — базовый размер (сейчас 18px) */
}

/* =========================
   FONT SIZES — ТОЧКИ НАСТРОЙКИ
   Здесь можно менять размеры шрифта для конкретных областей
   независимо от базового размера выше
========================= */

/* Текст контента страниц Pages (Education, Philosophy и др.) */
.page .content {
    font-size: 1.3rem; /* ← размер текста внутри страниц Pages */
    line-height: 1.75;
}

/* Текст контента отдельной новости */
.single-news .news-single__content {
    font-size: 1.3rem; /* ← размер текста внутри новости */
    line-height: 1.75;
}

/* Превью новости в списке архива */
.news-list__excerpt {
    font-size: 1.3rem; /* ← размер превью в списке новостей */
}

/* =========================
   PAGE CONTENT ISOLATION
   Сбрасывает стили Gutenberg-блоков и произвольного HTML
   внутри .content, чтобы контент страниц не ломал вёрстку сайта
========================= */
.content {
    /* Разрешаем выделение текста в контентной зоне */
    user-select: text;
}

/* Сброс специфичных стилей блоков Gutenberg внутри .content */
.content .wp-block-image img {
    height: auto;
    max-width: 100%;
}

.content figure {
    margin: 1.25rem 0;
}

.content figcaption {
    font-size: 0.875rem;
    opacity: 0.7;
    text-align: center;
    margin-top: 0.5rem;
}

.content a {
    color: #fcd073;
    text-decoration: underline;
}

.content a:hover {
    opacity: 0.8;
}

/* Запрет на выход контента за пределы контейнера */
.content * {
    max-width: 100%;
    word-break: break-word;
}

/* Таблицы */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9375rem;
}

.content th,
.content td {
    padding: 0.625rem;
    border: 0.0625rem solid rgba(252, 208, 115, 0.3);
    text-align: left;
}

.content th {
    color: #fcd073;
}

/* =========================
   LIBRARY
========================= */
.library-list__item {
    padding: 1.25rem 0;
}

.library-list__meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.library-list__cat {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fcd073;
    opacity: 0.8;
}

.library-list__title {
    font-family: PlayfairDisplay, serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.3;
}

.library-list__link {
    color: #f6f1e1;
    transition: color 0.25s linear;
}

.library-list__link:hover {
    color: #fcd073;
}

.library-list__empty {
    padding: 2.5rem 0;
    color: #b1b4c5;
    opacity: 0.7;
}

/* Single document */
.library-single__meta {
    margin-bottom: 0.75rem;
}

.library-single__content {
    padding: 1.5rem 0;
}

.library-single__viewer {
    padding: 1.5rem 0;
}

.library-single__actions {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

/* Select в форме поиска */
.input option {
    background: #050819;
    color: #b1b4c5;
}

/* =========================
   GOLD DIVIDER
========================= */
.sol-divider {
    width: 100%;
    height: 0.0625rem;
    background: linear-gradient(to right, transparent, #fbc66c, transparent);
    margin: 0;
}

/* =========================
   NEWS ARCHIVE LIST
========================= */
.post-type-archive-news .title,
.post-type-archive-library_item .title,
.page .title,
.single-news .title,
.single-library_item .title {
    font-size: 1.75rem;
}

@media (max-width: 991px) {
    .post-type-archive-news .title,
    .post-type-archive-library_item .title,
    .page .title,
    .single-news .title,
    .single-library_item .title {
        font-size: 1.375rem;
    }
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-list__item {
    padding: 1.75rem 0;
}

.news-list__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.625rem;
}

.news-list__date {
    font-size: 0.875rem;
    color: #fcd073;
    letter-spacing: 0.05em;
}

.news-list__time {
    margin-left: 0.375rem;
    opacity: 0.7;
}

.news-list__badge {
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    padding: 0.25rem 0.5rem;
    border: 0.0625rem solid rgba(252, 208, 115, 0.4);
    color: #fcd073;
}

.news-list__title {
    font-family: PlayfairDisplay, serif;
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.news-list__link {
    color: #f6f1e1;
    transition: color 0.25s linear;
}

.news-list__link:hover {
    color: #fcd073;
}

.news-list__excerpt {
    line-height: 1.6;
    color: #b1b4c5;
    margin-top: 0.5rem;
}

.news-list__empty {
    padding: 2.5rem 0;
    color: #b1b4c5;
    opacity: 0.7;
}

/* =========================
   NEWS SINGLE
========================= */
.news-single__meta {
    margin-bottom: 1rem;
}

.news-single__date {
    font-size: 0.875rem;
    color: #fcd073;
    letter-spacing: 0.05em;
}

.news-single__time {
    margin-left: 0.375rem;
    opacity: 0.7;
}

.news-single__content {
    padding: 1.75rem 0;
}

.news-single__external {
    padding: 1.5rem 0;
}

.news-single__nav {
    padding: 1.5rem 0;
}

/* =========================
   Pagination */
.news-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 0.625rem 0.875rem;
    border: 0.0625rem solid rgba(252, 208, 115, 0.25);
    color: #f6f1e1;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    transition: border-color 0.25s linear, color 0.25s linear;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
    border-color: #fcd073;
    color: #fcd073;
}

/* =========================
   FULL WIDTH SLIDER
========================= */
.full-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slides picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slides picture.active {
    opacity: 1;
}

/* Dark overlay */
.full-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 25, 0.6);
    z-index: 1;
}

/* =========================
   SLIDER TEXT OVERLAY
========================= */
.slider-texts {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.slider-text {
    position: absolute;
    max-width: 720px;
    width: calc(100% - 2.5rem);
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 0, 0, 0.4);
}

.slider-text.active {
    opacity: 1;
    transform: translateY(0);
}

.slider-text h2 {
    font-family: PlayfairDisplay, serif;
    font-size: 2.625rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #fcd073;
}

.slider-text p {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    line-height: 1.6;
    color: #f6f1e1;
    opacity: 0.9;
}

@media (max-width: 991px) {
    .slider-text h2 {
        font-size: 1.75rem;
    }

    .slider-text p {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .full-slider {
        aspect-ratio: 4 / 3;
    }

    .slider-text h2 {
        font-size: 1.25rem;
    }
}

/* =========================
   FOOTER NEWS BLOCK
========================= */
footer .footer-news {
    display: block;
    width: 100%;
    padding: 1.75rem 0;
    border-top: 0.0625rem solid rgba(252, 208, 115, 0.2);
    border-bottom: 0.0625rem solid rgba(252, 208, 115, 0.2);
    margin-bottom: 2rem;
    text-decoration: none;
    text-align: left;
    transition: opacity 0.25s linear;
}

footer .footer-news:hover {
    opacity: 0.8;
}

.footer-news__label {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fcd073;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.footer-news__date {
    display: block;
    font-size: 0.875rem;
    color: #fcd073;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer-news__title {
    font-family: PlayfairDisplay, serif;
    font-size: 1.375rem;
    font-weight: 400;
    color: #fcd073;
    line-height: 1.3;
    margin-bottom: 0.625rem;
}

.footer-news__text {
    font-size: 0.9375rem;
    color: #b1b4c5;
    line-height: 1.6;
}
