/* WordPress-Style Theme for Minsk Guide */

:root {
    --primary-color: #2c7a4d;
    --secondary-color: #4a90e2;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #e1e8ed;
    --white: #ffffff;
    --footer-bg: #2d3748;
    --link-hover: #1e5a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.wp-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #358a5f 100%);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    color: var(--white);
    text-decoration: none;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo .tagline {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.main-navigation a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 15px;
}

.main-navigation a:hover {
    opacity: 0.8;
}

.current-menu-item a {
    border-bottom: 2px solid var(--white);
}

/* Main Content Layout */
.wp-content {
    padding: 40px 0;
    min-height: 70vh;
}

.wp-content .container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f4f0 100%);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-color);
}

.hero-section h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.single-post .post {
  	--padding-post: 15px;
    padding: var(--padding-post);
}

.single-post .article-image {
    margin-inline: calc(-1 * var(--padding-post));
}

.post {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.post-thumbnail {
    overflow: hidden;
    height: 200px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.post:hover .post-thumbnail img {
    transform: scale(1.08);
}

.entry-content {
    padding: 20px;
}

.entry-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.entry-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.entry-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Article Page Styles */
.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
}

.article-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content h2 {
    font-size: 26px;
    color: var(--primary-color);
    margin: 35px 0 20px;
    line-height: 1.4;
}

.article-content h3 {
    font-size: 22px;
    color: var(--text-color);
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 20px 0 20px 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.article-content a:hover {
    border-bottom-color: var(--secondary-color);
}

.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Sidebar Styles */
.wp-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.widget {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 12px;
    padding-left: 15px;
    position: relative;
}

.widget ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.widget a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover {
    color: var(--primary-color);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.search-form button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.search-form button:hover {
    background: var(--link-hover);
}

.textwidget p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Category/Archive Pages */
.page-header {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f4f0 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-color);
}

.page-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-description {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

.category-posts {
    display: grid;
    gap: 30px;
}

.category-post {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    transition: box-shadow 0.3s;
}

.category-post:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.category-post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.category-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-post-content {
    padding: 25px;
}

.category-post-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.category-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.category-post-title a:hover {
    color: var(--primary-color);
}

.category-post-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.related-posts h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-post-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.related-post-item:hover {
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.related-post-item a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 15px;
}

.related-post-item a:hover {
    color: var(--primary-color);
}

/* Footer Styles */
.wp-footer {
    background: var(--footer-bg);
    color: #cbd5e0;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #4a5568;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    font-size: 14px;
    color: #a0aec0;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-widgets {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wp-content .container {
        grid-template-columns: 1fr;
    }

    .wp-sidebar {
        position: static;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .header-top {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-section h2 {
        font-size: 26px;
    }

    .article-header h1 {
        font-size: 28px;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-post {
        grid-template-columns: 1fr;
    }

    .category-post-thumbnail {
        height: 250px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
