/* ================================================================================================
 * Public Content Styles
 * File: app/static/css/public_content.css
 *
 * Styles specific to public content pages (articles, reports, analysis).
 * Provides beautiful typography and layout for published content.
 * ================================================================================================ */

/* Content Header */
.content-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.header-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.content-meta .icon {
    opacity: 0.8;
}

.content-type,
.content-date {
    display: flex;
    align-items: center;
}

.content-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.2);
}

.content-status.status-published {
    background-color: rgba(39, 174, 96, 0.3);
}

.content-description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.content-description p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

/* Content Article */
.content-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Featured Image */
.featured-image-container {
    margin: -4rem auto 2rem;
    max-width: 700px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

/* Content Body */
.content-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2c3e50;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-body h1:first-child,
.content-body h2:first-child {
    margin-top: 0;
}

.content-body p {
    margin-bottom: 1.25rem;
}

.content-body ul,
.content-body ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.content-body blockquote {
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
    border-radius: 0 0.25rem 0.25rem 0;
}

.content-body code {
    background-color: #f4f4f4;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
}

.content-body pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.content-body pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.content-body strong {
    font-weight: 600;
    color: #2c3e50;
}

.content-body em {
    font-style: italic;
}

.content-body hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 2rem 0;
}

/* Content Actions */
.content-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-header {
        padding: 2rem 0;
    }
    
    .content-title {
        font-size: 2rem;
    }
    
    .content-meta {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .featured-image-container {
        margin-top: -2rem;
        border-radius: 0;
    }
    
    .content-body {
        font-size: 1rem;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here when implemented */
}

/* Article Type Specific */
.article-content .content-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Report Type Specific */
.report-content .content-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Analysis Type Specific */
.analysis-content .content-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}