/* ==========================================================================
   THE WOVEN GHAR BY SAKHI - ARTISANAL HERITAGE STYLESHEET
   Rooted in Odisha, Woven for Tomorrow
   Motto: APNA HAATH JAGANNATH - WE SERVE HE GUIDES
   Palette: Ivory/Cream, Deep Rust/Maroon, Antique Gold/Ochre, Charcoal Brown
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Heritage Palette derived from Logo */
  --color-maroon: #8E2825;
  --color-maroon-dark: #6E1C1A;
  --color-maroon-deep: #541412;
  --color-rust: #A3382D;
  --color-rust-light: #F4DACB;
  
  --color-cream: #FAF6EF;
  --color-cream-surface: #FDFBF7;
  --color-cream-deep: #F3ECE0;
  --color-cream-border: #E8DCCB;
  
  --color-gold: #C8963E;
  --color-gold-light: #F7EBD0;
  --color-gold-dark: #9A6E20;
  --color-gold-accent: #E5B95F;
  
  --color-earth-charcoal: #231B18;
  --color-earth-brown: #3D2D26;
  --color-stone-muted: #6C5B52;
  --color-stone-subtle: #8F7D73;
  
  --color-forest: #3E4E3B;
  --color-forest-light: #EBF0EA;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel', 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Base Smoothing & Reset */
html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-cream);
  color: var(--color-earth-charcoal);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* Custom Heritage Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream-deep);
}

::-webkit-scrollbar-thumb {
  background: #D5BCA9;
  border-radius: 9999px;
  border: 2px solid var(--color-cream-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-maroon);
}

/* Odisha Handloom Temple Motif Border (Inspired by Sambalpuri Bandha borders) */
.temple-border-bottom {
  position: relative;
}

.temple-border-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    45deg,
    var(--color-maroon),
    var(--color-maroon) 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.35;
}

.temple-border-top {
  position: relative;
}

.temple-border-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    45deg,
    var(--color-gold),
    var(--color-gold) 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.4;
}

/* Traditional Ikat Diamond Pattern Background */
.bg-ikat-pattern {
  background-color: var(--color-cream);
  background-image: 
    radial-gradient(#C8963E 0.75px, transparent 0.75px), 
    radial-gradient(#8E2825 0.75px, var(--color-cream) 0.75px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

.bg-pattachitra-texture {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%238e2825' fill-opacity='0.035' fill-rule='evenodd'%3E%3Cpath d='M40 0l40 40-40 40L0 40 40 0zm0 10L10 40l30 30 30-30-30-30z'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* Logo Circular Frame Styling */
.brand-logo-frame {
  position: relative;
  display: inline-block;
  border-radius: 9999px;
  padding: 4px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-maroon) 50%, var(--color-gold-dark) 100%);
  box-shadow: 0 10px 30px -5px rgba(142, 40, 37, 0.25);
}

.brand-logo-frame img {
  border-radius: 9999px;
  border: 3px solid #FAF6EF;
}

/* Subtle Micro-Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(200, 150, 62, 0.25);
  }
  50% {
    box-shadow: 0 0 28px rgba(200, 150, 62, 0.55);
  }
}

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

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

.glow-gold {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Interactive Card Hover Effects */
.artisan-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.artisan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(61, 45, 38, 0.12);
}

/* Category Filter Active Pill */
.filter-pill.active {
  background-color: var(--color-maroon);
  color: #FFFFFF;
  border-color: var(--color-maroon);
  box-shadow: 0 4px 12px rgba(142, 40, 37, 0.25);
}

/* Toast Notification Styles */
#toast-notification {
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

#toast-notification.show {
  transform: translateY(0);
}

/* Glassmorphism Accents */
.glass-header {
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Custom Focus Ring for Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Shimmer Loading Effect */
.shimmer-placeholder {
  background: linear-gradient(90deg, #f4ece0 25%, #faf6ef 50%, #f4ece0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
