/*
Theme Name: Photograph Info
Description: Тема для блога о фотографии
Version: 1.0
*/

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

body {
    font-family: "Roboto", Sans-serif;
    color: #333333;
    background-color: #f7f8f9;
    line-height: 1.6;
    font-weight: 400;
}

.site-wrapper {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header */
.site-header {
    padding: 25px 0;
    background: #ffffff;
    border-bottom: 30px solid #f7f8f9;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-container {
    text-align: center;
}

.logo-link {
    display: inline-block;
}

.logo {
    max-height: 80px;
    width: auto;
}

.site-tagline {
    text-align: center;
}

.site-tagline h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #333333;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.site-tagline p {
    font-size: 1.1em;
    color: #666;
    font-weight: 300;
    font-style: italic;
}

/* Main Container */
.main-container {
    display: flex;
    gap: 25px;
    padding: 25px;
    min-height: calc(100vh - 200px);
}

/* Sidebar */
.sidebar {
    width: 23%;
    flex-shrink: 0;
    border-right: 2% solid #f7f8f9;
}
.sidebar-widget {
    margin-bottom: 35px;
    padding: 20px;

}

.widget-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    margin-bottom: 10px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
    border-bottom: 1px dashed #eaeaea;
    padding-bottom: 8px;
}

.sidebar-menu li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.sidebar-menu a:hover {
    color: #2c3e50;
    padding-left: 10px;
}

/* Recent Posts in Sidebar */
.recent-post {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.recent-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.recent-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: transform 0.2s ease;
}

.recent-post-link:hover {
    transform: translateX(5px);
}

.recent-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
}

.recent-post-thumbnail img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.recent-post-title {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    flex-grow: 1;
    margin: 0;
}

/* Main Content */
.main-content {
    width: 75%;
    flex-grow: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
}

.hero-section h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    gap: 30px;
}

/* Single Post */
.single-post {
    background: #ffffff;
}

.post-thumbnail {
    margin-bottom: 25px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-content {
    padding: 0 10px;
}

.post-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.2;
}

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

.post-meta time {
    font-weight: 500;
}

.post-category {
    font-weight: 500;
    color: #667eea;
}

.post-body {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.post-body h2 {
    font-size: 1.6em;
    color: #2c3e50;
    margin: 30px 0 15px;
    font-weight: 600;
}

.post-body h3 {
    font-size: 1.3em;
    color: #2c3e50;
    margin: 25px 0 12px;
    font-weight: 600;
}

.post-body p {
    margin-bottom: 15px;
}

/* Home & Category Posts */
.home-post,
.category-post {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-post:hover,
.category-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.home-post .post-thumbnail,
.category-post .post-thumbnail {
    margin-bottom: 0;
}

.home-post .post-thumbnail img,
.category-post .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.home-post .post-info,
.category-post .post-info {
    padding: 20px;
}

.home-post .post-title,
.category-post .post-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.home-post .post-title a,
.category-post .post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.home-post .post-title a:hover,
.category-post .post-title a:hover {
    color: #667eea;
}

.post-excerpt {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.read-more:hover {
    border-bottom-color: #667eea;
}

/* Category Page */
.category-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.category-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-style: italic;
    color: #555;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 10px;
}

.nav-links a,
.nav-links span {
    padding: 8px 16px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links .current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 25px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-content p {
    font-size: 14px;
    color: #bdc3c7;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        width: 100%;
        order: 1;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-wrapper {
        width: 95%;
    }
    
    .main-container {
        padding: 15px;
    }
    
    .site-tagline h1 {
        font-size: 2em;
    }
    
    .hero-section {
        padding: 30px 20px;
    }
    
    .hero-section h2 {
        font-size: 1.8em;
    }
    
    .post-title {
        font-size: 1.8em;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-widget {
        padding: 15px;
    }
}

	.site-tagline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 50px; /* Настройте под ваш логотип */
    width: auto;
}

.site-tagline p {
    margin: 0;
    text-align: right;
    flex-shrink: 0;
}

.page-content-text {
    line-height: 1.6;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Списки */
.page-content-text ul,
.page-content-text ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.page-content-text li {
    margin: 0.5em 0;
    padding-left: 0.5em;
}

.page-content-text ul li {
    list-style-type: none;
    position: relative;
}

.page-content-text ul li::before {
    content: "—";
    position: absolute;
    left: -1em;
    color: #666;
}

.page-content-text ol {
    counter-reset: list-counter;
}

.page-content-text ol li {
    counter-increment: list-counter;
    list-style-type: none;
    position: relative;
}

.page-content-text ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: -1.5em;
    color: #666;
    font-weight: 500;
}

/* Таблицы */
.page-content-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95em;
}

.page-content-text th,
.page-content-text td {
    padding: 0.75em 1em;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.page-content-text th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.page-content-text tr:hover {
    background-color: #fafafa;
}

/* Цитаты */
.page-content-text blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #007cba;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
}

.page-content-text blockquote p {
    margin: 0;
}

/* Дополнительные стили для лучшей читаемости */
.page-content-text p {
    margin: 1em 0;
}

.page-content-text h1, 
.page-content-text h2, 
.page-content-text h3, 
.page-content-text h4, 
.page-content-text h5, 
.page-content-text h6 {
    margin: 1.5em 0 0.5em 0;
    line-height: 1.3;
    color: #222;
}