/*
Theme Name: PairingPlates
Theme URI: https://pairingplates.com
Author: PairingPlates
Author URI: https://pairingplates.com
Description: Professional culinary tools WordPress theme with 40+ interactive React-powered kitchen utilities. Features flavor pairing, recipe scaling, unit conversion, meal planning, and more.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pairing-plates
Tags: food, cooking, tools, dark, one-column, custom-menu, featured-images
*/

/**
 * PairingPlates - Global Styles
 *
 * Luxe Culinary Atelier - Dark editorial aesthetic with warm copper accents.
 * A sophisticated, magazine-inspired design that feels premium and memorable.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Surface Colors - Rich, warm dark palette */
  --surface-base: #0c0a09;
  --surface-raised: #1c1917;
  --surface-overlay: #292524;
  --surface-elevated: #3f3a36;

  /* Primary - Copper/Bronze warmth */
  --color-primary: #d4a574;
  --color-primary-bright: #e8c4a0;
  --color-primary-deep: #a67c4e;
  --color-primary-glow: rgba(212, 165, 116, 0.15);
  --color-primary-subtle: rgba(212, 165, 116, 0.08);

  /* Accent - Rich gold */
  --color-accent: #fbbf24;
  --color-accent-muted: #d97706;

  /* Secondary - Sage/herb green for freshness */
  --color-sage: #84a98c;
  --color-sage-glow: rgba(132, 169, 140, 0.12);

  /* Text Colors */
  --text-primary: #fafaf9;
  --text-secondary: #a8a29e;
  --text-muted: #78716c;
  --text-subtle: #57534e;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-emphasis: rgba(255, 255, 255, 0.15);

  /* Shadows - Warm tinted */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px rgba(212, 165, 116, 0.15);

  /* Typography */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --container-max: 1400px;
  --section-padding: clamp(4rem, 10vw, 8rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms var(--ease-out-expo);
  --transition-medium: 300ms var(--ease-out-expo);
  --transition-slow: 500ms var(--ease-out-expo);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */

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

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Noise texture overlay for depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.text-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
}

.text-display-sm {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--color-primary);
}

.font-display {
  font-family: var(--font-display);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-bright) 0%, var(--color-primary) 50%, var(--color-accent-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 4rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPONENTS - Cards
   ═══════════════════════════════════════════════════════════════════════════ */

.card {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
}

.card:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border-color: var(--border-default);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-4px);
}

.card-glass {
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPONENTS - Buttons
   ═══════════════════════════════════════════════════════════════════════════ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--surface-base);
  background: linear-gradient(135deg, var(--color-primary-bright) 0%, var(--color-primary) 100%);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  background: transparent;
  border: 1.5px solid var(--color-primary-deep);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--color-primary-glow);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--surface-raised);
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPONENTS - Pills & Tags
   ═══════════════════════════════════════════════════════════════════════════ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-glow);
  border-radius: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPONENTS - Dividers
   ═══════════════════════════════════════════════════════════════════════════ */

.divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border-default) 20%,
    var(--border-default) 80%,
    transparent 100%
  );
  border: none;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  background: var(--border-default);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS - Premium Motion Design
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Premium Hero Orb Animations */
@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.1); }
  50% { transform: translate(-20px, -20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.05); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-40px, 20px) scale(0.9); }
  50% { transform: translate(30px, 40px) scale(1.15); }
  75% { transform: translate(-20px, -30px) scale(1); }
}

@keyframes orb-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1.05); }
  33% { transform: translate(50px, -20px) scale(0.95); }
  66% { transform: translate(-30px, 50px) scale(1.1); }
}

@keyframes border-beam {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

@keyframes shine {
  0% { left: -100%; }
  20%, 100% { left: 200%; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  80%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes text-reveal {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    opacity: 0;
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
}

@keyframes slide-up-fade {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes morph-blob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

.animate-fade-in {
  animation: fadeIn 0.6s var(--ease-out-expo) forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s var(--ease-out-expo) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s var(--ease-out-expo) forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 4s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

.animate-orb-1 {
  animation: orb-float-1 20s ease-in-out infinite;
}

.animate-orb-2 {
  animation: orb-float-2 25s ease-in-out infinite;
}

.animate-orb-3 {
  animation: orb-float-3 18s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-morph {
  animation: morph-blob 8s ease-in-out infinite;
}

.animate-slide-up {
  animation: slide-up-fade 0.8s var(--ease-out-expo) forwards;
}

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }
.stagger-7 { animation-delay: 0.7s; }
.stagger-8 { animation-delay: 0.8s; }

/* Initially hidden for animation */
[class*="animate-"]:not(.animate-orb-1):not(.animate-orb-2):not(.animate-orb-3):not(.animate-spin-slow):not(.animate-morph) {
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM CARD EFFECTS
   ═══════════════════════════════════════════════════════════════════════════ */

.card-premium {
  --card-border-rgb: 212, 165, 116;
  position: relative;
  background: linear-gradient(135deg,
    rgba(28, 25, 23, 0.9) 0%,
    rgba(15, 12, 11, 0.95) 100%
  );
  border: 1px solid rgba(var(--card-border-rgb), 0.15);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(var(--card-border-rgb), 0.03) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.card-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.8s ease;
  pointer-events: none;
}

.card-premium:hover::after {
  left: 150%;
}

.card-premium:hover {
  border-color: rgba(var(--card-border-rgb), 0.4);
  transform: translateY(-8px) rotateX(2deg);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(var(--card-border-rgb), 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glass morphism card variant */
.card-glass-premium {
  background: rgba(28, 25, 23, 0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.card-glass-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
}

/* Bento grid cards */
.bento-card {
  background: linear-gradient(145deg,
    rgba(28, 25, 23, 0.8) 0%,
    rgba(20, 17, 16, 0.9) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.75rem;
  overflow: hidden;
  position: relative;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-card:hover {
  border-color: rgba(212, 165, 116, 0.3);
  transform: scale(1.02);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(212, 165, 116, 0.1);
}

/* Featured card with animated border */
.card-featured {
  position: relative;
  background: linear-gradient(135deg, #1c1917 0%, #0c0a09 100%);
  border-radius: 1.75rem;
  padding: 2px;
  overflow: hidden;
}

.card-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--color-primary),
    transparent 30%
  );
  animation: spin-slow 4s linear infinite;
}

.card-featured-inner {
  position: relative;
  background: linear-gradient(135deg, #1c1917 0%, #0c0a09 100%);
  border-radius: calc(1.75rem - 2px);
  padding: 2rem;
  height: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRADIENT BACKGROUNDS
   ═══════════════════════════════════════════════════════════════════════════ */

.bg-gradient-radial {
  background: radial-gradient(ellipse at center, var(--color-primary-subtle) 0%, transparent 70%);
}

.bg-gradient-hero {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(132, 169, 140, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(217, 119, 6, 0.08) 0%, transparent 50%),
    var(--surface-base);
}

.bg-mesh {
  background-color: var(--surface-base);
  background-image:
    radial-gradient(at 40% 20%, rgba(212, 165, 116, 0.12) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(132, 169, 140, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(217, 119, 6, 0.06) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(212, 165, 116, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(132, 169, 140, 0.1) 0px, transparent 50%);
}

/* Premium hero background with animated orbs */
.hero-premium-bg {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--surface-base) 0%,
    rgba(20, 16, 14, 1) 100%
  );
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.4) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(132, 169, 140, 0.3) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Grid pattern overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
}

/* Dot pattern */
.dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 165, 116, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 70%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background: var(--color-primary-glow);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--surface-raised);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-elevated);
  border-radius: 5px;
  border: 2px solid var(--surface-raised);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Icon container */
.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--color-primary-glow) 0%, transparent 100%);
  border: 1px solid var(--color-primary-subtle);
  border-radius: 1rem;
  font-size: 1.5rem;
  transition: all var(--transition-fast);
}

.icon-container:hover {
  background: var(--color-primary-glow);
  border-color: var(--color-primary-deep);
  transform: scale(1.08);
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOOL PAGE LIGHT CONTENT SECTIONS
   Used for tool pages with white/light backgrounds requiring dark text
   ═══════════════════════════════════════════════════════════════════════════ */

.tool-page-content {
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --surface-raised: #f5f5f4;
  --color-background: #fafaf9;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-default: rgba(0, 0, 0, 0.12);
}

.tool-page-content h1,
.tool-page-content h2,
.tool-page-content h3,
.tool-page-content h4,
.tool-page-content h5,
.tool-page-content h6 {
  color: #1c1917;
}

.tool-page-content p,
.tool-page-content li,
.tool-page-content span {
  color: #44403c;
}

.tool-page-content .text-muted {
  color: #78716c;
}

/* Tool page cards with white/cream backgrounds */
.tool-card-light {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.tool-card-light:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Tool page section backgrounds */
.tool-section-cream {
  background-color: #faf7f5;
}

.tool-section-white {
  background-color: #ffffff;
}

/* Tool page header gradient - warm culinary colors */
.tool-header-gradient {
  background: linear-gradient(135deg, #d4a574 0%, #a67c4e 100%);
}

.tool-header-gradient h1,
.tool-header-gradient p {
  color: #ffffff;
}

/* Info boxes for tool pages */
.tool-info-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.tool-info-box p {
  color: #78350f;
}

/* Tool page feature highlight */
.tool-feature-card {
  background: linear-gradient(135deg, #f5f5f4 0%, #ffffff 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.tool-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tool-feature-card h3 {
  color: #1c1917;
  font-weight: 600;
}

.tool-feature-card p {
  color: #57534e;
}

/* Related tools links */
.tool-related-link {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid #d4a574;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.tool-related-link:hover {
  background: #faf7f5;
  border-left-color: #a67c4e;
  transform: translateX(4px);
}

.tool-related-link h3 {
  color: #d4a574;
  margin-bottom: 0.5rem;
}

.tool-related-link p {
  color: #57534e;
  margin: 0;
}

/* Step indicators for tool pages */
.tool-step-number {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #d4a574 0%, #a67c4e 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

@media print {
  body {
    background: white;
    color: black;
  }

  body::before {
    display: none;
  }

  .no-print {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    background: white;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOOL PAGE - Unified Styling
   Forces all React tool components into a clean, readable light card
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tool component section - light background */
.tool-component-section {
  background: #faf8f6;
  position: relative;
}

/* The tool container itself - warm cream card with shadow */
/* Override theme CSS variables to light-theme values inside tools */
#pairing-plates-tool {
  background: #f8f5f1;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #1c1917;

  /* Remap dark theme CSS variables to light equivalents */
  --surface-base: #f8f5f1;
  --surface-raised: #ffffff;
  --surface-overlay: #ffffff;
  --surface-elevated: #fafaf9;
  --text-primary: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --border-subtle: #d6d3d1;
  --border-default: #a8a29e;
  --color-primary: #a67c4e;
  --color-primary-bright: #c9935a;
  --color-primary-glow: rgba(166, 124, 78, 0.15);
  --color-primary-subtle: rgba(166, 124, 78, 0.3);
  --color-accent-muted: #8b6539;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  #pairing-plates-tool {
    padding: 2.5rem;
  }
}

/* Override theme animation opacity rule inside tool container */
/* Theme sets [class*="animate-"] { opacity: 0 } for entrance animations,
   but this catches React component Tailwind animation classes too */
#pairing-plates-tool [class*="animate-"],
#pairing-plates-tool [class*="animate-"] * {
  opacity: 1 !important;
  animation-fill-mode: none !important;
}

/* Inner white cards/buttons get contrast against cream background */
#pairing-plates-tool .bg-white {
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-color: #d6d3d1 !important;
}

/* Force headings inside tool to be dark and readable */
#pairing-plates-tool h1,
#pairing-plates-tool h2,
#pairing-plates-tool h3,
#pairing-plates-tool h4,
#pairing-plates-tool h5,
#pairing-plates-tool h6 {
  color: #1c1917 !important;
  font-family: var(--font-display);
}

/* Inputs inside tools */
#pairing-plates-tool input[type="text"],
#pairing-plates-tool input[type="number"],
#pairing-plates-tool input[type="search"],
#pairing-plates-tool input[type="email"],
#pairing-plates-tool textarea,
#pairing-plates-tool select {
  color: #1c1917;
  background-color: #ffffff;
  border-color: #d6d3d1;
}

#pairing-plates-tool input::placeholder,
#pairing-plates-tool textarea::placeholder {
  color: #a8a29e;
}

/* Social share buttons with colored gradient backgrounds need white text */
#pairing-plates-tool [class*="from-blue-"],
#pairing-plates-tool [class*="from-green-"],
#pairing-plates-tool [class*="from-red-"],
#pairing-plates-tool [class*="from-orange-"],
#pairing-plates-tool [class*="from-sky-"],
#pairing-plates-tool [class*="from-violet-"],
#pairing-plates-tool [class*="from-zinc-"],
#pairing-plates-tool [class*="from-purple-"],
#pairing-plates-tool [class*="from-pink-"],
#pairing-plates-tool [class*="from-teal-"],
#pairing-plates-tool [class*="from-emerald-"] {
  color: #ffffff !important;
}

#pairing-plates-tool [class*="from-blue-"] *,
#pairing-plates-tool [class*="from-green-"] *,
#pairing-plates-tool [class*="from-red-"] *,
#pairing-plates-tool [class*="from-orange-"] *,
#pairing-plates-tool [class*="from-sky-"] *,
#pairing-plates-tool [class*="from-violet-"] *,
#pairing-plates-tool [class*="from-zinc-"] *,
#pairing-plates-tool [class*="from-purple-"] *,
#pairing-plates-tool [class*="from-pink-"] *,
#pairing-plates-tool [class*="from-teal-"] *,
#pairing-plates-tool [class*="from-emerald-"] * {
  color: #ffffff !important;
}

/* Related tools section - dark themed */
.related-tools-section {
  background: var(--surface-raised);
}

.related-tool-card {
  background: var(--surface-overlay);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.related-tool-card:hover {
  border-color: var(--color-primary);
  background: var(--surface-elevated);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-tool-card span {
  color: var(--text-primary);
}
