/**
 * 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 — solid gold */
.pv-btn--primary {
  background-color: var(--pv-accent);
  color: var(--pv-color-gold-contrast);
  border-color: var(--pv-accent);
}

.pv-btn--primary:hover {
  background-color: var(--pv-accent-hover);
  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;
}

/* ---------------------------------------------------------------------
   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);
}
