/* ============================================================
   Poros Indonesia — stylesheet
   ============================================================ */
:root {
  --red: #e3262e;
  --red-dark: #b91d24;
  --navy: #12233b;
  --navy-soft: #2b3d58;
  --ink: #1a2230;
  --muted: #6b7787;
  --line: #e7eaf0;
  --bg: #f6f7f9;
  --white: #fff;
  --shadow: 0 3px 18px rgba(18, 35, 59, .07);
  --shadow-lg: 0 12px 34px rgba(18, 35, 59, .13);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- TOP BAR ---------- */
.topbar { background: var(--navy); color: #d9e0ea; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 16px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5252; box-shadow: 0 0 0 4px rgba(255,82,82,.16); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,82,82,0); } }
.divider { width: 1px; height: 13px; background: rgba(255,255,255,.2); }
.topbar-contact { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-weight: 600; }
.topbar-contact svg { width: 13px; height: 13px; fill: #4caf78; }
.topbar-contact:hover { color: #7ee2a8; }

/* ---------- HEADER ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 92px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { width: 62px; height: 62px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 25px; font-weight: 900; letter-spacing: -.7px; color: var(--navy); white-space: nowrap; }
.brand-text strong span { color: var(--red); margin-left: 5px; }
.brand-text small { margin-top: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; }
.search-box { display: flex; align-items: center; gap: 9px; background: #f4f6f9; border: 1px solid var(--line); border-radius: 24px; padding: 0 14px; height: 40px; width: min(330px, 100%); transition: .2s; }
.search-box:focus-within { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(227,38,46,.08); }
.search-box svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.search-box input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 13px; color: var(--ink); }
.search-box input::placeholder { color: #9aa3b0; }
.search-clear { border: 0; background: transparent; font-size: 20px; color: var(--muted); padding: 0 2px; }
.wa-button { display: flex; align-items: center; gap: 9px; background: #25d366; color: #062b16; padding: 7px 15px 7px 11px; border-radius: 24px; font-weight: 800; font-size: 12px; white-space: nowrap; transition: .2s; box-shadow: 0 3px 10px rgba(37,211,102,.24); }
.wa-button:hover { background: #1fc35c; transform: translateY(-1px); }
.wa-button svg { width: 22px; height: 22px; fill: #fff; }
.wa-button span { display: flex; flex-direction: column; line-height: 1.2; }
.wa-button small { font-weight: 600; font-size: 10.5px; opacity: .8; }

/* ---------- NAV ---------- */
.main-nav { position: sticky; top: 0; z-index: 60; background: var(--red); box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.channel-tabs { display: flex; overflow-x: auto; scrollbar-width: none; flex: 1; }
.channel-tabs::-webkit-scrollbar { display: none; }
.tab { background: transparent; border: 0; color: rgba(255,255,255,.82); font-size: 12.5px; font-weight: 700; padding: 15px 14px; white-space: nowrap; border-bottom: 3px solid transparent; transition: .15s; }
.tab:hover { color: #fff; background: rgba(0,0,0,.08); }
.tab.active { color: #fff; border-bottom-color: #fff; }
.source-select-wrap { position: relative; flex-shrink: 0; }
.source-select { display: flex; align-items: center; gap: 7px; background: rgba(0,0,0,.16); border: 0; color: #fff; padding: 9px 13px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.source-select:hover { background: rgba(0,0,0,.28); }
.funnel-icon { width: 12px; height: 12px; }
.chev { font-size: 10px; }
.source-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 70; max-height: 400px; overflow-y: auto; }
.source-menu button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 7px; font-size: 12.5px; color: var(--ink); }
.source-menu button:hover, .source-menu button.selected { background: #fef0f0; color: var(--red); font-weight: 700; }
.source-menu .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ---------- TICKER ---------- */
.ticker { display: flex; align-items: center; background: #fff; border-bottom: 1px solid var(--line); height: 38px; overflow: hidden; }
.ticker-label { flex-shrink: 0; align-self: stretch; display: flex; align-items: center; padding: 0 15px; background: var(--navy); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.ticker-track { flex: 1; overflow: hidden; }
.ticker-move { display: flex; gap: 38px; white-space: nowrap; width: max-content; animation: marquee 70s linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker-move a { font-size: 12px; color: var(--navy-soft); font-weight: 500; }
.ticker-move a:hover { color: var(--red); }
.ticker-move b { color: var(--red); margin-right: 7px; font-size: 10px; }

/* ---------- SPACING ---------- */
main.wrap { padding-top: 26px; padding-bottom: 56px; }

/* ---------- HERO ---------- */
.hero-block { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; margin-bottom: 32px; min-height: 350px; }
.hero-main { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.hero-main > img { width: 100%; height: 320px; object-fit: cover; opacity: .82; transition: transform .6s; }
.hero-main:hover > img { transform: scale(1.035); }
.hero-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,32,.08) 10%, rgba(8,18,32,.92) 100%); }
.hero-main-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 24px; color: #fff; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; background: var(--red); padding: 5px 9px; border-radius: 4px; margin-bottom: 10px; }
.hero-main h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(22px, 2.1vw, 31px); line-height: 1.18; margin: 0 0 8px; letter-spacing: -.3px; }
.hero-main p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.hero-side article { display: grid; grid-template-columns: 108px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; padding: 9px; transition: .2s; }
.hero-side article:hover { box-shadow: var(--shadow); border-color: #d4dae4; transform: translateY(-1px); }
.hero-side .hero-side-img { width: 108px; height: 100%; min-height: 88px; border-radius: 6px; overflow: hidden; background: #e9edf2; display: grid; place-items: center; }
.hero-side .hero-side-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-side .hero-side-img.no-image::before { content: 'PI'; font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 800; color: #b9c3d1; }
.hero-side h3 { margin: 4px 0 7px; font-size: 13px; line-height: 1.35; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- META ---------- */
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 10.5px; color: var(--muted); }
.source-badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; font-size: 9.5px; padding: 3px 7px; border-radius: 4px; background: #f1f3f7; color: var(--navy); }
.source-badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.hero-main .source-badge { background: rgba(255,255,255,.16); color: #fff; }
.hero-main .meta { color: rgba(255,255,255,.75); }

/* ---------- SECTION HEAD ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0 0 15px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.section-head h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 18px; font-weight: 900; letter-spacing: -.3px; color: var(--navy); }
.section-head.compact { border-bottom: 0; padding-bottom: 0; }
.section-head .hint { font-size: 11px; color: var(--muted); }
.accent-bar { display: inline-block; width: 5px; height: 19px; background: var(--red); border-radius: 3px; }
.text-button { background: none; border: 0; color: var(--red); font-size: 12px; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.channel-section { margin-bottom: 36px; scroll-margin-top: 60px; }

/* ---------- SOURCE CHIPS ---------- */
.sources-section { margin-bottom: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; box-shadow: var(--shadow); }
.source-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #f6f7f9; border: 1px solid var(--line); border-radius: 20px; padding: 7px 12px; font-size: 11.5px; font-weight: 700; color: var(--navy-soft); transition: .15s; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { font-weight: 600; opacity: .62; }

/* ---------- CARDS ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-thumb { position: relative; height: 152px; background: #e9edf2; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.045); }
.card-thumb.no-image { display: grid; place-items: center; background: linear-gradient(135deg, #e8edf4, #f5f7fa); }
.card-thumb.no-image::before { content: 'PI'; font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 800; color: #b9c3d1; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 13px 14px 14px; }
.card-body h3 { margin: 8px 0 7px; font-size: 13.5px; line-height: 1.42; font-weight: 750; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 57px; }
.card:hover h3 { color: var(--red); }
.card-body p { margin: 0 0 13px; font-size: 11.5px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 53px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); }
.read-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--red); }
.read-link:hover { gap: 8px; }
.card-flag { font-size: 9px; font-weight: 700; color: #9aa3b0; text-transform: uppercase; letter-spacing: .3px; }

/* ---------- SKELETON ---------- */
.skeleton { background: linear-gradient(90deg, #e9edf2 25%, #f5f7fa 50%, #e9edf2 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.hero-skeleton { min-height: 350px; }
.grid-skeleton { height: 320px; }

/* ---------- BUTTONS / STATUS ---------- */
.load-more-wrap { display: flex; justify-content: center; margin-top: 12px; }
.load-more { background: #fff; border: 1px solid var(--navy); color: var(--navy); padding: 11px 28px; border-radius: 24px; font-weight: 800; font-size: 12px; }
.load-more:hover { background: var(--navy); color: #fff; }
.status-line { text-align: center; padding: 30px; color: var(--muted); font-size: 13px; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; font-size: 20px; box-shadow: var(--shadow-lg); z-index: 80; opacity: 0; pointer-events: none; transition: .2s; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--red); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--navy); color: #b9c5d5; padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 34px; }
.footer-brand { display: flex; gap: 15px; align-items: flex-start; }
.footer-logo { width: 62px; height: 62px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand h3 { margin: 3px 0 8px; color: #fff; font-size: 15px; letter-spacing: .5px; }
.footer-brand p, .footer-col p { margin: 0 0 10px; font-size: 11.5px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 13px; margin: 3px 0 14px; }
.footer-contact { display: inline-block; background: rgba(37,211,102,.14); color: #6ee7a1; border: 1px solid rgba(37,211,102,.3); border-radius: 7px; padding: 8px 13px; font-weight: 800; font-size: 14px; }
.footer-note { font-size: 10.5px !important; opacity: .7; }
.footer-sources { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
.footer-sources a { font-size: 11px; }
.footer-sources a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0 22px; font-size: 10.5px; line-height: 1.6; opacity: .75; }
.footer-bottom p { margin: 3px 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1050px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .search-box { width: 260px; }
}
@media (max-width: 820px) {
  .hero-block { grid-template-columns: 1fr; }
  .hero-main > img { height: 270px; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1240px); }
  .topbar-left span:not(.live-dot) { font-size: 10px; }
  .topbar-right #today-date, .topbar-right .divider { display: none; }
  .header-inner { min-height: 0; }
  .brand-logo { width: 50px; height: 50px; }
  .brand-text strong { font-size: 19px; }
  .brand-text small { font-size: 9px; }
  .header-actions { width: 100%; }
  .search-box { flex: 1; width: auto; }
  .wa-button { padding: 8px 11px; }
  .wa-button span { font-size: 0; }
  .wa-button small { font-size: 0; }
  .hero-side { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .card-thumb { height: 190px; }
  .section-head h2 { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-sources { grid-template-columns: 1fr 1fr; }
}
