/* ===========================================
   Article Page Styles — jsalinas.org
   =========================================== */

/* Article Hero */
.article-hero {
    padding: 4rem 2rem 2rem;
    background: var(--bg-light);
}

.article-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.article-meta-date {
    font-weight: 500;
}

.article-meta-divider {
    color: var(--border);
}

.article-meta-reading {
    color: var(--text-light);
}

.article-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Article Content */
.article-content {
    padding: 3rem 2rem 5rem;
    background: var(--white);
}

.article-content-container {
    max-width: 720px;
    margin: 0 auto;
}

/* TL;DR / Answer-First Summary */
.article-tldr {
    background: linear-gradient(135deg, rgba(244, 196, 176, 0.15) 0%, rgba(244, 196, 176, 0.05) 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--peach);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
}

.article-tldr strong {
    color: var(--navy);
    font-weight: 700;
}

/* Body Text */
.article-content h2 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--navy);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.article-content h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 600;
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    padding-left: 0;
    margin: 0 0 1.5rem 0;
    list-style: none;
}

.article-content ul li,
.article-content ol li {
    padding: 0.4rem 0 0.4rem 1.75rem;
    position: relative;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.9rem;
    width: 8px;
    height: 8px;
    background: var(--peach);
    border-radius: 50%;
}

.article-content ol {
    counter-reset: article-counter;
}

.article-content ol li {
    counter-increment: article-counter;
}

.article-content ol li::before {
    content: counter(article-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--peach-dark);
}

.article-content a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.article-content a:hover {
    border-bottom-color: var(--accent-blue);
}

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

/* Pull Quote */
.article-pullquote {
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--navy);
    background: rgba(26, 43, 91, 0.03);
    border-radius: 0 12px 12px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.6;
    font-family: 'Crimson Text', Georgia, serif;
    font-style: italic;
}

/* Learning Preview Box */
.article-learning-preview {
    background: var(--bg-light);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin: 1.5rem 0 2rem;
}

.article-learning-preview p {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.article-learning-preview ul {
    margin-bottom: 0;
}

/* Remember Box */
.article-remember {
    background: linear-gradient(135deg, rgba(26, 43, 91, 0.06) 0%, rgba(26, 43, 91, 0.02) 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--navy);
    margin: 2.5rem 0;
}

.article-remember h3 {
    margin-top: 0;
    font-size: 1.15rem;
}

.article-remember ul {
    margin-bottom: 0;
}

/* Article CTA Section */
.article-cta {
    padding: 4rem 2rem;
    background: var(--navy);
    text-align: center;
}

.article-cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.article-cta h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.article-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.article-cta .btn-primary {
    font-size: 1.1rem;
    padding: 1.25rem 3rem;
}

/* Related Articles */
.article-related {
    padding: var(--section-padding);
    background: var(--bg-light);
}

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

.article-related h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 2.5rem;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.article-related-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.article-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 43, 91, 0.12);
    border-color: var(--peach);
}

.article-related-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-related-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Articles Index Page */
.articles-hero {
    padding: 5rem 2rem 3rem;
    background: var(--bg-light);
}

.articles-hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.articles-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.articles-hero p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-light);
    line-height: 1.6;
}

.articles-list {
    padding: var(--section-padding);
    background: var(--white);
}

.articles-list-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Category filter toggles */
.articles-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.articles-filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.articles-filter-btn:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.articles-filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.articles-filter-btn--triad.active {
    background: var(--navy);
    border-color: var(--navy);
}

.articles-filter-btn--strategy.active {
    background: #A0522D;
    border-color: #A0522D;
}

.articles-filter-btn--leadership.active {
    background: #3A7A8A;
    border-color: #3A7A8A;
}

.articles-filter-btn--guide.active {
    background: #8B6914;
    border-color: #8B6914;
}

.articles-list-item {
    display: block;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--border);
    border-radius: 0 8px 8px 0;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    background: transparent;
}

.articles-list-item:last-child {
    margin-bottom: 0;
}

.articles-list-item:hover {
    background: rgba(26, 43, 91, 0.02);
    transform: translateX(4px);
}

/* Category color bars */
.articles-list-item[data-category="triad"] {
    border-left-color: var(--navy);
}

.articles-list-item[data-category="strategy"] {
    border-left-color: var(--peach);
}

.articles-list-item[data-category="leadership"] {
    border-left-color: #4A90A4;
}

.articles-list-item[data-category="guide"] {
    border-left-color: #B8860B;
}

/* Category tag labels */
.article-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.article-category--triad {
    background: rgba(26, 43, 91, 0.1);
    color: var(--navy);
}

.article-category--strategy {
    background: rgba(244, 196, 176, 0.3);
    color: #A0522D;
}

.article-category--leadership {
    background: rgba(74, 144, 164, 0.12);
    color: #3A7A8A;
}

.article-category--guide {
    background: rgba(184, 134, 11, 0.12);
    color: #8B6914;
}

.articles-list-item h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: var(--transition);
}

.articles-list-item:hover h2 {
    color: var(--peach-dark);
}

.articles-list-item p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.articles-list-date {
    font-size: 0.85rem;
    color: var(--border);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .article-hero {
        padding: 3rem 1.25rem 1.5rem;
    }

    .article-content {
        padding: 2rem 1.25rem 3rem;
    }

    .article-tldr {
        padding: 1.25rem 1.5rem;
    }

    .article-pullquote {
        padding: 1.25rem 1.5rem;
        font-size: 1.05rem;
    }

    .article-cta {
        padding: 3rem 1.25rem;
    }

    .article-related {
        padding: 3rem 1.25rem;
    }

    .article-related-grid {
        grid-template-columns: 1fr;
    }

    .articles-hero {
        padding: 3rem 1.25rem 1.5rem;
    }

    .articles-list {
        padding: 2rem 1.25rem;
    }
}
