/*
Theme Name: Vida del Vino
Theme URI: https://vidadelvino.nl
Author: Joep van der Waal
Author URI: https://vidadelvino.nl
Description: Custom WordPress theme for Vida del Vino wine shop, converted from static HTML/CSS/JS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vidadelvino
Tags: custom-background, featured-images, translation-ready, ecommerce
*/

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

:root {
  --radius: 0.25rem;

  /* Vida del Vino — earthy Douro palette */
  --parchment: oklch(0.957 0.018 80);       /* warm off-white */
  --ink: oklch(0.24 0.018 55);              /* deep bark */
  --oxblood: oklch(0.36 0.085 28);          /* aged porto */
  --clay: oklch(0.58 0.105 45);             /* terracotta tile */
  --olive: oklch(0.46 0.055 110);           /* dusty olive */
  --moss: oklch(0.38 0.045 135);            /* mossy vine */
  --stone: oklch(0.74 0.012 80);            /* weathered stone */

  --background: var(--parchment);
  --foreground: var(--ink);
  --card: oklch(0.975 0.014 80);
  --card-foreground: var(--ink);
  --popover: var(--parchment);
  --popover-foreground: var(--ink);
  --primary: var(--oxblood);
  --primary-foreground: var(--parchment);
  --secondary: oklch(0.92 0.022 75);
  --secondary-foreground: var(--ink);
  --muted: oklch(0.92 0.018 75);
  --muted-foreground: oklch(0.45 0.025 55);
  --accent: var(--clay);
  --accent-foreground: var(--parchment);
  --destructive: oklch(0.55 0.18 28);
  --destructive-foreground: var(--parchment);
  --border: oklch(0.86 0.02 75);
  --input: oklch(0.88 0.018 75);
  --ring: var(--clay);

  --font-serif: "Cormorant Garamond", "Hoefler Text", Georgia, serif;
  --font-sans: "Figtree", system-ui, sans-serif;
  --font-mono: "Figtree", system-ui, sans-serif;

  --grain-bg:
    radial-gradient(circle at 1px 1px, oklch(0.3 0.03 55 / 0.06) 1px, transparent 0);
}

.dark {
  --background: oklch(0.18 0.015 55);
  --foreground: var(--parchment);
  --card: oklch(0.22 0.018 55);
  --card-foreground: var(--parchment);
  --popover: oklch(0.22 0.018 55);
  --popover-foreground: var(--parchment);
  --primary: var(--clay);
  --primary-foreground: var(--ink);
  --secondary: oklch(0.28 0.02 55);
  --secondary-foreground: var(--parchment);
  --muted: oklch(0.26 0.02 55);
  --muted-foreground: oklch(0.7 0.02 75);
  --accent: var(--clay);
  --accent-foreground: var(--ink);
  --border: oklch(0.32 0.02 55);
  --input: oklch(0.3 0.02 55);
  --ring: var(--clay);
}

* {
  border-color: var(--border);
}

html, body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image: var(--grain-bg);
  background-size: 3px 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

::selection {
  background: var(--clay);
  color: var(--parchment);
}

/* Custom Utilities */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hairline {
  background: linear-gradient(to right,
    transparent,
    oklch(0.4 0.03 55 / 0.4) 30%,
    oklch(0.4 0.03 55 / 0.4) 70%,
    transparent);
  height: 1px;
}

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

.drift-up { animation: drift-up 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both; }

@keyframes slow-pan {
  0%   { transform: scale(1.08) translate3d(0, 0, 0); }
  50%  { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
  100% { transform: scale(1.08) translate3d(0, 0, 0); }
}
.slow-pan { animation: slow-pan 24s ease-in-out infinite; }

@keyframes ember {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.9; }
}
.ember { animation: ember 6s ease-in-out infinite; }

@keyframes shimmer-sweep {
  0%   { transform: translateX(-120%) skewX(-12deg); }
  100% { transform: translateX(220%) skewX(-12deg); }
}
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.18), transparent);
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
}
.group:hover .shimmer::before {
  animation: shimmer-sweep 1.1s ease-out forwards;
}

.text-shadow-soft {
  text-shadow: 0 1px 2px oklch(0.12 0.02 55 / 0.55), 0 8px 30px oklch(0.12 0.02 55 / 0.35);
}

.ring-vignette {
  box-shadow:
    inset 0 0 0 1px oklch(1 0 0 / 0.06),
    0 30px 60px -25px oklch(0.12 0.02 55 / 0.55);
}
