/*
Theme Name: Рецепты - Кулинарный Блог
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: Современная тема WordPress для кулинарного блога с кастомным типом записей "Рецепты"
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recipe-theme
*/

/* ================================
   ОБЩИЕ СТИЛИ
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFF8F0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #E67E22;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #D35400;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Анимация загрузки страницы */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: fadeIn 0.5s ease-in;
}

/* Пульсирующая анимация для кнопок */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(230, 126, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
    }
}

/* Плавное появление элементов */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   ШАПКА САЙТА
   ================================ */

.site-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.site-branding {
    text-align: center;
    margin-bottom: 15px;
}

.site-title {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.site-title a:hover {
    opacity: 0.8;
}

.site-description {
    color: #888;
    font-size: 1rem;
    font-style: italic;
    font-weight: 300;
}

/* ================================
   НАВИГАЦИЯ
   ================================ */

.main-navigation {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(230,126,34,0.3);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 30px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    transform: translateX(-50%) scaleX(1);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background: rgba(255,255,255,0.15);
}

/* Выпадающее меню */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-width: 220px;
    display: none;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
}

.main-navigation ul li:hover > ul {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-navigation ul ul a {
    color: #333;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul a:hover {
    background: linear-gradient(90deg, #FFF8F0 0%, transparent 100%);
    color: #E67E22;
    padding-left: 25px;
}

/* ================================
   ПОИСК
   ================================ */

.search-container {
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 5px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    box-shadow: 0 6px 30px rgba(230,126,34,0.3);
    transform: translateY(-2px);
}

.search-field {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
    background: transparent;
}

.search-field::placeholder {
    color: #999;
}

.search-submit {
    padding: 12px 30px;
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230,126,34,0.3);
}

.search-submit:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(230,126,34,0.5);
}

/* Страница результатов поиска */
.search-results-header {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    padding: 40px;
    border-radius: 16px;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 5px 25px rgba(230,126,34,0.3);
}

.search-results-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.search-query {
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.search-count {
    margin-top: 15px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ================================
   ФИЛЬТРЫ
   ================================ */

.filters-panel {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    animation: slideDown 0.5s ease;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.filters-toggle {
    padding: 10px 20px;
    background: #FFF8F0;
    border: 2px solid #E67E22;
    color: #E67E22;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters-toggle:hover {
    background: #E67E22;
    color: #fff;
}

.filters-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 1;
}

.filters-content:not(.active) {
    max-height: 0;
    opacity: 0;
}

.filters-content.active {
    max-height: 500px;
    opacity: 1;
}

#recipeFilters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23E67E22" d="M6 8L0 0h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.filter-select:hover {
    border-color: #E67E22;
}

.filter-select:focus {
    outline: none;
    border-color: #E67E22;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.filter-button {
    padding: 14px 35px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.apply-filters {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230,126,34,0.3);
}

.apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230,126,34,0.4);
}

.reset-filters {
    background: #fff;
    color: #666;
    border: 2px solid #e0e0e0;
}

.reset-filters:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

.results-count {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE4CC 100%);
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #333;
    box-shadow: 0 2px 10px rgba(230,126,34,0.1);
}

.results-count strong {
    color: #E67E22;
    font-size: 1.3rem;
}

/* ================================
   КОНТЕНТ
   ================================ */

.site-content {
    padding: 40px 0;
    min-height: 60vh;
}

.site-content .container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.content-area {
    flex: 1;
    width: 70%;
}

/* ================================
   HERO СЕКЦИЯ
   ================================ */

.hero-section {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #E67E22;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: fadeInUp 1.2s ease;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
    color: #D35400;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   КАРТОЧКИ РЕЦЕПТОВ (СЕТКА)
   ================================ */

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

.recipe-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.recipe-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230,126,34,0.1) 0%, rgba(211,84,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.recipe-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(230,126,34,0.25);
}

.recipe-card:hover::before {
    opacity: 1;
}

.recipe-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
}

.recipe-card:hover .recipe-card-image {
    transform: scale(1.08);
}

.recipe-card-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.recipe-card-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.3;
}

.recipe-card-title a {
    color: #333;
    transition: color 0.3s ease;
    display: inline-block;
}

.recipe-card-title a:hover {
    color: #E67E22;
}

.recipe-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #666;
    flex-wrap: wrap;
}

.recipe-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FFF8F0;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.recipe-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    color: #fff;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230,126,34,0.3);
    position: relative;
    overflow: hidden;
}

.read-more::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.5s ease;
}

.read-more:hover::before {
    left: 100%;
}

.read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(230,126,34,0.4);
    color: #fff;
}

/* ================================
   СТРАНИЦА ОТДЕЛЬНОГО РЕЦЕПТА
   ================================ */

.single-recipe-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease;
}

.recipe-title {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.recipe-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.recipe-featured-image:hover {
    transform: scale(1.02);
}

.recipe-info-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: linear-gradient(135deg, #fff 0%, #FFF8F0 100%);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.recipe-info-item {
    text-align: center;
}

.recipe-info-label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.recipe-info-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recipe-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.recipe-section {
    margin-bottom: 40px;
}

.recipe-section-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #E67E22;
    position: relative;
}

.recipe-section-title::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: #D35400;
}

.ingredients-list {
    list-style: none;
    padding-left: 0;
}

.ingredients-list li {
    padding: 12px 0 12px 40px;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    transition: all 0.3s ease;
}

.ingredients-list li:hover {
    background: #FFF8F0;
    padding-left: 50px;
}

.ingredients-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #E67E22;
    font-weight: bold;
    font-size: 1.4rem;
    width: 30px;
    height: 30px;
    background: #FFF8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructions-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.instructions-list li {
    counter-increment: step-counter;
    padding: 18px 0 18px 65px;
    position: relative;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.instructions-list li:hover {
    background: #FFF8F0;
    padding-left: 75px;
    border-radius: 8px;
}

.instructions-list li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 18px;
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(230,126,34,0.3);
}

.recipe-notes {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE4CC 100%);
    padding: 25px;
    border-left: 5px solid #E67E22;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 3px 15px rgba(230,126,34,0.1);
}

.recipe-notes h3 {
    margin-bottom: 12px;
    color: #E67E22;
    font-size: 1.3rem;
}

/* ================================
   ПАГИНАЦИЯ
   ================================ */

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 5px;
    background: #fff;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-weight: 600;
}

.pagination .page-numbers:hover {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230,126,34,0.3);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230,126,34,0.4);
}

.pagination .prev,
.pagination .next {
    font-weight: bold;
    padding: 12px 24px;
}

.pagination .dots {
    background: transparent;
    box-shadow: none;
    color: #999;
}

/* ================================
   БОКОВАЯ ПАНЕЛЬ
   ================================ */

.widget-area {
    width: 30%;
    flex-shrink: 0;
}

.widget {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 3px solid #E67E22;
    position: relative;
}

.widget-title::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #D35400;
}

.widget ul {
    list-style: none;
    padding-left: 0;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.widget li:last-child {
    border-bottom: none;
}

.widget li:hover {
    padding-left: 10px;
    background: linear-gradient(90deg, #FFF8F0 0%, transparent 100%);
}

.widget a {
    display: block;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #E67E22;
}

/* ================================
   ПОДВАЛ
   ================================ */

.site-footer {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: #ecf0f1;
    padding: 50px 0 25px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.5;
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-info {
    margin-bottom: 25px;
}

.footer-info p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.95rem;
    color: #bdc3c7;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright a {
    color: #E67E22;
    font-weight: 600;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #D35400;
}

/* ================================
   АДАПТИВНОСТЬ
   ================================ */

@media (max-width: 768px) {
    .site-content .container {
        flex-direction: column;
    }
    
    .content-area,
    .widget-area {
        width: 100%;
    }
    
    .widget-area {
        margin-top: 40px;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .main-navigation {
        border-radius: 12px;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation a {
        padding: 12px 20px;
    }
    
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        margin-top: 0;
        border-radius: 0;
    }
    
    .recipe-info-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .recipe-card-image {
        height: 200px;
    }
    
    /* Поиск на мобильных */
    .search-container {
        margin-top: 15px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 5px;
        border-radius: 12px;
        padding: 10px;
    }
    
    .search-field {
        border-radius: 8px;
    }
    
    .search-submit {
        border-radius: 8px;
        width: 100%;
    }
    
    .search-results-header {
        padding: 30px 20px;
    }
    
    .search-results-header h1 {
        font-size: 1.5rem;
    }
    
    /* Фильтры на мобильных */
    #recipeFilters {
        grid-template-columns: 1fr;
    }
    
    .filters-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .filters-toggle {
        width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-button {
        width: 100%;
    }
    
    .results-count {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .recipe-card-content {
        padding: 20px;
    }
    
    .widget {
        padding: 20px;
    }
}

/* ================================
   УТИЛИТЫ
   ================================ */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}