/* ==========================================================================
   FURRY CRITTER NETWORK - Magazine Article Styles
   styles_article_magazine.css
   Version: 1.0
   For: Animal Care & Information Articles
   NO EXTERNAL RESOURCES - All fonts are system fonts
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES - MAGAZINE THEME
   ========================================================================== */
:root {
    /* Typography - System Font Stacks */
    --mag-font-display: Georgia, 'Times New Roman', Times, serif;
    --mag-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Spacing - Generous for readability */
    --mag-space-xs: 0.5rem;
    --mag-space-sm: 1rem;
    --mag-space-md: 1.5rem;
    --mag-space-lg: 2.5rem;
    --mag-space-xl: 4rem;
    --mag-space-2xl: 6rem;
    
    /* Layout */
    --mag-content-width: 680px;
    --mag-page-width: 900px;
    
    /* Colors - Using site palette */
    --mag-burgundy: #8B3A3A;
    --mag-burgundy-deep: #6B2A2A;
    --mag-gold: #C4956A;
    --mag-gold-muted: #D4A57A;
    --mag-cream: #FAF6F1;
    --mag-warm-white: #FFFCF8;
    --mag-text-primary: #2D2926;
    --mag-text-secondary: #5A5552;
    --mag-text-tertiary: #7A7572;
    --mag-border: #E8E0D5;
    --mag-border-light: #F0EBE4;
    
    /* Transitions */
    --mag-transition: 0.25s ease;
}

/* ==========================================================================
   2. READING PROGRESS BAR
   ========================================================================== */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--mag-burgundy), var(--mag-gold));
    transition: width 0.1s linear;
}

/* ==========================================================================
   3. ARTICLE HEADER - TYPOGRAPHY HERO
   ========================================================================== */
.article-header {
    background: var(--mag-cream);
    padding: var(--mag-space-2xl) var(--mag-space-lg) var(--mag-space-xl);
    text-align: center;
    border-bottom: 1px solid var(--mag-border);
}

.article-header-inner {
    max-width: var(--mag-page-width);
    margin: 0 auto;
}

/* Taxonomy / Breadcrumb */
.article-taxonomy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--mag-space-sm);
    margin-bottom: var(--mag-space-lg);
    font-family: var(--mag-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.taxonomy-category {
    color: var(--mag-burgundy);
}

.taxonomy-divider {
    color: var(--mag-gold);
    font-weight: 300;
}

.taxonomy-subcategory {
    color: var(--mag-text-secondary);
}

/* Main Title */
.article-title {
    font-family: var(--mag-font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: normal;
    color: var(--mag-text-primary);
    line-height: 1.2;
    margin: 0 0 var(--mag-space-md);
    letter-spacing: -0.01em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Deck / Subtitle */
.article-deck {
    font-family: var(--mag-font-display);
    font-size: 1.2rem;
    font-weight: normal;
    font-style: italic;
    color: var(--mag-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto var(--mag-space-lg);
}

/* Byline */
.article-byline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--mag-space-sm);
    font-family: var(--mag-font-body);
    font-size: 0.85rem;
    color: var(--mag-text-tertiary);
}

.byline-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.byline-item svg {
    color: var(--mag-gold);
}

.byline-divider {
    color: var(--mag-border);
}

/* ==========================================================================
   4. MAIN ARTICLE LAYOUT
   ========================================================================== */
.article-main {
    background: var(--mag-warm-white);
    padding: var(--mag-space-xl) var(--mag-space-lg);
}

.article-container {
    max-width: var(--mag-content-width);
    margin: 0 auto;
}

/* ==========================================================================
   5. AT A GLANCE BOX
   ========================================================================== */
.at-a-glance {
    background: var(--mag-cream);
    border-left: 4px solid var(--mag-gold);
    border-radius: 0 8px 8px 0;
    padding: var(--mag-space-md) var(--mag-space-lg);
    margin-bottom: var(--mag-space-xl);
}

.glance-header {
    display: flex;
    align-items: center;
    gap: var(--mag-space-xs);
    font-family: var(--mag-font-display);
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--mag-burgundy);
    margin-bottom: var(--mag-space-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.glance-header svg {
    color: var(--mag-gold);
}

.glance-list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mag-space-sm);
}

.glance-item {
    text-align: center;
}

.glance-item dt {
    font-family: var(--mag-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mag-text-tertiary);
    margin-bottom: 0.25rem;
}

.glance-item dd {
    font-family: var(--mag-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mag-text-primary);
    margin: 0;
}

/* Urgency Level Colors */
.urgency-informational { color: var(--mag-text-secondary); }
.urgency-important { color: #7A6A3A; }
.urgency-urgent { color: #B8860B; }
.urgency-emergency { color: var(--mag-burgundy); font-weight: 700; }

/* ==========================================================================
   6. ARTICLE BODY - THE READING EXPERIENCE
   ========================================================================== */
.article-body {
    font-family: var(--mag-font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--mag-text-primary);
}

/* Section Styling */
.article-section {
    margin-bottom: var(--mag-space-xl);
    padding-bottom: var(--mag-space-lg);
    border-bottom: 1px solid var(--mag-border-light);
}

.article-section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--mag-space-lg);
}

/* Section Headings */
.section-heading {
    font-family: var(--mag-font-display);
    font-size: 1.6rem;
    font-weight: normal;
    color: var(--mag-text-primary);
    margin: 0 0 var(--mag-space-md);
    padding-bottom: var(--mag-space-sm);
    border-bottom: 2px solid var(--mag-gold);
    display: inline-block;
}

.heading-label {
    display: block;
    font-family: var(--mag-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mag-burgundy);
    margin-bottom: 0.25rem;
}

/* Section Body / Paragraphs */
.section-body p {
    margin: 0 0 1.5em;
}

.section-body p:last-child {
    margin-bottom: 0;
}

/* Drop Cap on First Paragraph of First Section */
.article-section:first-of-type .section-body p:first-of-type::first-letter {
    font-family: var(--mag-font-display);
    font-size: 3.5rem;
    font-weight: normal;
    float: left;
    line-height: 1;
    padding-right: 0.5rem;
    padding-top: 0.1rem;
    color: var(--mag-burgundy);
}

/* ==========================================================================
   7. PULL QUOTES (Optional - for use in content)
   ========================================================================== */
.pull-quote {
    margin: var(--mag-space-lg) 0;
    padding: var(--mag-space-lg);
    background: var(--mag-cream);
    border-radius: 4px;
    position: relative;
}

.pull-quote::before {
    content: '"';
    font-family: var(--mag-font-display);
    font-size: 4rem;
    color: var(--mag-gold);
    position: absolute;
    top: 0;
    left: 1rem;
    line-height: 1;
    opacity: 0.5;
}

.pull-quote p {
    font-family: var(--mag-font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--mag-text-secondary);
    margin: 0;
    padding-left: 2rem;
}

/* ==========================================================================
   8. ARTICLE FOOTER
   ========================================================================== */
.article-footer {
    margin-top: var(--mag-space-xl);
    padding-top: var(--mag-space-lg);
    border-top: 2px solid var(--mag-border);
    text-align: center;
}

.footer-cta {
    font-family: var(--mag-font-body);
    font-size: 1rem;
    color: var(--mag-text-secondary);
}

.footer-cta a {
    color: var(--mag-burgundy);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--mag-gold);
    transition: var(--mag-transition);
}

.footer-cta a:hover {
    color: var(--mag-burgundy-deep);
    border-bottom-color: var(--mag-burgundy);
}

/* ==========================================================================
   9. BACK NAVIGATION
   ========================================================================== */
.back-navigation {
    max-width: var(--mag-page-width);
    margin: 0 auto;
    padding: var(--mag-space-lg);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--mag-space-xs);
    color: var(--mag-burgundy);
    text-decoration: none;
    font-family: var(--mag-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: var(--mag-space-sm) var(--mag-space-md);
    background: var(--mag-warm-white);
    border-radius: 50px;
    border: 1px solid var(--mag-border);
    transition: var(--mag-transition);
}

.back-link:hover {
    background: var(--mag-burgundy);
    color: var(--mag-warm-white);
    border-color: var(--mag-burgundy);
    transform: translateX(-5px);
}

.back-link svg {
    transition: var(--mag-transition);
}

.back-link:hover svg {
    transform: translateX(-3px);
}

/* ==========================================================================
   10. RESPONSIVE - TABLET (768px)
   ========================================================================== */
@media (max-width: 768px) {
    .article-header {
        padding: var(--mag-space-xl) var(--mag-space-md) var(--mag-space-lg);
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-deck {
        font-size: 1.05rem;
    }
    
    .article-byline {
        flex-direction: column;
        gap: var(--mag-space-xs);
    }
    
    .byline-divider {
        display: none;
    }
    
    .article-main {
        padding: var(--mag-space-lg) var(--mag-space-md);
    }
    
    .glance-list {
        grid-template-columns: 1fr;
        gap: var(--mag-space-md);
    }
    
    .glance-item {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: var(--mag-space-sm);
        border-bottom: 1px solid var(--mag-border-light);
    }
    
    .glance-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .glance-item dt {
        margin-bottom: 0;
    }
    
    .section-heading {
        font-size: 1.4rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-section:first-of-type .section-body p:first-of-type::first-letter {
        font-size: 2.8rem;
    }
}

/* ==========================================================================
   11. RESPONSIVE - MOBILE (480px)
   ========================================================================== */
@media (max-width: 480px) {
    .article-taxonomy {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .taxonomy-divider {
        display: none;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-deck {
        font-size: 1rem;
    }
    
    .at-a-glance {
        padding: var(--mag-space-sm) var(--mag-space-md);
    }
    
    .section-heading {
        font-size: 1.25rem;
    }
    
    .pull-quote {
        padding: var(--mag-space-md);
    }
    
    .pull-quote p {
        font-size: 1.1rem;
        padding-left: 1.5rem;
    }
    
    .pull-quote::before {
        font-size: 3rem;
    }
    
    .back-navigation {
        padding: var(--mag-space-md);
    }
}

/* ==========================================================================
   12. PRINT STYLES
   ========================================================================== */
@media print {
    .progress-container,
    .back-navigation {
        display: none !important;
    }
    
    .article-header {
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .article-section {
        page-break-inside: avoid;
    }
    
    .article-body {
        font-size: 11pt;
        line-height: 1.6;
    }
}

/* ==========================================================================
   13. ANIMATION - SUBTLE FADE IN
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-section {
    animation: fadeIn 0.5s ease both;
}

.article-section:nth-child(1) { animation-delay: 0.1s; }
.article-section:nth-child(2) { animation-delay: 0.15s; }
.article-section:nth-child(3) { animation-delay: 0.2s; }
.article-section:nth-child(4) { animation-delay: 0.25s; }
.article-section:nth-child(5) { animation-delay: 0.3s; }
.article-section:nth-child(6) { animation-delay: 0.35s; }
.article-section:nth-child(7) { animation-delay: 0.4s; }
.article-section:nth-child(8) { animation-delay: 0.45s; }
