/*
Theme Name: Julia Kuznetsova Portfolio
Theme URI: https://juliakuznetsova.com
Author: Claude
Author URI: https://anthropic.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: julia-portfolio
*/

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #fff;
    color: #333;
    display: flex;
    min-height: 100vh;
}

/* Левое меню */
.sidebar {
    width: 240px;
    padding: 40px 30px;
    border-right: 1px solid #e0e0e0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
}

.logo {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 35px;
    line-height: 1.4;
}

.logo a {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.6;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: opacity 0.3s;
    display: block;
}

nav a:hover {
    opacity: 0.5;
}

nav a.current-menu-item,
nav a.active {
    font-weight: 500;
}

.lang-switcher {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.lang-switcher a {
    display: inline;
    margin-right: 15px;
    font-size: 13px;
}

.lang-switcher a.active {
    font-weight: 500;
}

/* Основной контент */
.main-content {
    margin-left: 240px;
    flex: 1;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Главная страница */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1100px;
    width: 100%;
    padding: 0 80px;
}

.home-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.home-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.home-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-card:hover img {
    transform: scale(1.05);
}

.home-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 30px;
    color: white;
}

.home-card-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Страница категории (архив) */
.archive-page {
    padding: 0 80px;
    max-width: 1400px;
    width: 100%;
}

.page-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 50px;
    text-align: center;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.archive-item {
    transition: opacity 0.3s;
    width: 100%;
}

.archive-item:hover {
    opacity: 0.7;
}

.archive-item a {
    display: block;
    text-decoration: none;
    color: #333;
}

.archive-item-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f5f5f5;
    line-height: 0;
}

.archive-item-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.archive-item:hover .archive-item-image img {
    transform: scale(1.05);
}

.archive-item-info {
    text-align: center;
}

.archive-item-title {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.archive-item-meta {
    font-size: 13px;
    color: #999;
    letter-spacing: 0.3px;
}

/* Одиночная запись (проект/альбом) */
.single-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Для блог-статей (процесс) - шире для лучшего отображения фото */
.blog-article.single-content {
    max-width: 1100px;
}

.entry-header {
    text-align: center;
    margin-bottom: 50px;
}

.entry-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.entry-meta {
    font-size: 14px;
    color: #999;
    letter-spacing: 0.5px;
}

.entry-content {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 70px;
}

.entry-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.entry-content blockquote {
    margin: 30px 0;
    padding-left: 30px;
    border-left: 3px solid #ddd;
    font-style: italic;
    color: #666;
}

.entry-content a {
    color: #333;
    text-decoration: underline;
}

.entry-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
}

.entry-content a img {
    margin: 20px auto;
}

.entry-content p img {
    margin: 20px auto;
}

.entry-content figure {
    margin: 30px 0;
}

.entry-content figure img {
    margin: 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

/* WordPress галереи - поддержка 2-3 изображений в ряд */
.entry-content .wp-block-gallery,
.entry-content .blocks-gallery-grid,
.entry-content .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    list-style: none;
    padding: 0;
    max-width: 100%;
}

.entry-content .wp-block-gallery.columns-2,
.entry-content .gallery-columns-2 {
    justify-content: center;
}

.entry-content .gallery-columns-2 .gallery-item {
    width: calc(50% - 15px);
    max-width: none;
    flex: 0 0 calc(50% - 15px);
}

.entry-content .wp-block-gallery.columns-3,
.entry-content .gallery-columns-3 {
    justify-content: center;
}

.entry-content .gallery-columns-3 .gallery-item {
    width: calc(33.333% - 20px);
    max-width: none;
    flex: 0 0 calc(33.333% - 20px);
}

.entry-content .gallery-item,
.entry-content .blocks-gallery-item {
    margin: 0;
    flex-shrink: 0;
}

.entry-content .gallery-item a,
.entry-content .gallery-item img,
.entry-content .blocks-gallery-item img {
    width: 100% !important;
    height: auto !important;
    display: block;
    max-width: none !important;
}

/* Принудительно загружаем большие изображения */
.entry-content .gallery-item img[src*="-300x"],
.entry-content .gallery-item img[src*="-150x"] {
    min-width: 400px !important;
}

/* Мобильная версия галерей */
@media (max-width: 768px) {
    .entry-content .gallery-columns-2 .gallery-item,
    .entry-content .gallery-columns-3 .gallery-item {
        width: 100%;
        max-width: 100%;
    }
}

.entry-gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
}

.gallery-image {
    width: 100%;
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

/* Текстовые страницы */
.text-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px;
}

.text-page h1 {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-align: center;
}

.text-page p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Bio с фото */
.bio-header {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.bio-photo {
    flex-shrink: 0;
    width: 200px;
}

.bio-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.bio-text {
    flex: 1;
}

/* CV */
.cv-section {
    margin-bottom: 40px;
}

.cv-section h2 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cv-item {
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
}

.cv-year {
    font-weight: 500;
    min-width: 50px;
    flex-shrink: 0;
}

.cv-description {
    flex: 1;
}

/* Блог */
.blog-post-card {
    transition: opacity 0.3s;
}

.blog-post-card:hover {
    opacity: 0.7;
}

.blog-post-card a {
    text-decoration: none;
    color: #333;
}

.blog-post-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f5f5f5;
    line-height: 0;
}

.blog-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-title {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.blog-post-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.blog-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #666;
}

.blog-read-more {
    font-size: 14px;
    color: #333;
    text-decoration: underline;
}

/* Публикации */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.publication-item {
    transition: opacity 0.3s;
}

.publication-item:hover {
    opacity: 0.7;
}

.publication-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f5;
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контакты */
.contacts-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 40px;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    margin-top: 40px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background: #333;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.contact-form button:hover {
    opacity: 0.7;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px;
    font-size: 11px;
    color: #999;
    margin-top: 80px;
    width: 100%;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s;
}

.cookie-btn-accept {
    background: #333;
    color: white;
}

.cookie-btn-decline {
    background: #f5f5f5;
    color: #333;
}

.cookie-btn:hover {
    opacity: 0.7;
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1200px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 25px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 40px 0;
    }
    
    .home-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 25px;
    }
    
    .archive-page {
        padding: 0 25px;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .single-content {
        padding: 0 25px;
    }
    
    .text-page {
        padding: 0 25px;
    }
    
    .bio-header {
        flex-direction: column;
        gap: 30px;
    }
    
    .bio-photo {
        width: 150px;
        margin: 0 auto;
    }
    
    .cv-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   НОВОСТИ (NEWS)
   =================================== */

/* Архив новостей */
.news-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.news-card {
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: #333;
}

.news-card-image {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    line-height: 0;
}

.news-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 25px;
}

.news-card-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.news-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.news-card-more {
    font-size: 14px;
    color: #333;
    font-weight: 400;
}

/* Отдельная новость */
.news-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

.news-article .news-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.news-featured-image {
    width: 100%;
    margin: 40px 0;
    line-height: 0;
}

.news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-back-link {
    margin-top: 60px;
    margin-bottom: 40px;
}

.news-back-link a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.news-back-link a:hover {
    opacity: 0.6;
}

/* Мобильная версия новостей */
@media (max-width: 768px) {
    .news-archive {
        padding: 0 25px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-article {
        padding: 0 25px;
    }
}