/* ================================================================
   ARTICLE PAGE - PRODUCTION STYLES
   Import main CSS + article overrides
   ================================================================ */

@import url('../css/style.css');

/* ================================================================
   LAYOUT
   ================================================================ */
main {
    padding-top: 84px;
    background: var(--cream);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.article-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
    margin-bottom: 0;
}

.article-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 22, 18, 0.45) 0%,
        rgba(15, 22, 18, 0.15) 35%,
        rgba(15, 22, 18, 0.75) 100%
    );
    z-index: 1;
}

.article-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 64px 0;
    z-index: 2;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: var(--amber-light);
}

.breadcrumb-separator {
    opacity: 0.6;
    font-size: 1.125rem;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 24px;
    color: var(--white);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    max-width: 900px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.article-meta-item svg {
    opacity: 0.8;
    flex-shrink: 0;
}

/* ================================================================
   CONTENT LAYOUT
   ================================================================ */
.article-section {
    padding: 80px 0;
    background: var(--cream);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 72px;
    align-items: start;
}

.article-main {
    min-width: 0;
}

/* ================================================================
   ARTICLE CONTENT
   ================================================================ */
.article-content {
    background: var(--white);
    padding: 72px 80px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.article-lead {
    font-size: 1.3125rem;
    line-height: 1.75;
    color: var(--charcoal);
    font-weight: 400;
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--cream-dark);
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--charcoal);
    margin: 64px 0 24px 0;
    line-height: 1.2;
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
    margin: 40px 0 20px 0;
    line-height: 1.3;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 28px;
}

.article-content strong {
    color: var(--charcoal);
    font-weight: 600;
}

.article-content em {
    color: var(--amber-dark);
    font-style: italic;
}

/* Highlight Box */
.highlight-box {
    background: var(--forest-light);
    border-left: 4px solid var(--forest);
    padding: 40px 48px;
    margin: 48px 0;
    border-radius: var(--radius-md);
}

.highlight-box h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--forest);
    margin: 0 0 24px 0;
}

.highlight-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.highlight-box ul li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-body);
}

.highlight-box ul li:last-child {
    margin-bottom: 0;
}

.highlight-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--forest);
}

/* Article Images */
.article-image {
    margin: 56px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.article-image figcaption {
    padding: 16px 20px;
    background: var(--cream-dark);
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* Quote Block */
.article-quote {
    background: var(--amber-light);
    border-left: 6px solid var(--amber);
    padding: 48px 56px;
    margin: 56px 0;
    border-radius: var(--radius-md);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 32px;
    left: 32px;
    opacity: 0.15;
}

.quote-icon svg {
    width: 64px;
    height: 64px;
    fill: var(--amber-dark);
}

.article-quote p {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--charcoal);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.article-quote cite {
    display: block;
    font-size: 1rem;
    font-style: normal;
    color: var(--text-muted);
    font-weight: 600;
}

/* How You Can Help section */
.help-section {
    background: var(--cream-dark);
    padding: 48px 56px;
    margin: 56px 0;
    border-radius: var(--radius-lg);
}

.help-section h2 {
    margin-top: 0 !important;
    margin-bottom: 32px !important;
}

.help-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-section ul li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-body);
}

.help-section ul li::before {
    content: "🐾";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.25rem;
}

/* ================================================================
   ARTICLE FOOTER (TAGS & SHARE)
   ================================================================ */
.article-footer {
    margin-top: 72px;
    padding-top: 56px;
    border-top: 3px solid var(--cream-dark);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.article-tag {
    background: var(--amber-light);
    color: var(--amber-dark);
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s;
}

.article-tag:hover {
    background: var(--amber);
    color: var(--white);
    transform: translateY(-2px);
}

.article-share {
    text-align: center;
}

.share-label {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 24px;
    font-family: var(--font-display);
}

.article-share-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    transition: all 0.25s var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.share-btn.facebook {
    background: #1877F2;
    color: var(--white);
}

.share-btn.twitter {
    background: #1DA1F2;
    color: var(--white);
}

.share-btn.email {
    background: var(--forest);
    color: var(--white);
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.back-to-news {
    text-align: center;
    margin-top: 56px;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.article-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 28px;
    line-height: 1.2;
}

/* Quick Links */
.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 6px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    transition: all 0.25s;
    font-size: 1rem;
    font-weight: 500;
}

.sidebar-links a:hover {
    background: var(--amber-light);
    color: var(--amber-dark);
    transform: translateX(6px);
}

.sidebar-links svg {
    flex-shrink: 0;
    color: var(--amber);
    width: 22px;
    height: 22px;
}

/* Impact Stats */
.sidebar-highlight {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
    color: var(--white);
}

.sidebar-highlight .sidebar-title {
    color: var(--white);
}

.sidebar-stat {
    text-align: center;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 12px;
}

.sidebar-stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Support CTA */
.sidebar-cta {
    background: linear-gradient(135deg, var(--amber-light) 0%, var(--gold-light) 100%);
    border: 3px solid var(--amber);
}

.sidebar-cta .sidebar-title {
    color: var(--amber-dark);
}

.sidebar-cta p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
    .article-content {
        padding: 56px 56px;
    }
    
    .article-layout {
        gap: 56px;
    }
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 28px;
    }
    
    .article-content {
        padding: 48px 48px;
    }
    
    .highlight-box {
        padding: 32px 36px;
    }
    
    .article-quote {
        padding: 36px 40px;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 72px;
    }
    
    .article-hero {
        height: 55vh;
        min-height: 400px;
    }
    
    .article-hero-content {
        padding: 40px 0;
    }
    
    .article-title {
        font-size: clamp(2rem, 7vw, 2.75rem);
        margin-bottom: 20px;
    }
    
    .article-section {
        padding: 56px 0;
    }
    
    .article-content {
        padding: 40px 32px;
        border-radius: var(--radius-lg);
    }
    
    .article-lead {
        font-size: 1.1875rem;
        margin-bottom: 36px;
        padding-bottom: 32px;
    }
    
    .article-content h2 {
        font-size: 1.75rem;
        margin: 48px 0 20px 0;
    }
    
    .article-content h3 {
        font-size: 1.375rem;
    }
    
    .article-content p {
        font-size: 1.0625rem;
    }
    
    .highlight-box {
        padding: 28px 28px;
        margin: 40px 0;
    }
    
    .article-quote {
        padding: 32px 28px;
        margin: 44px 0;
    }
    
    .article-quote p {
        font-size: 1.1875rem;
    }
    
    .sidebar-card {
        padding: 32px;
    }
}

@media (max-width: 600px) {
    .article-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .article-content {
        padding: 32px 24px;
    }
    
    .article-lead {
        font-size: 1.0625rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
        margin: 36px 0 16px 0;
    }
    
    .article-content p {
        font-size: 1rem;
    }
    
    .highlight-box {
        padding: 24px 20px;
    }
    
    .article-quote {
        padding: 24px 20px;
    }
    
    .article-quote p {
        font-size: 1.0625rem;
    }
    
    .article-image {
        margin: 40px 0;
        border-radius: var(--radius-md);
    }
    
    .sidebar-card {
        padding: 28px 24px;
    }
    
    .sidebar-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .article-hero {
        height: 45vh;
        min-height: 320px;
    }
    
    .article-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }
    
    .article-meta {
        gap: 16px;
        font-size: 0.9375rem;
    }
    
    .article-content {
        padding: 28px 20px;
    }
    
    .share-btn {
        width: 52px;
        height: 52px;
    }
}
