/* 
 * Main CSS file for "Поморский начетчик" website
 * 
 * This file combines all the CSS styles used across the site to avoid conflicts.
 * The structure is organized in logical sections:
 * 
 * 1. Reset - базовый сброс стилей браузера
 * 2. Global Styles - общие стили для всего сайта из style.css
 * 3. Components - стили компонентов интерфейса
 * 4. Layout - стили для разметки страниц
 * 5. Pages - стили для конкретных типов страниц
 * 6. Utilities - вспомогательные классы
 * 7. Media Queries - адаптивные стили
 * 
 * При добавлении новых стилей, пожалуйста, размещайте их в соответствующем разделе,
 * используя специфичные селекторы для предотвращения конфликтов.
 */

/*--------------------------------------------------------------
# Reset
--------------------------------------------------------------*/
/* Содержимое reset.css */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/*--------------------------------------------------------------
# Global Styles - from style.css
--------------------------------------------------------------*/
/* Base styles for the entire site */

/* Typography */
/* Basic styling */
/* Colors */
/* Containers and layouts */
/* Common components */

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
/* Buttons */
/* Navigation */
/* Cards */
/* Forms */
/* Modals */
/* Tables */
/* Pagination */
/* Alerts and notifications */

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
/* Header */
/* Footer */
/* Sidebar */
/* Grid system */

/*--------------------------------------------------------------
# Pages
--------------------------------------------------------------*/
/* 1. Article pages - from article.css */
/* Article header */
.article-header {
    position: relative;
    margin-bottom: 2rem;
}

.article-header-content {
    position: relative;
    padding: 2rem 0;
    z-index: 2;
}

.article-breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.article-breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumbs a:hover {
    color: #8B5A2B;
}

.article-category {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    background-color: #1F3438;
    color: #fff;
    font-size: 0.9rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-header h1 {
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    line-height: 1.2;
    color: #1F3438;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.article-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1F3438;
}

.author-title {
    font-size: 0.9rem;
    color: #666;
}

.article-details {
    display: flex;
    gap: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.article-details i {
    margin-right: 0.5rem;
    color: #8B5A2B;
}

.article-featured-image {
    width: 100%;
    height: auto;
    position: relative;
    margin-bottom: 2rem;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 5px;
}

.image-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Article layout */
.article-content-wrapper {
    padding: 2rem 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

/* Article sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.toc-box, .share-box, .tags-box {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.article-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1F3438;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.toc-list {
    list-style-type: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.8rem;
}

.toc-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.3rem 0;
    border-left: 3px solid transparent;
    padding-left: 0.8rem;
}

.toc-list a:hover, .toc-list a.active {
    color: #8B5A2B;
    border-left-color: #8B5A2B;
}

.social-sharing {
    display: flex;
    gap: 0.8rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #333;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #8B5A2B;
    color: #fff;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #e9e9e9;
    color: #555;
    border-radius: 3px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #d0d0d0;
    color: #333;
}

/* Article content */
.article-main {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.article-content {
    padding: 2rem;
}

.article-section {
    margin-bottom: 3rem;
}

.article-lead {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
    color: #444;
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1F3438;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1F3438;
}

.article-content p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-quote {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-left: 4px solid #8B5A2B;
}

.article-quote blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-quote cite {
    display: block;
    font-style: normal;
    text-align: right;
    font-size: 0.9rem;
    color: #666;
}

.article-image {
    margin: 2rem 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

.article-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.gallery-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
}

.feature-item h3 {
    color: #8B5A2B;
    margin-bottom: 0.8rem;
}

.feature-item p {
    margin-bottom: 0;
}

.article-sources {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.article-sources h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.article-sources ol {
    padding-left: 1.5rem;
}

.article-sources li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Author bio */
.article-author-bio {
    display: flex;
    padding: 2rem;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.article-author-bio .author-image {
    width: 100px;
    height: 100px;
    margin-right: 2rem;
}

.author-bio-content {
    flex: 1;
}

.author-bio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.author-bio-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1F3438;
}

.author-bio-content .author-title {
    font-style: italic;
    margin-bottom: 1rem;
}

.author-description {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.author-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-contact {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-contact:hover {
    color: #8B5A2B;
}

/* Comments */
.article-comments {
    padding: 2rem;
    border-top: 1px solid #e0e0e0;
}

.article-comments h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1F3438;
}

.login-to-comment {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

/* Related articles */
.related-articles {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.related-articles h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
}

.related-category {
    display: inline-block;
    font-size: 0.8rem;
    color: #8B5A2B;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.related-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.related-content h3 a {
    color: #1F3438;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h3 a:hover {
    color: #8B5A2B;
}

.related-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
}

/* 2. Articles listing - from articles.css */

/* 3. Authentication pages - from auth.css */

/* 4. Bible pages - from bible.css */

/* 5. Canons pages - from canons.css */

/* 6. Contact pages - from contacts.css */

/* 7. Courses pages - from courses.css */

/* 8. Library pages - from library.css */

/* 9. Profile pages - from profile.css */

/* 10. Questions pages - from questions.css */

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
/* Helper classes */
/* Placeholders - from placeholders.css */

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/
/* Responsive styles for different screen sizes */
/* Article responsive styles */
@media (max-width: 991px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        order: 2;
    }
    
    .article-main {
        order: 1;
    }
    
    .article-header h1 {
        font-size: 2.2rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .article-columns, 
    .feature-list,
    .article-gallery {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .article-details {
        flex-wrap: wrap;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-author-bio {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .article-author-bio .author-image {
        margin: 0 auto;
    }
    
    .author-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
} 