/* 
   Poligraff Article Pages Stylesheet
   Design: Premium, clean, reading-optimized layout with print support.
*/

:root {
    --article-bg: #FFFFFF;
    --article-bg-alt: #F8FAFC; /* Slate 50 */
    --article-border: #E2E8F0; /* Slate 200 */
    --article-text-main: #1E293B; /* Slate 800 */
    --article-text-muted: #64748B; /* Slate 500 */
    --article-primary: #0F172A; /* Slate 900 */
    --article-accent: #0EA5E9; /* Sky 500 */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
}

/* Base resets & layout */
body.article-body {
    background-color: #F8FAFC;
    color: var(--article-text-main);
    font-family: var(--font-body);
    line-height: 1.8;
    padding-top: 80px;
    margin: 0;
    min-height: 100vh;
}

/* Progress Indicator */
.progress-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1002;
}

.progress-bar {
    height: 100%;
    background: var(--article-accent);
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Article Top Bar */
.article-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--article-border);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-sizing: border-box;
}

.article-topbar__left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--article-text-main);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--article-border);
    background-color: #FFF;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background-color: var(--article-bg-alt);
    border-color: var(--article-accent);
    color: var(--article-accent);
}

.logo__text {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--article-primary);
    letter-spacing: 0.05em;
}

/* Main Container */
.article-container {
    max-width: 840px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Sheet Layout */
.article-sheet {
    background-color: var(--article-bg);
    border: 1px solid var(--article-border);
    border-radius: 12px;
    padding: 3rem 4rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.02), 0 8px 10px -6px rgba(0,0,0,0.02);
}

@media (max-width: 768px) {
    .article-sheet {
        padding: 2rem 1.5rem;
    }
}

/* Typography styling */
.article-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--article-primary);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .article-title {
        font-size: 1.85rem;
    }
}

/* Metadata */
.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--article-text-muted);
    font-weight: 500;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--article-border);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Article Content Body */
.article-content {
    font-size: 1.1rem;
    color: var(--article-text-main);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content p strong {
    color: var(--article-primary);
}

.article-content h2 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--article-primary);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--article-border);
}

.article-content h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--article-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Bullets and Lists */
.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
    list-style-type: none;
    padding-left: 1.25rem;
}

.article-content ul li::before {
    content: "•";
    color: var(--article-accent);
    font-weight: bold;
    font-size: 1.25rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Quotes & Epigraphs */
.article-epigraph {
    font-style: italic;
    background-color: var(--article-bg-alt);
    border-left: 4px solid var(--article-accent);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2.5rem;
    border-radius: 0 6px 6px 0;
    font-size: 1.05rem;
}

.article-epigraph cite {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--article-text-muted);
    margin-top: 0.5rem;
    text-align: right;
    font-weight: 600;
}

/* Blockquotes */
.article-blockquote {
    border-left: 4px solid var(--article-accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--article-text-muted);
}

/* Images in Articles */
.article-image-container {
    text-align: center;
    margin: 3rem 0;
}

.article-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.article-image-caption {
    font-size: 0.9rem;
    color: var(--article-text-muted);
    font-style: italic;
    margin-top: 0.75rem;
}

/* Responsive iframe/video wrapper if needed */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2.5rem 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Print Styles */
@media print {
    body.article-body {
        background-color: #FFF !important;
        padding-top: 0 !important;
    }
    
    .article-topbar,
    .progress-container {
        display: none !important;
    }
    
    .article-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .article-sheet {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .article-content p {
        text-align: justify;
    }
}
