/* ==========================================================================
   YOUNGPRIDE 2.0 — CRISP ARCHITECTURAL LUXURY ENGINE (ZERO MILKY HAZE)
   STAGING ONLY — Solid High-Contrast Surfaces, Razor-Sharp 1px Borders,
   Deep Recessed Wells & Rich Accents (Linear / Porsche / Apple Pro Style)
   ========================================================================== */

:root,
html[data-yp-palette="studio-carbon"] {
  /* 1. STUDIO CARBON & BERRY (Linear / Apple Pro Studio — Messerscharf, 0% milchig) */
  --yp-bg-canvas: #0f1117;
  --yp-bg-gradient: linear-gradient(180deg, #12151e 0%, #0d0f15 100%);
  --yp-chrome-bg: rgba(17, 20, 28, 0.96);
  --yp-card-bg: #171b26;
  --yp-card-hover-bg: #1b202d;
  --yp-elevated-bg: #1f2433;
  --yp-hero-bg: linear-gradient(135deg, #1b202e 0%, #141822 100%);
  --yp-well-bg: #11141d;
  --yp-input-bg: #10131b;
  --yp-border-hairline: #252b3b;
  --yp-border-specular: #323a4f;
  --yp-border-hover: #434d68;
  --yp-headline-grad: linear-gradient(135deg, #ffffff 0%, #f1f5f9 60%, #f472b6 100%);
  --yp-cta-grad: linear-gradient(180deg, #e11d48 0%, #be123c 100%);
  --yp-cta-shadow: rgba(225, 29, 72, 0.35);
  --yp-pill-active: #252b3d;
  --yp-pill-active-border: #3d4663;
  --yp-accent-icon: #f43f5e;
}

html[data-yp-palette="porsche-navy"] {
  /* 2. PORSCHE MIDNIGHT BLUE (Tiefes, glasklares Saphir-Nachtblau — Satt & Scharf) */
  --yp-bg-canvas: #081021;
  --yp-bg-gradient: linear-gradient(180deg, #0b152b 0%, #070d1c 100%);
  --yp-chrome-bg: rgba(10, 20, 42, 0.96);
  --yp-card-bg: #101e3d;
  --yp-card-hover-bg: #14254a;
  --yp-elevated-bg: #172b56;
  --yp-hero-bg: linear-gradient(135deg, #15274f 0%, #0e1b38 100%);
  --yp-well-bg: #0a1429;
  --yp-input-bg: #091226;
  --yp-border-hairline: #1d3566;
  --yp-border-specular: #294a8c;
  --yp-border-hover: #3b66bf;
  --yp-headline-grad: linear-gradient(135deg, #ffffff 0%, #dbeafe 60%, #60a5fa 100%);
  --yp-cta-grad: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  --yp-cta-shadow: rgba(37, 99, 235, 0.40);
  --yp-pill-active: #182e5c;
  --yp-pill-active-border: #3159ab;
  --yp-accent-icon: #60a5fa;
}

html[data-yp-palette="aston-emerald"] {
  /* 3. ASTON MARTIN RACING GREEN (Tiefes, glasklares Royal-Smaragd — Satt & Scharf) */
  --yp-bg-canvas: #061611;
  --yp-bg-gradient: linear-gradient(180deg, #081f18 0%, #05120e 100%);
  --yp-chrome-bg: rgba(8, 28, 21, 0.96);
  --yp-card-bg: #0c2920;
  --yp-card-hover-bg: #103328;
  --yp-elevated-bg: #143d30;
  --yp-hero-bg: linear-gradient(135deg, #11382b 0%, #0b241c 100%);
  --yp-well-bg: #071a14;
  --yp-input-bg: #071712;
  --yp-border-hairline: #174938;
  --yp-border-specular: #21664f;
  --yp-border-hover: #2d8a6b;
  --yp-headline-grad: linear-gradient(135deg, #ffffff 0%, #d1fae5 55%, #fbbf24 100%);
  --yp-cta-grad: linear-gradient(180deg, #059669 0%, #047857 100%);
  --yp-cta-shadow: rgba(5, 150, 105, 0.40);
  --yp-pill-active: #144233;
  --yp-pill-active-border: #26785d;
  --yp-accent-icon: #34d399;
}

html[data-yp-palette="cartier-bordeaux"] {
  /* 4. CARTIER BORDEAUX (Tiefes, glasklares Royal-Burgunderrot — Satt & Scharf) */
  --yp-bg-canvas: #18060c;
  --yp-bg-gradient: linear-gradient(180deg, #210811 0%, #14050a 100%);
  --yp-chrome-bg: rgba(30, 8, 16, 0.96);
  --yp-card-bg: #2b0c17;
  --yp-card-hover-bg: #360f1d;
  --yp-elevated-bg: #421224;
  --yp-hero-bg: linear-gradient(135deg, #3b1020 0%, #240a13 100%);
  --yp-well-bg: #1c070f;
  --yp-input-bg: #19060d;
  --yp-border-hairline: #4f172b;
  --yp-border-specular: #6e203c;
  --yp-border-hover: #962b52;
  --yp-headline-grad: linear-gradient(135deg, #ffffff 0%, #ffe4e6 55%, #fbbf24 100%);
  --yp-cta-grad: linear-gradient(180deg, #e11d48 0%, #9f1239 100%);
  --yp-cta-shadow: rgba(190, 18, 60, 0.45);
  --yp-pill-active: #451325;
  --yp-pill-active-border: #822446;
  --yp-accent-icon: #fb7185;
}

html[data-yp-palette="imperial-plum"] {
  /* 5. ROYAL OBSIDIAN PLUM (Tiefes, glasklares Königspurpur — Satt & Scharf) */
  --yp-bg-canvas: #12091f;
  --yp-bg-gradient: linear-gradient(180deg, #180c29 0%, #0e0717 100%);
  --yp-chrome-bg: rgba(22, 11, 38, 0.96);
  --yp-card-bg: #1f1036;
  --yp-card-hover-bg: #271445;
  --yp-elevated-bg: #301954;
  --yp-hero-bg: linear-gradient(135deg, #2b164d 0%, #1a0d2e 100%);
  --yp-well-bg: #140a24;
  --yp-input-bg: #120920;
  --yp-border-hairline: #391e63;
  --yp-border-specular: #4f2a87;
  --yp-border-hover: #6b38b8;
  --yp-headline-grad: linear-gradient(135deg, #ffffff 0%, #f3e8ff 55%, #f472b6 100%);
  --yp-cta-grad: linear-gradient(180deg, #9333ea 0%, #7e22ce 100%);
  --yp-cta-shadow: rgba(147, 51, 234, 0.40);
  --yp-pill-active: #321a57;
  --yp-pill-active-border: #5e32a3;
  --yp-accent-icon: #c084fc;
}

:root {
  --yp-apple-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --yp-apple-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --yp-apple-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --------------------------------------------------------------------------
   1. CRISP ARCHITECTURAL CANVAS (NO MILKY FOG BLOBS!)
   -------------------------------------------------------------------------- */
html.dark body,
html:not(.light) body,
html:not(.light) .bg-\[\#0b101d\] {
  background-color: var(--yp-bg-canvas) !important;
  background-image: var(--yp-bg-gradient) !important;
  background-attachment: fixed !important;
  color: #f8fafc !important;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

/* Kill ALL blurry background fog clouds that made the UI look milky! */
html:not(.light) .bg-\[\#0b101d\] > .fixed.inset-0.pointer-events-none.overflow-hidden.z-0,
html:not(.light) main div.blur-3xl.pointer-events-none,
html:not(.light) main div.blur-2xl.pointer-events-none {
  display: none !important;
}

html:not(.light) [class*="bg-dark-950"] { background-color: var(--yp-well-bg) !important; }
html:not(.light) .bg-dark-950 { background-color: var(--yp-bg-canvas) !important; }
html:not(.light) .bg-dark-950\/98,
html:not(.light) .bg-dark-950\/95 { background-color: var(--yp-bg-canvas) !important; }
html:not(.light) .bg-dark-950\/70,
html:not(.light) .bg-dark-950\/60,
html:not(.light) .bg-dark-950\/50,
html:not(.light) .bg-dark-950\/40 { background-color: var(--yp-well-bg) !important; }

html:not(.light) [class*="bg-dark-900"] { background-color: var(--yp-card-bg) !important; }
html:not(.light) .bg-dark-900 { background-color: var(--yp-card-bg) !important; }
html:not(.light) .bg-dark-850,
html:not(.light) [class*="bg-dark-850"] { background-color: var(--yp-elevated-bg) !important; }
html:not(.light) .bg-dark-800,
html:not(.light) [class*="bg-dark-800"] { background-color: var(--yp-elevated-bg) !important; }

html:not(.light) .bg-\[\#141d33\],
html:not(.light) .bg-\[\#141d31\],
html:not(.light) .bg-\[\#15223c\],
html:not(.light) .bg-\[\#182238\],
html:not(.light) .bg-\[\#1a253e\],
html:not(.light) .bg-\[\#121829\] {
  background-color: var(--yp-well-bg) !important;
  border: 1px solid var(--yp-border-hairline) !important;
}

html:not(.light) .bg-\[\#0d1322\] {
  background-color: var(--yp-well-bg) !important;
  border-top: 1px solid var(--yp-border-hairline) !important;
}

html:not(.light) .bg-\[\#0b0f17\],
html:not(.light) .bg-\[\#06090e\],
html:not(.light) .bg-\[\#060a14\],
html:not(.light) .bg-\[\#0e1628\] {
  background-color: var(--yp-bg-canvas) !important;
}

/* --------------------------------------------------------------------------
   2. CRISP SIDEBAR, TOPBAR & MOBILE NAV
   -------------------------------------------------------------------------- */
html:not(.light) aside {
  background: var(--yp-chrome-bg) !important;
  border-right: 1px solid var(--yp-border-hairline) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35) !important;
}

html:not(.light) header {
  background: var(--yp-chrome-bg) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--yp-border-hairline) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.30) !important;
}

html:not(.light) nav.md\:hidden.fixed.bottom-0 {
  background: var(--yp-chrome-bg) !important;
  border-top: 1px solid var(--yp-border-hairline) !important;
}

/* --------------------------------------------------------------------------
   3. RAZOR-SHARP SOLID CARDS (ZERO MILKY BLUR OR WHITE HAZE)
   -------------------------------------------------------------------------- */
html:not(.light) article[id^="post-"],
html:not(.light) main [class*="rounded-2xl"][class*="bg-dark-900"],
html:not(.light) main [class*="rounded-3xl"][class*="bg-dark-900"],
html:not(.light) main [class*="rounded-2xl"][class*="bg-dark-850"],
html:not(.light) main [class*="rounded-3xl"][class*="bg-dark-850"] {
  background: var(--yp-card-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--yp-border-hairline) !important;
  border-top-color: var(--yp-border-specular) !important;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 28px -8px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.35) !important;
  transition:
    transform 0.28s var(--yp-apple-spring),
    border-color 0.22s var(--yp-apple-smooth),
    background-color 0.22s var(--yp-apple-smooth),
    box-shadow 0.28s var(--yp-apple-spring) !important;
}

html:not(.light) article[id^="post-"]:hover,
html:not(.light) main [class*="rounded-2xl"][class*="bg-dark-900"].group:hover,
html:not(.light) main [class*="rounded-3xl"][class*="bg-dark-900"].group:hover {
  background: var(--yp-card-hover-bg) !important;
  transform: translateY(-1.5px);
  border-color: var(--yp-border-specular) !important;
  border-top-color: var(--yp-border-hover) !important;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.07) inset,
    0 16px 36px -10px rgba(0, 0, 0, 0.65),
    0 4px 10px rgba(0, 0, 0, 0.40) !important;
}

/* Deep recessed inner boxes (high contrast, zero milky white tint!) */
html:not(.light) main [class*="rounded-2xl"][class*="bg-dark-950"],
html:not(.light) main [class*="rounded-xl"][class*="bg-dark-950"] {
  background: var(--yp-well-bg) !important;
  border: 1px solid var(--yp-border-hairline) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35) inset !important;
}

/* --------------------------------------------------------------------------
   4. CRISP HERO BANNERS ACROSS ALL VIEWS
   -------------------------------------------------------------------------- */
html:not(.light) main div[class*="bg-gradient-to-"][class*="950"]:not([class*="from-transparent"]):not([class*="to-transparent"]),
html:not(.light) main div[class*="bg-gradient-to-"][class*="via-dark-900"]:not([class*="from-transparent"]):not([class*="to-transparent"]),
html:not(.light) main div[class*="from-[#0c1222]"],
html:not(.light) main div[class*="from-[#0c221a]"],
html:not(.light) main div[class*="from-[#0a1a15]"],
html:not(.light) main div[class*="from-[#161430]"],
html:not(.light) main div[class*="from-[#110f24]"] {
  background: var(--yp-hero-bg) !important;
  border: 1px solid var(--yp-border-hairline) !important;
  border-top-color: var(--yp-border-specular) !important;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
    0 14px 34px -10px rgba(0, 0, 0, 0.60) !important;
}

/* --------------------------------------------------------------------------
   5. CLEAN ARCHITECTURAL BORDERS ACROSS ALL VIEWS
   -------------------------------------------------------------------------- */
html:not(.light) main div[class*="rounded-2xl"],
html:not(.light) main div[class*="rounded-3xl"],
html:not(.light) main section[class*="rounded-2xl"],
html:not(.light) main section[class*="rounded-3xl"] {
  border-color: var(--yp-border-hairline) !important;
  border-top-color: var(--yp-border-specular) !important;
}

html:not(.light) main div[class*="bg-amber-500/15"],
html:not(.light) main div[class*="border-amber-500/90"] {
  border-color: rgba(245, 158, 11, 0.45) !important;
}
html:not(.light) main div[class*="bg-rose-500/1"],
html:not(.light) main div[class*="border-red-500"] {
  border-color: rgba(244, 63, 94, 0.45) !important;
}

/* --------------------------------------------------------------------------
   6. CRISP CATEGORY PILLS, FILTER TABS & BADGES
   -------------------------------------------------------------------------- */
html:not(.light) main button[class*="from-pink-500/25"],
html:not(.light) main button[class*="from-cyan-500/25"],
html:not(.light) main button[class*="from-purple-500/25"],
html:not(.light) main button[class*="from-cyan-500/30"],
html:not(.light) main button[class*="from-pink-500/30"],
html:not(.light) main button[class*="from-emerald-500/20"],
html:not(.light) main button[class*="from-amber-500/20"],
html:not(.light) main button[class*="from-cyan-500/20"],
html:not(.light) main button[class*="bg-cyan-500/20"],
html:not(.light) main button[class*="bg-purple-500/20"],
html:not(.light) main button[class*="bg-pink-500/20"],
html:not(.light) main button[class*="bg-amber-500/20"] {
  background: var(--yp-pill-active) !important;
  border: 1px solid var(--yp-pill-active-border) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  --tw-ring-opacity: 0 !important;
  --tw-ring-shadow: 0 0 #0000 !important;
}

html:not(.light) main button[class*="bg-dark-900/70"],
html:not(.light) main button[class*="bg-dark-900/80"],
html:not(.light) main button[class*="bg-dark-950/60"] {
  background: var(--yp-well-bg) !important;
  border: 1px solid var(--yp-border-hairline) !important;
  color: #94a3b8 !important;
}
html:not(.light) main button[class*="bg-dark-900/70"]:hover,
html:not(.light) main button[class*="bg-dark-900/80"]:hover,
html:not(.light) main button[class*="bg-dark-950/60"]:hover {
  background: var(--yp-elevated-bg) !important;
  border-color: var(--yp-border-specular) !important;
  color: #ffffff !important;
}

html:not(.light) main span[class*="rounded-full"][class*="bg-gradient-to-r"],
html:not(.light) main span[class*="rounded-full"][class*="bg-pink-500/20"],
html:not(.light) main span[class*="rounded-full"][class*="bg-purple-500/20"],
html:not(.light) main span[class*="rounded-full"][class*="bg-cyan-500/20"] {
  background: var(--yp-well-bg) !important;
  border: 1px solid var(--yp-border-specular) !important;
  color: #f1f5f9 !important;
  font-weight: 500 !important;
}

html:not(.light) main div[class*="rounded-xl"][class*="bg-purple-500/20"],
html:not(.light) main div[class*="rounded-2xl"][class*="bg-purple-500/20"],
html:not(.light) main span[class*="rounded-xl"][class*="bg-pink-500/20"] {
  background: var(--yp-well-bg) !important;
  border: 1px solid var(--yp-border-specular) !important;
  color: var(--yp-accent-icon) !important;
}

/* --------------------------------------------------------------------------
   7. CRISP EDITORIAL TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  letter-spacing: -0.026em !important;
}

html:not(.light) .bg-clip-text.bg-gradient-to-r {
  background-image: var(--yp-headline-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.font-mono,
[class*="tabular-nums"],
button span,
nav span {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   8. CRISP SIDEBAR PILLS
   -------------------------------------------------------------------------- */
aside button {
  transition:
    background-color 0.22s var(--yp-apple-smooth),
    color 0.18s var(--yp-apple-smooth),
    border-color 0.22s var(--yp-apple-smooth),
    transform 0.22s var(--yp-apple-spring) !important;
}

html:not(.light) aside button.from-pink-600\/20.to-purple-600\/20 {
  background: var(--yp-pill-active) !important;
  border: 1px solid var(--yp-pill-active-border) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

html:not(.light) aside button.from-pink-600\/20.to-purple-600\/20 svg {
  color: var(--yp-accent-icon) !important;
}

html:not(.light) aside button:hover:not(:disabled) {
  background-color: var(--yp-card-bg);
}

/* --------------------------------------------------------------------------
   9. SLEEK BUTTON PROPORTIONS & SOLID PRECISION FINISH
   -------------------------------------------------------------------------- */
button,
button.font-bold,
button.font-extrabold,
button.font-black,
button .font-bold,
button .font-extrabold,
button .font-black,
a[role="button"] {
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  transition:
    transform 0.22s var(--yp-apple-spring),
    background-color 0.2s var(--yp-apple-smooth),
    border-color 0.2s var(--yp-apple-smooth),
    box-shadow 0.22s var(--yp-apple-spring),
    opacity 0.2s ease !important;
}

aside button.from-pink-600\/20.to-purple-600\/20,
button[aria-selected="true"] {
  font-weight: 600 !important;
}

button:not(:disabled):active {
  transform: scale(0.975) !important;
}

button.py-3,
button.py-3\.5,
button.sm\:py-3,
button.sm\:py-3\.5 {
  padding-top: 0.475rem !important;
  padding-bottom: 0.475rem !important;
}

button.py-4 {
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

button.px-6,
button.sm\:px-6,
button.px-8,
button.px-10 {
  padding-left: 0.95rem !important;
  padding-right: 0.95rem !important;
}

button.px-5 {
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
}

button.py-2\.5 {
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
}

/* Primary CTA Buttons */
.bg-gradient-to-r.from-pink-500.to-purple-600,
.bg-gradient-to-r.from-pink-600.to-purple-600,
.bg-gradient-to-r.from-pink-600.via-purple-600.to-indigo-600,
.bg-gradient-to-r.from-purple-600.via-pink-600.to-rose-600,
.bg-gradient-to-r.from-cyan-500.via-pink-500.to-purple-600,
.bg-gradient-to-r.from-teal-600.to-cyan-600,
.bg-gradient-to-r.from-cyan-500.to-blue-600 {
  background-image: var(--yp-cta-grad) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 0.625rem !important;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.20) inset,
    0 4px 12px -2px var(--yp-cta-shadow),
    0 1px 2px rgba(0, 0, 0, 0.40) !important;
}

.bg-gradient-to-r.from-pink-500.to-purple-600:hover:not(:disabled),
.bg-gradient-to-r.from-pink-600.to-purple-600:hover:not(:disabled),
.bg-gradient-to-r.from-pink-600.via-purple-600.to-indigo-600:hover:not(:disabled),
.bg-gradient-to-r.from-purple-600.via-pink-600.to-rose-600:hover:not(:disabled),
.bg-gradient-to-r.from-cyan-500.via-pink-500.to-purple-600:hover:not(:disabled),
.bg-gradient-to-r.from-teal-600.to-cyan-600:hover:not(:disabled),
.bg-gradient-to-r.from-cyan-500.to-blue-600:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-0.5px) !important;
}

/* Stream & View Filter Pills */
html:not(.light) button.bg-pink-500.text-white,
html:not(.light) button.bg-purple-600.text-white {
  background: var(--yp-pill-active) !important;
  border: 1px solid var(--yp-pill-active-border) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

/* Secondary / Dark Action Buttons */
html:not(.light) button.bg-dark-950,
html:not(.light) button.bg-dark-900,
html:not(.light) button.bg-dark-900\/80,
html:not(.light) button.bg-dark-950\/80,
html:not(.light) button.bg-dark-800 {
  background: var(--yp-well-bg) !important;
  border: 1px solid var(--yp-border-hairline) !important;
  border-top-color: var(--yp-border-specular) !important;
  border-radius: 0.625rem !important;
}

html:not(.light) button.bg-dark-950:hover:not(:disabled),
html:not(.light) button.bg-dark-900:hover:not(:disabled),
html:not(.light) button.bg-dark-900\/80:hover:not(:disabled),
html:not(.light) button.bg-dark-950\/80:hover:not(:disabled),
html:not(.light) button.bg-dark-800:hover:not(:disabled) {
  background: var(--yp-elevated-bg) !important;
  border-color: var(--yp-border-hover) !important;
  color: #ffffff !important;
}

button:not(.p-2):not(.rounded-full) > svg.w-4.h-4,
button:not(.p-2):not(.rounded-full) > svg.w-5.h-5 {
  width: 0.9375rem !important;
  height: 0.9375rem !important;
  stroke-width: 1.85;
}

aside span.animate-pulse,
nav span.animate-pulse {
  animation: none !important;
  background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.45) !important;
}

/* Inputs & Textareas — Crisp Recessed Fields (Zero Milky White Tint!) */
html:not(.light) input[type="text"],
html:not(.light) input[type="email"],
html:not(.light) input[type="password"],
html:not(.light) input[type="search"],
html:not(.light) input[type="number"],
html:not(.light) textarea,
html:not(.light) select {
  background-color: var(--yp-input-bg) !important;
  border: 1px solid var(--yp-border-hairline) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) inset !important;
  transition:
    border-color 0.22s var(--yp-apple-smooth),
    box-shadow 0.22s var(--yp-apple-smooth),
    background-color 0.22s var(--yp-apple-smooth) !important;
}

html:not(.light) input[type="text"]:focus,
html:not(.light) input[type="email"]:focus,
html:not(.light) input[type="password"]:focus,
html:not(.light) input[type="search"]:focus,
html:not(.light) textarea:focus,
html:not(.light) select:focus {
  background-color: var(--yp-well-bg) !important;
  border-color: var(--yp-border-hover) !important;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.3) inset !important;
}

/* --------------------------------------------------------------------------
   10. SILKY CUPERTINO SPRING ANIMATIONS ACROSS ALL VIEWS
   -------------------------------------------------------------------------- */
@keyframes ypAppleViewReveal {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes ypAppleCardCascade {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes ypAppleSheetSpring {
  0% { opacity: 0; transform: translateY(14px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ypHeartPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.34); }
  60% { transform: scale(0.90); }
  80% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

main > div {
  animation: ypAppleViewReveal 0.36s var(--yp-apple-spring) both;
}

article[id^="post-"],
main [class*="rounded-2xl"][class*="bg-dark-900"],
main [class*="rounded-3xl"][class*="bg-dark-900"] {
  animation: ypAppleCardCascade 0.36s var(--yp-apple-spring) backwards;
}

.animate-slide-up {
  animation: ypAppleSheetSpring 0.36s var(--yp-apple-spring) forwards !important;
}

.animate-slide-down {
  animation: ypAppleViewReveal 0.30s var(--yp-apple-spring) forwards !important;
}

html:not(.light) .fixed.inset-0.z-\[9999\] > .relative.bg-dark-900,
html:not(.light) header .absolute.bg-dark-900 {
  background: var(--yp-card-bg) !important;
  border: 1px solid var(--yp-border-specular) !important;
  box-shadow: 0 28px 70px -12px rgba(0, 0, 0, 0.85) !important;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--yp-border-specular);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--yp-border-hover);
}

.yp2-app-dock-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.yp2-app-dock-scroll::-webkit-scrollbar {
  display: none;
}

/* --------------------------------------------------------------------------
   11. UNIFIED PROFILE HEADER ACTION BAR & BADGE PILLS (YP 2.0)
   -------------------------------------------------------------------------- */
.yp2-profile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.yp2-profile-btn,
.yp2-profile-actions button.yp2-profile-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 2.25rem !important; /* 36px uniform height */
  min-height: 2.25rem !important;
  max-height: 2.25rem !important;
  padding: 0 0.875rem !important;
  border-radius: 0.625rem !important; /* 10px uniform radius */
  font-size: 0.78125rem !important; /* 12.5px uniform text */
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  gap: 0.375rem !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.yp2-profile-btn > svg,
.yp2-profile-btn svg {
  width: 0.9375rem !important; /* 15px uniform icon */
  height: 0.9375rem !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

html:not(.light) .yp2-profile-btn-secondary {
  background: var(--yp-well-bg) !important;
  border: 1px solid var(--yp-border-specular) !important;
  color: var(--yp-text-primary) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

html:not(.light) .yp2-profile-btn-secondary:hover:not(:disabled) {
  background: var(--yp-elevated-bg) !important;
  border-color: var(--yp-border-hover) !important;
  color: #ffffff !important;
}

html:not(.light) .yp2-profile-btn-amber {
  background: rgba(245, 158, 11, 0.14) !important;
  border: 1px solid rgba(245, 158, 11, 0.38) !important;
  color: #fbbf24 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

html:not(.light) .yp2-profile-btn-amber:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.24) !important;
  border-color: rgba(251, 191, 36, 0.55) !important;
  color: #fde68a !important;
}

html:not(.light) .yp2-profile-btn-danger {
  background: rgba(244, 63, 94, 0.14) !important;
  border: 1px solid rgba(244, 63, 94, 0.38) !important;
  color: #fda4af !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

html:not(.light) .yp2-profile-btn-danger:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.24) !important;
  border-color: rgba(251, 113, 133, 0.55) !important;
  color: #ffe4e6 !important;
}

/* 3-dots options button inside profile action bar */
html:not(.light) .yp2-profile-actions > div.relative.inline-block > button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  padding: 0 !important;
  border-radius: 0.625rem !important;
  background: var(--yp-well-bg) !important;
  border: 1px solid var(--yp-border-specular) !important;
  color: var(--yp-text-secondary) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

html:not(.light) .yp2-profile-actions > div.relative.inline-block > button:hover {
  background: var(--yp-elevated-bg) !important;
  border-color: var(--yp-border-hover) !important;
  color: #ffffff !important;
}

/* Unified Profile Badges / Tags next to User Name */
.yp2-profile-tag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 1.625rem !important; /* 26px uniform pill height */
  min-height: 1.625rem !important;
  max-height: 1.625rem !important;
  padding: 0 0.65rem !important;
  border-radius: 9999px !important;
  font-size: 0.71875rem !important; /* 11.5px uniform text */
  font-weight: 600 !important;
  line-height: 1 !important;
  gap: 0.3125rem !important; /* 5px uniform gap */
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.yp2-profile-tag > svg,
.yp2-profile-tag svg {
  width: 0.8125rem !important; /* 13px uniform icon */
  height: 0.8125rem !important;
  flex-shrink: 0 !important;
}

/* Unified Compact Card Action Buttons (Finder & Friends Grid) */
.yp2-card-btn,
button.yp2-card-btn,
div.yp2-card-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  height: 2rem !important; /* 32px uniform compact height */
  min-height: 2rem !important;
  max-height: 2rem !important;
  padding: 0 0.625rem !important;
  border-radius: 0.5rem !important; /* 8px sleek radius */
  font-size: 0.75rem !important; /* 12px uniform text */
  font-weight: 600 !important;
  line-height: 1 !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.yp2-card-btn > svg,
.yp2-card-btn svg {
  width: 0.875rem !important; /* 14px uniform icon */
  height: 0.875rem !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

html:not(.light) .yp2-card-btn-secondary {
  background: var(--yp-well-bg) !important;
  border: 1px solid var(--yp-border-specular) !important;
  color: var(--yp-text-primary) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

html:not(.light) .yp2-card-btn-secondary:hover:not(:disabled) {
  background: var(--yp-elevated-bg) !important;
  border-color: var(--yp-border-hover) !important;
  color: #ffffff !important;
}

html:not(.light) .yp2-card-btn-chat {
  background: var(--yp-pill-active) !important;
  background-image: none !important;
  border: 1px solid var(--yp-pill-active-border) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

html:not(.light) .yp2-card-btn-chat:hover:not(:disabled) {
  filter: brightness(1.12);
  border-color: var(--yp-border-hover) !important;
  transform: translateY(-0.5px) !important;
}

/* --------------------------------------------------------------------------
   12. MOBILE-ONLY PULL-TO-REFRESH INDICATOR (YP 2.0)
   -------------------------------------------------------------------------- */
#yp2-ptr-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate3d(-50%, -70px, 0) scale(0.92);
  z-index: 99990;
  display: none;
  align-items: center;
  gap: 0.5rem;
  height: 2.375rem;
  padding: 0 0.95rem;
  border-radius: 9999px;
  background: var(--yp-elevated-bg, #1f2433);
  border: 1px solid var(--yp-border-specular, #323a4f);
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 32px -6px rgba(0, 0, 0, 0.72),
    0 4px 12px rgba(0, 0, 0, 0.45);
  opacity: 0;
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  #yp2-ptr-indicator {
    display: inline-flex;
  }
}

#yp2-ptr-indicator.yp2-ptr-releasing {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease !important;
}

#yp2-ptr-indicator.yp2-ptr-ready {
  border-color: var(--yp-accent-icon, #f43f5e);
}

#yp2-ptr-indicator svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--yp-accent-icon, #f43f5e);
  flex-shrink: 0;
}

@keyframes yp2PtrSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#yp2-ptr-indicator.yp2-ptr-refreshing svg {
  animation: yp2PtrSpin 0.65s linear infinite;
}

/* ==========================================================================
   YoungPride 2.0 — Post Modal Comment Bar (Apple / Architectural Pro)
   ========================================================================== */
.yp2-comment-bar {
  background: rgba(18, 22, 31, 0.98) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-top: 1px solid rgba(37, 43, 59, 0.9) !important;
  box-shadow: 0 -8px 24px -6px rgba(0, 0, 0, 0.6) !important;
}

.yp2-comment-capsule {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex: 1 1 0% !important;
  height: 42px !important;
  background: #11141d !important;
  border: 1px solid #252b3b !important;
  border-top: 1px solid #323a4f !important;
  border-radius: 12px !important;
  padding: 0 40px 0 14px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) inset !important;
  transition: border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease !important;
}
.yp2-comment-capsule:focus-within {
  border-color: rgba(244, 63, 94, 0.75) !important;
  border-top-color: rgba(251, 113, 133, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.16), 0 1px 2px rgba(0, 0, 0, 0.25) inset !important;
}

/* Crucial override for html:not(.light) input[type="text"] */
html:not(.light) input.yp2-comment-input,
html:not(.light) .yp2-comment-capsule input,
.yp2-comment-capsule input,
input.yp2-comment-input {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  font-family: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
html:not(.light) input.yp2-comment-input:focus,
html:not(.light) .yp2-comment-capsule input:focus,
.yp2-comment-capsule input:focus,
input.yp2-comment-input:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-width: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.yp2-comment-input::placeholder {
  color: #64748b !important;
  font-size: 12.5px !important;
}

/* Emoji Trigger inside capsule: completely borderless, smooth, tactile */
.yp2-comment-emoji-wrap {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
}
.yp2-comment-emoji-btn,
.yp2-comment-emoji-wrap button {
  border: none !important;
  border-width: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 6px !important;
  border-radius: 8px !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.18s ease !important;
}
.yp2-comment-emoji-btn:hover,
.yp2-comment-emoji-wrap button:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #f8fafc !important;
  transform: scale(1.08) !important;
}

/* Senden Button: matched 42px height, unified 12px radius, tactile YoungPride 2.0 berry */
.yp2-comment-send-btn {
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-top-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.2) inset, 0 4px 14px -3px rgba(244, 63, 94, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1) !important;
  flex-shrink: 0 !important;
}
.yp2-comment-send-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #fb7185 0%, #f43f5e 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.25) inset, 0 6px 18px -3px rgba(244, 63, 94, 0.55) !important;
}
.yp2-comment-send-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98) !important;
}
.yp2-comment-send-btn:disabled {
  background: #171b26 !important;
  border: 1px solid #252b3b !important;
  color: #475569 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
}
