/*
Theme Name: Jejak Kriminal PRO
Theme URI: https://jejak-kriminal.com
Author: PT Entertainment Jejak Kriminal
Description: Theme portal berita kriminal profesional dengan SEO NewsArticle dan struktur Google Discover
Version: 1.0
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: jejak-kriminal-pro
*/

:root {
    --bg: #0f0f10;
    --card: #1a1a1c;
    --accent: #c1121f;
    --accent2: #e63946;
    --text: #f1f1f1;
    --muted: #9a9a9a;
    --border: #2b2b2b;
    --link: #ff3b3b;
    --link-hover: #ff6666;
    --shadow-red: rgba(255,0,0,0.6);
    --shadow-red-soft: rgba(255,0,0,0.4);
}

/* =====================================================
RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

.wrapper {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* =====================================================
NAVBAR
===================================================== */
.navbar {
    background: #0b0b0c;
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 65px;
}

.nav-left a {
    color: var(--accent2);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.nav-center {
    text-align: center;
}

.nav-center img {
    height: 40px;
    width: auto;
}

.nav-right a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.nav-right a:hover {
    color: var(--accent2);
}

/* =====================================================
DROPDOWN MENU
===================================================== */
.menu {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    transition: 0.3s;
}

.menu a:hover {
    background: var(--accent);
}

/* =====================================================
BREAKING NEWS BAR
===================================================== */
.breaking-bar {
    background: #190000;
    border-top: 1px solid #330000;
    border-bottom: 1px solid #330000;
}

.breaking-inner {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.breaking-label {
    background: var(--accent);
    padding: 10px 15px;
    font-weight: bold;
    flex-shrink: 0;
}

.breaking-news {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.breaking-news span {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 40s linear infinite;
}

.breaking-news a {
    margin-right: 40px;
    color: #fff;
    text-decoration: none;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =====================================================
BANNER
===================================================== */
.company-banner {
    background: #1a1a1c;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #222;
}

.company-banner img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.company-banner p {
    max-width: 800px;
    margin: auto;
    color: #cfcfcf;
}

/* =====================================================
SLIDER
===================================================== */
.slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.slide {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.slide img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.slide h2 {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,.7);
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

/* =====================================================
NEWS GRID
===================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.news-card {
    background: var(--card);
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    color: #fff;
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.news-card h3 {
    font-size: 16px;
}

/* =====================================================
TRENDING
===================================================== */
.trending {
    margin-top: 50px;
}

.trending a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #333;
    color: #fff;
    text-decoration: none;
}

/* =====================================================
ARTICLE & IMAGES
===================================================== */
.article p {
    margin-bottom: 20px;
    font-size: 17px;
    color: #e5e5e5;
}

.article p a,
.article li a {
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,0,0,0.4);
    transition: 0.3s;
}

.article p a:hover,
.article li a:hover {
    color: var(--link-hover);
    border-bottom: 1px solid var(--link);
}

article img,
.featured-image img,
.wp-block-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin: 25px 0;
}

.img-caption {
    font-size: 13px;
    color: #9a9a9a;
    margin-top: -15px;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.5;
}

.lightbox img {
    max-width: 95%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

/* =====================================================
FOOTER
===================================================== */
.footer {
    margin-top: 90px;
    background: linear-gradient(180deg,#0c0c0d,#070707);
    border-top: 3px solid var(--accent);
    padding: 60px 20px 40px;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
    opacity: 0.8;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.1fr;
    gap: 45px;
}
.footer-bottom{
display:flex;
justify-content:center;
align-items:center;
text-align:center;
width:100%;
margin-top:30px;
padding:20px 0;
border-top:1px solid rgba(255,255,255,0.1);
font-size:14px;
color:#ccc;
}

/* ===============================
RESPONSIVE
=============================== */
@media(max-width: 900px){
    .footer-container { grid-template-columns: 1fr 1fr; gap: 35px; }
}

@media(max-width: 600px){
    .footer-container { grid-template-columns: 1fr; }
    .footer { padding: 50px 20px; }
}

@media(max-width:768px){
    .traffic-box { padding:12px; }
    .traffic-item { font-size:13px; }
    .traffic-item b { font-size:16px; }
    article img { border-radius:10px; margin:20px 0; }
    .featured-image img { border-radius:12px; }
}

@media(max-width:480px){
    article img { border-radius:8px; }
}