/*
Theme Name: L2 Nativa
Theme URI: https://l2nativa.com.ar/
Author: MiaCodeWEB + Codex
Description: Cinematic WordPress theme for the L2 Nativa Lineage II Essence RoseVain server.
Version: 0.1.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: rosevain
*/

:root {
  --rv-ink: #f5efe2;
  --rv-muted: #b9b1a1;
  --rv-paper: #161313;
  --rv-panel: rgba(22, 19, 19, 0.78);
  --rv-panel-strong: rgba(7, 7, 8, 0.86);
  --rv-gold: #d8ad5b;
  --rv-gold-bright: #ffe0a0;
  --rv-rose: #9d2838;
  --rv-red: #d34a40;
  --rv-steel: #6ca1b7;
  --rv-line: rgba(255, 224, 160, 0.22);
  --rv-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #080809;
  color: var(--rv-ink);
  font-family: Cinzel, Georgia, serif;
}

body,
button,
input,
select,
textarea {
  font: 500 16px/1.55 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
}

.rv-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(157, 40, 56, 0.18), transparent 26rem),
    radial-gradient(circle at 84% 18%, rgba(108, 161, 183, 0.12), transparent 28rem),
    #080809;
  min-height: 100vh;
  overflow-x: clip;
}

.rv-page--inner {
  overflow: hidden;
  position: relative;
}

.rv-inner-media {
  inset: 0;
  min-height: 100%;
  position: fixed;
  z-index: 0;
}

.rv-inner-media video {
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.52;
  width: 100%;
}

.rv-inner-shade {
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.94), rgba(7, 7, 8, 0.7) 42%, rgba(7, 7, 8, 0.42)),
    radial-gradient(circle at 18% 28%, rgba(157, 40, 56, 0.22), transparent 28rem),
    radial-gradient(circle at 78% 16%, rgba(108, 161, 183, 0.16), transparent 34rem);
  inset: 0;
  position: fixed;
  z-index: 1;
}

.rv-page--inner .rv-topbar,
.rv-inner-content,
.rv-page--inner .rv-footer {
  position: relative;
  z-index: 2;
}

.rv-inner-content {
  min-height: calc(100vh - 80px);
  padding-top: 150px;
}

.rv-topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(8, 8, 9, 0.84), rgba(8, 8, 9, 0.44));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 24px;
  inset: 0 0 auto;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 64px);
  position: fixed;
  z-index: 20;
}

.rv-brand {
  display: grid;
  gap: 0;
  min-width: 142px;
}

.rv-brand__mark {
  color: var(--rv-gold-bright);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.rv-brand__sub {
  color: var(--rv-muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rv-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.rv-nav a {
  border: 1px solid transparent;
  color: rgba(245, 239, 226, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 9px 10px;
  text-transform: uppercase;
}

.rv-nav a:hover,
.rv-nav a:focus-visible {
  border-color: var(--rv-line);
  color: var(--rv-gold-bright);
  outline: 0;
}

.rv-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.rv-lang-switch {
  align-items: center;
  display: flex;
  gap: 4px;
}

.rv-lang-switch a {
  border: 1px solid rgba(255, 224, 160, 0.24);
  border-radius: 4px;
  color: rgba(245, 239, 226, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 9px 10px;
  text-transform: uppercase;
}

.rv-lang-switch a:hover,
.rv-lang-switch a:focus-visible {
  border-color: var(--rv-gold-bright);
  color: var(--rv-gold-bright);
  outline: 0;
}

.rv-button,
.rv-action-button,
.rv-panel-button {
  align-items: center;
  border: 1px solid rgba(255, 224, 160, 0.44);
  border-radius: 4px;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 44px;
  padding: 12px 18px;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.rv-button:hover,
.rv-action-button:hover,
.rv-panel-button:hover {
  border-color: var(--rv-gold-bright);
  transform: translateY(-1px);
}

.rv-button--primary,
.rv-panel-button {
  background: linear-gradient(135deg, #f5c46c, #9d6e2b 52%, #6d1f2a);
  color: #140f0a;
}

.rv-button--ghost {
  background: rgba(8, 8, 9, 0.42);
  color: var(--rv-ink);
}

.rv-hero {
  align-items: end;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 120px clamp(18px, 5vw, 76px) 80px;
  position: relative;
}

.rv-hero__media,
.rv-hero__fallback {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.rv-hero__media video,
.rv-hero__fallback img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.rv-hero__fallback {
  background: #090909;
}

.rv-hero__shade {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.9), rgba(5, 5, 6, 0.4) 46%, rgba(5, 5, 6, 0.18)),
    linear-gradient(0deg, #080809 0%, rgba(8, 8, 9, 0.35) 34%, rgba(8, 8, 9, 0.08) 100%);
  inset: 0;
  position: absolute;
  z-index: 1;
}

.rv-hero__content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.rv-kicker,
.rv-section-kicker {
  color: var(--rv-gold-bright);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.rv-hero h1,
.rv-section-title {
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  text-transform: uppercase;
}

.rv-hero h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
}

.rv-hero__copy {
  color: rgba(245, 239, 226, 0.84);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  margin: 22px 0 30px;
  max-width: 660px;
}

.rv-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rv-hero__stats {
  border-top: 1px solid var(--rv-line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  max-width: 720px;
  padding-top: 20px;
}

.rv-stat {
  display: grid;
  gap: 2px;
}

.rv-stat strong {
  color: var(--rv-gold-bright);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.rv-stat span {
  color: var(--rv-muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rv-section {
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 76px);
  position: relative;
}

.rv-section--alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    #0f0d0d;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.rv-section-title {
  font-size: clamp(2.2rem, 5.5vw, 5rem);
}

.rv-section-copy {
  color: rgba(245, 239, 226, 0.74);
  max-width: 760px;
}

.rv-status-grid,
.rv-feature-grid,
.rv-portal-grid {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.rv-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rv-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rv-portal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rv-card,
.rv-status-card,
.rv-portal-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)), var(--rv-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: var(--rv-shadow);
  min-height: 150px;
  padding: 24px;
}

.rv-card--accent {
  background:
    linear-gradient(135deg, rgba(216, 173, 91, 0.16), rgba(157, 40, 56, 0.2)),
    var(--rv-panel-strong);
  border-color: rgba(255, 224, 160, 0.28);
}

.rv-status-card {
  align-items: center;
  display: flex;
  gap: 16px;
  min-height: 116px;
}

.rv-status-card__dot {
  background: #777;
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.06);
  flex: 0 0 14px;
  height: 14px;
  position: relative;
  width: 14px;
}

.rv-status-card__dot::after {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: inherit;
  content: "";
  inset: -8px;
  opacity: 0;
  position: absolute;
}

.rv-status-card[data-state="online"] .rv-status-card__dot {
  background: #72d38d;
  box-shadow: 0 0 0 8px rgba(114, 211, 141, 0.12), 0 0 24px rgba(114, 211, 141, 0.5);
}

.rv-status-card[data-state="online"] .rv-status-card__dot::after {
  animation: rv-status-pulse 1.8s ease-out infinite;
  border-color: rgba(114, 211, 141, 0.72);
}

.rv-status-card[data-state="offline"] .rv-status-card__dot {
  background: #d34a40;
  box-shadow: 0 0 0 8px rgba(211, 74, 64, 0.12), 0 0 24px rgba(211, 74, 64, 0.42);
}

.rv-status-card[data-state="offline"] .rv-status-card__dot::after {
  animation: rv-status-alert 1.15s ease-out infinite;
  border-color: rgba(211, 74, 64, 0.78);
}

.rv-status-card[data-state="checking"] .rv-status-card__dot::after {
  animation: rv-status-pulse 1.4s ease-out infinite;
}

@keyframes rv-status-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.72);
  }
  100% {
    opacity: 0;
    transform: scale(1.85);
  }
}

@keyframes rv-status-alert {
  0%,
  100% {
    opacity: 0.9;
    transform: scale(0.78);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.55);
  }
}

.rv-status-card h3,
.rv-card h3,
.rv-portal-card h3 {
  font-family: Cinzel, Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.rv-status-card p,
.rv-card p,
.rv-portal-card p {
  color: var(--rv-muted);
  margin: 0;
}

.rv-showcase {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  margin-top: 36px;
}

.rv-showcase__media {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--rv-shadow);
  overflow: hidden;
}

.rv-showcase__media video,
.rv-showcase__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.rv-timeline {
  border-left: 1px solid var(--rv-line);
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 2px 0 2px 22px;
}

.rv-timeline li {
  color: rgba(245, 239, 226, 0.82);
  list-style: none;
  position: relative;
}

.rv-timeline li::before {
  background: var(--rv-gold);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: -27px;
  position: absolute;
  top: 8px;
  width: 8px;
}

.rv-media-band {
  min-height: 460px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.rv-media-band img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.rv-media-band__content {
  align-items: end;
  background: linear-gradient(90deg, rgba(7, 7, 8, 0.92), rgba(7, 7, 8, 0.28)), linear-gradient(0deg, #080809, transparent 52%);
  display: grid;
  min-height: 460px;
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 76px);
  position: relative;
}

.rv-split-copy {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  margin-top: 32px;
}

.rv-lore-panel {
  background: rgba(7, 7, 8, 0.64);
  border-left: 1px solid var(--rv-line);
  color: rgba(245, 239, 226, 0.82);
  padding: 4px 0 4px 22px;
}

.rv-lore-panel p {
  margin: 0 0 14px;
}

.rv-lore-panel p:last-child {
  margin-bottom: 0;
}

.rv-donation-band {
  min-height: 720px;
  overflow: hidden;
  padding-block: clamp(90px, 11vw, 150px);
}

.rv-donation-band__media {
  inset: 0;
  position: absolute;
  z-index: 0;
}

.rv-donation-band__media video {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.rv-donation-band::before {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.94), rgba(5, 5, 6, 0.62) 48%, rgba(5, 5, 6, 0.22)),
    linear-gradient(0deg, #080809 0%, rgba(8, 8, 9, 0.2) 42%, rgba(8, 8, 9, 0.72) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.rv-donation-band > *:not(.rv-donation-band__media) {
  position: relative;
  z-index: 2;
}

.rv-donation-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  max-width: 980px;
}

.rv-compact-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
}

.rv-compact-list li {
  color: rgba(245, 239, 226, 0.84);
  list-style: none;
  padding-left: 18px;
  position: relative;
}

.rv-compact-list li::before {
  background: var(--rv-gold);
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: 10px;
  width: 6px;
}

.rv-panel-button {
  margin-top: 20px;
  width: fit-content;
}

.rv-download-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--rv-panel-strong);
  border: 1px solid rgba(255, 224, 160, 0.24);
  border-radius: 8px;
  box-shadow: var(--rv-shadow);
  display: grid;
  gap: 18px;
  margin: 28px 0 34px;
  max-width: 820px;
  padding: clamp(26px, 5vw, 46px);
}

.rv-download-panel h2 {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.rv-download-panel p {
  color: rgba(245, 239, 226, 0.8);
  margin: 0;
  max-width: 720px;
}

.rv-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.rv-download-steps {
  border-left: 1px solid var(--rv-line);
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-left: 18px;
}

.rv-download-steps a {
  color: var(--rv-gold-bright);
  font-weight: 800;
}

.rv-portal-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--rv-panel-strong);
  border: 1px solid rgba(255, 224, 160, 0.22);
  border-radius: 8px;
  box-shadow: var(--rv-shadow);
  display: grid;
  gap: 18px;
  margin: 28px 0 34px;
  max-width: 680px;
  padding: clamp(24px, 5vw, 42px);
}

.rv-page-content {
  max-width: 920px;
}

.rv-portal-form h3 {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.rv-portal-form p {
  color: var(--rv-muted);
  margin: 0;
}

.rv-portal-form form {
  display: grid;
  gap: 14px;
}

.rv-portal-form label {
  color: rgba(245, 239, 226, 0.82);
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rv-portal-form input {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: var(--rv-ink);
  min-height: 46px;
  padding: 10px 12px;
}

.rv-portal-form textarea,
.rv-portal-form select {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: var(--rv-ink);
  min-height: 46px;
  padding: 10px 12px;
}

.rv-portal-form textarea {
  min-height: 130px;
  resize: vertical;
}

.rv-portal-form input:focus,
.rv-portal-form textarea:focus,
.rv-portal-form select:focus {
  border-color: var(--rv-gold-bright);
  outline: 0;
}

.rv-portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rv-portal-actions .rv-button {
  min-height: 40px;
  padding-block: 10px;
}

.rv-portal-section-title {
  color: var(--rv-gold-bright);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 10px 0 -2px;
  text-transform: uppercase;
}

.rv-portal-notice {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  margin: 16px 0;
  max-width: 680px;
  padding: 14px 16px;
}

.rv-portal-notice--success {
  background: rgba(75, 145, 92, 0.18);
  border-color: rgba(114, 211, 141, 0.38);
}

.rv-portal-notice--error {
  background: rgba(157, 40, 56, 0.18);
  border-color: rgba(211, 74, 64, 0.38);
}

.rv-footer {
  background: #070708;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--rv-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 76px);
}

.rv-sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 980px) {
  .rv-topbar {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    position: absolute;
  }

  .rv-nav {
    justify-content: start;
  }

  .rv-status-grid,
  .rv-feature-grid,
  .rv-portal-grid,
  .rv-donation-grid,
  .rv-split-copy,
  .rv-showcase {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .rv-hero {
    min-height: 94vh;
    padding-top: 190px;
  }

  .rv-actions {
    width: 100%;
  }

  .rv-action-button {
    width: 100%;
  }

  .rv-download-actions .rv-button {
    width: 100%;
  }

  .rv-lang-switch {
    width: 100%;
  }

  .rv-hero__stats,
  .rv-status-grid,
  .rv-feature-grid,
  .rv-portal-grid,
  .rv-donation-grid,
  .rv-split-copy,
  .rv-showcase {
    grid-template-columns: 1fr;
  }

  .rv-nav a {
    padding-inline: 4px;
  }
}
