/* Основные переменные и глобальные стили */
:root {
    /* Цветовая палитра */	
    --bg: #000000;
    --text-color: #333333;		
    --text-light-color: #666666;
    --text-dark-color: #111111;	
    --active-color: #000000;
    --active-hover-color: #333333;

    /* Размеры */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Шрифты */
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;

    /* Прочее */
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

a{
    color:var(--active-color);
}

a:hover{
    color:var(--active-hover-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.index-posts{
    padding-top:30px;
}

.category-title{
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

/* Стили шапки */
.site-header {
    background: var(--bg);
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.site-info {
    display: flex;
    flex-grow: 1;
    gap:20px;
}

.site-logo {
    line-height: 0;
}

.site-logo img {
    max-height: 80px;
    width: auto;
}

.site-title {
    font-size: 3rem;
    color: #fff;
    text-shadow: 1px 2px 3px #000;
}

@media (max-width: 768px) {
    .header-content {
        text-align: center;
        gap: 15px;
    }
}

/* Стили навигационного меню */
.main-navigation {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
}

.menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 10px 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.menu li {
    position: relative;
}

.menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.menu li.current-menu-item a {
    color:var(--active-color);
}

.menu a:hover {
    color:var(--active-hover-color);
}

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 30px;
        font-weight: bold;
        color: #000;
    }
    
    .menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu:not(.active) {
        display: none;
    }	
    
    .main-navigation {
        width: auto;
        position: absolute;
        background: #fff;
        right: 0;
    }
}

/* Стили "хлебных крошек" */
.breadcrumbs {
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-color);
    border-bottom: 1px solid #e9ecef;
    background:#fff;
}

.breadcrumbs a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--text-light-color);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-light-color);
}

.breadcrumbs span.separator {
    margin: 0 8px;
    color: var(--text-color);
}

/* Стили сетки записей */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.post-preview {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.post-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--active-hover-color);
}

.post-excerpt {
    color: #666;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background: var(--active-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: var(--active-hover-color);
    color: white;
}

@media (max-width: 768px) {   
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили отдельной записи */
.single-post {
    padding: 20px 0 0 0;
}

.post-full {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;		
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content p:first-letter {
    margin-left: 15px;
    font-weight:bold;
}

/* Стили пагинации */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #007bff;
    border-radius: 8px;
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

a.page-numbers:hover {
    background-color: #0056b3;
    color: white;
    transform: translateY(-2px);
}

.next.page-numbers {
    font-weight: 700;
    padding: 0 16px;
}

@media (max-width: 768px) {
    .pagination {
        gap: 6px;
    }
    
    .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
    
    .next.page-numbers {
        padding: 0 12px;
    }
}

/* Стили подвала */
.site-footer {
    background: var(--bg);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.copyright {
    color: #6c757d;
}