/*
Theme Name: News Blue
Description: Новостная тема для блога - news blue
Version: 1.0
*/

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}

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

/* Хедер */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid #1d4ed8;
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.site-branding .site-title {
    font-size: 32px;
    font-weight: 700;
    text-decoration: none;
    color: #1d4ed8;
    margin-bottom: 5px;
    display: block;
}

.site-description {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.header-search form {
    display: flex;
    gap: 5px;
}

.header-search input {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
}

.header-search button {
    padding: 8px 12px;
    background: #1d4ed8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Навигация */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    background: #eff6ff;
    padding: 15px 20px;
    border-radius: 8px;
}

.main-nav a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.main-nav a:hover {
    background: #1d4ed8;
    color: white;
}

/* Сетка контента */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Главная статья */
.post-featured {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.post-featured .post-thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.post-featured .post-content {
    padding: 30px;
}

.post-category {
    background: #1d4ed8;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.post-featured .post-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.post-featured .post-title a {
    text-decoration: none;
    color: #1f2937;
}

.post-meta {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #6b7280;
}

.read-more {
    background: #1d4ed8;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.read-more:hover {
    background: #1e40af;
}

/* Сетка статей */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

.post-card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card .post-content {
    padding: 20px;
}

.post-card .post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-card .post-title a {
    text-decoration: none;
    color: #1f2937;
}

.post-card .post-title a:hover {
    color: #1d4ed8;
}

/* Одиночная статья */
.post-single {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.post-single .post-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-single .post-thumbnail {
    margin: 30px 0;
}

.post-single .post-thumbnail img {
    width: 100%;
    border-radius: 8px;
}

.post-content {
    font-size: 16px;
    line-height: 1.7;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #1d4ed8;
}

.post-content h3 {
    font-size: 20px;
    margin: 25px 0 10px;
    color: #1e40af;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}

/* Сайдбар */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d4ed8;
    border-bottom: 2px solid #eff6ff;
    padding-bottom: 10px;
}

.popular-post, .related-post {
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.popular-post:last-child, .related-post:last-child {
    border-bottom: none;
}

.popular-post h4, .related-post h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.popular-post a, .related-post a {
    text-decoration: none;
    color: #1f2937;
}

.popular-post a:hover, .related-post a:hover {
    color: #1d4ed8;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 8px;
}

.categories-list a {
    text-decoration: none;
    color: #6b7280;
    padding: 5px 0;
    display: block;
}

.categories-list a:hover {
    color: #1d4ed8;
}

/* Футер */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: 60px;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #1d4ed8;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #6b7280;
    text-decoration: none;
}

.footer-section a:hover {
    color: #1d4ed8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .header-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-featured .post-title {
        font-size: 24px;
    }

    .post-single {
        padding: 20px;
    }

    .post-single .post-title {
        font-size: 28px;
    }
}
