/**
 * PURIVOM — GLOBAL COMPONENTS
 * Button, Card, Badge, Social links, CTA.
 */

/* ---------------------------------------------------------------------
   BUTTON SYSTEM
   --------------------------------------------------------------------- */

.pv-btn {
  --pv-btn-radius: var(--pv-radius-sm);
  position: relative;
  justify-content: center;
  gap: var(--pv-space-xs);
  padding: 0.9em 1.9em;
  font-family: var(--pv-font-body);
  font-size: var(--pv-text-button);
  font-weight: var(--pv-weight-semibold);
  letter-spacing: var(--pv-tracking-wide);
  text-transform: uppercase;
  border-radius: var(--pv-btn-radius);
  border: var(--pv-border-width) solid transparent;
  transition: background-color var(--pv-duration-base) var(--pv-ease-standard),
              border-color var(--pv-duration-base) var(--pv-ease-standard),
              color var(--pv-duration-base) var(--pv-ease-standard),
              transform var(--pv-duration-fast) var(--pv-ease-standard);
  white-space: nowrap;
}

.pv-btn:active {
  transform: translateY(1px);
}

/* Primary — metallic gold foil (Phase 6C: richer than a flat fill so the
   gold reads as premium/metallic rather than a flat mustard block). */
.pv-btn--primary {
  background-color: var(--pv-accent);
  background-image: var(--pv-gradient-gold);
  background-size: 220% 220%;
  background-position: 0% 50%;
  color: var(--pv-color-gold-contrast);
  border-color: var(--pv-color-gold-deep);
  transition: background-position var(--pv-duration-slow, 0.6s) var(--pv-ease-standard),
              border-color var(--pv-duration-base) var(--pv-ease-standard),
              color var(--pv-duration-base) var(--pv-ease-standard),
              transform var(--pv-duration-fast) var(--pv-ease-standard);
}

.pv-btn--primary:hover {
  background-position: 100% 50%;
  border-color: var(--pv-accent-hover);
}

/* Secondary — solid warm white */
.pv-btn--secondary {
  background-color: var(--pv-color-warm-white);
  color: var(--pv-text-inverse);
  border-color: var(--pv-color-warm-white);
}

.pv-btn--secondary:hover {
  background-color: var(--pv-color-white);
}

/* Outline — gold border, transparent fill */
.pv-btn--outline {
  background-color: transparent;
  color: var(--pv-text-primary);
  border-color: var(--pv-border-accent);
}

.pv-btn--outline:hover {
  background-color: var(--pv-color-water-100);
  border-color: var(--pv-accent-hover);
  color: var(--pv-text-accent);
}

/* Ghost — no border, subtle hover fill */
.pv-btn--ghost {
  background-color: transparent;
  color: var(--pv-text-primary);
  border-color: transparent;
}

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

/* Text — inline link-styled button */
.pv-btn--text {
  background: none;
  border: none;
  padding: 0.25em 0;
  color: var(--pv-text-accent);
  text-transform: none;
  letter-spacing: var(--pv-tracking-normal);
  border-bottom: 1px solid transparent;
  border-radius: 0;
}

.pv-btn--text:hover {
  border-bottom-color: currentColor;
}

.pv-btn--sm {
  padding: 0.6em 1.4em;
  font-size: var(--pv-text-small);
}

.pv-btn[disabled],
.pv-btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   CARD FOUNDATION
   --------------------------------------------------------------------- */

.pv-card {
  display: flex;
  flex-direction: column;
  background-color: var(--pv-bg-surface);
  border: var(--pv-border-width) solid var(--pv-border-default);
  border-radius: var(--pv-radius-md);
  overflow: hidden;
  transition: border-color var(--pv-duration-base) var(--pv-ease-standard),
              transform var(--pv-duration-base) var(--pv-ease-standard),
              box-shadow var(--pv-duration-base) var(--pv-ease-standard);
}

.pv-card--interactive:hover {
  border-color: var(--pv-border-accent);
  box-shadow: var(--pv-shadow-gold-glow);
}

.pv-card__media {
  aspect-ratio: 4 / 5;
  background-color: var(--pv-color-surface);
  overflow: hidden;
}

.pv-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pv-duration-slow) var(--pv-ease-standard);
}

.pv-card--interactive:hover .pv-card__media img {
  transform: scale(1.04);
}

.pv-card__body {
  padding: var(--pv-space-md);
  display: flex;
  flex-direction: column;
  gap: var(--pv-space-xs);
  flex: 1;
}

.pv-card__title {
  font-size: var(--pv-text-h4);
  font-family: var(--pv-font-body);
  font-weight: var(--pv-weight-semibold);
}

.pv-card__meta {
  font-size: var(--pv-text-caption);
  color: var(--pv-text-secondary);
}

/* Coming soon variant */
.pv-card--coming-soon {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--pv-space-xl);
  border-style: dashed;
}

/* ---------------------------------------------------------------------
   BADGE
   --------------------------------------------------------------------- */

.pv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.85em;
  font-size: var(--pv-text-label);
  font-weight: var(--pv-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--pv-tracking-wider);
  border-radius: var(--pv-radius-pill);
  border: var(--pv-border-width) solid var(--pv-border-accent);
  color: var(--pv-text-accent);
  background-color: var(--pv-color-water-100);
}

.pv-badge--solid {
  background-color: var(--pv-accent);
  color: var(--pv-color-gold-contrast);
  border-color: var(--pv-accent);
}

.pv-badge--neutral {
  border-color: var(--pv-border-default);
  color: var(--pv-text-secondary);
  background-color: transparent;
}

/* Small, deliberately muted marker for development/demo content (Journal
   demo articles, testimonial fixtures) — informational, not decorative,
   so it never competes with the gold accent system. */
.pv-badge--demo {
  border-color: var(--pv-border-default);
  color: var(--pv-text-secondary);
  background-color: transparent;
  font-size: var(--pv-text-caption);
  padding: 0.25em 0.7em;
}

/* ---------------------------------------------------------------------
   SOCIAL LINKS
   --------------------------------------------------------------------- */

.pv-social {
  display: flex;
  align-items: center;
  gap: var(--pv-space-sm);
}

.pv-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--pv-radius-pill);
  border: var(--pv-border-width) solid var(--pv-border-default);
  color: var(--pv-text-secondary);
  transition: border-color var(--pv-duration-base) var(--pv-ease-standard),
              color var(--pv-duration-base) var(--pv-ease-standard);
}

.pv-social__link:hover {
  border-color: var(--pv-border-accent);
  color: var(--pv-text-accent);
}

.pv-social__link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------------------------------------------------------------------
   CTA BLOCK
   --------------------------------------------------------------------- */

.pv-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pv-space-lg);
  padding: var(--pv-space-xl);
  background-color: var(--pv-bg-surface);
  border: var(--pv-border-width) solid var(--pv-border-default);
  border-radius: var(--pv-radius-lg);
}

/* ---------------------------------------------------------------------
   FORM ELEMENTS (search, comments, future forms)
   --------------------------------------------------------------------- */

.pv-input {
  width: 100%;
  padding: 0.85em 1em;
  background-color: var(--pv-bg-surface);
  border: var(--pv-border-width) solid var(--pv-border-default);
  border-radius: var(--pv-radius-sm);
  color: var(--pv-text-primary);
  font-size: var(--pv-text-body);
  transition: border-color var(--pv-duration-base) var(--pv-ease-standard);
}

.pv-input::placeholder {
  color: var(--pv-text-secondary);
}

.pv-input:focus {
  border-color: var(--pv-border-accent);
}

/* ---------------------------------------------------------------------
   PAGINATION
   --------------------------------------------------------------------- */

.pv-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--pv-space-xs);
  margin-top: var(--pv-space-2xl);
}

.pv-pagination a,
.pv-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--pv-space-xs);
  border-radius: var(--pv-radius-sm);
  font-size: var(--pv-text-small);
  color: var(--pv-text-secondary);
  border: var(--pv-border-width) solid transparent;
}

.pv-pagination a:hover {
  border-color: var(--pv-border-default);
  color: var(--pv-text-primary);
}

.pv-pagination .current {
  border-color: var(--pv-border-accent);
  color: var(--pv-text-accent);
}

/* Native WordPress comment fields — clearly visible on the dark luxury surface. */
.comment-form-comment textarea,.comment-form-author input,.comment-form-email input,.comment-form-url input,#commentform input[type="text"],#commentform input[type="email"],#commentform input[type="url"],#commentform textarea{width:100%;min-height:54px;padding:.9rem 1rem;background:var(--pv-color-deep-black)!important;color:var(--pv-text-primary)!important;border:1px solid var(--pv-color-border)!important;border-radius:var(--pv-radius-sm);outline:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);transition:border-color var(--pv-duration-base) var(--pv-ease-standard),box-shadow var(--pv-duration-base) var(--pv-ease-standard)}
.comment-form-comment textarea{min-height:180px;resize:vertical}.comment-form-comment textarea::placeholder,#commentform input::placeholder{color:var(--pv-text-secondary);opacity:1}.comment-form-comment textarea:focus,.comment-form-author input:focus,.comment-form-email input:focus,.comment-form-url input:focus,#commentform input:focus,#commentform textarea:focus{background:var(--pv-color-surface)!important;border-color:var(--pv-color-gold)!important;box-shadow:0 0 0 3px rgba(var(--pv-color-gold-rgb),.14)!important}.comment-form-author,.comment-form-email,.comment-form-url,.comment-form-comment{margin-bottom:var(--pv-space-md)}
/* Slow premium water atmosphere behind major cards. */
.pv-card,.pv-product-card,.pv-testimonial-card{position:relative;isolation:isolate}.pv-card::before,.pv-product-card::before,.pv-testimonial-card::before{content:"";position:absolute;inset:-22% -12%;z-index:0;pointer-events:none;background:radial-gradient(circle at 18% 28%,rgba(115,28,42,.14),transparent 30%),radial-gradient(circle at 82% 72%,rgba(113,166,190,.10),transparent 32%),radial-gradient(circle at 55% 10%,rgba(255,255,255,.035),transparent 25%);filter:blur(12px);opacity:.9}.pv-card::after,.pv-product-card::after,.pv-testimonial-card::after{content:"";position:absolute;z-index:0;top:-18%;right:16%;width:2px;height:34%;border-radius:999px;background:linear-gradient(to bottom,transparent,rgba(210,235,245,.42),transparent);filter:blur(.6px);opacity:.5;transform:translateY(-20%);animation:pv-card-water-drop 19s ease-in-out infinite;pointer-events:none}.pv-card>*,.pv-product-card>*,.pv-testimonial-card>*{position:relative;z-index:1}@keyframes pv-card-water-drop{0%,12%{transform:translateY(-25%) scaleY(.55);opacity:0}30%{opacity:.42}62%{transform:translateY(290%) scaleY(1);opacity:.22}100%{transform:translateY(420%) scaleY(.65);opacity:0}}@media (prefers-reduced-motion:reduce){.pv-card::after,.pv-product-card::after,.pv-testimonial-card::after{animation:none;opacity:.22}}
