/* Theme Name: Simple WP Theme
   Description: Простая тема WordPress
   Version: 1.0
   Author: Your Name
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}
a{
	color:#007bff;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #f8f9fa;
    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: 50px;
    width: auto;
}
.site-title {
    font-size: 2rem;
}

.site-description {
    color: #666;
    font-size: 1.1rem;
}

/* Main Navigation Styles */
.main-navigation {
    display: flex;
    align-items: center;
		border-bottom: 1px solid #e9ecef;
}

.menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 10px 0;
    padding: 0;
}

.menu li {
    position: relative;
}

.menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
}

.menu a:hover {
    color: #007bff;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

/* Submenu styles */
.menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu .sub-menu li {
    padding: 0;
}

.menu .sub-menu a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
}

.menu .sub-menu a:hover {
    background: #f8f9fa;
}

/* Mobile menu toggle (for future responsive) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Posts Grid */
.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: #007bff;
}

.post-excerpt {
    color: #666;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #0056b3;
}

/* Single Post */
.single-post {
    padding: 40px 0;
}

.post-full {
    max-width: 800px;
    margin: 0 auto;
}

.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-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

/* Пагинация */
.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;
    }
}




/* Footer */
.site-footer {
    background: #343a40;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}


.copyright {
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding-left: 20px;
    }
    
    .menu-toggle {
        display: block;
        margin: 10px auto;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Mobile menu active state */
    .menu.active {
        display: flex;
    }
    
    .menu:not(.active) {
        display: none;
    }
}

/* Additional utility classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}