/*
Theme Name: BusinessFade
Theme URI: https://businessfade.com
Author: BusinessFade
Author URI: https://businessfade.com
Description: A modern, premium blog + deals/coupons platform with dark glassmorphism design, purple/cyan gradients, and smooth animations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: businessfade
Tags: blog, dark, modern, glassmorphism, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   CSS VARIABLES / DESIGN TOKENS
   ======================================== */
:root {
  --bg: #0d0f1a;
  --bg-card: #151829;
  --bg-secondary: #1c2035;
  --bg-glass: rgba(21, 24, 41, 0.6);
  --text: #e0e2ed;
  --text-muted: #7a7f99;
  --primary: #7c3aed;
  --primary-light: #a855f7;
  --accent: #22d3ee;
  --neon: #c084fc;
  --border: #1c2035;
  --radius: 0.75rem;
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.15);
  --shadow-glow-md: 0 0 40px rgba(124, 58, 237, 0.2);
  --gradient-primary: linear-gradient(135deg, #7c3aed, #22d3ee);
  --gradient-purple: linear-gradient(135deg, #7c3aed, #c084fc, #22d3ee);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   UTILITIES
   ======================================== */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 32, 53, 0.5);
}

.glass-strong {
  background: rgba(21, 24, 41, 0.8);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(28, 32, 53, 0.6);
}

.gradient-primary { background: var(--gradient-primary); }
.gradient-purple { background: var(--gradient-purple); }

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

.glow-sm { box-shadow: var(--shadow-glow); }
.glow-md { box-shadow: var(--shadow-glow-md); }

.hover-lift { transition: all 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,0,0,0.3); }

.hover-glow { transition: all 0.3s ease; }
.hover-glow:hover { box-shadow: 0 0 30px rgba(124, 58, 237, 0.25); }

.rounded-xl { border-radius: var(--radius); }
.rounded-2xl { border-radius: calc(var(--radius) * 1.5); }
.rounded-full { border-radius: 9999px; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.btn-outline:hover { background: rgba(124, 58, 237, 0.1); }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(21, 24, 41, 0.8);
  backdrop-filter: blur(40px);
  border-bottom: 1px solid rgba(28, 32, 53, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-menu a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--text);
  background: var(--bg-secondary);
}

.nav-menu .current-menu-item a {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .header-actions { display: none; }
  .mobile-toggle { display: block; }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(21, 24, 41, 0.95);
    backdrop-filter: blur(40px);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg), rgba(13,15,26,0.9), rgba(13,15,26,0.6));
}

.hero-overlay-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), transparent, rgba(13,15,26,0.4));
}

.hero-glow-1 {
  position: absolute;
  top: 5rem;
  right: 5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 50%;
  filter: blur(120px);
  animation: float 6s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  bottom: 5rem;
  left: 5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(34, 211, 238, 0.1);
  border-radius: 50%;
  filter: blur(150px);
}

.hero-content { position: relative; z-index: 10; max-width: 42rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 32rem;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (min-width: 768px) {
  .hero h1 { font-size: 3.75rem; }
}

/* ========================================
   SECTIONS
   ======================================== */
.section { padding: 5rem 0; }
.section-alt { background: rgba(21, 24, 41, 0.3); }
.section-header { text-center; margin-bottom: 3rem; }
.section-header h2 { font-size: 1.875rem; color: var(--text); margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); }

.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.section-top h2 { font-size: 1.875rem; color: var(--text); margin-bottom: 0.5rem; }
.section-top p { color: var(--text-muted); }
.section-top a { font-size: 0.875rem; color: var(--primary); font-weight: 500; }
.section-top a:hover { text-decoration: underline; }

/* ========================================
   GRID
   ======================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-6 { grid-template-columns: repeat(2, 1fr); }

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

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

/* ========================================
   CARDS
   ======================================== */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 32, 53, 0.5);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.25);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--gradient-primary);
  color: #fff;
}

.card-discount-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--gradient-primary);
  color: #fff;
}

.card-body { padding: 1.25rem; }

.card-body h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.card:hover .card-body h3 { color: var(--primary); }

.card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-author img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
}

/* Featured Card */
.card-featured {
  position: relative;
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.25);
}

.card-featured-image {
  height: 400px;
  position: relative;
}

.card-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), rgba(13,15,26,0.6), transparent);
}

.card-featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.card-featured-content h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.card-featured:hover .card-featured-content h3 { color: var(--primary); }

.card-featured-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

/* Category Card */
.category-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 32, 53, 0.5);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.25);
}

.category-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.category-card:hover .category-icon { transform: scale(1.1); }

.category-icon svg { width: 1.25rem; height: 1.25rem; color: #fff; }

.category-card h3 { font-size: 0.875rem; color: var(--text); }
.category-card span { font-size: 0.75rem; color: var(--text-muted); }

/* Deal Coupon */
.coupon-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.coupon-code {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px dashed rgba(124, 58, 237, 0.3);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--primary);
  text-align: center;
}

.coupon-copy {
  padding: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(124, 58, 237, 0.3);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s;
}

.coupon-copy:hover { background: rgba(124, 58, 237, 0.1); }

/* ========================================
   ICON CARDS (Tools, Stats, Contact info)
   ======================================== */
.icon-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 32, 53, 0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.icon-card:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,0,0,0.3); }

.icon-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.icon-card:hover .icon-card-icon { transform: scale(1.1); }
.icon-card-icon svg { width: 1.25rem; height: 1.25rem; color: #fff; }
.icon-card h3 { font-size: 1rem; color: var(--text); margin-bottom: 0.5rem; }
.icon-card p { font-size: 0.875rem; color: var(--text-muted); }

.icon-card.center { text-align: center; }
.icon-card.center .icon-card-icon { margin: 0 auto 1rem; }

/* ========================================
   STAT CARD
   ======================================== */
.stat-card { text-align: center; }
.stat-card .stat-value { font-size: 1.5rem; font-family: var(--font-display); color: var(--text); margin-bottom: 0.25rem; }
.stat-card .stat-label { font-size: 0.875rem; color: var(--text-muted); }
.stat-card svg { width: 2rem; height: 2rem; color: var(--primary); margin: 0 auto 0.75rem; }

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 32, 53, 0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover { transform: translateY(-4px); }

.testimonial-stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.testimonial-stars svg { width: 1rem; height: 1rem; color: var(--accent); fill: var(--accent); }

.testimonial-card blockquote {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-author img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { font-size: 0.875rem; color: var(--text); display: block; }
.testimonial-author span { font-size: 0.75rem; color: var(--text-muted); }

/* ========================================
   NEWSLETTER / CTA
   ======================================== */
.newsletter {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 32, 53, 0.5);
  border-radius: calc(var(--radius) * 1.5);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow-md);
}

.newsletter-glow-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 50%;
  filter: blur(100px);
}

.newsletter-glow-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12rem;
  height: 12rem;
  background: rgba(34, 211, 238, 0.1);
  border-radius: 50%;
  filter: blur(80px);
}

.newsletter-content { position: relative; z-index: 10; }

.newsletter h2 { font-size: 1.875rem; color: var(--text); margin-bottom: 0.75rem; }
.newsletter p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 28rem; margin-left: auto; margin-right: auto; }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .newsletter-form { flex-direction: row; }
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
}

.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { outline: none; box-shadow: 0 0 0 2px var(--primary); }

/* ========================================
   AUTHOR CARD
   ======================================== */
.author-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 32, 53, 0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.author-card:hover { transform: translateY(-4px); }
.author-card img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; margin: 0 auto 0.75rem; }
.author-card h4 { font-size: 0.875rem; color: var(--text); }
.author-card .role { font-size: 0.75rem; color: var(--primary); }
.author-card p { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ========================================
   TRENDING TOPICS
   ======================================== */
.topic-tag {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 32, 53, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
}

.topic-tag:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  transform: translateY(-2px);
}

.topics-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ========================================
   SINGLE POST
   ======================================== */
.single-hero-image {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: calc(var(--radius) * 1.5);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .single-hero-image { height: 24rem; }
}

.post-content h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--bg-glass);
  border: 1px solid rgba(28, 32, 53, 0.5);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-author-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 32, 53, 0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.post-author-card img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.post-author-card h3 { color: var(--text); font-size: 1rem; }
.post-author-card .role { color: var(--primary); font-size: 0.875rem; }
.post-author-card p { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.25rem; }

/* ========================================
   SINGLE DEAL
   ======================================== */
.deal-detail {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 32, 53, 0.5);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
}

.deal-detail-image { width: 100%; height: 20rem; object-fit: cover; }
.deal-detail-body { padding: 2rem; }

.deal-detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }

.deal-coupon-box {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 32, 53, 0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.deal-coupon-box .label { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.deal-coupon-inner { display: flex; align-items: center; gap: 0.75rem; }

.deal-coupon-inner .code {
  flex: 1;
  background: var(--bg-secondary);
  border: 2px dashed rgba(124, 58, 237, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

/* ========================================
   SEARCH & FILTERS
   ======================================== */
.search-bar {
  position: relative;
  flex: 1;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
}

.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input:focus { outline: none; box-shadow: 0 0 0 2px var(--primary); }

.search-bar svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filters-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .filters-row { flex-direction: row; }
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a, .pagination span {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.pagination a {
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.pagination a:hover { background: rgba(124, 58, 237, 0.1); color: var(--primary); }

.pagination .current {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 32, 53, 0.5);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem;
  max-width: 42rem;
  margin: 0 auto;
}

.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

.contact-form input:focus,
.contact-form textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--primary); }

.contact-form textarea { resize: none; min-height: 8rem; }

/* ========================================
   LEGAL / PRIVACY
   ======================================== */
.legal-content {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(28, 32, 53, 0.5);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

.legal-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(21, 24, 41, 0.4);
  padding: 3rem 0;
}

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

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

.footer-about p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }

.footer-social { display: flex; gap: 0.75rem; }

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.footer-social a:hover { color: var(--primary); background: rgba(124, 58, 237, 0.1); }

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }

/* ========================================
   WORDPRESS SPECIFIC
   ======================================== */
.wp-block-image { margin-bottom: 1.5rem; }
.wp-block-image img { border-radius: var(--radius); }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Comments */
.comment-list { list-style: none; }
.comment { margin-bottom: 1.5rem; padding: 1.5rem; background: var(--bg-glass); border-radius: var(--radius); }
.comment-author { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.comment-author img { border-radius: 50%; }
.comment-content p { color: var(--text-muted); font-size: 0.875rem; }
