/**
 * QuattroCam by Eden — theme.css v3.0.0
 * React-Matched Design System
 */

/* ═══════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  /* ── New HSL design token system (matches React index.css) ── */
  --background: 40 33% 96%;
  --foreground: 222 47% 10%;
  --card: 40 20% 98%;
  --card-foreground: 222 47% 10%;
  --popover: 40 33% 98%;
  --popover-foreground: 222 47% 10%;
  --primary: 222 47% 15%;
  --primary-foreground: 40 33% 97%;
  --secondary: 40 25% 92%;
  --secondary-foreground: 222 47% 15%;
  --muted: 40 20% 92%;
  --muted-foreground: 220 15% 40%;
  --accent: 45 65% 45%;
  --accent-foreground: 40 33% 97%;
  --destructive: 0 70% 45%;
  --destructive-foreground: 40 33% 97%;
  --border: 40 20% 85%;
  --input: 40 20% 88%;
  --ring: 222 47% 15%;
  --radius: 0.125rem;

  /* Brand tokens */
  --navy:      222 47% 15%;
  --navy-deep: 222 47% 10%;
  --gold:      45 65% 45%;
  --gold-soft: 45 55% 60%;
  --red-accent: 0 70% 45%;
  --ivory:     40 33% 96%;
  --cream:     40 25% 92%;

  /* Legacy aliases (kept for backward compat) */
  --qc-ink:         hsl(40 33% 96%);   /* white/ivory for dark-bg text */
  --qc-navy:        hsl(222 47% 15%);
  --qc-navy-mid:    hsl(222 47% 20%);
  --qc-gold:        hsl(45 65% 45%);
  --qc-gold-light:  hsl(45 55% 60%);
  --qc-red:         hsl(0 70% 45%);
  --qc-cream:       hsl(40 33% 96%);
  --qc-white:       #FFFFFF;
  --qc-surface:     hsl(40 20% 98%);
  --qc-border:      hsl(40 20% 85% / 0.5);
  --qc-border-soft: hsl(40 20% 85% / 0.3);

  --qc-text-primary:   hsl(222 47% 10%);
  --qc-text-secondary: hsl(220 15% 40%);
  --qc-text-muted:     hsl(220 10% 55%);

  --qc-radius-sm:  2px;
  --qc-radius:     2px;
  --qc-radius-lg:  2px;
  --qc-radius-xl:  2px;

  --qc-shadow-card:     0 1px 4px hsl(var(--navy-deep) / 0.06), 0 4px 16px hsl(var(--navy-deep) / 0.08);
  --qc-shadow-hover:    0 8px 32px hsl(var(--navy-deep) / 0.12), 0 2px 8px hsl(var(--navy-deep) / 0.06);
  --qc-shadow-floating: 0 20px 60px hsl(var(--navy-deep) / 0.18), 0 4px 16px hsl(var(--navy-deep) / 0.08);

  --qc-transition:      240ms cubic-bezier(0.25, 1, 0.5, 1);
  --qc-transition-slow: 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

/* ═══════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--qc-text-primary);
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  color: inherit;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   REACT-MATCHED UTILITIES
   ═══════════════════════════════════════════════════════════ */

/* Grain texture overlay */
.grain {
  position: relative;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 1;
}
.grain > * { position: relative; z-index: 2; }

/* Luxury easing */
.ease-luxury {
  transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Animated gold underline for nav links — slides left→right */
.link-underline {
  background-image: linear-gradient(to right, hsl(var(--gold)), hsl(var(--gold)));
  background-size: 0 1.5px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size 380ms cubic-bezier(0.25, 1, 0.5, 1);
}
.link-underline:hover { background-size: 100% 1.5px; }
.link-underline.active {
  background-size: 100% 1.5px;
  color: hsl(var(--navy)) !important;
}

/* Text selection */
::selection {
  background: hsl(var(--navy));
  color: hsl(var(--ivory));
}

/* ─── Brand CSS utility classes (supplement Tailwind CDN) ─── */
.bg-navy-deep { background-color: hsl(var(--navy-deep)); }
.bg-navy      { background-color: hsl(var(--navy)); }
.bg-gold      { background-color: hsl(var(--gold)); }
.bg-ivory     { background-color: hsl(var(--ivory)); }
.bg-cream     { background-color: hsl(var(--cream)); }
.text-navy-deep { color: hsl(var(--navy-deep)); }
.text-navy      { color: hsl(var(--navy)); }
.text-gold      { color: hsl(var(--gold)); }
.text-ivory     { color: hsl(var(--ivory)); }
.text-cream     { color: hsl(var(--cream)); }
.border-navy    { border-color: hsl(var(--navy)); }
.border-gold    { border-color: hsl(var(--gold)); }
.border-ivory   { border-color: hsl(var(--ivory)); }
.from-navy-deep { --tw-gradient-from: hsl(var(--navy-deep)); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, hsl(var(--navy-deep) / 0)); }
.from-navy      { --tw-gradient-from: hsl(var(--navy)); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, hsl(var(--navy) / 0)); }
.to-navy-deep   { --tw-gradient-to: hsl(var(--navy-deep)); }
.via-navy-deep  { --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--navy-deep)), var(--tw-gradient-to, hsl(var(--navy-deep) / 0)); }
.hover\:bg-navy:hover      { background-color: hsl(var(--navy)); }
.hover\:bg-ivory:hover     { background-color: hsl(var(--ivory)); }
.hover\:bg-gold:hover      { background-color: hsl(var(--gold)); }
.hover\:bg-navy-deep:hover { background-color: hsl(var(--navy-deep)); }
.hover\:text-gold:hover    { color: hsl(var(--gold)); }
.hover\:text-navy:hover    { color: hsl(var(--navy)); }
.hover\:text-ivory:hover   { color: hsl(var(--ivory)); }
.hover\:text-navy-deep:hover { color: hsl(var(--navy-deep)); }
.hover\:border-gold:hover  { border-color: hsl(var(--gold)); }
.hover\:border-navy:hover  { border-color: hsl(var(--navy)); }

/* Font utility */
.font-outfit   { font-family: 'Outfit', system-ui, sans-serif; }
.font-cormorant { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ═══════════════════════════════════════════════════════════
   3. ACCESSIBILITY
   ═══════════════════════════════════════════════════════════ */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  transform: translateY(-200%);
  padding: 10px 20px;
  border-radius: var(--qc-radius);
  background: var(--qc-navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.15s ease;
  box-shadow: var(--qc-shadow-floating);
}
.skip-link:focus { transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   4. SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.qc-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--qc-transition-slow), transform var(--qc-transition-slow);
  will-change: opacity, transform;
}
.qc-reveal.qc-revealed {
  opacity: 1;
  transform: translateY(0);
}
.qc-reveal-delay-1 { transition-delay: 80ms; }
.qc-reveal-delay-2 { transition-delay: 160ms; }
.qc-reveal-delay-3 { transition-delay: 240ms; }
.qc-reveal-delay-4 { transition-delay: 320ms; }
.qc-reveal-delay-5 { transition-delay: 400ms; }
.qc-reveal-delay-6 { transition-delay: 480ms; }

.qc-reveal-fade {
  opacity: 0;
  transition: opacity var(--qc-transition-slow);
}
.qc-reveal-fade.qc-revealed { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   5. HEADER STYLES
   ═══════════════════════════════════════════════════════════ */
#site-header {
  transition: background var(--qc-transition), box-shadow var(--qc-transition);
}
#site-header.header-scrolled {
  box-shadow: 0 1px 0 rgba(22,43,82,0.1), 0 4px 20px rgba(12,26,51,0.08);
}

/* Nav underline animation */
.qc-nav-link {
  position: relative;
}
.qc-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--qc-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.qc-nav-link:hover::after,
.qc-nav-link.active::after {
  transform: scaleX(1);
}
.qc-nav-link.active {
  color: var(--qc-gold) !important;
}

/* Globe language dropdown */
#qc-lang-dropdown {
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 10000;
  position: absolute;
}
#qc-lang-dropdown.lang-hidden {
  opacity: 0;
  transform: scale(0.95) translateY(-4px);
  visibility: hidden;
  pointer-events: none;
  display: block !important;
}
#qc-lang-dropdown:not(.lang-hidden) {
  opacity: 1;
  transform: scale(1) translateY(0);
  visibility: visible;
  pointer-events: auto;
}

/* Mobile drawer animation */
#qc-mobile-panel {
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}

/* ═══════════════════════════════════════════════════════════
   6. DECORATIVE ELEMENTS
   ═══════════════════════════════════════════════════════════ */
.qc-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--qc-gold);
}

.qc-gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--qc-gold), transparent);
  border: none;
  margin: 0;
}

.qc-diamond {
  width: 5px;
  height: 5px;
  background: var(--qc-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   7. BUTTON SYSTEM
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  border-radius: var(--qc-radius);
  transition: all var(--qc-transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--qc-navy);
  color: #fff;
  padding: 13px 28px;
  box-shadow: 0 2px 8px rgba(22,43,82,0.2);
}
.btn-primary:hover {
  background: var(--qc-ink);
  box-shadow: 0 4px 16px rgba(22,43,82,0.3);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--qc-gold);
  color: #fff;
  padding: 13px 28px;
  box-shadow: 0 2px 8px rgba(197,154,71,0.3);
}
.btn-gold:hover {
  background: #a8803a;
  box-shadow: 0 4px 16px rgba(197,154,71,0.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--qc-navy);
  padding: 12px 28px;
  border: 1.5px solid var(--qc-navy);
}
.btn-outline:hover {
  background: var(--qc-navy);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}
.btn-sm { padding: 9px 18px; font-size: 0.8125rem; border-radius: var(--qc-radius-sm); }
.btn-lg { padding: 16px 36px; font-size: 0.9375rem; border-radius: var(--qc-radius-lg); }

/* ═══════════════════════════════════════════════════════════
   8. CARD SYSTEM
   ═══════════════════════════════════════════════════════════ */
.qc-card {
  background: var(--qc-white);
  border: 1px solid var(--qc-border-soft);
  border-radius: var(--qc-radius-lg);
  box-shadow: var(--qc-shadow-card);
  transition: box-shadow var(--qc-transition), transform var(--qc-transition), border-color var(--qc-transition);
  overflow: hidden;
}
.qc-card:hover {
  box-shadow: var(--qc-shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(197,154,71,0.2);
}

/* ═══════════════════════════════════════════════════════════
   9. FORM INPUTS
   ═══════════════════════════════════════════════════════════ */
.qc-input {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  border: 1.5px solid rgba(22,43,82,0.12);
  border-radius: var(--qc-radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--qc-text-primary);
  transition: border-color var(--qc-transition), box-shadow var(--qc-transition);
  outline: none;
  appearance: none;
}
.qc-input::placeholder { color: var(--qc-text-muted); }
.qc-input:focus {
  border-color: var(--qc-gold);
  box-shadow: 0 0 0 3px rgba(197,154,71,0.12);
}
.qc-input:hover:not(:focus) { border-color: rgba(22,43,82,0.25); }
.qc-textarea { resize: vertical; min-height: 130px; }
select.qc-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238492A6' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* ═══════════════════════════════════════════════════════════
   10. PROSE / RICH TEXT
   ═══════════════════════════════════════════════════════════ */
.qc-prose {
  font-size: 1rem;
  color: var(--qc-text-secondary);
  line-height: 1.8;
}
.qc-prose h1, .qc-prose h2, .qc-prose h3, .qc-prose h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: hsl(var(--navy));
  margin: 1.5em 0 0.6em;
}
.qc-prose h2 { font-size: 1.75rem; }
.qc-prose h3 { font-size: 1.375rem; }
.qc-prose p  { margin: 0 0 1.25em; }
.qc-prose ul { padding-left: 1.5em; margin: 0 0 1em; }
.qc-prose li { margin-bottom: 0.4em; }
.qc-prose a  { color: var(--qc-navy); border-bottom: 1px solid rgba(22,43,82,0.25); }
.qc-prose a:hover { color: var(--qc-gold); border-color: var(--qc-gold); }
.qc-prose strong { color: var(--qc-ink); font-weight: 600; }

/* Legacy .prose compatibility */
.prose { color: var(--qc-text-secondary); line-height: 1.8; }
.prose h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: hsl(var(--navy)); margin: 1.4em 0 0.5em; font-weight: 600; }
.prose h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: hsl(var(--navy)); margin: 1.2em 0 0.4em; font-weight: 600; }
.prose p  { margin: 0 0 1.2em; }
.prose ul { padding-left: 1.5em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a  { color: var(--qc-navy); }

/* ═══════════════════════════════════════════════════════════
   11. HERO
   ═══════════════════════════════════════════════════════════ */
.qc-hero-overlay {
  background: linear-gradient(
    108deg,
    rgba(12,26,51,0.93) 0%,
    rgba(12,26,51,0.72) 50%,
    rgba(12,26,51,0.2) 100%
  );
}

.qc-page-hero {
  background: linear-gradient(135deg, var(--qc-ink) 0%, var(--qc-navy) 100%);
  position: relative;
  overflow: hidden;
}
.qc-page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(197,154,71,0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   12. PRODUCT IMAGE ZOOM
   ═══════════════════════════════════════════════════════════ */
.qc-img-zoom { overflow: hidden; }
.qc-img-zoom img {
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.qc-img-zoom:hover img { transform: scale(1.06); }

/* ═══════════════════════════════════════════════════════════
   13. GALLERY
   ═══════════════════════════════════════════════════════════ */
.qc-gallery-item { cursor: zoom-in; position: relative; }
.qc-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12,26,51,0);
  transition: background 0.3s ease;
}
.qc-gallery-item:hover::after { background: rgba(12,26,51,0.12); }

/* ═══════════════════════════════════════════════════════════
   14. TIMELINE
   ═══════════════════════════════════════════════════════════ */
.qc-timeline-connector {
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(197,154,71,0.5), transparent);
}

/* ═══════════════════════════════════════════════════════════
   15. FLOATING BUTTONS
   ═══════════════════════════════════════════════════════════ */
#wa-float {
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s ease;
}
#wa-float:hover { box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════
   16. COOKIE BANNER
   ═══════════════════════════════════════════════════════════ */
#qc-cookie-bar {
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* ═══════════════════════════════════════════════════════════
   17. MOBILE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════
   18. SCROLLBAR
   ═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(22,43,82,0.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(22,43,82,0.32); }

/* ═══════════════════════════════════════════════════════════
   19. GUTENBERG BLOCKS
   ═══════════════════════════════════════════════════════════ */
.wp-block-image img { border-radius: var(--qc-radius); }
.has-navy-color { color: var(--qc-navy); }
.has-gold-color  { color: var(--qc-gold); }
.has-navy-background-color { background-color: var(--qc-navy); }
.has-gold-background-color  { background-color: var(--qc-gold); }

/* ═══════════════════════════════════════════════════════════
   20. DEALER NO STYLE
   ═══════════════════════════════════════════════════════════ */
.qc-dealer-no {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--qc-gold);
  line-height: 1;
  opacity: 0.65;
}

/* ═══════════════════════════════════════════════════════════
   21. COOKIE CONSENT
   ═══════════════════════════════════════════════════════════ */

/* "Detaylı bilgi" link */
.qc-detail-link {
  color: hsl(var(--gold));
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 4px;
  transition: text-decoration-color 200ms, color 200ms;
}
.qc-detail-link:hover {
  text-decoration: none;
}

/* Cookie bar strip buttons */
#qc-cookie-customize {
  transition: background 280ms cubic-bezier(0.25,1,0.5,1), color 280ms, border-color 280ms;
}
#qc-cookie-customize:hover {
  background: hsl(var(--ivory) / 0.15) !important;
  border-color: rgba(248,246,241,0.7) !important;
}
#qc-cookie-all {
  transition: background 280ms cubic-bezier(0.25,1,0.5,1), color 280ms;
}
#qc-cookie-all:hover {
  background: hsl(45 65% 55%) !important;
  color: hsl(var(--navy-deep)) !important;
}

/* Cookie modal button hovers */
#qc-cookie-save {
  transition: background 280ms cubic-bezier(0.25,1,0.5,1), color 280ms;
}
#qc-cookie-save:hover {
  background: hsl(var(--gold)) !important;
  color: hsl(var(--navy-deep)) !important;
}
#qc-cookie-reject {
  transition: background 280ms cubic-bezier(0.25,1,0.5,1), color 280ms, border-color 280ms;
}
#qc-cookie-reject:hover {
  background: hsl(var(--navy)) !important;
  color: hsl(var(--ivory)) !important;
  border-color: hsl(var(--navy)) !important;
}
