/*
 * RadarFaktual Theme - Custom CSS
 * Dark news portal theme for Laravel Sintesis
 */

:root {
  --rf-bg-dark:    #1a1e26;
  --rf-bg-card:    #22293a;
  --rf-accent:     #e85d1a;
  --rf-accent2:    #f0a500;
  --rf-text-main:  #e8ecf3;
  --rf-text-muted: #8a95a8;
  --rf-border:     #2e3748;
  --rf-nav-active: #e85d1a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.rf-portal {
  background: var(--rf-bg-dark);
  color: var(--rf-text-main);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* ── TOP BAR ── */
.rf-top-bar {
  background: #111520;
  font-size: 12px;
  color: var(--rf-text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--rf-border);
}
.rf-top-bar .rf-socials a {
  color: var(--rf-text-muted);
  font-size: 14px;
  margin-left: 10px;
  transition: color .2s;
  text-decoration: none;
}
.rf-top-bar .rf-socials a:hover { color: var(--rf-accent); }

/* ── HEADER ── */
.rf-header {
  background: #111520;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--rf-border);
}
.rf-logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.rf-logo-icon {
  width: 52px; height: 52px;
  background: var(--rf-bg-card);
  border: 2px solid var(--rf-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--rf-accent);
  flex-shrink: 0;
}
.rf-logo-img {
  width: 52px; height: 52px;
  object-fit: contain;
  border-radius: 4px;
}
.rf-logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--rf-text-main);
}
.rf-logo-text span { color: var(--rf-accent); }
.rf-tagline {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--rf-text-muted);
  margin-top: 2px;
}

/* ── NAVBAR ── */
.rf-main-nav {
  background: #22293a;
  border-bottom: 3px solid var(--rf-accent);
}
.rf-main-nav .rf-nav-link {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .8px;
  color: var(--rf-text-main);
  padding: 11px 15px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color .2s, border-color .2s;
  text-decoration: none;
  white-space: nowrap;
}
.rf-main-nav .rf-nav-link:hover { color: var(--rf-accent2); }
.rf-main-nav .rf-nav-link.active {
  color: #fff;
  background: var(--rf-accent);
  border-radius: 4px 4px 0 0;
}
.rf-search-btn {
  background: none;
  border: none;
  color: var(--rf-text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: color .2s;
  margin-left: 16px;
  padding: 0 8px;
  flex-shrink: 0;
}
.rf-search-btn:hover { color: var(--rf-accent); }

/* ── TICKER ── */
.rf-ticker-bar {
  background: #111520;
  border-bottom: 1px solid var(--rf-border);
  padding: 0;
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.rf-ticker-bar .container {
  height: 100%;
  display: flex;
  align-items: center;
}
.rf-ticker-label {
  background: var(--rf-accent);
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 4px 14px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 18px;
  color: #fff;
}
.rf-ticker-track {
  display: flex;
  gap: 0;
  animation: rfTicker 32s linear infinite;
  white-space: nowrap;
}
.rf-ticker-track span {
  font-size: 13px;
  color: var(--rf-text-muted);
  padding-right: 60px;
}
.rf-ticker-track span::before {
  content: '●';
  color: var(--rf-accent);
  margin-right: 10px;
  font-size: 8px;
}
@keyframes rfTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── HERO CARD ── */
.rf-hero-section { padding: 24px 0 0; }
.rf-hero-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  height: 340px;
  background: var(--rf-bg-card);
  display: block;
  text-decoration: none;
}
.rf-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .7;
}
.rf-hero-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a2a3a 0%, #2e3a4e 60%, #1a2030 100%);
  display: flex; align-items: center; justify-content: center;
}
.rf-hero-placeholder .rf-mil-icon {
  font-size: 90px;
  color: rgba(255,255,255,.06);
}
.rf-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,22,.95) 0%, rgba(10,14,22,.4) 60%, transparent 100%);
}
.rf-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 24px;
}
.rf-hero-meta {
  font-size: 11px;
  color: var(--rf-text-muted);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}
.rf-hero-meta i { color: var(--rf-accent); }
.rf-category-badge {
  background: var(--rf-accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 2px;
  text-decoration: none;
}
.rf-hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 10px;
}
.rf-hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-btn-read {
  background: none;
  border: 1px solid var(--rf-accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  padding: 8px 22px;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  display: inline-block;
}
.rf-btn-read:hover { background: var(--rf-accent); color: #fff; }

/* ── SIDEBAR ── */
.rf-sidebar { padding-left: 18px; }
.rf-sidebar-block { margin-bottom: 28px; }
.rf-sidebar-title {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  border-left: 4px solid var(--rf-accent);
  padding-left: 10px;
  margin-bottom: 14px;
  color: #fff;
}
.rf-cat-list { display: flex; flex-direction: column; gap: 8px; }
.rf-cat-item {
  background: var(--rf-bg-card);
  border: 1px solid var(--rf-border);
  padding: 10px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .8px;
  color: var(--rf-text-main);
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rf-cat-item:hover {
  background: var(--rf-accent);
  border-color: var(--rf-accent);
  color: #fff;
}
.rf-cat-item.active {
  background: var(--rf-accent);
  border-color: var(--rf-accent);
  color: #fff;
}

/* Recent sidebar articles */
.rf-recent-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rf-border);
  text-decoration: none;
  align-items: flex-start;
}
.rf-recent-item:last-child { border-bottom: none; }
.rf-recent-thumb {
  width: 72px; height: 52px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--rf-bg-card);
}
.rf-recent-thumb-placeholder {
  width: 72px; height: 52px;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--rf-bg-card);
  border: 1px solid var(--rf-border);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.1);
  font-size: 18px;
}
.rf-recent-title {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--rf-text-main);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-recent-item:hover .rf-recent-title { color: var(--rf-accent); }
.rf-recent-date { font-size: 11px; color: var(--rf-text-muted); margin-top: 4px; }

/* ── SECTION TITLES ── */
.rf-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.2px;
  border-left: 4px solid var(--rf-accent);
  padding-left: 12px;
  margin: 28px 0 16px;
  color: #fff;
}

/* ── NEWS CARDS ── */
.rf-news-card {
  background: var(--rf-bg-card);
  border: 1px solid var(--rf-border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.rf-news-card:hover {
  border-color: var(--rf-accent);
  transform: translateY(-3px);
}
.rf-news-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #2e3748;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  color: rgba(255,255,255,.1);
  flex-shrink: 0;
}
.rf-news-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.rf-news-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.rf-news-meta {
  font-size: 11px;
  color: var(--rf-text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rf-news-title {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--rf-text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-news-card:hover .rf-news-title { color: var(--rf-accent); }
.rf-news-excerpt {
  font-size: 13px;
  color: var(--rf-text-muted);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── ARTICLE DETAIL ── */
.rf-article-header {
  padding: 32px 0 20px;
}
.rf-article-title {
  font-family: 'Oswald', sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rf-text-main);
  margin-bottom: 16px;
}
.rf-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--rf-text-muted);
  margin-bottom: 20px;
  align-items: center;
}
.rf-article-meta i { color: var(--rf-accent); margin-right: 4px; }
.rf-article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}
.rf-article-img-credit {
  font-size: 11px;
  color: var(--rf-text-muted);
  font-style: italic;
  margin-bottom: 24px;
  text-align: right;
}
.rf-article-body {
  background: var(--rf-bg-card);
  border: 1px solid var(--rf-border);
  border-radius: 6px;
  padding: 28px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--rf-text-main);
}
.rf-article-body h1, .rf-article-body h2, .rf-article-body h3,
.rf-article-body h4, .rf-article-body h5, .rf-article-body h6 {
  font-family: 'Oswald', sans-serif;
  color: #fff;
  margin: 1.2em 0 .5em;
}
.rf-article-body p { margin-bottom: 1em; }
.rf-article-body img {
  max-width: 100%;
  border-radius: 4px;
  margin: .5em 0;
}
.rf-article-body a { color: var(--rf-accent2); }
.rf-article-body blockquote {
  border-left: 4px solid var(--rf-accent);
  padding: 10px 20px;
  margin: 1.2em 0;
  background: rgba(232,93,26,.07);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--rf-text-muted);
}
.rf-article-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.rf-tag-badge {
  background: var(--rf-bg-card);
  border: 1px solid var(--rf-border);
  color: var(--rf-text-muted);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.rf-tag-badge:hover { border-color: var(--rf-accent); color: var(--rf-accent); }
.rf-source-badge {
  font-size: 12px;
  color: var(--rf-text-muted);
  border: 1px solid var(--rf-border);
  padding: 4px 12px;
  border-radius: 20px;
}
.rf-sentiment-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.rf-sentiment-positive { background: rgba(52,211,153,.15); color: #34d399; }
.rf-sentiment-negative { background: rgba(248,113,113,.15); color: #f87171; }
.rf-sentiment-neutral  { background: rgba(156,163,175,.15); color: #9ca3af; }

/* ── PAGINATION ── */
.rf-pagination .page-item .page-link {
  background: var(--rf-bg-card);
  border-color: var(--rf-border);
  color: var(--rf-text-main);
}
.rf-pagination .page-item.active .page-link {
  background: var(--rf-accent);
  border-color: var(--rf-accent);
  color: #fff;
}
.rf-pagination .page-item .page-link:hover {
  background: var(--rf-accent);
  border-color: var(--rf-accent);
  color: #fff;
}
.rf-pagination .page-item.disabled .page-link {
  background: var(--rf-bg-card);
  border-color: var(--rf-border);
  color: var(--rf-text-muted);
}

/* ── CATEGORY PAGE ── */
.rf-cat-page-header {
  padding: 28px 0 16px;
  border-bottom: 1px solid var(--rf-border);
  margin-bottom: 24px;
}
.rf-cat-page-title {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--rf-text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}
.rf-cat-page-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 28px;
  background: var(--rf-accent);
  border-radius: 2px;
}
.rf-cat-count {
  font-size: 14px;
  color: var(--rf-text-muted);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
}

/* ── SEARCH ── */
.rf-search-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,14,22,.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.rf-search-overlay.active { display: flex; }
.rf-search-form {
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}
.rf-search-input {
  width: 100%;
  background: var(--rf-bg-card);
  border: 2px solid var(--rf-accent);
  border-radius: 4px;
  color: var(--rf-text-main);
  font-size: 20px;
  padding: 16px 20px;
  outline: none;
}
.rf-search-input::placeholder { color: var(--rf-text-muted); }
.rf-search-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: var(--rf-text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.rf-search-close:hover { color: var(--rf-accent); }

/* ── FOOTER ── */
.rf-footer {
  background: #111520;
  border-top: 1px solid var(--rf-border);
  padding: 36px 0 20px;
  margin-top: 48px;
}
.rf-footer-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  text-decoration: none;
  display: inline-block;
}
.rf-footer-brand span { color: var(--rf-accent); }
.rf-footer-tagline { font-size: 13px; color: var(--rf-text-muted); font-style: italic; }
.rf-footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rf-border);
  padding-bottom: 8px;
}
.rf-footer-links { list-style: none; padding: 0; margin: 0; }
.rf-footer-links li { margin-bottom: 8px; }
.rf-footer-links a {
  color: var(--rf-text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}
.rf-footer-links a:hover { color: var(--rf-accent); }
.rf-footer-socials a {
  color: var(--rf-text-muted);
  font-size: 20px;
  margin-right: 12px;
  transition: color .2s;
  text-decoration: none;
}
.rf-footer-socials a:hover { color: var(--rf-accent); }
.rf-footer-bottom {
  border-top: 1px solid var(--rf-border);
  padding-top: 16px;
  margin-top: 28px;
  font-size: 12px;
  color: var(--rf-text-muted);
}

/* ── EMPTY STATE ── */
.rf-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--rf-text-muted);
}
.rf-empty-state i { font-size: 48px; margin-bottom: 16px; color: var(--rf-border); }
.rf-empty-state h4 { font-family: 'Oswald', sans-serif; color: var(--rf-text-main); margin-bottom: 8px; }

/* ── MOBILE NAV TOGGLE ── */
.rf-mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--rf-text-main);
  font-size: 22px;
  cursor: pointer;
}

/* Nav scroll wrapper */
.rf-nav-scroll-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.rf-mobile-menu {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.rf-mobile-menu::-webkit-scrollbar { display: none; }

/* Fade + arrow indicators */
.rf-nav-arrow {
  position: absolute;
  top: 0; bottom: 0;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  font-size: 13px;
  color: var(--rf-text-muted);
}
.rf-nav-arrow.visible { opacity: 1; pointer-events: auto; cursor: pointer; }
.rf-nav-arrow-left {
  left: 0;
  background: linear-gradient(to right, #22293a 40%, transparent 100%);
}
.rf-nav-arrow-right {
  right: 0;
  background: linear-gradient(to left, #22293a 40%, transparent 100%);
}

/* ── SCROLL TO TOP ── */
.rf-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 24px;
  width: 40px; height: 40px;
  background: var(--rf-accent);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  z-index: 999;
  transition: opacity .2s;
}
.rf-scroll-top.visible { display: flex; }
.rf-scroll-top:hover { color: #fff; opacity: .85; }

/* ── BREADCRUMB ── */
.rf-breadcrumb {
  background: #111520;
  padding: 10px 0;
  border-bottom: 1px solid var(--rf-border);
}
.rf-breadcrumb .breadcrumb-item a {
  color: var(--rf-text-muted);
  text-decoration: none;
  font-size: 13px;
}
.rf-breadcrumb .breadcrumb-item a:hover { color: var(--rf-accent); }
.rf-breadcrumb .breadcrumb-item.active {
  color: var(--rf-accent);
  font-size: 13px;
}
.rf-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--rf-border);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .rf-sidebar { padding-left: 0; margin-top: 32px; }
  .rf-hero-card { height: 260px; }
  .rf-hero-title { font-size: 20px; }
  .rf-article-title { font-size: 24px; }
  .rf-logo-text { font-size: 24px; }
  .rf-main-nav .rf-nav-link { padding: 10px 10px; font-size: 12px; }
}
@media (max-width: 576px) {
  .rf-hero-card { height: 220px; }
  .rf-hero-content { padding: 16px; }
  .rf-hero-title { font-size: 17px; }
}
