/*
Theme Name: Кухня Укр (Ukrainian Kitchen)
Theme URI: https://кухня.укр
Author: AI Collaborator
Description: Професійна блочна тема з жорсткою сіткою за макетом Кухня.Укр.
Version: 1.2.0
Text Domain: ukrainian-kitchen
*/

body {
    background-color: #F9F8F6 !important;
    color: #1A1A1A !important;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

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

.serif-text {
    font-family: 'Lora', 'Playfair Display', serif !important;
}

/* ШАПКА */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.site-navigation a {
    text-decoration: none;
    color: #1A1A1A;
    font-weight: 500;
    margin-right: 30px;
    font-size: 15px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.search-input {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    width: 200px;
}
.btn-primary {
    background: #4A4B29 !important;
    color: #FFFFFF !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-outline {
    background: transparent !important;
    color: #1A1A1A !important;
    border: 1px solid #4A4B29 !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* ГОЛОВНИЙ ЕКРАН */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}
.hero-title {
    font-size: 54px;
    line-height: 1.1;
    margin: 0 0 20px 0;
    font-weight: 600;
}
.hero-desc {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
}
.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 30px;
}
.stat-number {
    font-size: 28px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}
.stat-label {
    font-size: 13px;
    color: #666666;
}
.hero-image img {
    width: 100%;
    height: 500px;
    border-radius: 32px;
    object-fit: cover;
}

/* СЕКЦІЇ */
.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 80px;
}
.section-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
}
.all-link {
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* СІТКА 1: ПОПУЛЯРНІ КАТЕГОРІЇ (6 колонок) */
.grid-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.category-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #1A1A1A;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}
.category-card img {
    height: 55px;
    margin-bottom: 20px;
    object-fit: contain;
}
.category-card h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    font-weight: 600;
}
.category-card span {
    font-size: 13px;
    color: #888888;
}

/* СІТКА 2: РЕГІОНИ (5 колонок) */
.grid-regions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.region-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 260px;
    display: block;
}
.region-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.region-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%);
    padding: 20px;
    color: #FFFFFF;
}
.region-overlay h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
}
.region-overlay span {
    font-size: 13px;
    opacity: 0.8;
}

/* СІТКА 3: РЕЦЕПТІВ (4 колонки) */
.grid-recipes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.recipe-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.recipe-img-link {
    height: 220px;
    overflow: hidden;
    display: block;
}
.recipe-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recipe-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.recipe-info h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}
.recipe-cat {
    font-size: 14px;
    color: #888888;
    margin-bottom: 20px;
}
.recipe-meta {
    font-size: 14px;
    color: #666666;
    border-top: 1px solid #F4F3F0;
    padding-top: 16px;
}
.bookmark-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* ФУТЕР */
.site-footer {
    background: #F4F3F0;
    margin-top: 100px;
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-col h4 {
    margin: 0 0 25px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666666;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 14px;
}
.footer-col ul li a {
    color: #1A1A1A;
    text-decoration: none;
    font-size: 15px;
}
.subscribe-form {
    display: flex;
    gap: 8px;
}
.subscribe-form input {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    padding: 12px 16px;
    border-radius: 8px;
    flex-grow: 1;
    font-size: 14px;
}
.subscribe-form .btn-primary {
    padding: 12px 20px;
}
.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666666;
}