/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
    --primary-dark: #263355;
    --primary-darker: #1a2339;
    --primary-lighter: #3d4d6f;
    --accent-green: #00FE66;
    --accent-green-hover: #00ff70;
    --text-white: #FFFFFF;
    --text-gray: #B8C5D6;
    --text-muted: #7A8BA3;
    --card-bg: #2A3654;
    --card-border: #3d4d6f;
    --glow-green: rgba(0, 254, 102, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   GLOBAL & ANIMATED BACKGROUND
   ======================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #0a1628 0%, #06101f 50%, #0a1628 100%);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

/* Grid pattern with large squares */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(20, 37, 66, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 37, 66, 0.3) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: 0;
    pointer-events: none;
}

/* Left side glow effect with squares */
body::after {
    content: '';
    position: fixed;
    left: -200px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 800px;
    background: 
        linear-gradient(135deg, rgba(41, 98, 255, 0.15) 0%, transparent 70%),
        linear-gradient(135deg, rgba(0, 200, 255, 0.1) 20%, transparent 80%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

/* Right side glow effect */
.background-glow-right {
    position: fixed;
    right: -200px;
    top: 30%;
    width: 600px;
    height: 800px;
    background: 
        linear-gradient(-135deg, rgba(139, 92, 246, 0.12) 0%, transparent 70%),
        linear-gradient(-135deg, rgba(236, 72, 153, 0.08) 20%, transparent 80%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #B8C5D6;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #00E05C;
}

.breadcrumbs span {
    margin: 0 0.2rem;
    color: white;
}

.breadcrumbs .current {
    color: #E8EEF4;
}

/* Header Grid: Title + Score */
.header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    background: #1A2339;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    align-items: center;
}

.title-section h2 {
    font-size: 1.6rem;
    line-height: 1.4;
    color: #E8EEF4;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #B8C5D6;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.score-section {
    text-align: center;
}

.score-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: conic-gradient(var(--score-color) var(--score-percent), rgba(255,255,255,.1) 0);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-inner {
    width: 150px;
    height: 150px;
    background: #1a2339;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #B8C5D6;
    margin-top: 0.25rem;
}

.verdict-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.source-link {
    display: block;
    color: #95A5A6;
    text-decoration: none;
    font-size: 0.85rem;
}

.source-link:hover {
    color: #00FE66;
}

/* Summary */
.summary {
    background: #1A2339;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.summary h3 {
    color: #00FE66;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.summary p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #E8EEF4;
}

/* Mosaic Grid for Accurate/Inaccurate */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.mosaic-card {
    background: #1A2339;
    padding: 1.25rem;
    border-radius: 15px;
    border-left: 4px solid var(--card-color);
    transition: all 0.3s;
    padding-bottom: 25px;
}

.mosaic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.mosaic-card.accurate {
    --card-color: #00FE66;
}

.mosaic-card.inaccurate {
    --card-color: #E74C3C;
}

.mosaic-card.context {
    --card-color: #F39C12;
}

.mosaic-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.mosaic-card.accurate .mosaic-icon {
    color: #00FE66;
}

.mosaic-card.inaccurate .mosaic-icon {
    color: #E74C3C;
}

.mosaic-card.context .mosaic-icon {
    color: #F39C12;
}

.mosaic-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #E8EEF4;
}

.section-header {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #E8EEF4;
    padding-top: 20px;
}

.section-header i {
    color: #00FE66;
}

/* Pillar Sections */
.section {
    background: #1A2339;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.4rem !important;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title.green {
    color: #00FE66;
}

.claim-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.25rem;
    border-left: 4px solid #00FE66;
}

.claim-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.claim-verdict {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.claim-verdict.true { background: #00FE66; color: #0f1520; }
.claim-verdict.false { background: #E74C3C; color: #fff; }
.claim-verdict.partial { background: #F39C12; color: #0f1520; }
.claim-verdict.unverified { background: #95A5A6; color: #fff; }
.claim-verdict.not-factual { background: #6c757d; color: #fff; }

.source-card {
    background: rgba(0, 0, 0, 0.35);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 3px solid #00FE66;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.source-card:hover {
    transform: translateX(5px);
    background: rgba(0, 0, 0, 0.45);
}

.actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}



.loading {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0, 254, 102, 0.2);
    border-top-color: #00FE66;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .title-section h2 {
        font-size: 1.3rem;
    }
    
    .mosaic-grid {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
}
/* ============================================
   UNIFIED HEADER GRID - MOBILE FIRST
   ============================================ */

/* Base Mobile Layout */
.unified-header-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0,254,102,0.05) 0%, rgba(15,21,32,0.8) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0,254,102,0.2);
}

/* Title & Meta Column */
.title-meta-column {
    order: 1;
}

.content-type-label {
    color: #00FE66;
    font-weight: 900;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-title {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.instagram-info {
    color: #B8C5D6;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #B8C5D6;
    margin-bottom: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.source-link {
    color: #95A5A6;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline;
    top: -0.5rem;
    vertical-align: middle;
    position:relative;
}

.source-link:hover {
    color: #00FE66;
}

.source-link i {
    font-size: 0.85rem;
}

/* Score Column */
.score-column {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(var(--score-color) var(--score-percent), rgba(255,255,255,.1) 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-inner {
    width: 150px;
    height: 150px;
    background: #1a2339;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #B8C5D6;
    margin-top: 0.25rem;
}

.verdict-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Summary Column */
.summary-column {
    order: 3;
}

.summary-content {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--score-color, #00FE66);
}

.summary-content h3 {
    font-size: 1.2rem;
    color: #00FE66;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-content p {
    color: #E8EEF5;
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
}

/* ============================================
   DESKTOP LAYOUT (769px+)
   ============================================ */

@media (min-width: 769px) {
    .unified-header-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto auto;
        gap: 2rem 3rem;
        padding: 2.5rem;
    }
    
    /* Title spans full width at top */
    .title-meta-column {
        grid-column: 1 / -1;
        grid-row: 1;
        order: 1;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    /* Summary on left bottom */
    .summary-column {
        grid-column: 1;
        grid-row: 2;
        order: 2;
    }
    
    /* Score on right bottom */
    .score-column {
        grid-column: 2;
        grid-row: 2;
        order: 3;
        border: none;
        padding: 0;
        justify-content: flex-start;
    }
    
    .score-circle {
        width: 220px;
        height: 220px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .unified-header-grid {
        gap: 1.5rem 2rem;
    }
    
    .main-title {
        font-size: 1.6rem;
    }
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #00FE66 !important;
    color: #0f1520 !important;
    padding: 15px 30px!important;
}

.btn-primary:hover {
    background: #00E05C;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 254, 102, 0.3);
}

.btn-pdf {
    background: #e74c3c !important;
    color: #fff !important;    padding: 15px 30px!important;

    
}

.btn-pdf:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}