/*
Theme Name: AITechSpark
Theme URI: https://aitechspark.com
Author: AITechSpark Team
Author URI: https://aitechspark.com
Description: Premium AI-powered news & tech media WordPress theme for aitechspark.com — covering AI News, Digital Marketing, SaaS, Tech Tools, WordPress, SEO & Automation. Features dark/light mode, AI content automation, AdSense-optimized layouts, glassmorphism UI, and full SEO architecture.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aitechspark
Tags: news, blog, ai, technology, dark-mode, custom-menu, featured-images, post-formats, rtl-language-support, threaded-comments, translation-ready
*/

/* ================================================================
   AITECHSPARK THEME — DESIGN SYSTEM & GLOBAL STYLES
   Domain: aitechspark.com | Partner: amtake.com (AMTake Tools)
   ================================================================ */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  /* Brand Colors */
  --primary: #0066ff;
  --primary-light: #3385ff;
  --primary-dark: #0052cc;
  --primary-glow: rgba(0, 102, 255, 0.25);
  --secondary: #00c8f8;
  --accent-purple: #7c3aed;
  --accent-green: #00c851;
  --accent-orange: #ff6b35;
  --accent-red: #ff3b30;
  --accent-yellow: #ffd60a;

  /* Light Mode */
  --bg-base: #f5f7fc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-overlay: rgba(245, 247, 252, 0.9);
  --bg-code: #f0f3fa;
  --bg-muted: #f0f3fa;
  --text-primary: #0d1117;
  --text-secondary: #4a5568;
  --text-muted: #8a9ab5;
  --text-inverse: #ffffff;
  --text-link: #0066ff;
  --border-light: rgba(0, 0, 0, 0.07);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.18);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-blue: 0 8px 32px rgba(0,102,255,0.30);
  --shadow-blue-sm: 0 4px 14px rgba(0,102,255,0.25);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 72px;
  --space-4xl: 96px;

  /* Typography */
  --font-display: 'Syne', 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Nav */
  --nav-height: 68px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 350ms;
  --transition: var(--duration-base) var(--ease);
  --transition-slow: var(--duration-slow) var(--ease);

  /* Z-index layers */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-nav: 500;
  --z-modal: 800;
  --z-toast: 900;
  --z-tooltip: 1000;
}


/* ═══════════════════════════════════════════════════════════
   CSS VARIABLE ALIASES
   Maps --color-* names used in components.css / page-templates.css
   to the canonical design-token names defined in :root above.
   Light mode values.
═══════════════════════════════════════════════════════════ */
:root {
  /* Text aliases */
  --color-text:        var(--text-primary);
  --color-text-muted:  var(--text-secondary);

  /* Background aliases */
  --color-bg:          var(--bg-base);
  --color-bg-card:     var(--bg-card);
  --color-bg-muted:    var(--bg-muted);
  --color-bg-elevated: var(--bg-elevated);

  /* Border aliases */
  --color-border:      var(--border-medium);

  /* Brand aliases */
  --color-primary:        var(--primary);
  --color-primary-dark:   var(--primary-dark);
  --color-secondary:      var(--secondary);
}

/* Dark mode aliases — override to stay readable */
[data-theme="dark"] {
  --color-text:        var(--text-primary);
  --color-text-muted:  var(--text-secondary);
  --color-bg:          var(--bg-base);
  --color-bg-card:     var(--bg-card);
  --color-bg-muted:    var(--bg-muted);
  --color-bg-elevated: var(--bg-elevated);
  --color-border:      var(--border-medium);
  --color-primary:     var(--primary);
  --color-primary-dark:var(--primary-dark);
  --color-secondary:   var(--secondary);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-base: #080c14;
  --bg-surface: #0d1121;
  --bg-card: #111826;
  --bg-elevated: #161f2e;
  --bg-glass: rgba(13, 17, 33, 0.85);
  --bg-overlay: rgba(8, 12, 20, 0.92);
  --bg-code: #1a2236;
  --bg-muted: #131c2b;
  --text-primary: #e2eaf5;
  --text-secondary: #8fa3c0;
  --text-muted: #4d6080;
  --border-light: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.7);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background var(--transition-slow), color var(--transition-slow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-xs); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── LAYOUT ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }

/* ── GRID SYSTEMS ── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-main { grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }

/* ── FLEX UTILITIES ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start { display: flex; align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.flex-wrap { flex-wrap: wrap; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }
p { margin-bottom: var(--space-md); color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }
.text-accent { color: var(--primary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-display { font-family: var(--font-display); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-purple {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: var(--space-xl); }
.section-header .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.section-header .eyebrow::before {
  content: ''; display: block; width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 1px;
}
.section-header h2 { margin-bottom: 8px; }
.section-header p { font-size: 1.05rem; max-width: 600px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }
.section-header.centered .eyebrow { margin: 0 auto 10px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  transition: all var(--transition); cursor: pointer; border: none;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; box-shadow: var(--shadow-blue-sm);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-blue);
  color: #fff;
}
.btn-secondary {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-ghost {
  background: var(--bg-muted); color: var(--text-primary);
  border: 1px solid var(--border-medium);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-card); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-icon {
  width: 40px; height: 40px; padding: 0; border-radius: var(--radius-md);
  background: var(--bg-muted); border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}
.btn-icon:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-card); }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--border-medium);
}
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
}
.card-body { padding: var(--space-lg); }
.card-body-sm { padding: var(--space-md); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-blue { background: rgba(0,102,255,0.10); color: var(--primary); }
.badge-green { background: rgba(0,200,81,0.10); color: var(--accent-green); }
.badge-red { background: rgba(255,59,48,0.10); color: var(--accent-red); }
.badge-purple { background: rgba(124,58,237,0.10); color: var(--accent-purple); }
.badge-orange { background: rgba(255,107,53,0.10); color: var(--accent-orange); }
.badge-yellow { background: rgba(255,214,10,0.15); color: #996600; }
[data-theme="dark"] .badge-yellow { color: var(--accent-yellow); }
.badge-gray { background: var(--bg-muted); color: var(--text-secondary); }
.badge-hot { background: linear-gradient(135deg,#ff3b30,#ff6b35); color: #fff; }
.badge-new { background: linear-gradient(135deg,var(--primary),var(--secondary)); color: #fff; }
.badge-dot::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; display:inline-block; }

/* ── NAV ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-slow);
}
#site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--bg-glass);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo {
  display: flex; align-items: center; gap: 11px; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.site-logo:hover { transform: translateY(-1px); }

/* ── Logo Icon — electric pulse ── */
.logo-icon {
  position: relative;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #0044dd 0%, #0066ff 50%, #00c8f8 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #fff; font-weight: 900;
  box-shadow: 0 2px 14px rgba(0,102,255,0.5), 0 0 0 1px rgba(0,200,248,0.25);
  flex-shrink: 0;
  overflow: hidden;
}
.logo-icon::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}
.site-logo:hover .logo-icon::after { transform: translateX(100%); }

/* ── Logo Wordmark ── */
.logo-text {
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* "Spark" — electric lightning gradient, italic for energy/motion */
.logo-text span {
  background: linear-gradient(100deg, #0066ff 0%, #00b4ff 35%, #00e5ff 65%, #7df9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 5px rgba(0,200,248,0.4));
  font-style: italic;
}

[data-theme="dark"] .logo-text { color: #e2eaf5; }
[data-theme="dark"] .logo-text span {
  background: linear-gradient(100deg, #4d9fff 0%, #00d4ff 40%, #00f0ff 70%, #a8feff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(0,230,255,0.55));
}



/* Primary Nav */
#primary-navigation { display: flex; align-items: center; }
.nav-menu {
  display: flex; align-items: center; gap: 2px; list-style: none;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_ancestor > a {
  color: var(--primary); background: rgba(0,102,255,0.08);
}
.nav-menu > li > a .caret {
  width: 14px; height: 14px; transition: transform var(--transition);
}
.nav-menu > li:hover > a .caret { transform: rotate(180deg); }

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition);
  z-index: var(--z-dropdown);
  list-style: none;
}
.nav-menu li:hover > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-menu .sub-menu li a {
  display: block; padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-menu .sub-menu li a:hover {
  background: rgba(0,102,255,0.08); color: var(--primary);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.search-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--bg-muted); border: 1px solid var(--border-medium);
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all var(--transition); min-width: 180px;
}
.search-trigger svg { flex-shrink: 0; }
.search-trigger span { flex: 1; text-align: left; }
.search-trigger kbd {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--bg-surface); border: 1px solid var(--border-medium);
  border-radius: 4px; padding: 1px 5px; color: var(--text-muted);
}
.search-trigger:hover { border-color: var(--primary); color: var(--text-primary); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--bg-muted); border: 1px solid var(--border-medium);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all var(--transition);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.mobile-menu-toggle {
  display: none; width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--bg-muted); border: 1px solid var(--border-medium);
  align-items: center; justify-content: center;
  color: var(--text-secondary); cursor: pointer;
}

/* Mega Menu */
.has-mega-menu { position: static !important; }
.mega-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  padding: 32px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition);
  z-index: var(--z-dropdown);
}
.has-mega-menu:hover .mega-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-menu-inner { display: grid; grid-template-columns: repeat(5,1fr); gap: 32px; }
.mega-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.mega-col ul { list-style: none; }
.mega-col ul li { margin-bottom: 6px; }
.mega-col ul li a { font-size: 13px; font-weight: 500; color: var(--text-secondary); padding: 4px 0; display: block; }
.mega-col ul li a:hover { color: var(--primary); }

/* ── NEWS TICKER ── */
.news-ticker {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 8px 0; overflow: hidden;
  position: relative;
}
.ticker-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(0,0,0,0.25); padding: 3px 12px;
  border-radius: var(--radius-pill); flex-shrink: 0;
}
.ticker-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-yellow); animation: pulse 1.5s infinite; }
.ticker-wrap { display: flex; align-items: center; gap: 20px; overflow: hidden; flex: 1; }
.ticker-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.ticker-item::after { content: '★'; color: rgba(255,255,255,0.4); font-size: 10px; }
.ticker-item a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); }
.ticker-item a:hover { text-decoration-color: #fff; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── HERO SECTION ── */
.hero-section {
  margin-top: var(--nav-height);
  background: linear-gradient(160deg, var(--bg-base) 0%, var(--bg-surface) 50%, var(--bg-base) 100%);
  position: relative; overflow: hidden;
  padding: 0 0 60px;
}
.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 2px 2px, var(--border-light) 1px, transparent 0);
  background-size: 32px 32px; opacity: 0.6;
}
.hero-bg-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px); opacity: 0.12;
}
.hero-bg-orb-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -100px; }
.hero-bg-orb-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -100px; left: 20%; }
[data-theme="dark"] .hero-bg-orb-1 { opacity: 0.18; }
[data-theme="dark"] .hero-bg-orb-2 { opacity: 0.12; }

/* Hero Slider */
.hero-slider { position: relative; }
.hero-slides { position: relative; overflow: hidden; border-radius: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.8s var(--ease);
  pointer-events: none;
}
.hero-slide.active { position: relative; opacity: 1; pointer-events: all; }
.hero-slide-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 60px 0;
  min-height: 520px;
}
.hero-content .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,102,255,0.10); border: 1px solid rgba(0,102,255,0.2);
  color: var(--primary); padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero-content .excerpt {
  font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.7;
}
.hero-meta {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero-meta .author { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.hero-meta .author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.hero-meta .date { font-size: 13px; color: var(--text-muted); }
.hero-meta .read-time { font-size: 13px; color: var(--text-muted); }
.hero-actions { display: flex; align-items: center; gap: 12px; }
.hero-image { position: relative; }
.hero-image .img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16/10;
  position: relative;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.hero-image:hover img { transform: scale(1.03); }
.hero-image .img-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md); padding: 10px 16px;
}
.hero-thumbnail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 16/10; position: relative;
}
.hero-thumbnail-grid img { width: 100%; height: 100%; object-fit: cover; }

/* Slider Controls */
.slider-controls {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 32px;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: var(--border-strong); cursor: pointer;
  transition: all var(--transition);
}
.slider-dot.active { width: 28px; background: var(--primary); }
.slider-prev, .slider-next {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border-medium);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); cursor: pointer; transition: all var(--transition);
}
.slider-prev:hover, .slider-next:hover { border-color: var(--primary); color: var(--primary); }

/* ── TRENDING SECTION ── */
.trending-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}
.trending-inner { display: flex; align-items: center; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.trending-inner::-webkit-scrollbar { display: none; }
.trending-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-red); flex-shrink: 0;
}
.trending-items { display: flex; align-items: center; gap: 8px; }
.trending-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--bg-muted); border: 1px solid var(--border-medium);
  font-size: 13px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; cursor: pointer; transition: all var(--transition);
  flex-shrink: 0;
}
.trending-item:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-card); }
.trending-item .num { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.trending-item.hot { border-color: rgba(255,107,53,0.3); }

/* ── POST CARD ── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  display: flex; flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--border-medium);
}
.post-card-thumb {
  aspect-ratio: 16/9; overflow: hidden; position: relative;
  background: var(--bg-muted);
}
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-thumb .thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--transition);
}
.post-card:hover .thumb-overlay { opacity: 1; }
.post-card-thumb .category-badge {
  position: absolute; top: 12px; left: 12px;
}
.post-card-thumb .bookmark-btn {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-glass); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: all var(--transition);
  opacity: 0;
}
.post-card:hover .bookmark-btn { opacity: 1; }
.post-card-thumb .read-time-badge {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--bg-glass); backdrop-filter: blur(8px);
  border-radius: var(--radius-pill); padding: 3px 10px;
  font-size: 11px; font-weight: 600; color: #fff;
}
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  flex-wrap: wrap;
}
.post-card-meta .author { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.post-card-meta .author img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }
.post-card-meta .date { font-size: 12px; color: var(--text-muted); }
.post-card-title {
  font-size: 1rem; font-weight: 700; line-height: 1.4;
  color: var(--text-primary); margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--transition);
}
.post-card:hover .post-card-title { color: var(--primary); }
.post-card-excerpt {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 16px;
}
.post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.post-card-stats { display: flex; align-items: center; gap: 14px; }
.post-card-stats .stat { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); }
.post-card-stats .stat svg { width: 14px; height: 14px; }
.post-card-link { font-size: 13px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.post-card-link:hover { gap: 8px; }

/* Post Card — Horizontal (list style) */
.post-card-horizontal {
  display: grid; grid-template-columns: 180px 1fr;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); overflow: hidden;
  transition: all var(--transition-slow);
}
.post-card-horizontal:hover { box-shadow: var(--shadow-md); border-color: var(--border-medium); }
.post-card-horizontal .thumb { aspect-ratio: 4/3; overflow: hidden; }
.post-card-horizontal .thumb img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s var(--ease); }
.post-card-horizontal:hover .thumb img { transform: scale(1.08); }
.post-card-horizontal .body { padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.post-card-horizontal .title { font-size: 0.9rem; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Post Card — Featured (large) */
.post-card-featured {
  grid-column: 1 / -1; position: relative;
  border-radius: var(--radius-xl); overflow: hidden; min-height: 400px;
  display: flex; align-items: flex-end;
}
.post-card-featured .thumb { position: absolute; inset: 0; }
.post-card-featured .thumb img { width:100%; height:100%; object-fit:cover; }
.post-card-featured .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.post-card-featured .content {
  position: relative; padding: 36px;
  color: #fff; z-index: 1;
}
.post-card-featured .title { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.25; }
.post-card-featured .excerpt { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: var(--space-lg);
}
.widget-title {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 800;
  letter-spacing: 0.02em; color: var(--text-primary);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.widget-title-wrap { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.widget-title-wrap .widget-title { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* Popular Posts Widget */
.popular-post-item {
  display: grid; grid-template-columns: 70px 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.popular-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-post-item .thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.popular-post-item .thumb img { width:100%;height:100%;object-fit:cover; transition: transform 0.3s; }
.popular-post-item:hover .thumb img { transform: scale(1.08); }
.popular-post-item .content .title { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.popular-post-item .content .meta { font-size: 11px; color: var(--text-muted); }
.popular-post-num { font-size: 28px; font-weight: 800; font-family: var(--font-display); color: var(--border-strong); line-height: 1; }

/* Category Widget */
.category-list { display: flex; flex-direction: column; gap: 8px; }
.category-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  background: var(--bg-muted); transition: all var(--transition);
}
.category-list li a:hover { background: rgba(0,102,255,0.08); color: var(--primary); }
.category-list li a .count { font-size: 11px; background: var(--bg-surface); border-radius: var(--radius-pill); padding: 2px 8px; color: var(--text-muted); border: 1px solid var(--border-light); }

/* Tags Widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--bg-muted); border: 1px solid var(--border-medium);
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition);
}
.tag-cloud a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border: none; color: #fff; text-align: center;
}
.newsletter-widget .widget-title { color: #fff; border-color: rgba(255,255,255,0.4); }
.newsletter-widget p { color: rgba(255,255,255,0.85); font-size: 13px; margin-bottom: 16px; }
.newsletter-widget .nl-form input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 14px; margin-bottom: 10px;
  backdrop-filter: blur(8px);
}
.newsletter-widget .nl-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-widget .nl-form input:focus { outline: none; border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.2); }
.newsletter-widget .nl-form button { width: 100%; background: #fff; color: var(--primary-dark); font-weight: 700; border-radius: var(--radius-md); padding: 11px; font-size: 14px; transition: all var(--transition); }
.newsletter-widget .nl-form button:hover { background: var(--accent-yellow); }

/* AMTake Tools Widget */
.amtake-widget {
  background: linear-gradient(135deg, #0d1117 0%, #1a2235 100%);
  border: 1px solid rgba(0,200,248,0.2); color: #fff;
}
.amtake-widget .widget-title { color: #fff; border-color: var(--secondary); }
.amtake-widget .amtake-desc { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.amtake-tool-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.amtake-tool-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.85); transition: all var(--transition);
}
.amtake-tool-item:hover { background: rgba(0,200,248,0.1); border-color: rgba(0,200,248,0.3); }
.amtake-tool-item .icon { font-size: 16px; }
.amtake-widget .btn-amtake {
  display: block; width: 100%; text-align: center; padding: 11px;
  background: linear-gradient(135deg, var(--secondary), #0066ff);
  color: #fff; border-radius: var(--radius-md); font-weight: 700; font-size: 14px;
  transition: all var(--transition);
}
.amtake-widget .btn-amtake:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,200,248,0.35); }

/* ── SEARCH OVERLAY ── */
.search-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(0,0,0,0.7); backdrop-filter: blur(12px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
  opacity: 0; visibility: hidden; transition: all var(--transition-slow);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-box {
  background: var(--bg-elevated); border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl); padding: 24px;
  width: 100%; max-width: 640px;
  box-shadow: var(--shadow-xl);
  transform: translateY(-20px); transition: transform var(--transition-slow);
}
.search-overlay.active .search-box { transform: translateY(0); }
.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-surface); border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md); padding: 12px 16px;
  transition: border-color var(--transition);
}
.search-input-wrap:focus-within { border-color: var(--primary); }
.search-input-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 16px; color: var(--text-primary); font-family: inherit;
}
.search-input-wrap input::placeholder { color: var(--text-muted); }
.search-suggestions { margin-top: 16px; }
.search-suggestions h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.search-tag {
  padding: 5px 14px; border-radius: var(--radius-pill);
  background: var(--bg-muted); border: 1px solid var(--border-medium);
  font-size: 13px; color: var(--text-secondary); cursor: pointer; transition: all var(--transition);
}
.search-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.search-results { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; max-height: 350px; overflow-y: auto; }
.search-result-item {
  display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center;
  padding: 10px; border-radius: var(--radius-md); cursor: pointer;
  transition: background var(--transition);
}
.search-result-item:hover { background: var(--bg-muted); }
.search-result-item .thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.search-result-item .thumb img { width:100%;height:100%;object-fit:cover; }
.search-result-item .title { font-size: 13px; font-weight: 600; }
.search-result-item .cat { font-size: 11px; color: var(--primary); font-weight: 600; }

/* ── CATEGORY SECTIONS ── */
.category-section { border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border-light); }
.category-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border-light);
}
.category-header-left { display: flex; align-items: center; gap: 12px; }
.category-icon {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.category-icon.ai { background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(0,200,248,0.15)); }
.category-icon.marketing { background: rgba(0,200,81,0.15); }
.category-icon.saas { background: rgba(124,58,237,0.15); }
.category-icon.tools { background: rgba(255,107,53,0.15); }
.category-icon.wordpress { background: rgba(0,102,255,0.15); }
.category-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.category-posts { padding: 20px 24px; }

/* ── EDITORS PICKS ── */
.editors-picks-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.editors-pick-item {
  display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: start;
  padding: 14px; background: var(--bg-muted); border-radius: var(--radius-md);
  border: 1px solid var(--border-light); transition: all var(--transition);
}
.editors-pick-item:hover { border-color: var(--primary); background: var(--bg-card); }
.editors-pick-item .thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.editors-pick-item .thumb img { width:100%;height:100%;object-fit:cover; }
.editors-pick-item .num { font-size: 28px; font-weight: 800; font-family: var(--font-display); color: var(--primary); opacity: 0.5; }
.editors-pick-item .title { font-size: 13px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── AI RECOMMENDED ── */
.ai-recommended {
  background: linear-gradient(135deg, rgba(0,102,255,0.04) 0%, rgba(0,200,248,0.04) 100%);
  border: 1px solid rgba(0,102,255,0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
}
.ai-recommended-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.ai-badge { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); background: linear-gradient(135deg,var(--primary),var(--secondary)); color: #fff; font-size: 12px; font-weight: 700; }
.ai-badge .ai-pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.5s infinite; }

/* ── NEWSLETTER SECTION ── */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #001a66 50%, var(--primary) 100%);
  position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 28px 28px;
}
.newsletter-section .orb {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.newsletter-section .orb-1 { width: 400px; height: 400px; top: -200px; right: -100px; }
.newsletter-section .orb-2 { width: 300px; height: 300px; bottom: -150px; left: 5%; }
.nl-content { position: relative; text-align: center; color: #fff; }
.nl-content h2 { color: #fff; margin-bottom: 12px; }
.nl-content p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 32px; }
.nl-form-wrap {
  display: flex; gap: 12px; max-width: 520px; margin: 0 auto;
}
.nl-form-wrap input {
  flex: 1; padding: 13px 18px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 15px; font-family: inherit;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.nl-form-wrap input::placeholder { color: rgba(255,255,255,0.55); }
.nl-form-wrap input:focus { outline: none; border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.18); }
.nl-form-wrap button { flex-shrink: 0; background: #fff; color: var(--primary-dark); font-weight: 700; padding: 13px 26px; border-radius: var(--radius-md); font-size: 15px; transition: all var(--transition); }
.nl-form-wrap button:hover { background: var(--accent-yellow); transform: translateY(-1px); }
.nl-stats { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 28px; }
.nl-stat { text-align: center; }
.nl-stat .val { font-size: 1.5rem; font-weight: 800; font-family: var(--font-display); color: #fff; }
.nl-stat .label { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ── AMTAKE TOOLS BANNER ── */
.amtake-banner {
  background: linear-gradient(135deg, #0d1117 0%, #111825 100%);
  border-radius: var(--radius-xl); border: 1px solid rgba(0,200,248,0.2);
  overflow: hidden; position: relative;
}
.amtake-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(0,200,248,0.08) 0%, transparent 60%);
}
.amtake-banner-inner { position: relative; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.amtake-banner-content { color: #fff; }
.amtake-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.amtake-logo-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--secondary), var(--primary)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; font-family: var(--font-display); color: #fff; }
.amtake-brand-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: #fff; }
.amtake-brand-tagline { font-size: 12px; color: var(--secondary); font-weight: 600; }
.amtake-banner-content h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); color: #fff; margin-bottom: 12px; line-height: 1.25; }
.amtake-banner-content p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 24px; max-width: 500px; }
.amtake-tool-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.amtake-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.8);
}
.amtake-chip .icon { font-size: 14px; }
.amtake-actions { display: flex; align-items: center; gap: 12px; }
.btn-amtake-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 24px rgba(0,200,248,0.3);
  transition: all var(--transition);
}
.btn-amtake-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,200,248,0.45); color: #fff; }
.btn-amtake-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-md);
  background: transparent; border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85); font-weight: 600; font-size: 15px;
  transition: all var(--transition);
}
.btn-amtake-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.amtake-stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; min-width: 200px; }
.amtake-stat {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md); padding: 16px;
  text-align: center; color: #fff;
}
.amtake-stat .val { font-size: 1.6rem; font-weight: 800; font-family: var(--font-display); color: var(--secondary); }
.amtake-stat .label { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ── SPONSORED BANNER ── */
.ad-slot {
  background: var(--bg-muted); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md); overflow: hidden;
  position: relative;
}
.ad-slot-label {
  position: absolute; top: 6px; right: 8px;
  font-size: 10px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase;
}
.ad-slot-leaderboard { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-slot-rectangle { min-height: 250px; display: flex; align-items: center; justify-content: center; }
.ad-slot-inner { text-align: center; color: var(--text-muted); font-size: 13px; }

/* ── VIDEO SECTION ── */
.video-card {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: var(--bg-card); border: 1px solid var(--border-light);
  transition: all var(--transition-slow);
}
.video-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.video-thumb { aspect-ratio: 16/9; position: relative; background: var(--bg-muted); overflow: hidden; }
.video-thumb img { width:100%;height:100%;object-fit:cover; transition: transform 0.4s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-thumb .play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.play-circle {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.95); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); transition: all var(--transition);
  color: var(--primary);
}
.video-card:hover .play-circle { transform: scale(1.1); background: var(--primary); color: #fff; }
.video-duration {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.75); color: #fff; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono);
}
.video-meta { padding: 14px; }
.video-title { font-size: 14px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.video-info { font-size: 12px; color: var(--text-muted); }

/* ── MOST VIEWED ── */
.most-viewed-item {
  display: grid; grid-template-columns: 40px 80px 1fr; gap: 12px; align-items: center;
  padding: 12px; border-radius: var(--radius-md); transition: background var(--transition);
}
.most-viewed-item:hover { background: var(--bg-muted); }
.most-viewed-item .rank { font-size: 22px; font-weight: 900; font-family: var(--font-display); color: var(--border-strong); text-align: center; }
.most-viewed-item .rank.top-3 { color: var(--primary); }
.most-viewed-item .thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.most-viewed-item .thumb img { width:100%;height:100%;object-fit:cover; }
.most-viewed-item .title { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.most-viewed-item .views { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
  margin-top: 80px;
}
[data-theme="dark"] .site-footer { background: #050810; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 24px; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: all var(--transition);
  font-size: 17px;
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-links a:hover { color: var(--secondary); }
.footer-amtake { background: rgba(255,255,255,0.04); border: 1px solid rgba(0,200,248,0.2); border-radius: var(--radius-md); padding: 20px; }
.footer-amtake h4 { color: var(--secondary) !important; }
.footer-amtake p { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.footer-amtake .amtake-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.footer-amtake .tool-tag { font-size: 11px; padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(0,200,248,0.1); border: 1px solid rgba(0,200,248,0.2); color: var(--secondary); }
.footer-amtake .amtake-cta { display: block; text-align: center; padding: 10px; background: linear-gradient(135deg,var(--secondary),var(--primary)); color: #fff; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; transition: all var(--transition); }
.footer-amtake .amtake-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,200,248,0.3); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); margin: 0; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--secondary); }

/* ── SINGLE POST ── */
.single-post-hero { margin-top: var(--nav-height); }
.single-post-header { padding: var(--space-3xl) 0 var(--space-xl); }
.single-post-thumb { margin-bottom: var(--space-xl); border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16/7; }
.single-post-thumb img { width:100%;height:100%;object-fit:cover; }
.post-content { font-size: 1.05rem; line-height: 1.85; color: var(--text-secondary); }
.post-content h2 { margin: var(--space-xl) 0 var(--space-md); font-size: 1.5rem; color: var(--text-primary); }
.post-content h3 { margin: var(--space-lg) 0 var(--space-md); font-size: 1.2rem; color: var(--text-primary); }
.post-content p { margin-bottom: var(--space-md); }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: var(--space-md); }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 6px; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content blockquote { border-left: 4px solid var(--primary); padding: 16px 24px; background: rgba(0,102,255,0.05); border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: var(--space-lg) 0; font-size: 1.1rem; font-style: italic; color: var(--text-primary); }
.post-content code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-code); padding: 2px 6px; border-radius: 4px; color: var(--accent-purple); }
.post-content pre { background: var(--bg-code); border-radius: var(--radius-md); padding: var(--space-lg); overflow-x: auto; margin: var(--space-lg) 0; }
.post-content pre code { background: none; padding: 0; color: inherit; font-size: 0.875rem; }
.post-content img { border-radius: var(--radius-md); margin: var(--space-lg) 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: var(--space-lg) 0; }
.post-content th { background: var(--bg-muted); padding: 10px 14px; text-align: left; font-weight: 700; font-size: 13px; border: 1px solid var(--border-medium); }
.post-content td { padding: 10px 14px; border: 1px solid var(--border-light); font-size: 14px; }

/* Key Takeaways Box */
.key-takeaways {
  background: linear-gradient(135deg,rgba(0,102,255,0.06),rgba(0,200,248,0.06));
  border: 1.5px solid rgba(0,102,255,0.2);
  border-radius: var(--radius-lg); padding: var(--space-lg);
  margin: var(--space-xl) 0;
}
.key-takeaways .kt-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.key-takeaways .kt-header h4 { font-size: 1rem; font-weight: 800; color: var(--primary); }
.key-takeaways ul { list-style: none; padding: 0; }
.key-takeaways li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 14px; }
.key-takeaways li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* FAQ Section */
.post-faq { margin: var(--space-xl) 0; }
.faq-item { border: 1px solid var(--border-light); border-radius: var(--radius-md); margin-bottom: 8px; overflow: hidden; }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; cursor: pointer; font-weight: 600; font-size: 15px; background: var(--bg-muted); transition: background var(--transition); }
.faq-question:hover { background: var(--bg-card); }
.faq-question .arrow { transition: transform var(--transition); }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { display: none; padding: 16px 18px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; border-top: 1px solid var(--border-light); }
.faq-item.open .faq-answer { display: block; }

/* Author Box */
.author-box {
  background: var(--bg-card); border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl); padding: var(--space-xl);
  display: flex; gap: 20px; align-items: flex-start;
}
.author-box .author-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--primary); }
.author-box .author-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.author-box .author-role { font-size: 12px; color: var(--primary); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.author-box p { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; }

/* Share Bar */
.share-bar { display: flex; align-items: center; gap: 10px; margin: var(--space-xl) 0; padding: var(--space-lg); background: var(--bg-muted); border-radius: var(--radius-lg); }
.share-bar .share-label { font-weight: 700; font-size: 14px; margin-right: 4px; }
.share-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; transition: all var(--transition); }
.share-btn.twitter { background: #1da1f2; color: #fff; }
.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.linkedin { background: #0a66c2; color: #fff; }
.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.copy { background: var(--bg-card); border: 1px solid var(--border-medium); color: var(--text-primary); }
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: var(--space-xl) 0; }
.page-btn { width: 42px; height: 42px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; background: var(--bg-card); border: 1px solid var(--border-medium); color: var(--text-primary); transition: all var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── TOAST NOTIFICATION ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg-elevated); border: 1px solid var(--border-medium); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; transform: translateX(100px); opacity: 0; transition: all 0.4s var(--ease-out); min-width: 280px; }
.toast.show { transform: translateX(0); opacity: 1; }
.toast .toast-icon { font-size: 18px; }
.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error { border-left: 3px solid var(--accent-red); }
.toast.info { border-left: 3px solid var(--primary); }

/* ── LOADING SKELETON ── */
.skeleton { background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-card) 50%, var(--bg-muted) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── UTILITY ── */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0; }
.truncate-2 { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.truncate-3 { display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.relative { position: relative; }
.sticky-top { position: sticky; top: calc(var(--nav-height) + 20px); }
.mt-auto { margin-top: auto; }
.d-none { display: none; }
.animate-fade-in { animation: fadeIn 0.5s var(--ease) both; }
.animate-slide-up { animation: slideUp 0.5s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .mega-menu-inner { grid-template-columns: repeat(3,1fr); }
  .hero-slide-inner { gap: 40px; }
  .amtake-banner-inner { grid-template-columns: 1fr; }
  .amtake-stats-grid { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 1024px) {
  :root { --nav-height: 60px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-main { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .hero-slide-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { display: none; }
  .footer-grid { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .editors-picks-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --space-3xl: 48px; --space-2xl: 32px; }
  #primary-navigation { display: none; }
  .search-trigger { display: none; }
  .mobile-menu-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-section { padding-bottom: 40px; }
  .hero-content h1 { font-size: 2rem; }
  .nl-form-wrap { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .amtake-banner-inner { padding: 28px; }
  .post-card-horizontal { grid-template-columns: 1fr; }
  .post-card-horizontal .thumb { aspect-ratio: 16/7; }
  .share-bar { flex-wrap: wrap; }
  .nl-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .container, .container-wide { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn-lg { padding: 12px 22px; font-size: 15px; }
  .hero-content h1 { font-size: 1.75rem; }
  .post-card-featured .content { padding: 20px; }
  .amtake-chip { font-size: 11px; }
}

/* ── PRINT STYLES ── */
@media print {
  #site-header, .news-ticker, .sidebar, .site-footer, .share-bar, .ad-slot { display: none; }
  body { font-size: 12pt; }
  a { color: inherit; text-decoration: underline; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ticker-track { animation: none; }
}
