/*
Theme Name: ViralMedia AI Growth Theme
Theme URI: https://viralmedia.ai
Author: ViralMedia AI Inc.
Author URI: https://viralmedia.ai
Description: Clean, light, AdSense-friendly WordPress theme for AI Social Media & SEO Growth Suite. White/light background, fully responsive, multi-language ready, 2026 copyright.
Version: 2.0.27
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: viralmedia-theme
Tags: light, white, clean, responsive-layout, custom-menu, featured-images, translation-ready, blog, seo
Copyright: 2026 ViralMedia AI Inc. All rights reserved.
*/

/* =====================================================
   CSS VARIABLES - Light / White AdSense-Friendly Theme
   ===================================================== */
:root {
  --vm-bg: #ffffff;
  --vm-bg-secondary: #f8f9fa;
  --vm-bg-card: #ffffff;
  --vm-bg-soft: #f1f3f5;
  --vm-border: #e9ecef;
  --vm-border-strong: #dee2e6;
  --vm-text: #1a1a2e;
  --vm-text-secondary: #495057;
  --vm-text-muted: #6c757d;
  --vm-accent: #e94560;
  --vm-accent-hover: #d63851;
  --vm-accent-soft: #fff0f3;
  --vm-primary: #0f3460;
  --vm-primary-hover: #0a2647;
  --vm-success: #28a745;
  --vm-warning: #ffc107;
  --vm-info: #17a2b8;
  --vm-radius: 12px;
  --vm-radius-sm: 8px;
  --vm-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --vm-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
  --vm-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --vm-heading: 'Inter', 'Poppins', var(--vm-font);
  --vm-max-width: 1200px;
  --vm-header-height: 70px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html {
  background: #ffffff !important;
}

body,
body.viralmedia-theme,
body.light-theme,
body.home,
body.page {
  font-family: var(--vm-font) !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #1a1a2e !important;
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--vm-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--vm-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--vm-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--vm-text);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e9ecef !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px;
  width: 100%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  flex-wrap: nowrap;
}

.site-branding {
  flex-shrink: 0;
}

.site-branding a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a2e !important;
  letter-spacing: -0.03em;
  text-decoration: none !important;
}

.site-branding .brand-accent {
  color: #e94560 !important;
}

.site-branding .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #e94560, #ff6b8a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 18px;
}

/* Navigation - Desktop horizontal */
.main-nav {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.main-nav ul,
.main-nav .nav-menu,
.main-nav ul.nav-menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-nav li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-nav a,
.main-nav .nav-menu a {
  display: block !important;
  padding: 8px 14px !important;
  color: #495057 !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none !important;
  background: transparent !important;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: #e94560 !important;
  background: #fff0f3 !important;
}

.header-actions {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--vm-radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--vm-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--vm-accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--vm-border-strong);
  color: var(--vm-text);
}

.btn-outline:hover {
  border-color: var(--vm-accent);
  color: var(--vm-accent);
  background: var(--vm-accent-soft);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--vm-text);
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.site-main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: var(--vm-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-sm {
  padding: 40px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  color: var(--vm-text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
  padding: 70px 0 50px;
  text-align: center;
  border-bottom: 1px solid #e9ecef !important;
  color: #1a1a2e !important;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  color: #1a1a2e !important;
}

.hero .lead {
  font-size: 1.15rem;
  color: #495057 !important;
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--vm-text-secondary);
}

.hero-feature svg,
.hero-feature .icon {
  color: var(--vm-success);
  font-size: 1.1rem;
}

/* =====================================================
   TOOL CARDS
   ===================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.tool-card {
  background: var(--vm-bg-card);
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius);
  padding: 28px 24px;
  transition: all 0.25s ease;
  box-shadow: var(--vm-shadow);
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vm-shadow-hover);
  border-color: rgba(233, 69, 96, 0.3);
}

.tool-card .tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: var(--vm-accent-soft);
  color: var(--vm-accent);
}

.tool-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.tool-card p {
  color: var(--vm-text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 18px;
}

.tool-card .tool-link {
  font-weight: 600;
  color: var(--vm-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =====================================================
   TOOL WORKSPACE (for tool pages / shortcodes)
   ===================================================== */
.tool-workspace {
  background: var(--vm-bg-secondary);
  border-radius: var(--vm-radius);
  border: 1px solid var(--vm-border);
  overflow: hidden;
  margin: 20px 0;
}

.tool-header {
  background: var(--vm-bg);
  padding: 20px 24px;
  border-bottom: 1px solid var(--vm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-header h2 {
  font-size: 1.35rem;
  margin: 0;
}

.tool-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--vm-text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--vm-border-strong);
  border-radius: var(--vm-radius-sm);
  background: #fff;
  color: var(--vm-text);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--vm-accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.result-box {
  background: #fff;
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-sm);
  padding: 16px 18px;
  margin-top: 12px;
  position: relative;
}

.result-box .copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  font-size: 0.8rem;
}

.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  border: 6px solid var(--vm-accent);
  color: var(--vm-accent);
  margin: 0 auto 16px;
}

/* =====================================================
   BLOG / ARTICLES
   ===================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--vm-bg-card);
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius);
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--vm-shadow);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--vm-shadow-hover);
}

.article-card .article-meta {
  padding: 8px 16px 0;
  font-size: 0.8rem;
  color: var(--vm-text-muted);
  display: flex;
  gap: 12px;
}

.article-card .article-body {
  padding: 12px 16px 20px;
}

.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.article-card h3 a {
  color: var(--vm-text);
}

.article-card h3 a:hover {
  color: var(--vm-accent);
}

.article-card p {
  font-size: 0.9rem;
  color: var(--vm-text-muted);
  margin-bottom: 12px;
}

/* =====================================================
   ADSENSE PLACEHOLDERS (non-intrusive)
   ===================================================== */
.ad-slot {
  background: var(--vm-bg-soft);
  border: 1px dashed var(--vm-border-strong);
  border-radius: var(--vm-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vm-text-muted);
  font-size: 0.85rem;
  min-height: 90px;
  margin: 24px 0;
  text-align: center;
  padding: 12px;
}

.ad-slot.leaderboard {
  min-height: 90px;
}

.ad-slot.rectangle {
  min-height: 250px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.ad-slot.in-feed {
  min-height: 120px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--vm-bg-secondary);
  border-top: 1px solid var(--vm-border);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--vm-text-muted);
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vm-text-secondary);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--vm-text-muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--vm-accent);
}

.footer-bottom {
  border-top: 1px solid var(--vm-border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--vm-text-muted);
}

.footer-bottom .legal-links {
  display: flex;
  gap: 16px;
}

/* =====================================================
   COOKIE CONSENT
   ===================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  padding: 20px 24px;
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--vm-text-secondary);
  margin-bottom: 14px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-content .last-updated {
  color: var(--vm-text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
}

.legal-content p,
.legal-content li {
  margin-bottom: 12px;
  color: var(--vm-text-secondary);
}

.legal-content ul {
  padding-left: 20px;
  list-style: disc;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--vm-header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--vm-border);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav a {
    padding: 12px 16px;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .header-actions .btn-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-lg {
    width: 100%;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
