/*
Theme Name: ViralNow Newsroom V3
Theme URI: https://viralnow.fit
Author: ViralNow Media
Author URI: https://viralnow.fit
Description: High-velocity Breaking News, America's Got Talent, The X Factor & Viral Editorial theme customized specifically for Namecheap EasyWP. Features dark-mode high-contrast typography, automated breaking digests, 30-second context briefs, audio player hook, and mobile-first responsive grid.
Version: 3.2.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: viralnow-easywp
Tags: news, entertainment, blog, grid-layout, custom-header, featured-images, theme-options, dark-mode
*/

:root {
  --vn-bg: #070b14;
  --vn-card: #0f172a;
  --vn-card-hover: #1e293b;
  --vn-border: #1e293b;
  --vn-text-main: #f8fafc;
  --vn-text-body: #e2e8f0;
  --vn-text-muted: #94a3b8;
  --vn-primary: #f59e0b;
  --vn-primary-dark: #d97706;
  --vn-accent: #e11d48;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--vn-bg);
  color: var(--vn-text-main);
  margin: 0;
  padding: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Fluid responsive container */
.vn-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .vn-container {
    padding: 0 1.5rem;
  }
}

/* ==========================================================================
   Universal Best-Placement Ad Containers (Desktop, Tablet, Mobile)
   ========================================================================== */
.vn-ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.75rem auto;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  clear: both;
}

.vn-ad-slot-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 700;
  display: block;
}

.vn-ad-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vn-ad-container iframe,
.vn-ad-container img,
.vn-ad-container > div {
  max-width: 100% !important;
  height: auto;
}

/* Center and prevent overflow on phones */
@media (max-width: 640px) {
  .vn-ad-slot {
    margin: 1.25rem auto;
  }
  .vn-ad-container iframe {
    transform-origin: center top;
  }
}

/* ==========================================================================
   Article Story Body (Readability & Flow on Phones & Desktops)
   ========================================================================== */
#vn-story-body {
  color: var(--vn-text-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.8;
  word-break: break-word;
}

@media (min-width: 640px) {
  #vn-story-body {
    font-size: 1.125rem; /* 18px */
    line-height: 1.85;
  }
}

#vn-story-body p {
  margin-bottom: 1.4rem;
}

#vn-story-body h2 {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--vn-primary);
}

@media (min-width: 640px) {
  #vn-story-body h2 {
    font-size: 1.75rem;
  }
}

#vn-story-body h3 {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

#vn-story-body blockquote {
  background: rgba(15, 23, 42, 0.7);
  border-left: 4px solid var(--vn-primary);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: #cbd5e1;
}

#vn-story-body ul,
#vn-story-body ol {
  margin: 1.25rem 0 1.5rem 1.25rem;
  padding: 0;
}

#vn-story-body ul {
  list-style-type: disc;
}

#vn-story-body ol {
  list-style-type: decimal;
}

#vn-story-body li {
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

#vn-story-body a {
  color: var(--vn-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

#vn-story-body a:hover {
  color: #fbbf24;
}

#vn-story-body figure {
  margin: 2rem 0;
}

#vn-story-body img {
  border-radius: 14px;
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Mobile-Friendly Utilities & Safe Area
   ========================================================================== */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* iPhone Safe Area for Fixed Bottom Bars */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 12px);
}

/* Touch-friendly buttons (minimum 44px tap targets) */
@media (pointer: coarse) {
  button, 
  a.gp-btn,
  .touch-target {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Custom Desktop Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #070b14;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
