/*
Theme Name: Flavor Kitchen Pro
Theme URI: https://goodrec.ru
Author: Редакция GoodRec
Author URI: https://goodrec.ru/o-nas/
Description: Профессиональная тема для кулинарного портала
Version: 2.1.0
License: GNU General Public License v2 or later
Text Domain: flavor-kitchen-pro
*/

/* === СБРОС И БАЗОВЫЕ СТИЛИ === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #2c5530;
    --primary-light: #3d7344;
    --secondary: #c9a227;
    --text: #333333;
    --text-light: #666666;
    --bg: #fafaf8;
    --bg-card: #ffffff;
    --border: #e8e8e8;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 8px;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PT Serif", Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--secondary);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.4rem; margin: 1.5rem 0 0.8rem; }

p { margin-bottom: 1.2rem; }

/* === КОНТЕЙНЕР === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === ШАПКА === */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: var(--primary);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.header-top a {
    color: rgba(255,255,255,0.9);
}

.header-top a:hover {
    color: #fff;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 45px;
    width: auto;
}

.site-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.site-title span {
    color: var(--secondary);
}

.site-tagline {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* === НАВИГАЦИЯ === */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    background: var(--primary);
    color: #fff;
}

/* === ГЛАВНАЯ СТРАНИЦА === */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* === СЕТКА СТАТЕЙ === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 50px 0;
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* === КАРТОЧКА СТАТЬИ === */
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.article-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 20px;
}

.article-card-category {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card-title a {
    color: var(--text);
}

.article-card-title a:hover {
    color: var(--primary);
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-card-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* === ОДИНОЧНАЯ СТАТЬЯ === */
.single-article {
    padding: 40px 0 60px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-header .category {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 2.4rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

.article-meta {
    color: var(--text-light);
    font-size: 14px;
}

.article-meta .author {
    color: var(--primary);
    font-weight: 500;
}

.article-featured-image {
    margin: 0 auto 40px;
    max-width: 900px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-content {
    font-size: 18px;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--secondary);
    padding: 20px 30px;
    margin: 2rem 0;
    background: #f9f9f7;
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* === БОКОВАЯ ПАНЕЛЬ === */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 40px 0;
}

@media (max-width: 992px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
}

.sidebar-widget {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

/* === ФУТЕР === */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 50px 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

.footer-widget h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #999;
    font-size: 14px;
}

.footer-widget a:hover {
    color: var(--secondary);
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 13px;
    color: #777;
}

.footer-bottom a {
    color: #999;
}

/* === СТРАНИЦЫ === */
.page-header {
    background: var(--primary);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 10px;
}

.page-content {
    padding: 50px 0;
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.breadcrumbs {
    padding: 15px 0;
    font-size: 13px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

/* === ПАГИНАЦИЯ === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 40px 0;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* === ФОРМА ПОИСКА === */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: background var(--transition);
}

.search-form button:hover {
    background: var(--primary-light);
}

/* === ИНФОРМАЦИОННЫЕ БЛОКИ === */
.info-box {
    background: #f0f7f1;
    border-left: 4px solid var(--primary);
    padding: 20px 25px;
    margin: 2rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.warning-box {
    background: #fff8e6;
    border-left: 4px solid var(--secondary);
}

/* === АДАПТИВ === */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    
    .header-main {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
}
