/*
Theme Name: SEO.BIZ.TR - AI SEO Theme
Theme URI: https://seo.biz.tr
Author: Mimoza Bilişim
Author URI: https://mimozabilisim.com
Description: SEO, AEO ve GEO odaklı, AI destekli içerik yazarı içeren profesyonel WordPress blog teması.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seobiztr
Tags: blog, seo, ai, mega-menu, dark, modern
*/

/* ============================================================
   CSS CUSTOM PROPERTIES – Design Tokens
   ============================================================ */
:root {
  /* Brand Colors */
  --color-primary:       #7C3AED;   /* violet-600 */
  --color-primary-dark:  #5B21B6;
  --color-primary-light: #A78BFA;
  --color-accent:        #06B6D4;   /* cyan-500  */
  --color-accent-dark:   #0891B2;
  --color-gold:          #F59E0B;

  /* Backgrounds */
  --bg-dark:             #0A0A0F;
  --bg-card:             #12121A;
  --bg-card-hover:       #1A1A28;
  --bg-surface:          #16162A;
  --bg-glass:            rgba(255,255,255,0.04);

  /* Text */
  --text-primary:        #F1F5F9;
  --text-secondary:      #94A3B8;
  --text-muted:          #64748B;

  /* Borders */
  --border-subtle:       rgba(124,58,237,0.2);
  --border-glow:         rgba(124,58,237,0.5);

  /* Gradients */
  --grad-hero:  linear-gradient(135deg, #0A0A0F 0%, #1a0533 50%, #0a1a2e 100%);
  --grad-card:  linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.05));
  --grad-text:  linear-gradient(135deg, #7C3AED, #06B6D4);
  --grad-btn:   linear-gradient(135deg, #7C3AED, #5B21B6);

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(124,58,237,0.3);

  /* Typography */
  --font-sans:   'Inter', 'Outfit', system-ui, sans-serif;
  --font-display:'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  /* Spacing */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-med:  0.3s ease;
  --trans-slow: 0.5s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary-light); text-decoration: none; transition: color var(--trans-fast); }
a:hover { color: var(--color-accent); }

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

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--text-primary);
  font-weight: 700;
}

p { color: var(--text-secondary); margin-bottom: 1rem; }

ul,ol { padding-left: 1.5rem; color: var(--text-secondary); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 2rem; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-seo   { background: rgba(124,58,237,.15); color: var(--color-primary-light); border: 1px solid rgba(124,58,237,.3); }
.badge-aeo   { background: rgba(6,182,212,.15);  color: var(--color-accent);        border: 1px solid rgba(6,182,212,.3); }
.badge-geo   { background: rgba(245,158,11,.15); color: var(--color-gold);          border: 1px solid rgba(245,158,11,.3); }
.badge-ai    { background: rgba(16,185,129,.15); color: #34D399;                    border: 1px solid rgba(16,185,129,.3); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: all var(--trans-med);
  text-decoration: none;
}
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,.6);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--color-primary-light);
  border: 1px solid var(--border-glow);
}
.btn-outline:hover {
  background: rgba(124,58,237,.1);
  color: var(--color-primary-light);
}
.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(6,182,212,.4);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(6,182,212,.6); color: #fff; }

/* ============================================================
   HEADER & TOP BAR
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--trans-med);
}
#site-header.scrolled {
  box-shadow: var(--shadow-glow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px; height: 42px;
  background: var(--grad-btn);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(124,58,237,.5);
  position: relative;
  overflow: hidden;
}
.logo-icon::after {
  content: '';
  position: absolute;
  width: 60%; height: 60%;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  top: -20%; right: -20%;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .logo-main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text .logo-sub {
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ============================================================
   MEGA MENU NAVIGATION
   ============================================================ */
#primary-nav { display: flex; align-items: center; }

.main-menu {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0; margin: 0;
  gap: .25rem;
}

.main-menu > li { position: relative; }

.main-menu > li > a {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .9rem;
  color: var(--text-secondary);
  font-size: .88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
  white-space: nowrap;
}
.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a,
.main-menu > li:hover > a {
  color: var(--text-primary);
  background: rgba(124,58,237,.12);
}

.main-menu > li > a .menu-arrow {
  font-size: .7rem;
  transition: transform var(--trans-fast);
  opacity: .6;
}
.main-menu > li:hover > a .menu-arrow { transform: rotate(180deg); }

/* Mega Menu Dropdown */
.mega-menu {
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
}
.mega-menu::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 6px;
  background: var(--bg-card);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.main-menu > li:hover .mega-menu { display: grid; }

.mega-menu-col h4 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-primary-light);
  margin-bottom: .75rem;
  font-weight: 600;
}
.mega-menu-col ul { list-style: none; padding: 0; }
.mega-menu-col ul li a {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .6rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: .85rem;
  transition: all var(--trans-fast);
}
.mega-menu-col ul li a:hover {
  color: var(--text-primary);
  background: rgba(124,58,237,.1);
}
.mega-menu-col ul li a .menu-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
}
.menu-icon-seo { background: rgba(124,58,237,.2); }
.menu-icon-aeo { background: rgba(6,182,212,.2); }
.menu-icon-geo { background: rgba(245,158,11,.2); }
.menu-icon-ai  { background: rgba(16,185,129,.2); }

/* Simple dropdown */
.sub-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: .5rem;
  display: none;
  list-style: none;
  box-shadow: var(--shadow-md);
  z-index: 999;
}
.main-menu > li:hover > .sub-menu { display: block; }
.sub-menu li a {
  display: block;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: .87rem;
  transition: all var(--trans-fast);
}
.sub-menu li a:hover { color: var(--text-primary); background: rgba(124,58,237,.1); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: .75rem; }

.header-search-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--trans-fast);
  font-size: .9rem;
}
.header-search-btn:hover { color: var(--text-primary); background: rgba(124,58,237,.1); }

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.mobile-menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-secondary);
  border-radius: 999px;
  transition: all var(--trans-med);
}

/* ============================================================
   HERO SECTION (Home)
   ============================================================ */
.hero {
  background: var(--grad-hero);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,58,237,.2), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  position: relative;
}
.hero-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero-stats-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(124,58,237,.15), transparent);
  border-radius: 50%;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-item { text-align: center; padding: 1rem; background: var(--bg-glass); border-radius: var(--radius-md); }
.stat-number { font-size: 1.8rem; font-weight: 800; font-family: var(--font-display); }
.stat-label  { font-size: .75rem; color: var(--text-muted); margin-top: .25rem; }

/* ============================================================
   FEATURED POSTS GRID
   ============================================================ */
.posts-section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: clamp(1.6rem,3vw,2.5rem); margin-bottom: .75rem; }
.section-desc  { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--trans-med);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }

.post-card-thumb-placeholder {
  width: 100%; height: 100%;
  background: var(--grad-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

.post-card-badges {
  position: absolute; top: .75rem; left: .75rem;
  display: flex; gap: .4rem; flex-wrap: wrap;
}

.post-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  display: flex; align-items: center; gap: .75rem;
  font-size: .78rem; color: var(--text-muted);
  margin-bottom: .75rem;
}
.post-card-meta a { color: var(--text-muted); }
.post-card-meta a:hover { color: var(--color-primary-light); }

.post-card-title {
  font-size: 1.05rem;
  margin-bottom: .75rem;
  line-height: 1.4;
}
.post-card-title a { color: var(--text-primary); }
.post-card-title a:hover { color: var(--color-primary-light); }

.post-card-excerpt {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--border-subtle);
}
.post-card-author { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text-muted); }
.author-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  color: #fff;
  font-weight: 700;
}
.read-more-link {
  font-size: .8rem; font-weight: 600;
  color: var(--color-primary-light);
  display: flex; align-items: center; gap: .25rem;
}

/* ============================================================
   SINGLE POST LAYOUT
   ============================================================ */
.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

/* Article */
.post-article { min-width: 0; }
.post-article-header { margin-bottom: 2rem; }
.post-article-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.post-article-title {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}
.post-article-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--text-muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.post-featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/7;
}
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* Article Content */
.post-content { color: var(--text-secondary); line-height: 1.85; }
.post-content h2 { font-size: 1.6rem; color: var(--text-primary); margin: 2.5rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border-subtle); }
.post-content h3 { font-size: 1.25rem; color: var(--text-primary); margin: 2rem 0 .75rem; }
.post-content h4 { font-size: 1.05rem; color: var(--text-primary); margin: 1.5rem 0 .5rem; }
.post-content p  { margin-bottom: 1.25rem; }
.post-content a  { color: var(--color-primary-light); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul,.post-content ol { margin-bottom: 1.25rem; }
.post-content li { margin-bottom: .4rem; }

.post-content blockquote {
  border-left: 3px solid var(--color-primary);
  background: rgba(124,58,237,.07);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-primary);
}
.post-content code {
  font-family: var(--font-mono);
  background: rgba(124,58,237,.15);
  padding: .15em .4em;
  border-radius: 4px;
  font-size: .87em;
  color: var(--color-primary-light);
}
.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.post-content pre code { background: none; padding: 0; }

/* FAQ Schema Block */
.faq-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}
.faq-block h3 { margin-top: 0; color: var(--color-accent); font-size: 1rem; margin-bottom: 1rem; }
.faq-item { border-bottom: 1px solid var(--border-subtle); padding: .75rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-weight: 600; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { color: var(--text-secondary); font-size: .9rem; margin-top: .5rem; padding-top: .5rem; display: none; }
.faq-answer.open { display: block; }

/* Post Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.post-tag {
  padding: .3rem .8rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--text-secondary);
  transition: all var(--trans-fast);
}
.post-tag:hover { border-color: var(--border-glow); color: var(--color-primary-light); }

/* Post Share */
.post-share {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 2rem 0;
}
.post-share span { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.share-btn {
  display: flex; align-items: center; gap: .4rem;
  padding: .4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 500;
  border: none; cursor: pointer;
  transition: all var(--trans-fast);
  text-decoration: none;
}
.share-twitter { background: rgba(29,161,242,.15); color:#1DA1F2; }
.share-linkedin { background: rgba(10,102,194,.15); color:#0A66C2; }
.share-whatsapp { background: rgba(37,211,102,.15); color:#25D366; }
.share-copy     { background: var(--bg-glass); color: var(--text-secondary); border: 1px solid var(--border-subtle); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.25rem; }

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.widget-title {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: .5rem;
}

/* TOC Widget */
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: .35rem; }
.toc-list li a {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .83rem;
  color: var(--text-secondary);
  padding: .3rem .5rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--trans-fast);
  line-height: 1.4;
}
.toc-list li a:hover,
.toc-list li a.toc-active {
  color: var(--color-primary-light);
  background: rgba(124,58,237,.08);
  border-left-color: var(--color-primary);
}
.toc-list li.toc-h3 > a { padding-left: 1.25rem; font-size: .8rem; }
.toc-list li.toc-h4 > a { padding-left: 2rem; font-size: .78rem; }
.toc-num { flex-shrink: 0; color: var(--color-primary); font-weight: 700; font-size: .75rem; margin-top: .1rem; }

/* Sidebar Banner */
.sidebar-banner {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--bg-dark) 80%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sidebar-banner::before {
  content: '';
  position: absolute; top: -50%; right: -50%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(124,58,237,.3), transparent);
  border-radius: 50%;
}
.sidebar-banner .banner-logo {
  font-size: 2rem; font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}
.sidebar-banner h3 {
  font-size: .95rem;
  color: var(--text-primary);
  margin-bottom: .4rem;
}
.sidebar-banner p {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.sidebar-banner .banner-badge {
  display: inline-block;
  padding: .25rem .7rem;
  background: rgba(245,158,11,.15);
  color: var(--color-gold);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.sidebar-banner .btn { width: 100%; justify-content: center; font-size: .82rem; }

/* Recent Posts Widget */
.recent-post-item {
  display: flex; gap: .75rem; align-items: flex-start;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: .75rem;
}
.recent-post-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.recent-post-thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0;
  background: var(--bg-glass);
}
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post-info .ptitle {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: .25rem;
}
.recent-post-info .ptitle a { color: inherit; }
.recent-post-info .ptitle a:hover { color: var(--color-primary-light); }
.recent-post-info .pdate { font-size: .73rem; color: var(--text-muted); }

/* Categories Widget */
.cat-list { list-style: none; padding: 0; }
.cat-list li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .45rem .6rem;
  border-radius: var(--radius-sm);
  font-size: .85rem; color: var(--text-secondary);
  transition: all var(--trans-fast);
}
.cat-list li a:hover { color: var(--color-primary-light); background: rgba(124,58,237,.08); }
.cat-count {
  background: rgba(124,58,237,.15);
  color: var(--color-primary-light);
  padding: .1rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
}

/* ============================================================
   AI CONTENT WRITER PAGE
   ============================================================ */
.ai-writer-page { padding: 3rem 0 5rem; }
.ai-writer-page h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: .5rem; }
.ai-writer-page .subtitle { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2rem; }

.ai-writer-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.ai-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.ai-panel h3 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .5rem;
}

.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-control {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: .88rem;
  padding: .6rem .9rem;
  transition: border-color var(--trans-fast);
  outline: none;
}
.form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.form-control::placeholder { color: var(--text-muted); }

select.form-control { appearance: none; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.provider-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.provider-tab {
  flex: 1; padding: .5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
  text-align: center;
}
.provider-tab.active {
  background: rgba(124,58,237,.15);
  border-color: var(--color-primary);
  color: var(--color-primary-light);
}

.content-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-bottom: .5rem;
}
.content-type-btn {
  padding: .45rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans-fast);
  text-align: center;
}
.content-type-btn.active, .content-type-btn:hover {
  background: rgba(6,182,212,.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.ai-output-area {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ai-output-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.ai-output-toolbar h3 { font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.ai-output-actions { display: flex; gap: .5rem; }
.ai-output-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}
.ai-output-placeholder {
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; text-align: center;
}
.ai-output-placeholder .placeholder-icon { font-size: 3.5rem; opacity: .3; }
.ai-output-placeholder p { color: var(--text-muted); font-size: .9rem; }

.ai-loading {
  display: none;
  align-items: center; justify-content: center;
  gap: 1rem; padding: 3rem;
  flex-direction: column;
}
.ai-loading.visible { display: flex; }
.ai-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.generated-content h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.generated-content h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; color: var(--color-primary-light); }
.generated-content h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.generated-content p  { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.8; }
.generated-content ul { margin-bottom: 1rem; color: var(--text-secondary); }
.generated-content li { margin-bottom: .4rem; }

/* Schema preview */
.schema-preview {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #A3E635;
  overflow-x: auto;
  margin-top: 1rem;
}

/* SEO Score */
.seo-score-bar {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
}
.score-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.score-number { font-size: 1.5rem; font-weight: 800; color: #34D399; }
.score-track {
  height: 6px;
  background: var(--bg-glass);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .75rem;
}
.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #7C3AED, #06B6D4);
  border-radius: 999px;
  transition: width 1s ease;
}
.score-items { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.score-item { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--text-secondary); }
.score-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  position: relative;
}
#site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-text .logo-main { font-size: 1.2rem; }
.footer-brand p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: .75rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-contact { margin-top: 1rem; }
.footer-contact a {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; color: var(--text-muted);
  margin-bottom: .4rem;
}
.footer-contact a:hover { color: var(--color-primary-light); }

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links li a {
  font-size: .875rem;
  color: var(--text-muted);
  transition: color var(--trans-fast);
  display: flex; align-items: center; gap: .4rem;
}
.footer-links li a:hover { color: var(--color-primary-light); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-signature {
  font-size: .85rem;
  color: var(--text-muted);
}
.footer-signature strong { color: var(--text-secondary); }
.footer-signature a {
  color: var(--color-primary-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal {
  display: flex; gap: 1.25rem;
  font-size: .8rem; color: var(--text-muted);
}
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--color-primary-light); }

/* Social Links */
.social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.social-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .9rem;
  transition: all var(--trans-fast);
  text-decoration: none;
}
.social-link:hover {
  background: rgba(124,58,237,.15);
  border-color: var(--border-glow);
  color: var(--color-primary-light);
}

/* ============================================================
   SEARCH MODAL
   ============================================================ */
.search-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex; align-items: flex-start;
  padding-top: 10vh;
  justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--trans-med);
}
.search-modal.open { opacity: 1; pointer-events: all; }
.search-modal-inner {
  width: 100%; max-width: 680px;
  padding: 0 1.5rem;
}
.search-input-wrap {
  display: flex; align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.search-input-wrap .search-icon { padding: 0 1rem; color: var(--text-muted); }
.search-input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 1.1rem; font-family: var(--font-sans);
  padding: 1rem 0;
}
.search-input-wrap input::placeholder { color: var(--text-muted); }
.search-input-wrap .search-close { padding: 0 1rem; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: .5rem; padding: 2rem 0; }
.page-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--trans-fast);
  text-decoration: none;
}
.page-link:hover, .page-link.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--text-muted);
  padding: 1.25rem 0;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--color-primary-light); }
.breadcrumbs .sep { opacity: .4; }
.breadcrumbs .current { color: var(--text-secondary); }

/* ============================================================
   DASHBOARD ADMIN STYLES
   ============================================================ */
.ai-writer-admin-wrap {
  background: #1e1e2e;
  color: #cdd6f4;
  font-family: var(--font-sans);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}
.ai-writer-admin-wrap h2 { color: #cba6f7; margin-bottom: 1rem; }
.api-key-row { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1rem; }
.api-key-row .form-group { flex: 1; min-width: 200px; }
.api-key-row label { display: block; font-size: .82rem; color: #a6adc8; margin-bottom: .3rem; }
.api-key-row input { width: 100%; background: #181825; border: 1px solid #45475a; border-radius: 6px; color: #cdd6f4; padding: .5rem .8rem; font-size: .875rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .single-post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .ai-writer-layout { grid-template-columns: 1fr; }
  .ai-panel { position: static; }
}

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

@media (max-width: 768px) {
  #primary-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .ai-writer-layout { grid-template-columns: 1fr; }
  .mega-menu { min-width: 320px; grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero { padding: 4rem 0 2.5rem; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,.3); }
  50%       { box-shadow: 0 0 40px rgba(124,58,237,.6); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

.animate-fade-up { animation: fadeInUp .6s ease both; }
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }

/* Glow pulse on logo */
.logo-icon { animation: pulse-glow 3s ease-in-out infinite; }

/* AI typing cursor */
.ai-typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--color-primary);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ============================================================
   NOTICE / ALERT BLOCKS
   ============================================================ */
.notice-block {
  border-left: 3px solid;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.notice-info    { border-color: var(--color-accent); background: rgba(6,182,212,.07); }
.notice-success { border-color: #34D399; background: rgba(52,211,153,.07); }
.notice-warning { border-color: var(--color-gold); background: rgba(245,158,11,.07); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--grad-btn);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,.5);
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: all var(--trans-med);
  z-index: 500;
  border: none;
  font-size: 1rem;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); }

/* ============================================================
   HEADER TOP BAR (optional)
   ============================================================ */
.top-bar {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent-dark));
  padding: .35rem 0;
  font-size: .78rem;
  color: rgba(255,255,255,.8);
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,.8); }
.top-bar a:hover { color: #fff; }
