/* ============================================
   THE CLIMATE LEDGER — ARTICLES V3 STYLES
   Fresh Light Green Executive Aesthetic
   ============================================ */

.articles-page {
    padding-top: 100px;
    padding-bottom: 60px;
}

/* --- CONTROLS BAR: TABS & LIVE SEARCH --- */
.articles-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.articles-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(4, 32, 26, 0.85);
    border: 1.5px solid rgba(110, 231, 183, 0.35);
    border-radius: 9999px;
    padding: 0.65rem 1.35rem;
    gap: 0.75rem;
    min-width: 320px;
    box-shadow: 0 8px 25px rgba(0, 20, 16, 0.35);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.articles-search-box:focus-within {
    border-color: #34d399;
    box-shadow: 0 0 25px rgba(52, 211, 153, 0.4);
}

.articles-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    width: 100%;
}

.articles-search-box input::placeholder {
    color: #a7f3d0;
    font-weight: 450;
}

/* --- SPOTLIGHT INTELLIGENCE HERO --- */
.articles-spotlight-section {
    margin-bottom: 2.5rem;
}

.spotlight-card {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(145deg, #093c33 0%, #052720 100%) !important;
    border: 1px solid rgba(110, 231, 183, 0.28) !important;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 16px 45px -4px rgba(0, 20, 16, 0.45) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.spotlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(110, 231, 183, 0.55) !important;
    box-shadow: 0 24px 60px -4px rgba(0, 20, 16, 0.65), 0 0 28px rgba(110, 231, 183, 0.22) !important;
}

.spotlight-banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.1rem;
    background: rgba(16, 185, 129, 0.25);
    border-bottom: 1px solid rgba(110, 231, 183, 0.35);
    border-right: 1px solid rgba(110, 231, 183, 0.35);
    border-radius: 0 0 12px 0;
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spotlight-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
    animation: pulse 2s infinite;
}

.spotlight-content-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.25rem;
    padding: 2rem 2.5rem 2.5rem;
    align-items: center;
}

.spotlight-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.spotlight-cat-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(110, 231, 183, 0.4);
    color: #6ee7b7;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.spotlight-read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #6ee7b7;
    font-weight: 600;
    font-family: var(--font-mono, monospace);
}

.spotlight-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff !important;
    margin-bottom: 0.95rem;
    letter-spacing: -0.02em;
}

.spotlight-excerpt {
    font-size: 1.02rem;
    color: #e2f8f4 !important;
    line-height: 1.75;
    font-weight: 450;
    margin-bottom: 1.5rem;
}

.spotlight-action-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-spotlight-read {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, #0fa98f 0%, #10b981 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 20, 16, 0.4);
    transition: all 0.25s ease;
}

.btn-spotlight-read:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.spotlight-author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #a7f3d0;
}

.spotlight-image-col {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 240px;
    border: 1px solid rgba(110, 231, 183, 0.3);
}

.spotlight-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.spotlight-card:hover .spotlight-thumb {
    transform: scale(1.04);
}

.spotlight-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 30, 24, 0.65) 100%);
}

.spotlight-floating-tags {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    font-size: 0.78rem;
    font-weight: 700;
    color: #a7f3d0;
    font-family: var(--font-mono, monospace);
    background: rgba(4, 30, 25, 0.92);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(110, 231, 183, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- TRENDING FOCUS CHIPS --- */
.trending-topics-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1.4rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 30, 24, 0.15);
    backdrop-filter: blur(12px);
}

.trending-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
}

.trending-chips-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.trending-chip {
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.trending-chip:hover {
    color: #34d399;
    border-color: #34d399;
    background: rgba(9, 60, 51, 0.95);
}

.trending-chip.active {
    color: #ffffff;
    border-color: #34d399;
    background: #093c33;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0, 20, 16, 0.4);
}

/* --- ARTICLES GRID --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1.5rem 0;
    align-items: start;
}

/* --- ARTICLE CARD --- */
.article-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #093c33 0%, #052720 100%) !important;
    border: 1px solid rgba(110, 231, 183, 0.28) !important;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 45px -4px rgba(0, 20, 16, 0.45) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    border-color: rgba(110, 231, 183, 0.55) !important;
    transform: translateY(-8px);
    box-shadow: 0 24px 60px -4px rgba(0, 20, 16, 0.65), 0 0 28px rgba(110, 231, 183, 0.22) !important;
}

.article-card-image {
    height: 190px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(110, 231, 183, 0.2);
    background: #0d2822;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 30, 24, 0.65) 100%);
    z-index: 1;
}

.premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(110, 231, 183, 0.45);
    color: #6ee7b7;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.28rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.03em;
}

.article-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.28rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(110, 231, 183, 0.35);
    background: rgba(4, 30, 25, 0.88);
    color: #34d399;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* --- CARD BODY --- */
.article-card-body {
    padding: 1.6rem 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: transparent !important;
}

/* Tags Row */
.article-tags-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.article-tag-chip {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(110, 231, 183, 0.35);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-family: var(--font-mono, monospace);
}

/* Title */
.article-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
    color: #ffffff !important;
    margin-bottom: 0.85rem;
    transition: color 0.2s ease;
}

.article-card:hover .article-title {
    color: #34d399 !important;
}

/* Excerpt */
.article-card-body .excerpt-text {
    font-size: 0.96rem;
    color: #e2f8f4 !important;
    font-weight: 450;
    line-height: 1.68;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card-body .excerpt-text.expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    white-space: normal;
    color: #e2f8f4 !important;
}

/* Read More / Show Less */
.btn-read-more,
.btn-show-less {
    color: #6ee7b7;
    font-size: 0.92rem;
    font-weight: 800;
    margin-top: 1.15rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(110, 231, 183, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.btn-read-more:hover,
.btn-show-less:hover {
    color: #ffffff;
    background: #0fa98f;
    border-color: #34d399;
    gap: 9px;
}

/* Meta Footer */
.article-card-meta {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(110, 231, 183, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #a7f3d0;
    font-weight: 600;
}

.article-read-time {
    color: #6ee7b7;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   EXECUTIVE BRIEFING READER MODAL
   ============================================ */
.briefing-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(6, 78, 59, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.25s ease;
}

.briefing-modal-card {
    position: relative;
    max-width: 840px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #093c33 0%, #052720 100%) !important;
    border: 1px solid rgba(110, 231, 183, 0.35) !important;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 20, 16, 0.7);
    animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.briefing-modal-card::-webkit-scrollbar {
    width: 7px;
}
.briefing-modal-card::-webkit-scrollbar-track {
    background: rgba(0, 20, 16, 0.3);
}
.briefing-modal-card::-webkit-scrollbar-thumb {
    background: rgba(110, 231, 183, 0.35);
    border-radius: 4px;
}

.briefing-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(4, 30, 25, 0.85);
    border: 1px solid rgba(110, 231, 183, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.briefing-modal-close:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

.briefing-modal-banner {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #0d3830;
}

.briefing-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.briefing-banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(9, 60, 51, 0.95) 100%);
}

.briefing-banner-badges {
    position: absolute;
    bottom: 16px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    z-index: 2;
}

.briefing-cat-badge {
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(110, 231, 183, 0.4);
    color: #6ee7b7;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.briefing-read-badge,
.briefing-verified-badge {
    font-size: 0.76rem;
    color: #a7f3d0;
    background: rgba(4, 30, 25, 0.85);
    border: 1px solid rgba(110, 231, 183, 0.3);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

.briefing-verified-badge {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.45);
}

.briefing-modal-body {
    padding: 2rem 2.25rem 2.5rem;
}

.briefing-modal-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff !important;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.briefing-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(110, 231, 183, 0.18);
}

.briefing-meta-icon-ring {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(110, 231, 183, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.briefing-meta-info {
    flex-grow: 1;
}

.briefing-meta-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.briefing-meta-sub {
    color: #a7f3d0;
    font-size: 0.78rem;
}

.btn-share-briefing {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(110, 231, 183, 0.35);
    border-radius: 8px;
    color: #6ee7b7;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-share-briefing:hover {
    background: rgba(16, 185, 129, 0.28);
    border-color: #34d399;
    color: #ffffff;
}

.briefing-takeaways-box {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.4rem;
    background: rgba(4, 30, 25, 0.85) !important;
    border: 1px solid rgba(110, 231, 183, 0.25) !important;
    border-radius: 12px;
}

.takeaways-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.85rem;
}

.takeaways-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.takeaways-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #e2f8f4;
    line-height: 1.55;
}

.takeaway-bullet {
    color: #34d399;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
}

.briefing-content-paragraphs {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.briefing-p {
    font-size: 1.02rem;
    color: #e2f8f4 !important;
    font-weight: 450;
    line-height: 1.85;
    letter-spacing: 0.01em;
}

.briefing-tags-footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(110, 231, 183, 0.18);
}

.briefing-tags-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #6ee7b7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.briefing-tag-chip {
    font-size: 0.76rem;
    font-weight: 700;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(110, 231, 183, 0.35);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-family: var(--font-mono, monospace);
}

.briefing-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: rgba(4, 30, 25, 0.85);
    border: 1.5px solid rgba(110, 231, 183, 0.28);
    border-radius: 14px;
    flex-wrap: wrap;
}

.cta-box-text h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 0.35rem;
}

.cta-box-text p {
    font-size: 0.9rem;
    color: #e2f8f4 !important;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.btn-briefing-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.35rem;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    transition: all 0.25s ease;
}

.btn-briefing-cta:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .articles-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .articles-search-box {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-card-body {
        padding: 1.25rem;
    }
}
