/*
Theme Name: Асоціація Краси України
Theme URI: https://aqu.com.ua
Author: usershen
Description: Преміальна тема для конкурсів краси та благодійних проєктів.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: beauty-association
*/

/* --- Базові налаштування стилів --- */
:root {
    --color-dark: #111111; /* Основний темний фон */
    --color-gold: #D4AF37; /* Преміальний золотий акцент */
    --color-white: #FFFFFF;
    --color-gray: #888888;
    --font-main: 'Playfair Display', 'Helvetica Neue', Arial, sans-serif; /* Елегантний шрифт для глянцю */
}

body {
    background-color: var(--color-dark);
    color: var(--color-white);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
}

a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-gold);
}

/* --- Стилізація шапки сайту (Header) --- */
.site-header {
    background-color: rgba(11, 11, 11, 0.98); /* Глибокий темний преміальний фон */
    border-bottom: 1px solid rgba(212, 175, 55, 0.15); /* Витончена золота лінія */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

/* Якщо адмін-панель WordPress активна, опускаємо шапку, щоб вона не перекривалася */
.admin-bar .site-header {
    top: 32px;
}

.header-container {
    max-width: 1400px; /* Збільшили контейнер для широких екранів */
    margin: 0 auto;
    padding: 15px 25px; /* Зменшили вертикальні відступи для акуратності */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Блок логотипа (налаштований під вашу майбутню картинку) */
.site-logo {
    flex-shrink: 0;
}
.site-logo img {
    max-height: 50px; /* Обмежуємо висоту майбутнього логотипа, щоб шапка не розтягувалася */
    width: auto;
    display: block;
}
.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 5px;
}
.logo-text .crown {
    color: var(--color-gold);
    font-size: 18px;
}

/* Головне навігаційне меню (Перероблено під 8 довгих пунктів) */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center; /* Центруємо меню між логотипом та кнопками */
}
.main-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px; /* Компактний відступ між пунктами */
    flex-wrap: nowrap; /* Забороняємо перенесення на нові рядки на десктопах */
}
.main-menu-list li a {
    font-size: 11px; /* Трохи зменшили для ідеального розміщення */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #e5e5e5;
    padding: 5px 0;
    white-space: nowrap; /* Забороняємо переноDefault слів всередині пункту */
    transition: color 0.3s ease;
}
.main-menu-list li a:hover {
    color: var(--color-gold);
}

/* Правка для активного пункту меню */
.main-menu-list li.current-menu-item a {
    color: var(--color-gold);
}

/* Кнопки дії (Стати учасницею / партнером) */
.header-actions {
    flex-shrink: 0;
}
.action-buttons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}
.action-buttons-list li a {
    display: inline-block;
    padding: 8px 16px; /* Більш витончені кнопки */
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border: 1px solid var(--color-gold);
    border-radius: 2px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Перша кнопка - повністю золота */
.action-buttons-list li:first-child a {
    background-color: var(--color-gold);
    color: var(--color-dark);
}
.action-buttons-list li:first-child a:hover {
    background-color: transparent;
    color: var(--color-gold);
}

/* Друга кнопка - контурна */
.action-buttons-list li:last-child a {
    background-color: transparent;
    color: var(--color-gold);
}
.action-buttons-list li:last-child a:hover {
    background-color: var(--color-gold);
    color: var(--color-dark);
}


/* --- Стилізація підвалу сайту (Footer) --- */
.site-footer {
    background-color: #0b0b0b;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 40px 0;
    margin-top: 50px;
    font-size: 14px;
    color: var(--color-gray);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    margin: 5px 0;
}

.footer-info .developer a {
    color: var(--color-gold);
}

.footer-contacts a {
    color: var(--color-white);
    font-weight: 500;
}


/* --- Стилізація кастомної сторінки новини (Single Post) --- */
.post-content p {
    margin-bottom: 25px;
}

.post-content a {
    color: var(--color-gold);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--color-white);
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 2px;
}

.post-navigation a {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: var(--color-white);
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--color-gold);
}


/* --- Стилізація сторінки архівів (Archive Grid) --- */
.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.archive-news-card {
    background-color: #161616;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.archive-news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.archive-card-thumbnail img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.thumbnail-placeholder {
    width: 100%;
    height: 240px;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 24px;
    font-weight: 700;
}

.archive-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.archive-card-date {
    font-size: 12px;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.archive-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.archive-card-excerpt {
    color: var(--color-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.archive-card-permalink {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.archive-card-permalink:hover {
    color: var(--color-gold);
}

/* Стилі пагінації сторінок */
.news-pagination {
    text-align: center;
    margin-top: 40px;
}
.news-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
}
.news-pagination .page-numbers {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}
.news-pagination .page-numbers.current {
    background-color: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
    font-weight: 600;
}
.news-pagination a.page-numbers:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* --- Стилізація статичних сторінок (Page Template) --- */
.static-page-content .entry-content p {
    margin-bottom: 25px;
    text-align: justify; /* Робить блокове вирівнювання тексту, як у журналах */
}

.static-page-content .entry-content ul, 
.static-page-content .entry-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
    color: #e5e5e5;
}

.static-page-content .entry-content li {
    margin-bottom: 10px;
}

.static-page-content .entry-content h2,
.static-page-content .entry-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--color-gold);
    margin-top: 40px;
    margin-bottom: 20px;
}
