/*
Theme Name: KitchenLand Blog
Theme URI: https://kitchenland.kz
Author: KitchenLand
Description: Тема блога KitchenLand в стиле основного сайта
Version: 1.1
Text Domain: kitchenland
*/

/* ==================== VARIABLES ==================== */
:root {
    --primary: #FF5722;
    --primary-dark: #E64A19;
    --dark: #1a1a2e;
    --gray: #6b7280;
    --gray-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 8px;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

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

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

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

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

.container--narrow {
    max-width: 800px;
}

/* ==================== HEADER - как на основном сайте ==================== */
.header {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}

.logo__accent {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.nav__link:hover,
.nav__link--active {
    color: var(--primary);
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__phone {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn--whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn--whatsapp:hover {
    background: #1da851;
    color: var(--white);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==================== MAIN CONTENT ==================== */
.main {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

/* ==================== BLOG HERO - светлый как основной сайт ==================== */
.blog-hero {
    background: var(--white);
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--gray-light);
}

.blog-hero__title {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.blog-hero__subtitle {
    font-size: 18px;
    color: var(--gray);
}

/* ==================== POSTS GRID ==================== */
.posts-section {
    padding: 60px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.post-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-card__image-link {
    display: block;
    background: var(--gray-light);
}

.post-card__content {
    padding: 28px;
}

.post-card__category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-card__title a {
    color: var(--dark);
}

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

.post-card__excerpt {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--gray);
}

/* ==================== SIDEBAR ==================== */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 48px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

.widget__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.widget__list {
    list-style: none;
}

.widget__list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.widget__list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget__list a {
    color: var(--dark);
    font-size: 14px;
}

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

/* ==================== CTA WIDGET - как на основном сайте ==================== */
.widget--cta {
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b4a 100%);
    color: var(--white);
}

.widget--cta .widget__title {
    color: var(--white);
}

.widget--cta p {
    margin-bottom: 20px;
    opacity: 0.95;
    font-size: 15px;
    line-height: 1.5;
}

.widget--cta .btn {
    width: 100%;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
}

.widget--cta .btn:hover {
    background: var(--gray-light);
    color: var(--primary);
}

/* ==================== SINGLE POST ==================== */
.single-post {
    padding: 40px 0 80px;
}

.single-post__header {
    margin-bottom: 32px;
}

.single-post__category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.single-post__title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--dark);
}

.single-post__meta {
    color: var(--gray);
    font-size: 14px;
}

.single-post__image {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.single-post__content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--dark);
}

.single-post__content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
}

.single-post__content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
}

.single-post__content p {
    margin-bottom: 20px;
}

.single-post__content ul,
.single-post__content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.single-post__content li {
    margin-bottom: 10px;
}

.single-post__content img {
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

.single-post__content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--gray);
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 48px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    background: var(--gray-light);
    color: var(--dark);
    font-weight: 500;
}

.pagination .current,
.pagination a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==================== FOOTER - как на основном сайте ==================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__col {}

.footer .logo {
    color: var(--white);
    display: inline-block;
    margin-bottom: 16px;
}

.footer__desc {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer__links a:hover {
    color: var(--white);
}

.footer__contact {
    margin-bottom: 12px;
}

.footer__contact a,
.footer__contact span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer__contact a:hover {
    color: var(--white);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
}

.footer__bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ==================== FIXED BUTTONS ==================== */
.fixed-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.fixed-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.fixed-btn:hover {
    transform: scale(1.1);
    color: var(--white);
}

.fixed-btn--whatsapp {
    background: #25D366;
}

.fixed-btn--phone {
    background: var(--primary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header__contacts .header__phone {
        display: none;
    }
    
    .blog-hero {
        padding: 40px 0 30px;
    }
    
    .blog-hero__title {
        font-size: 28px;
    }
    
    .single-post__title {
        font-size: 28px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
