/*
Theme Name: Спецодежда
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Тема для сайта о спецодежде
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: specodezhda
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #2D5016;
    --green-light: #4A7C2F;
    --beige: #F5E6D3;
    --white: #FFFFFF;
    --text-dark: #2C3E1F;
    --border: #D4C4B0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--beige);
}

.site-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Header */
.site-header {
    background-color: var(--green);
    color: var(--white);
    padding: 2rem 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-title a {
    color: var(--white);
    text-decoration: none;
}

.site-description {
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Main content area */
.site-content {
    display: flex;
    flex: 1;
    gap: 0;
}

/* Sidebar with navigation */
.sidebar {
    width: 320px;
    background-color: var(--white);
    border-right: 1px solid var(--border);
    padding: 2rem;
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 1.25rem;
    color: var(--green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--green);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.75rem;
}

.sidebar a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sidebar a:hover {
    background-color: var(--beige);
    border-color: var(--green);
    transform: translateX(4px);
}

.sidebar .current-post a {
    background-color: var(--green);
    color: var(--white);
    font-weight: 600;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 3rem;
    background-color: var(--white);
}

/* Article styling */
article {
    max-width: 900px;
}

.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--green);
}

.entry-title {
    font-size: 3rem;
    color: var(--green);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.entry-meta {
    color: #6B7C5A;
    font-size: 0.95rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-size: 2rem;
    color: var(--green);
    margin: 2.5rem 0 1.5rem;
    font-weight: 600;
}

.entry-content h3 {
    font-size: 1.5rem;
    color: var(--green-light);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.entry-content blockquote {
    border-left: 4px solid var(--green);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4A5F3C;
}

/* Footer */
.site-footer {
    background-color: var(--green);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

.site-footer p {
    font-size: 1rem;
    opacity: 0.9;
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: #6B7C5A;
}

/* Responsive */
@media (max-width: 968px) {
    .site-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: none;
    }

    .main-content {
        padding: 2rem;
    }

    .entry-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 1.5rem;
    }

    .site-title {
        font-size: 1.75rem;
    }

    .main-content {
        padding: 1.5rem;
    }

    .entry-title {
        font-size: 1.75rem;
    }

    .entry-content {
        font-size: 1rem;
    }
}
