/**
 * Articles CSS Styles
 * Article-specific styling for Sustainable Practice article pages
 * 
 * SEMANTIC VERSIONING:
 * MAJOR.MINOR.PATCH
 * 
 * @version 0.1.0 - Initial article-specific styles extraction
 * 
 * CHANGELOG:
 * 0.1.0 - Extracted article-specific styles from suspra.css
 *         - Article page layout and typography
 *         - Article header, meta, and content styling
 *         - Article footer and actions
 *         - Responsive design for article pages
 */

/* ========================================
   ARTICLE PAGE STYLES
   ======================================== */

/* Article page body - add top padding to account for fixed header */
body.article-page {
    padding-top: 80px !important; /* Space for fixed header - force override */
}

/* Article page main content - no margin needed since body has padding */
body.article-page main {
    margin-top: 0 !important; /* Reset any margin */
    position: relative !important; /* Ensure proper positioning */
}

/* Article content container */
.article-content {
    position: relative;
    z-index: 1; /* Lower than header, but above other content */
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Article header */
.article-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sage-green-light);
}

/* Article meta information */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Article title */
.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--forest-green);
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

/* Article excerpt */
.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0 0 1rem 0;
    font-style: italic;
}

/* Article body content */
.article-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

/* Article body typography */
.article-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--forest-green);
    margin: 2rem 0 1rem 0;
    padding-top: 1rem;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--forest-green);
    margin: 1.5rem 0 0.75rem 0;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body ul, .article-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

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

.article-body strong {
    font-weight: 600;
    color: var(--forest-green);
}

.article-body a {
    color: var(--sunset-orange);
    text-decoration: none;
    transition: var(--transition);
}

.article-body a:hover {
    color: var(--forest-green);
    text-decoration: underline;
}

/* Article images */
.article-body img,
.article-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Image containers */
.article-body .captioned-image-container {
    margin: 2rem 0;
    text-align: center;
}

.article-body .captioned-image-container figure {
    margin: 0;
    display: inline-block;
    max-width: 100%;
}

.article-body .captioned-image-container img {
    margin: 0;
    max-width: 100%;
    height: auto;
}

/* Responsive image sizing */
@media (max-width: 768px) {
    .article-body img {
        margin: 1rem auto;
        border-radius: 4px;
    }
    
    .article-body .captioned-image-container {
        margin: 1.5rem 0;
    }
}

/* Article footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sage-green-light);
}

/* Article actions */
.article-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive design for article pages */
@media (max-width: 768px) {
    body.article-page {
        padding-top: 70px; /* Adjust for smaller header */
    }
    
    .article-content {
        padding: 1rem 0.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .article-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   BUTTON STYLING OVERRIDES
   ======================================== */

/* Article page secondary button styling - fix white-on-white visibility issue */
.article-page .btn-secondary {
    background-color: var(--forest-green);
    color: #FFFFFF;
    border-color: var(--forest-green);
    border: 2px solid var(--forest-green);
}

.article-page .btn-secondary:hover {
    background-color: var(--earth-brown);
    color: #FFFFFF;
    border-color: var(--earth-brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}
