/*
Theme Name: zaedok
Theme URI: https://zaedok.ru
Author: Admin
Author URI: https://zaedok.ru
Description: Custom WordPress theme for zaedok.ru.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: zaedok
*/
/* Общие стили */
body {
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #333;
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 1.8em;
    margin: 1em 0 0.5em;
    color: #2c3e50;
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Slider */
.hero-slider .slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
}
.hero-slider .slide {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.hero-slider img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.hero-slider h3 {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Сетка рецептов */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.recipe-card {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.recipe-card:hover {
    transform: translateY(-4px);
}
.recipe-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.recipe-card h3 {
    font-size: 1.2em;
    margin: 10px 0;
    color: #27ae60;
}

/* Сетка статей */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.article-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}
.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.article-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}
.article-card h3 {
    font-size: 1.1em;
    color: #2980b9;
    margin-bottom: 8px;
}
.article-card p {
    font-size: 0.9em;
    color: #666;
}

/* Подборки */
.collections-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}
.collections-grid a {
    background: #27ae60;
    color: #fff;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.95em;
    transition: background 0.3s ease;
}
.collections-grid a:hover {
    background: #2ecc71;
}

/* Рецепт дня */
.recipe-of-day {
    margin: 40px 0;
    text-align: center;
}
.recipe-of-day .recipe-highlight {
    display: inline-block;
    max-width: 600px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}
.recipe-of-day img {
    width: 100%;
    height: auto;
    display: block;
}
.recipe-of-day h3 {
    margin: 15px;
    font-size: 1.4em;
    color: #c0392b;
}
.recipe-of-day p {
    padding: 0 15px 15px;
    color: #555;
    font-size: 0.95em;
}

/* Блок подписки */
.newsletter {
    background: #f4f4f4;
    padding: 30px 20px;
    text-align: center;
    margin: 40px 0;
    border-radius: 10px;
}
.newsletter h2 {
    margin-bottom: 15px;
}
.newsletter form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.newsletter input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 250px;
}
.newsletter button {
    padding: 10px 20px;
    background: #e67e22;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}
.newsletter button:hover {
    background: #d35400;
}
/* ===== HEADER ===== */
.site-header {
    background: #27ae60; /* фирменный зелёный */
    color: #fff;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Логотип */
.site-logo .logo-text {
    font-size: 1.6em;
    font-weight: bold;
    color: #fff;
}
.site-logo img {
    max-height: 40px;
}

/* Меню */
.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.main-nav .nav-list li a {
    color: #fff;
    font-size: 1em;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.3s ease;
}
.main-nav .nav-list li a:hover,
.main-nav .nav-list li.current-menu-item a {
    background: #2ecc71;
    color: #fff;
}

/* Поиск */
.header-search form {
    display: flex;
    gap: 5px;
}
.header-search input[type="search"] {
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    font-size: 0.9em;
}
.header-search input[type="submit"] {
    padding: 6px 12px;
    background: #e67e22;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9em;
    cursor: pointer;
}
.header-search input[type="submit"]:hover {
    background: #d35400;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav .nav-list {
        flex-direction: column;
        width: 100%;
    }
    .header-search {
        width: 100%;
        margin-top: 10px;
    }
    .header-search form {
        width: 100%;
    }
    .header-search input[type="search"] {
        flex: 1;
        width: 100%;
    }
}
