/*
Theme Name: AIPackStore Pro
Theme URI: https://aipackstore.com
Author: AIPackStore Team
Author URI: https://aipackstore.com
Description: A modern, SEO-optimized WordPress theme for AI tools, ChatGPT prompts, digital downloads, tutorials, and affiliate marketing content. Built with performance and AdSense readiness in mind.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aipackstore-pro
Tags: blog, news, SEO-friendly, responsive, adsense-ready, clean, professional
*/

:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --accent: #7c3aed;
  --accent-light: #8b5cf6;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --content-width: 740px;
  --sidebar-width: 340px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

::selection {
  background: var(--primary);
  color: var(--white);
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--secondary);
  color: var(--white);
  padding: 12px 24px;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
.site-header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 68px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.site-title a {
  color: var(--secondary);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-title a:hover {
  opacity: 0.85;
}

.custom-logo-link img {
  height: 40px;
  width: auto;
}

.site-description {
  display: none;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-navigation ul {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}

.main-navigation li {
  position: relative;
}

.main-navigation > ul > li > a {
  display: block;
  padding: 8px 16px;
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.main-navigation > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: transform var(--transition);
}

.main-navigation > ul > li > a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.main-navigation > ul > li > a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
  transform: translateX(-50%) scaleX(1);
}

/* Submenu */
.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 6px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

.main-navigation li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation ul ul a {
  padding: 10px 14px;
  font-size: 0.85rem;
  border-radius: 6px;
  color: var(--gray-600);
  display: block;
  transition: all var(--transition);
}

.main-navigation ul ul a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

/* Search Form in Header */
.header-search {
  display: flex;
  align-items: center;
}

.header-search form {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 100px;
  padding: 4px 4px 4px 14px;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.header-search form:focus-within {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.header-search input {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: var(--gray-800);
  outline: none;
  width: 140px;
  font-family: var(--font-sans);
}

.header-search input::placeholder {
  color: var(--gray-400);
}

.header-search button {
  background: var(--gradient);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  font-size: 0.8rem;
}

.header-search button:hover {
  transform: scale(1.05);
}

/* Header Ad */
.header-ad {
  background: var(--gray-100);
  text-align: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--gray-200);
}

/* ============ HERO ============ */
.hero-section {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(37,99,235,0.3) 0%, transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(124,58,237,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-section h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  position: relative;
}

.hero-section h1 span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
  position: relative;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--secondary) !important;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  position: relative;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============ CONTENT LAYOUT ============ */
.content-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 0;
}

@media (min-width: 900px) {
  .content-area {
    grid-template-columns: 1fr var(--sidebar-width);
  }
}

.main-content {
  min-width: 0;
}

/* ============ POST CARDS ============ */
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  margin-bottom: 28px;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--gray-300);
}

.post-card-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-200);
  position: relative;
}

.post-card-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.04));
  pointer-events: none;
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.06);
}

.post-card-body {
  padding: 24px;
}

.post-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
  position: relative;
  padding-left: 14px;
}

.post-card-category::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

.post-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}

.post-card-title a {
  color: var(--secondary);
  transition: color var(--transition);
}

.post-card-title a:hover {
  color: var(--primary);
}

.post-card-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.post-card-meta .post-date {
  position: relative;
}

.post-card-meta .post-date::after {
  content: '·';
  margin-left: 12px;
  color: var(--gray-300);
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ============ SINGLE POST ============ */
.single-post-article {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 48px;
  box-shadow: var(--shadow);
}

.entry-header {
  margin-bottom: 36px;
}

.entry-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 14px;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.08);
}

.entry-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--secondary);
}

.entry-meta {
  font-size: 0.875rem;
  color: var(--gray-400);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.entry-meta .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-200);
  overflow: hidden;
  border: 2px solid var(--gray-100);
}

.entry-meta .author-name {
  font-weight: 600;
  color: var(--gray-700);
}

.entry-meta .meta-sep {
  color: var(--gray-300);
}

.entry-featured-image {
  margin-bottom: 36px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray-700);
}

.entry-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 40px 0 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 32px 0 12px;
  line-height: 1.35;
}

.entry-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 24px 0 10px;
}

.entry-content p {
  margin-bottom: 22px;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 22px 0;
  padding-left: 24px;
}

.entry-content ul {
  list-style: none;
}

.entry-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.entry-content ol li {
  margin-bottom: 10px;
}

.entry-content li > ul,
.entry-content li > ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

.entry-content img {
  border-radius: var(--radius-sm);
  margin: 32px 0;
  box-shadow: var(--shadow-md);
}

.entry-content figure {
  margin: 32px 0;
}

.entry-content figure figcaption {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  margin: 32px 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, rgba(37,99,235,0.03) 100%);
  font-style: italic;
  color: var(--gray-700);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  position: relative;
}

.entry-content blockquote::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 16px;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(37,99,235,0.3);
  transition: text-decoration-color var(--transition);
}

.entry-content a:hover {
  text-decoration-color: var(--primary);
}

.entry-content code {
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: var(--font-mono);
  color: var(--accent);
  border: 1px solid var(--gray-200);
}

.entry-content pre {
  background: var(--gray-900);
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 32px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: var(--font-mono);
}

.entry-content pre code {
  background: none;
  padding: 0;
  border: none;
  color: inherit;
  font-size: inherit;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.entry-content th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--secondary);
}

.entry-content tr:hover td {
  background: var(--gray-50);
}

.entry-content hr {
  margin: 40px 0;
  border: none;
  height: 1px;
  background: var(--gray-200);
}

.entry-content .wp-block-button {
  margin: 28px 0;
}

.entry-content .wp-block-button__link {
  display: inline-block;
  background: var(--gradient);
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}

.entry-content .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Page Links */
.page-links {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--gray-700);
  margin: 0 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition);
}

.page-links a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Author Bio */
.author-bio-box {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid var(--gray-200);
}

.author-bio-avatar {
  flex-shrink: 0;
}

.author-bio-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.author-bio-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.author-bio-name a {
  color: var(--secondary);
}

.author-bio-name a:hover {
  color: var(--primary);
}

.author-bio-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============ IN-ARTICLE AD ============ */
.in-article-ad {
  background: var(--gray-50);
  text-align: center;
  padding: 36px 24px;
  margin: 40px 0;
  border-radius: var(--radius);
  border: 1px dashed var(--gray-300);
  position: relative;
}

.in-article-ad .ad-label,
.sidebar-ad .ad-label,
.header-ad-widget .ad-label,
.footer-ad-widget .ad-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 8px;
}

/* ============ PAGE ============ */
.page-article {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 48px;
  box-shadow: var(--shadow);
}

/* ============ SIDEBAR ============ */
.sidebar {
  min-width: 0;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.sidebar-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-100);
  position: relative;
}

.sidebar-widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.sidebar-ad {
  background: var(--gray-50);
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--gray-300);
  margin-bottom: 28px;
}

/* Widget Styles */
.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.sidebar-widget li:last-child {
  border-bottom: none;
}

.sidebar-widget li a {
  color: var(--gray-600);
  transition: color var(--transition);
  display: block;
}

.sidebar-widget li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.sidebar-widget .children {
  margin-left: 16px;
}

.sidebar-widget .children li:first-child {
  margin-top: 8px;
}

.sidebar-widget select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-700);
  background: var(--white);
  font-family: var(--font-sans);
}

.sidebar-widget .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-widget .tagcloud a {
  display: inline-block;
  font-size: 0.8rem !important;
  padding: 6px 12px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 6px;
  transition: all var(--transition);
}

.sidebar-widget .tagcloud a:hover {
  background: var(--primary);
  color: var(--white);
}

.sidebar-widget img {
  border-radius: var(--radius-sm);
}

.sidebar-widget .wp-block-search__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 10px;
  display: block;
}

.sidebar-widget .wp-block-search__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

.sidebar-widget .wp-block-search__button {
  margin-top: 8px;
  padding: 10px 20px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.sidebar-widget .wp-block-search__button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--secondary);
  color: var(--gray-400);
  padding: 64px 24px 28px;
  margin-top: 80px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-column-title {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: all var(--transition);
  display: inline-block;
}

.footer-column a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-column p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-400);
}

.footer-ad {
  background: rgba(255,255,255,0.04);
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,0.08);
  margin-bottom: 40px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ============ ARCHIVE ============ */
.archive-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.archive-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.archive-description {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.6;
}

/* ============ SEARCH ============ */
.search-no-results .main-content p {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 1rem;
}

/* ============ 404 ============ */
.error404 .main-content {
  text-align: center;
  padding: 80px 20px;
}

.error404 .page-title {
  font-size: 6rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error404 .page-content p {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 48px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.pagination .current {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 24px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs a {
  color: var(--gray-400);
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .separator {
  margin: 0 10px;
  color: var(--gray-300);
}

/* ============ TAGS ============ */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.tag, .entry-tags a {
  display: inline-block;
  font-size: 0.8rem;
  padding: 6px 14px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 100px;
  transition: all var(--transition);
  text-decoration: none;
}

.tag:hover, .entry-tags a:hover {
  background: var(--gradient);
  color: var(--white);
}

/* ============ COMMENTS ============ */
.entry-comments {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.comments-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
}

.comment-list .children {
  list-style: none;
  margin-left: 40px;
}

.comment {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-100);
}

.comment:last-child {
  border-bottom: none;
}

.comment-body {
  display: flex;
  gap: 16px;
}

.comment-author-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.comment-author {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.9rem;
}

.comment-author a {
  color: var(--secondary);
}

.comment-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.comment-content {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.comment-content p {
  margin-bottom: 10px;
}

.reply a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}

.reply a:hover {
  color: var(--primary-dark);
}

/* Comment Form */
.comment-respond {
  margin-top: 32px;
}

.comment-reply-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
}

.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form .form-submit input {
  background: var(--gradient);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.comment-form .form-submit input:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============ RELATED POSTS ============ */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.related-posts-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 24px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .related-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-post-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition);
}

.related-post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-post-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-200);
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.related-post-card:hover .related-post-thumb img {
  transform: scale(1.05);
}

.related-post-body {
  padding: 16px;
}

.related-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--secondary);
  transition: color var(--transition);
}

.related-post-card:hover .related-post-title {
  color: var(--primary);
}

.related-post-date {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 6px;
}

/* ============ NEWSLETTER / CTA ============ */
.cta-section {
  background: var(--gradient);
  color: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  margin: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
}

.cta-text {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 20px;
  position: relative;
}

.cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--secondary) !important;
  padding: 12px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  position: relative;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ============ ALIGNMENTS ============ */
.alignleft {
  float: left;
  margin: 4px 24px 16px 0;
}

.alignright {
  float: right;
  margin: 4px 0 16px 24px;
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.gallery {
  display: grid;
  gap: 12px;
  margin: 32px 0;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Screen Reader Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ============ LEGAL PAGES ============ */
.legal-page .legal-updated {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: -12px;
  margin-bottom: 24px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

/* ============ CONTACT FORM ============ */
.contact-form-wrap {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.contact-form p {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.contact-form .required {
  color: #ef4444;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form .form-submit input {
  background: var(--gradient);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.contact-form .form-submit input:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.contact-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* ============ COOKIE CONSENT ============ */
#cookie-consent {
  animation: cookieSlideUp 0.4s ease;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .main-navigation {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-navigation::-webkit-scrollbar {
    display: none;
  }

  .main-navigation ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .main-navigation ul ul {
    display: none;
  }

  .header-search form {
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

  .hero-section {
    padding: 56px 20px;
  }

  .hero-section h1 {
    font-size: 1.85rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .entry-title {
    font-size: 1.6rem;
  }

  .single-post-article,
  .page-article {
    padding: 24px;
  }

  .post-card-body {
    padding: 18px;
  }

  .author-bio-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .comment-list .children {
    margin-left: 20px;
  }

  .cta-section {
    padding: 36px 24px;
  }

  .cta-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .post-card-title {
    font-size: 1.05rem;
  }

  .hero-section {
    padding: 40px 16px;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .entry-content {
    font-size: 1rem;
  }

  .entry-content h2 {
    font-size: 1.35rem;
  }

  .entry-content h3 {
    font-size: 1.1rem;
  }

  .footer-grid {
    gap: 28px;
  }
}
