/* main.css locks html/body to a fixed, non-scrolling single-viewport
   layout for the map app. news.php is a normal scrollable content page,
   so we override those specific rules here (loaded after main.css). */
html,
body{
    overflow:auto;
    height:auto;
}

body{
    position:static;
    inset:auto;
}

.news-wrap{
    max-width:1100px;
    margin:0 auto;
    padding:150px 20px 60px;
    color:white;
}

@media (max-width:768px){
    .news-wrap{
        padding:170px 16px 60px;
    }
}

.news-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:25px;
}

.news-header h1{
    margin:0;
    font-size:32px;
}

.write-story-btn{
    display:inline-block;
    background:#d41111;
    color:white;
    text-decoration:none;
    font-weight:bold;
    padding:12px 22px;
    border-radius:10px;
    border:1px solid rgba(255,60,60,.45);
    box-shadow:0 0 18px rgba(255,0,0,.18);
    transition:.25s;
}

.write-story-btn:hover{
    background:#b50000;
    box-shadow:0 0 24px rgba(255,40,40,.35);
}

.category-filters{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:30px;
}

.category-pill{
    display:inline-block;
    padding:8px 16px;
    border-radius:20px;
    background:#181818;
    border:1px solid #2a2a2a;
    color:#ccc;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    transition:.2s;
}

.category-pill:hover{
    border-color:#666;
    background:#222;
}

.category-pill.active{
    background:#d41111;
    border-color:#ff4040;
    color:white;
}

.story-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
    gap:20px;
}

.story-card{
    display:block;
    background:rgba(15,15,15,.7);
    border:1px solid #222;
    border-radius:14px;
    overflow:hidden;
    text-decoration:none;
    color:white;
    transition:.2s;
}

.story-card:hover{
    border-color:#d41111;
    box-shadow:0 0 20px rgba(255,0,0,.15);
    transform:translateY(-2px);
}

.story-card-thumb{
    width:100%;
    height:170px;
    object-fit:cover;
    background:#111;
    display:block;
}

.story-card-body{
    padding:16px;
}

.story-card-category{
    display:inline-block;
    font-size:11px;
    font-weight:bold;
    letter-spacing:.5px;
    text-transform:uppercase;
    color:#ff6666;
    margin-bottom:8px;
}

.story-card-title{
    font-size:18px;
    font-weight:bold;
    margin:0 0 10px;
    line-height:1.3;
}

.story-card-snippet{
    font-size:14px;
    color:#aaa;
    line-height:1.5;
    margin-bottom:12px;
}

.story-card-meta{
    font-size:12px;
    color:#777;
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:8px;
}

.empty-state{
    text-align:center;
    color:#777;
    padding:80px 20px;
}

.pagination{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:35px;
}

.pagination a{
    display:inline-block;
    padding:10px 16px;
    border-radius:8px;
    background:#181818;
    border:1px solid #2a2a2a;
    color:#ccc;
    text-decoration:none;
    font-weight:600;
}

.pagination a.active{
    background:#d41111;
    border-color:#ff4040;
    color:white;
}

/* ---------- ARTICLE VIEW ---------- */

.back-link{
    display:inline-block;
    margin-bottom:20px;
    color:#ccc;
    text-decoration:none;
    font-weight:600;
}

.back-link:hover{
    color:white;
}

.article-category{
    display:inline-block;
    font-size:12px;
    font-weight:bold;
    letter-spacing:.5px;
    text-transform:uppercase;
    color:#ff6666;
    margin-bottom:12px;
}

.article-title{
    font-size:36px;
    line-height:1.2;
    margin:0 0 15px;
}

.article-meta{
    color:#999;
    font-size:14px;
    margin-bottom:20px;
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.share-bar{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:25px;
    padding-bottom:20px;
    border-bottom:1px solid #222;
}

.share-label{
    color:#777;
    font-size:13px;
    font-weight:600;
}

.share-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:8px 14px;
    border-radius:20px;
    background:#181818;
    border:1px solid #2a2a2a;
    color:#ddd;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    font-family:inherit;
}

.share-btn:hover{
    border-color:#666;
    background:#222;
}

.share-fb:hover{
    border-color:#1877f2;
    color:#1877f2;
}

.share-x:hover{
    border-color:#fff;
}

.article-media{
    width:100%;
    max-height:480px;
    object-fit:cover;
    border-radius:14px;
    margin-bottom:25px;
    display:block;
}

.article-content{
    font-size:17px;
    line-height:1.8;
    color:#e8e8e8;
    margin-bottom:35px;
}

.article-incident-link{
    display:inline-block;
    margin-bottom:30px;
    background:#181818;
    border:1px solid #333;
    border-radius:10px;
    padding:14px 18px;
    color:#ff6666;
    text-decoration:none;
    font-weight:600;
}

.article-incident-link:hover{
    border-color:#d41111;
}

.credibility-section{
    background:#111;
    border:1px solid #222;
    border-radius:14px;
    padding:20px;
    margin-bottom:25px;
}

.confidence-bar{
    height:14px;
    border-radius:20px;
    overflow:hidden;
    background:#222;
    margin:12px 0;
}

.confidence-fill{
    height:100%;
    background:linear-gradient(90deg, #d41111, #ffcc00, #00cc66);
}

.rate-buttons{
    display:flex;
    gap:10px;
    margin-top:15px;
}

.report-link{
    display:inline-block;
    margin-top:20px;
    color:#777;
    font-size:13px;
    text-decoration:underline;
    cursor:pointer;
    background:none;
    border:none;
    font-family:inherit;
}

.report-link:hover{
    color:#ff4444;
}
