/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d4a574;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header стили */
.site-header {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.9));
    color: white;
    padding: 0;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://martinacousticguitars.com/wp-content/themes/techland-10/images/header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.4;
}

.navigation-wrapper {
    width: 100%;
    position: relative;
    z-index: 10;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    padding: 20px;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 15;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-title a:hover {
    color: #d4a574;
}

/* НОВАЯ НАВИГАЦИЯ - Простая и надежная */
.main-navigation {
    position: relative;
    z-index: 20;
}

/* Кнопка гамбургер */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.menu-toggle.active {
    background: rgba(212, 165, 116, 0.9);
    border-color: #d4a574;
}

/* Основное меню для десктопа */
.primary-menu {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu li a {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 18px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
}

.primary-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #d4a574;
    transform: translateY(-2px);
}

/* Мобильное меню - НОВЫЙ ПОДХОД */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .main-navigation {
        width: 100%;
        order: 3;
    }

    /* Скрытое состояние меню */
    .primary-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background: rgba(44, 62, 80, 0.98);
        border-radius: 10px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        animation: slideDown 0.3s ease-out;
        width: 100%;
    }

    /* Показанное состояние меню */
    .primary-menu.show {
        display: flex;
    }

    .primary-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .primary-menu li:last-child {
        border-bottom: none;
    }

    .primary-menu li a {
        padding: 15px 20px;
        border-radius: 8px;
        margin: 5px 0;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
    }

    .primary-menu li a:hover {
        background-color: rgba(212, 165, 116, 0.2);
        border-left-color: #d4a574;
        padding-left: 25px;
    }

    .site-title {
        font-size: 2rem;
    }
}

/* Анимации */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Контент стили */
.site-content {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.site-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Featured Post */
.featured-post {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

.featured-post .entry-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-post .entry-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.featured-post blockquote {
    background: #f8f9fa;
    border-left: 4px solid #d4a574;
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.1rem;
    border-radius: 0 8px 8px 0;
}

.featured-post blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.post-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: fit-content;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-card .entry-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-card .entry-title a {
    color: #2c3e50;
}

.post-card .entry-title a:hover {
    color: #d4a574;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.entry-summary p {
    line-height: 1.6;
    color: #555;
}

/* Sidebar */
.widget-area {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.widget {
    margin-bottom: 40px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d4a574;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #555;
    transition: all 0.3s ease;
    display: block;
}

.widget ul li a:hover {
    color: #d4a574;
    padding-left: 10px;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-info p {
    margin: 0;
    opacity: 0.8;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }

    .site-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .featured-post {
        padding: 20px;
    }

    .featured-post .entry-title {
        font-size: 1.6rem;
    }

    .post-card {
        padding: 20px;
    }

    .widget-area {
        position: static;
        padding: 20px;
    }

    .primary-menu {
        padding: 15px;
    }

    .primary-menu li a {
        padding: 12px 15px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Дополнительные улучшения для меню */
.menu-toggle span {
    display: block;
    font-size: 14px;
    margin-top: 5px;
}

.menu-toggle.active span {
    color: white;
}

/* Плавная анимация при загрузке */
.site-header {
    animation: fadeIn 0.6s ease-out;
}

.featured-post,
.post-card {
    animation: fadeIn 0.8s ease-out;
}

/* Фокус для доступности */
.menu-toggle:focus,
.primary-menu a:focus {
    outline: 2px solid #d4a574;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
