/* FBpredict News CSS */
:root{
  --bg:#f3f4f6;
  --surface:#ffffff;
  --surface-2:#f9fafb;
  --text:#111827;
  --muted:#4b5563;
  --border:#e5e7eb;
  --soft:rgba(6, 182, 212, .06);
  --shadow:0 3px 10px rgba(15, 23, 42, .10);

  --link-accent:#06b6d4;
  --link-accent-2:#f97316;
  --focus:#22d3ee;

  --link-hover-bg:rgba(6, 182, 212, .10);
}

html[data-theme="dark"]{
  --bg:#08090e;
  --surface:#0f1117;
  --surface-2:#0c0d12;
  --text:#f1f5f9;
  --muted:#9ca3af;
  --border:rgba(148, 163, 184, .12);
  --soft:rgba(6, 182, 212, .10);
  --shadow:0 8px 24px rgba(0,0,0,.55);

  --link-accent:#22d3ee;
  --link-accent-2:#fb923c;
  --focus:#22d3ee;

  --link-hover-bg:rgba(6, 182, 212, .12);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}
img{max-width:100%;height:auto;display:block}
/* Links */
/* Kill default underlines everywhere (some WP widgets/plugins re-add them) */
a, a:link, a:visited, a:hover, a:active{color:inherit;text-decoration:none !important;text-decoration-line:none !important}
a:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:10px}
a:active{opacity:.88}

/* Force no-underline in common lists (header/sidebar/footer/widgets) */
.nav a, .cat-list a, .mini-list a, .footer-list a, .post-nav a, .asf-ticker a,
.nav a:hover, .cat-list a:hover, .mini-list a:hover, .footer-list a:hover, .post-nav a:hover, .asf-ticker a:hover{
  text-decoration:none !important;
  text-decoration-line:none !important;
}

/* Sidebar + footer link hover: highlight instead of underline */
.mini-list a{
  display:inline-block;
  border-radius:12px;
  padding:4px 8px;
  margin-left:-8px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.mini-list a:hover{background:var(--soft);color:var(--link-accent);transform:translateX(1px)}
.mini-list a:active{transform:none}

.cat-list a{
  display:inline-block;
  border-radius:10px;
  padding:3px 6px;
  margin-left:-6px;
  transition: background .15s ease, color .15s ease;
}
.cat-list a:hover{background:var(--soft);color:var(--link-accent)}

.footer-list a{
  display:inline-block;
  border-radius:10px;
  padding:3px 8px;
  margin-left:-8px;
  transition: background .15s ease, color .15s ease;
}
.footer-list a:hover{background:var(--soft);color:var(--link-accent)}


/* Fancy link hover: highlight (no underline) */
a:not(.brand-link):not(.search-btn):not(.theme-toggle):not(.page-numbers){
  background-image: linear-gradient(var(--link-hover-bg), var(--link-hover-bg));
  background-size: 0% 100%;
  background-position: 0 100%;
  background-repeat: no-repeat;
  border-radius: 8px;
  padding: 1px 2px;
  transition: color .18s ease, background-size .18s ease, opacity .18s ease, transform .08s ease;
}
a:not(.brand-link):not(.search-btn):not(.theme-toggle):not(.page-numbers):hover{
  color: var(--link-accent);
  background-size: 100% 100%;
}
a:not(.brand-link):not(.search-btn):not(.theme-toggle):not(.page-numbers):active{
  transform: translateY(1px);
}


/* Disable the animated underline in navigation/footer/sidebar lists (keep clean UI) */
.site-header nav a,
.site-footer a,
.sidebar a,
.widget-area a,
.aside a{
  background-image:none !important;
}
.site-header nav a:hover,
.site-footer a:hover,
.sidebar a:hover,
.widget-area a:hover,
.aside a:hover{
  background-image:none !important;
}

.screen-reader-text{position:absolute;left:-9999px}

.container{max-width:1160px;margin:0 auto;padding:0 14px}

.site-header{
  position:sticky;top:0;z-index:20;
  background:var(--surface);border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0}
.brand{display:flex;flex-direction:column;gap:2px}
.brand-link{text-decoration:none}
.brand-name{font-weight:900;letter-spacing:.2px}
.brand-tagline{font-size:12px;color:var(--muted)}
.header-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}

.nav-list{display:flex;gap:10px;flex-wrap:wrap;margin:0;padding:0;list-style:none}
.nav-list a{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 12px;border:1px solid var(--border);border-radius:12px;
  text-decoration:none;font-size:13px;background:var(--surface);
}
.nav-list a:hover{background:var(--soft)}

/* Theme toggle button */
.theme-toggle{
  width:42px;height:42px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface);
  cursor:pointer;
  box-shadow: var(--shadow);
  padding:0;
}
.theme-toggle:hover{background:var(--soft)}
.theme-toggle__icons{position:relative;width:18px;height:18px;display:inline-flex}
.theme-icon{position:absolute;inset:0;margin:auto;transition:opacity .18s ease, transform .18s ease}
html[data-theme="light"] .theme-icon--sun{opacity:0;transform:scale(.9)}
html[data-theme="dark"] .theme-icon--moon{opacity:0;transform:scale(.9)}
html[data-theme="dark"] .theme-icon--sun{opacity:1;transform:scale(1)}
html[data-theme="light"] .theme-icon--moon{opacity:1;transform:scale(1)}

.searchform{display:flex;gap:8px;align-items:center}
.search-input{
  width:220px;max-width:40vw;
  padding:10px 12px;border:1px solid var(--border);border-radius:12px;
  font-size:13px;outline:none;
  background:var(--surface);
  color:var(--text);
}
.search-input::placeholder{color:var(--muted)}
.search-btn{
  padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--soft);
  font-weight:800;cursor:pointer;font-size:13px;
  color:var(--text);
}

.layout{
  display:grid;
  grid-template-columns:260px 1fr 320px;
  gap:16px;
  align-items:start;
}

.left-sidebar,.right-sidebar{position:sticky;top:72px}
.center{min-width:0}

.card{
  background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:14px;
  box-shadow: var(--shadow);
}

.widget-title{margin:0 0 10px 0;font-size:14px;font-weight:900}
.cat-list{margin:0;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.8}
.cat-list a{text-decoration:none}
.cat-list a:hover{color:var(--link-accent);}

.feed-head{
  padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--soft);
}
.feed-title{margin:0 0 6px 0;font-size:24px;line-height:1.2;font-weight:900}
.feed-sub{font-size:13px;line-height:1.8;color:var(--muted)}
.muted{color:var(--muted)}

.featured{
  margin-top:14px;border:1px solid var(--border);border-radius:18px;overflow:hidden;background:var(--surface);
  box-shadow: var(--shadow);
}
.featured-link{display:grid;grid-template-columns: 1.2fr 1fr; text-decoration:none}
.featured-media img{width:100%;height:100%;object-fit:cover;min-height:240px}
.featured-body{padding:16px}
.kicker{font-size:12px;color:var(--muted);font-weight:800;letter-spacing:.4px;text-transform:uppercase}
.featured-title{margin:8px 0 10px 0;font-size:22px;line-height:1.25}
.meta{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center;margin-bottom:10px}
.excerpt{margin:0;color:var(--muted);line-height:1.8;font-size:13px}

.news-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.news-card{
  border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--surface);box-shadow: var(--shadow);
}
.news-link{display:grid;grid-template-columns: 140px 1fr;gap:0;text-decoration:none}
.news-thumb img{width:100%;height:100%;object-fit:cover;min-height:110px}
.news-body{padding:12px}
.news-title{margin:6px 0 8px 0;font-size:15px;line-height:1.35}

.thumb-fallback{
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  background:var(--soft);color:var(--muted);font-weight:900;
  min-height:110px;
}
.thumb-fallback.small{min-height:90px}

.pagination{margin:18px 0}
.nav-links{display:flex;gap:10px;flex-wrap:wrap}
.page-numbers{
  padding:10px 12px;border:1px solid var(--border);border-radius:12px;text-decoration:none;background:var(--surface);
  font-size:13px
}
.page-numbers.current{background:var(--soft);font-weight:900}

.article{margin-top:0}
.article-head{margin-top:0}
.article-title{margin:8px 0 10px 0;font-size:28px;line-height:1.15}
.article-meta{font-size:12px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap}
.article-thumb{margin-top:14px;border-radius:18px;overflow:hidden;border:1px solid var(--border);box-shadow: var(--shadow)}
.article-thumb img{width:100%;height:auto}
.article-body{margin-top:14px}
.article-body p{color:var(--text);line-height:1.95;font-size:15px}
.article-body h2,.article-body h3{margin-top:18px}
.tag-row{margin-top:14px}
.tag{display:inline-block;margin:6px 8px 0 0;padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:var(--soft);font-size:12px;color:var(--muted)}
.post-nav{display:flex;justify-content:space-between;gap:12px;margin-top:16px}
.post-nav a{text-decoration:none}
.post-nav a:hover{color:var(--link-accent);}

.mini-list{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.mini-list a{text-decoration:none;font-weight:700;font-size:13px;line-height:1.4}
.mini-list a:hover{background:var(--soft);color:var(--link-accent);}
.mini-meta{font-size:12px;color:var(--muted);margin-top:2px}

.site-footer{margin-top:28px;border-top:1px solid var(--border);background:var(--surface)}
.footer-inner{padding:18px 0;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
.footer-brand{font-weight:900}
.footer-copy{font-size:12px;color:var(--muted)}
.footer-list{display:flex;gap:10px;flex-wrap:wrap;margin:0;padding:0;list-style:none}
.footer-list a{font-size:13px;text-decoration:none;color:var(--muted)}
.footer-list a:hover{color:var(--link-accent);background:var(--soft);}

#backTop{
  position:fixed;right:16px;bottom:16px;
  width:44px;height:44px;border-radius:14px;
  border:1px solid var(--border);background:var(--surface);cursor:pointer;font-weight:900;
  box-shadow: var(--shadow);
}

@media (max-width: 1024px){
  .layout{grid-template-columns:1fr}
  .left-sidebar,.right-sidebar{position:static;top:auto}
  .featured-link{grid-template-columns:1fr}
  .featured-media img{min-height:200px}
  .news-grid{grid-template-columns:1fr}
  .news-link{grid-template-columns:110px 1fr}
  .search-input{width:180px}
}



/* =========================
   More to Explore section
   ========================= */
.more-explore{margin-top:18px}
.more-explore-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  margin-top:12px;
}
@media (max-width: 980px){
  .more-explore-grid{grid-template-columns:1fr}
}

/* Mini post list (used in More to Explore + sidebar) */
.asf-mini-post{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:8px 0;
  border-top:1px solid rgba(0,0,0,.08);
}
html[data-theme="dark"] .asf-mini-post{border-top-color:rgba(255,255,255,.10)}
.asf-mini-post:first-child{border-top:none;padding-top:0}

.asf-mini-thumb{
  width:56px;height:56px;flex:0 0 56px;
  border-radius:12px;
  background:var(--surface);
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
}
html[data-theme="dark"] .asf-mini-thumb{border-color:rgba(255,255,255,.10)}
.asf-mini-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.asf-mini-fallback{
  display:block;width:100%;height:100%;
  background:linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
}
html[data-theme="dark"] .asf-mini-fallback{
  background:linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.asf-mini-text{min-width:0}
.asf-mini-title{
  display:block;
  font-weight:800;
  text-decoration:none;
  color:var(--text);
  line-height:1.25;
}
.asf-mini-title:hover{color:var(--link-accent);}
.asf-mini-meta{font-size:12px;opacity:.75;margin-top:4px}

.asf-mini-badge{
  display:inline-block;
  font-size:11px;
  padding:3px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.06);
  color:var(--text);
  text-decoration:none;
  margin-bottom:6px;
}
html[data-theme="dark"] .asf-mini-badge{background:rgba(255,255,255,.10)}

/* Breaking News ticker */
.asf-breaking{margin:14px 0}
.asf-breaking-top{
  display:flex;align-items:center;gap:10px;
  padding:8px 6px 10px 6px;
}
.asf-breaking-title{font-weight:800;letter-spacing:.2px}
.asf-badge{
  font-size:12px;font-weight:700;
  padding:3px 10px;border-radius:999px;
  background:var(--soft);border:1px solid var(--border);
  color:var(--muted);
}
.asf-live-dot{
  width:10px;height:10px;border-radius:999px;
  background:#ef4444;
  box-shadow:0 0 0 0 rgba(239,68,68,.6);
  animation:asfPulse 1.4s ease-in-out infinite;
}
@keyframes asfPulse{
  0%{box-shadow:0 0 0 0 rgba(239,68,68,.55)}
  70%{box-shadow:0 0 0 8px rgba(239,68,68,0)}
  100%{box-shadow:0 0 0 0 rgba(239,68,68,0)}
}

.asf-ticker{
  position:relative;
  overflow:hidden;
  border-top:1px solid var(--border);
  padding:10px 6px 8px 6px;
}
.asf-ticker-track{
  display:inline-flex;
  align-items:center;
  flex-wrap:nowrap;
  white-space:nowrap;
  gap:0;
  min-width:max-content;
  will-change:transform;
  animation:asfMarquee 60s linear infinite;
}
.asf-ticker a{
  display:inline-block;
  padding:2px 0;
  text-decoration:none;
  color:var(--text);
}
.asf-ticker a:hover{opacity:1;color:var(--link-accent-2);}
.asf-sep{
  display:inline-block;
  margin:0 14px;
  color:var(--muted);
  opacity:.8;
}

@keyframes asfMarquee{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

/* Respect reduced motion: stop animation and allow manual scroll */
@media (prefers-reduced-motion: reduce){
  .asf-ticker{overflow:auto}
  .asf-ticker-track{animation:none}
}

/* Ticker links: keep clean + readable */
.asf-ticker-track a{color:inherit;background-image:none;padding:0 2px}
.asf-ticker-track a:hover{color:var(--link-accent)}
