/* ============================================
   BLOG PAGE
   ============================================ */

:root {
    --st-primary: #0D6EFD;
    --st-primary-dark: #0B2545;
    --st-primary-light: #DCEEFF;
    --st-primary-medium: #4D9FFF;
    --st-primary-gradient: linear-gradient(135deg, #0D6EFD 0%, #4D9FFF 100%);
    --st-white: #FFFFFF;
    --st-gray-bg: #F8FAFC;
    --st-text-main: #1F2937;
    --st-text-muted: #6B7280;
    --st-border: #E5E7EB;
    --st-blue-light: #E8F1FF;
    --st-blue-lighter: #F0F6FF;
    --st-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --st-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --st-shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --st-shadow-xl: 0 20px 50px rgba(0,0,0,0.2);
}

/* ===== ШИРОКИЙ КОНТЕЙНЕР ===== */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

@media (max-width: 1200px) {
    .container-wide {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .container-wide {
        padding: 0 15px;
    }
}

/* ===== HERO ===== */
.blog-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(11, 37, 69, 0.95) 0%,
        rgba(11, 37, 69, 0.8) 50%,
        rgba(11, 37, 69, 0.5) 100%
    );
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

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

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--st-primary-medium);
    font-weight: 600;
    font-size: 14px;
}

.blog-hero-content h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.blog-hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.6;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.smart-blog-wrapper {
    padding: 60px 0;
    background: var(--st-gray-bg);
}

/* ===== ФИЛЬТР ПО КАТЕГОРИЯМ ===== */
.blog-categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--st-border);
    border-radius: 30px;
    color: var(--st-text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.cat-btn:hover {
    border-color: var(--st-primary);
    color: var(--st-primary);
}

.cat-btn.active {
    background: var(--st-primary);
    color: #fff;
    border-color: var(--st-primary);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* ===== СЕТКА БЛОГА ===== */
.smart-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.smart-blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--st-shadow-md);
    border: 1px solid var(--st-border);
}

.smart-blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--st-shadow-xl);
    border-color: var(--st-primary);
}

.smart-blog-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.smart-blog-card-media {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.smart-blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.smart-blog-card:hover .smart-blog-card-media img {
    transform: scale(1.1);
}

.smart-blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0B2545 0%, #0D6EFD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 48px;
}

.smart-blog-card-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--st-primary-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.smart-blog-card-content {
    padding: 25px;
}

.smart-blog-card-cat {
    font-size: 12px;
    color: var(--st-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.smart-blog-card-cat a {
    color: var(--st-primary);
    text-decoration: none;
}

.smart-blog-card-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--st-primary-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.smart-blog-card-title:hover {
    color: var(--st-primary);
}

.smart-blog-card-excerpt {
    font-size: 14px;
    color: var(--st-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.smart-blog-card-excerpt p {
    margin: 0;
}

.smart-blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--st-border);
}

.smart-blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--st-text-muted);
}

.smart-blog-card-author i {
    color: var(--st-primary);
}

.smart-blog-card-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--st-primary);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.smart-blog-card:hover .smart-blog-card-read-more {
    gap: 10px;
}

/* ===== ПАГИНАЦИЯ ===== */
.smart-blog-pagination {
    text-align: center;
    margin-top: 50px;
}

.smart-blog-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.smart-blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    color: var(--st-text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid var(--st-border);
}

.smart-blog-pagination .page-numbers:hover {
    background: var(--st-primary);
    color: #fff;
    border-color: var(--st-primary);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.smart-blog-pagination .page-numbers.current {
    background: var(--st-primary-gradient);
    color: #fff;
    border-color: var(--st-primary);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.smart-blog-pagination .page-numbers.prev,
.smart-blog-pagination .page-numbers.next {
    width: 60px;
    font-size: 20px;
}

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */
.smart-blog-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--st-shadow-md);
}

.smart-blog-empty i {
    font-size: 60px;
    color: var(--st-blue-light);
    margin-bottom: 20px;
}

.smart-blog-empty h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 24px;
    color: var(--st-primary-dark);
    margin-bottom: 10px;
}

.smart-blog-empty p {
    font-size: 16px;
    color: var(--st-text-muted);
}

/* ===== АДАПТИВНОСТЬ ===== */

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

@media (max-width: 992px) {
    .blog-hero {
        min-height: 300px;
        padding: 40px 0;
    }
    
    .blog-hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 28px;
    }
    
    .smart-blog-grid {
        grid-template-columns: 1fr;
    }
    
    .smart-blog-card-media {
        height: 220px;
    }
    
    .blog-categories-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .smart-blog-pagination .page-numbers {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .smart-blog-pagination .page-numbers.prev,
    .smart-blog-pagination .page-numbers.next {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .blog-hero-content h1 {
        font-size: 24px;
    }
    
    .smart-blog-card-content {
        padding: 20px;
    }
}