/* ============================================
   YOUR BLISS HUB - DESIGN SYSTEM
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */

:root {
  /* Color Palette - Light Mode */
  --color-primary: #FFB4A2;
  --color-primary-light: #FFE5D9;
  --color-primary-dark: #E89580;

  --color-secondary: #B8C5B8;
  --color-secondary-light: #D4E0D4;
  --color-secondary-dark: #8FA68F;

  --color-accent: #F4A261;
  --color-accent-light: #F8C794;
  --color-accent-dark: #E76F51;

  --color-neutral-50: #FAFAF9;
  --color-neutral-100: #F5F5F0;
  --color-neutral-200: #E8E8E0;
  --color-neutral-300: #D4D4C8;
  --color-neutral-400: #A8A89A;
  --color-neutral-500: #737366;
  --color-neutral-600: #5A5A4E;
  --color-neutral-700: #3F3F35;
  --color-neutral-800: #2A2A22;
  --color-neutral-900: #1A1A15;

  --color-white: #FFFFFF;
  --color-black: #0A0A08;

  /* Semantic Colors */
  --color-background: var(--color-neutral-50);
  --color-surface: var(--color-white);
  --color-text-primary: var(--color-neutral-800);
  --color-text-secondary: var(--color-neutral-600);
  --color-text-tertiary: var(--color-neutral-500);
  --color-border: var(--color-neutral-200);
  --color-divider: var(--color-neutral-100);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #FFE5D9 0%, #FFB4A2 50%, #F4A261 100%);
  --gradient-secondary: linear-gradient(135deg, #D4E0D4 0%, #B8C5B8 100%);
  --gradient-hero: linear-gradient(135deg, #FFE5D9 0%, #F8C794 50%, #D4E0D4 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 100%);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */
  --font-size-3xl: 1.875rem;
  /* 30px */
  --font-size-4xl: 2.25rem;
  /* 36px */
  --font-size-5xl: 3rem;
  /* 48px */
  --font-size-6xl: 3.75rem;
  /* 60px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing */
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-10: 2.5rem;
  /* 40px */
  --space-12: 3rem;
  /* 48px */
  --space-16: 4rem;
  /* 64px */
  --space-20: 5rem;
  /* 80px */
  --space-24: 6rem;
  /* 96px */

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Border Radius */
  --radius-sm: 0.375rem;
  /* 6px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */
  --radius-xl: 1rem;
  /* 16px */
  --radius-2xl: 1.5rem;
  /* 24px */
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max-width: 1280px;
  --container-padding: var(--space-6);
  --header-height: 80px;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-tooltip: 1060;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-background: var(--color-neutral-900);
  --color-surface: var(--color-neutral-800);
  --color-text-primary: var(--color-neutral-100);
  --color-text-secondary: var(--color-neutral-300);
  --color-text-tertiary: var(--color-neutral-400);
  --color-border: var(--color-neutral-700);
  --color-divider: var(--color-neutral-800);

  --gradient-overlay: linear-gradient(180deg, rgba(26, 26, 21, 0) 0%, rgba(26, 26, 21, 0.9) 100%);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

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

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

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

.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

[data-theme="dark"] .header {
  background: rgba(26, 26, 21, 0.95);
}

.header-content {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-main {
  display: none;
}


.nav-list {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--color-accent);
  background: var(--color-neutral-100);
}

[data-theme="dark"] .nav-link:hover {
  background: var(--color-neutral-700);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* Dropdown Styles */
.nav-item-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  min-width: 220px;
  max-width: calc(100vw - 24px);
  /* optional safety so it never exceeds viewport */
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  margin-top: var(--space-2);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--color-neutral-100);
  color: var(--color-accent);
}

[data-theme="dark"] .dropdown-link:hover {
  background: var(--color-neutral-700);
}

.ml-1 {
  margin-left: var(--space-1);
}

/* Mobile Dropdown adjustment */
@media (max-width: 767px) {
  .nav-item-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: var(--space-4);
    margin-top: 0;
    display: none;
    /* Controlled by JS toggle if needed, but mobile-nav uses expanded list */
  }
}

/* Mobile Nav */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-fixed);
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-link {
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
  background: var(--color-neutral-100);
  color: var(--color-accent);
}

[data-theme="dark"] .mobile-nav-link:hover {
  background: var(--color-neutral-700);
}

/* Theme Toggle */
.theme-toggle {
  width: 50px;
  height: 26px;
  background: var(--color-neutral-300);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background var(--transition-base);
}

.theme-toggle::before {
  content: '☀️';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  transition: all var(--transition-base);
}

[data-theme="dark"] .theme-toggle {
  background: var(--color-neutral-600);
}

[data-theme="dark"] .theme-toggle::before {
  content: '🌙';
  left: calc(100% - 23px);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--color-neutral-800);
  box-shadow: var(--shadow-md);
}

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

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
}

.btn-ghost:hover {
  background: var(--color-neutral-100);
}

[data-theme="dark"] .btn-ghost:hover {
  background: var(--color-neutral-700);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
}

.continue-reading {
  display: inline-block;
  margin-top: 12px;
}

/* ============================================
   CARDS
   ============================================ */

.clickable-card {
  cursor: pointer;
}

.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.clickable-card:active {
  transform: translateY(2px);
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .card-glass {
  background: rgba(42, 42, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: var(--space-6);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

.card-text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.badge-secondary {
  background: var(--color-secondary-light);
  color: var(--color-secondary-dark);
}

.badge-accent {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-medium);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.1);
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.3)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-title {
  font-size: var(--font-size-6xl);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-neutral-800);
  color: var(--color-neutral-100);
  padding: var(--space-16) 0 var(--space-8);
}

[data-theme="dark"] .footer {
  background: var(--color-black);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  color: var(--color-neutral-300);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-neutral-700);
  text-align: center;
  color: var(--color-neutral-400);
  font-size: var(--font-size-sm);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (min-width: 768px) {
  .nav-main {
    display: block;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .hero-title {
    font-size: var(--font-size-6xl);
  }

  h1 {
    font-size: var(--font-size-6xl);
  }

  h2 {
    font-size: var(--font-size-5xl);
  }
}

@media (max-width: 767px) {
  :root {
    --container-padding: var(--space-4);
    --header-height: 64px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-3xl);
  }

  h3 {
    font-size: var(--font-size-2xl);
  }

  .section {
    padding: var(--space-12) 0;
  }

  .section-lg {
    padding: var(--space-16) 0;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ============================================
   SLIDER STYLES
   ============================================ */

.slider-wrapper {
  position: relative;
  padding: 0 var(--space-8);
}

.slider-container {
  overflow: hidden;
  scroll-behavior: smooth;
}

.slider-content {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--space-4) 0;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  scroll-padding: 0;
}

.slider-content::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.slider-content .card {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
  min-width: 300px;
}

@media (max-width: 1024px) {
  .slider-content .card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 768px) {
  .slider-content .card {
    flex: 0 0 100%;
  }

  .slider-wrapper {
    padding: 0;
  }
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
  left: -20px;
}

.slider-nav.next {
  right: -20px;
}

[data-theme="dark"] .slider-nav {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

/* ============================================
   MODALS
   ============================================ */

.modal {
  display: none;
  position: fixed;
  z-index: var(--z-modal);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding-top: 100px;
  animation: fadeIn 0.5s ease;
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 700px;
  animation: slideIn 0.5s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--color-text-primary);
  font-size: 28px;
  font-weight: bold;
  z-index: 10;
  background: var(--color-surface);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.modal-close:hover,
.modal-close:focus {
  color: var(--color-accent);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================================== */
/* SQLAdmin Select2 Expansion Fix */
/* ================================== */

.select2-container {
  width: 100% !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.select2-container--default .select2-selection--multiple {
  width: 100% !important;
  box-sizing: border-box;
}

/* ============================================
   BLOG LAYOUT (RESTAURANT 2.0)
   ============================================ */

.blog-container {
  max-width: 1200px;
  /* Increased to accommodate sidebar */
  margin: 0 auto;
  padding: var(--space-8) var(--container-padding);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
}

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

.blog-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.blog-post {
  margin-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: var(--space-12);
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post-header {
  margin-bottom: var(--space-6);
}

.blog-post-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-2);
}

.blog-post-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  display: flex;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-4);
}

.blog-post-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.blog-post-content {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

.blog-post-content p {
  margin-bottom: var(--space-6);
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

.blog-post-content h1 { font-size: var(--font-size-3xl); }
.blog-post-content h2 { font-size: var(--font-size-2xl); }
.blog-post-content h3 { font-size: var(--font-size-xl); }

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.blog-post-content ul {
  list-style-type: disc;
}

.blog-post-content ol {
  list-style-type: decimal;
}

.blog-post-content li {
  margin-bottom: var(--space-2);
}

.blog-post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-text-primary);
}

.blog-post-content b, 
.blog-post-content strong {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.blog-post-content i, 
.blog-post-content em {
  font-style: italic;
}

.blog-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
}

.blog-post-tags {
  display: flex;
  gap: var(--space-2);
}

.gem-badge {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

/* Sidebar Newsletter Specifics */
.sidebar-newsletter {
  padding: var(--space-8);
  text-align: center;
}

.sidebar-newsletter .form-input {
  width: 100%;
  margin-bottom: var(--space-4);
}

.sidebar-newsletter .btn {
  width: 100%;
}

/* ============================================
   RECIPE PAGE STYLES
   ============================================ */

.recipe-post-image {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.recipe-post-image:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.recipe-post-title {
  transition: transform 0.2s ease, color 0.2s ease;
}

.recipe-post-title:hover {
  transform: translateY(-2px);
  text-decoration: underline;
}

.recipe-post-content a {
  display: inline-block;
}

.recipe-post {
  transition: transform 0.25s ease;
}

/* Hover entire card */
.recipe-post:hover {
  transform: translateY(-4px);
}

/* Lift image when card is hovered */
.recipe-post:hover .recipe-post-image {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Title reacts when card hovered */
.recipe-post:hover .recipe-post-title {
  text-decoration: underline;
  transform: translateY(-2px);
}

.recipe-post {
  border-radius: 16px;
  overflow: hidden;
}