/*
Theme Name: Crypto Betting Theme
Theme URI: https://reffpa.com/L?tag=d_5793249m_1599c_&site=5793249&ad=1599
Author: Web Developer
Description: Тема для сайтов о крипто-апuestas на чистом CSS. Быстрая, адаптивная и оптимизированная под SEO.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: crypto-betting
*/

/* Базовое обнуление и глобальные стили для совместимости с WP */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #10b981;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Обязательные классы WordPress для выравнивания контента внутри постов */
.aligncenter {
    display: block;
    margin: 2rem auto;
}

.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1.5rem 0;
}

.alignright {
    float: right;
    margin: 0.5rem 0 1.5rem 1.5rem;
}

.wp-block-image {
    margin-bottom: 1.5rem;
}

/* Контейнер страницы */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #b0bec5; /* Светло-серый текст для отличной читаемости */
    line-height: 1.7;
}

/* Шапка поста */
.post-header {
    margin-bottom: 40px;
    text-align: center;
}

/* Категории (в стиле вашей круглой кнопки Blog) */
.post-categories a {
    display: inline-block;
    background-color: #ffffff;
    color: #0b111e;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: opacity 0.2s;
}
.post-categories a:hover {
    opacity: 0.9;
}

/* Главный заголовок статьи */
.post-title {
    font-size: 2.8rem;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #ffffff; /* Строго белый цвет */
    font-weight: 700;
}

/* Мета-данные (дата, автор) */
.post-meta {
    font-size: 0.9rem;
    color: #64748b;
}
.post-meta span {
    margin: 0 10px;
}

/* Главное изображение */
.post-thumbnail {
    margin: 30px 0 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Текст статьи */
.post-content {
    font-size: 1.15rem;
}
.post-content p {
    margin-bottom: 25px;
}
.post-content h2, .post-content h3, .post-content h4 {
    margin-top: 45px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
}
.post-content a {
    color: #00ffaa; /* Контрастный зеленый для ссылок в тексте */
    text-decoration: underline;
}
.post-content a:hover {
    text-decoration: none;
}

/* Теги внизу статьи */
.post-footer {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #1e293b;
}
.post-tags a {
    display: inline-block;
    background: #1e293b;
    color: #cbd5e1;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
}
.post-tags a:hover {
    background: #334155;
    color: #ffffff;
}

/* Навигация между постами */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #1e293b;
}
.post-navigation div {
    width: 48%;
}
.post-navigation a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    transition: color 0.2s;
}
.post-navigation a:hover {
    color: #00ffaa;
}
.nav-next {
    text-align: right;
}

/* Адаптивность для мобилок */
@media (max-width: 600px) {
    .post-title {
        font-size: 2rem;
    }
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    .post-navigation div {
        width: 100%;
    }
    .nav-next {
        text-align: left;
    }
}

/* Шапка поиска */
.search-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 20px;
}
.search-header .page-title {
    font-size: 2rem;
    color: #ffffff;
}
.search-header .page-title span {
    color: #00ffaa; /* Выделяем поисковый запрос неоновым зеленым */
}

/* Сетка результатов */
.search-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Карточка статьи в поиске */
.search-card {
    background: #0f172a; /* Чуть светлее основного фона для объема */
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    transition: transform 0.2s, border-color 0.2s;
}
.search-card:hover {
    transform: translateY(-2px);
    border-color: #334155;
}

/* Картинка в карточке */
.search-card-thumbnail {
    width: 30%;
    min-width: 200px;
    position: relative;
}
.search-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Контент карточки */
.search-card-content {
    padding: 25px;
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Мета и заголовки в поиске */
.search-card-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
}
.search-card-title {
    font-size: 1.4rem;
    margin: 0 0 12px 0;
    line-height: 1.3;
}
.search-card-title a {
    color: #ffffff;
    text-decoration: none;
}
.search-card-title a:hover {
    color: #00ffaa;
}

/* Краткий текст статьи */
.search-card-excerpt {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
}
.search-card-excerpt p {
    margin: 0;
}

/* Если ничего не найдено */
.no-results {
    text-align: center;
    padding: 60px 20px;
}
.no-results .page-title {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 15px;
}
.no-results-text {
    color: #94a3b8;
    margin-bottom: 30px;
}
.search-form-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .search-card {
        flex-direction: column;
    }
    .search-card-thumbnail {
        width: 100%;
        height: 200px;
    }
    .search-card-content {
        width: 100%;
        padding: 20px;
    }
    .search-header .page-title {
        font-size: 1.6rem;
    }
}