/* ════════════════════════════════════════════════════════════════════
   Rivels public page shell — header, footer, article, product, profile
   and gig layouts for the server-rendered SEO pages (post.php,
   product.php, user.php, gig.php, gigs.php) and the editor preview.
   ════════════════════════════════════════════════════════════════════ */
:root {
  --rv-bg: #1e2330;
  --rv-bg-2: #252d3d;
  --rv-card: rgba(255, 255, 255, 0.04);
  --rv-line: rgba(255, 255, 255, 0.1);
  --rv-white: #ffffff;
  --rv-soft: rgba(255, 255, 255, 0.68);
  --rv-pink: #fd307a;
  --rv-steel: #a5b8d2;
  --rv-max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.rv-body { margin: 0; background: var(--rv-bg); color: var(--rv-white); font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.rv-body a { color: inherit; }
.rv-body img { max-width: 100%; }
.rv-skip { position: absolute; left: -9999px; }
.rv-skip:focus { left: 1rem; top: 1rem; z-index: 999; background: var(--rv-pink); color: #fff; padding: 0.5rem 1rem; border-radius: 6px; }
.rv-wrap { width: 100%; max-width: var(--rv-max); margin: 0 auto; padding: 0 1.5rem; }
.rv-wrap--narrow { max-width: 820px; }
.rv-section { padding: 2.5rem 1.5rem 4rem; }

/* ── Header ───────────────────────────────────────────────────────── */
.rv-hdr { position: sticky; top: 0; z-index: 100; background: rgba(30, 35, 48, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rv-line); }
.rv-hdr__in { max-width: var(--rv-max); margin: 0 auto; padding: 0 1.5rem; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rv-hdr__logo img { height: 48px; width: auto; display: block; }
.rv-hdr__nav { display: flex; align-items: center; gap: 1.6rem; }
.rv-hdr__nav a { text-decoration: none; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rv-soft); transition: color 0.2s; }
.rv-hdr__nav a:hover, .rv-hdr__nav a[aria-current] { color: #fff; }
.rv-hdr__cta { background: var(--rv-pink); color: #fff !important; padding: 0.5rem 1.2rem; border-radius: 30px; }
.rv-hdr__menu { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 760px) {
  .rv-hdr__menu { display: block; }
  .rv-hdr__nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--rv-bg); border-bottom: 1px solid var(--rv-line); }
  .rv-hdr__nav.is-open { display: flex; }
  .rv-hdr__nav a { padding: 1rem 1.5rem; width: 100%; border-top: 1px solid var(--rv-line); }
  .rv-hdr__cta { border-radius: 0; }
}

/* ── Footer ───────────────────────────────────────────────────────── */
.rv-ftr { border-top: 1px solid var(--rv-line); margin-top: 4rem; padding: 2.5rem 0; color: var(--rv-soft); font-size: 0.85rem; }
.rv-ftr__in { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.rv-ftr nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.rv-ftr a { text-decoration: none; }
.rv-ftr a:hover { color: #fff; }

/* ── Shared bits ──────────────────────────────────────────────────── */
.rv-crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.78rem; color: var(--rv-steel); margin-bottom: 1rem; }
.rv-crumbs a { text-decoration: none; color: var(--rv-steel); }
.rv-crumbs a:hover { color: #fff; }
.rv-chip { display: inline-block; background: rgba(253, 48, 122, 0.15); color: #ff7aa9; border: 1px solid rgba(253, 48, 122, 0.35); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; }
.rv-chip--premium { background: rgba(167, 139, 250, 0.15); color: #c4b5fd; border-color: rgba(167, 139, 250, 0.4); }
.rv-chip--source { background: rgba(125, 211, 252, 0.12); color: #7dd3fc; border-color: rgba(125, 211, 252, 0.35); }
.rv-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #fd307a, #7c3aed); display: inline-grid; place-items: center; font-weight: 800; color: #fff; overflow: hidden; flex-shrink: 0; text-transform: uppercase; }
.rv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rv-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--rv-pink); color: #fff !important; text-decoration: none; padding: 0.8rem 1.6rem; border-radius: 30px; font-weight: 700; border: 2px solid var(--rv-pink); cursor: pointer; font-size: 0.9rem; transition: transform 0.2s, box-shadow 0.2s; }
.rv-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(253, 48, 122, 0.35); }
.rv-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.3); }
.rv-muted { color: var(--rv-soft); }

/* ── Article ──────────────────────────────────────────────────────── */
.rv-article__hero { padding: 3.5rem 0 1.5rem; background: radial-gradient(1200px 400px at 20% -10%, rgba(253, 48, 122, 0.12), transparent 60%); }
.rv-article__title { font-family: 'Zen Dots', 'Montserrat', sans-serif; font-weight: 400; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.2; margin: 0.9rem 0 1rem; }
.rv-article__lead { font-size: 1.2rem; color: var(--rv-soft); margin: 0 0 1.4rem; line-height: 1.6; }
.rv-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; font-size: 0.85rem; color: var(--rv-soft); }
.rv-article__meta strong { color: #fff; }
.rv-article__meta a { text-decoration: none; }
.rv-article__cover { margin: 1rem auto 2.5rem; }
.rv-article__cover img { display: block; width: 100%; max-height: 560px; object-fit: cover; border-radius: 16px; }
.rv-article__foot { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--rv-line); margin-top: 3rem; padding-top: 1.5rem; }
.rv-share { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.rv-share a, .rv-share button { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 0.9rem; border-radius: 20px; background: var(--rv-card); border: 1px solid var(--rv-line); color: #fff; text-decoration: none; font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.rv-share a:hover, .rv-share button:hover { border-color: var(--rv-pink); }
.rv-origin { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: rgba(125, 211, 252, 0.07); border: 1px solid rgba(125, 211, 252, 0.3); border-radius: 12px; padding: 1rem 1.2rem; margin: 0 0 2rem; font-size: 0.9rem; }
.rv-lock { text-align: center; background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.35)); border: 1px solid rgba(167, 139, 250, 0.4); border-radius: 16px; padding: 2.5rem 1.5rem; margin: 2rem 0; }
.rv-lock h2 { font-family: 'Zen Dots', sans-serif; font-weight: 400; margin: 0.5rem 0; }
.rv-related { margin-top: 3.5rem; }
.rv-related h2 { font-family: 'Zen Dots', sans-serif; font-weight: 400; font-size: 1.3rem; margin: 0 0 1.2rem; }
.rv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.rv-card { background: var(--rv-card); border: 1px solid var(--rv-line); border-radius: 14px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s; }
.rv-card:hover { transform: translateY(-4px); border-color: rgba(253, 48, 122, 0.5); }
.rv-card__img { aspect-ratio: 16 / 10; background: #151a24 center / cover; }
.rv-card__body { padding: 0.9rem 1rem 1.1rem; }
.rv-card__title { font-weight: 700; font-size: 0.95rem; line-height: 1.4; margin: 0 0 0.35rem; }
.rv-card__meta { font-size: 0.75rem; color: var(--rv-steel); }

/* ── Product ──────────────────────────────────────────────────────── */
.rv-product { padding: 3rem 0 1rem; }
.rv-product__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.rv-product__media img { width: 100%; border-radius: 16px; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.rv-product__noimg { aspect-ratio: 4 / 3; border-radius: 16px; background: linear-gradient(135deg, #2a3142, #1a1f2b); }
.rv-product__title { font-family: 'Zen Dots', sans-serif; font-weight: 400; font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.25; margin: 0.6rem 0; }
.rv-product__price { font-size: 1.7rem; font-weight: 800; color: var(--rv-pink); margin: 0.6rem 0 1rem; }
.rv-product__desc { color: var(--rv-soft); font-size: 1.02rem; }
.rv-product__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.rv-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.rv-stars { color: #fbbf24; letter-spacing: 0.1em; margin: 0; }
.rv-stars span { color: var(--rv-soft); letter-spacing: 0; font-size: 0.85rem; margin-left: 0.3rem; }
@media (max-width: 860px) { .rv-product__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ── Profiles & gigs ──────────────────────────────────────────────── */
.rv-profile { padding: 3rem 0 1rem; }
.rv-profile__head { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.rv-profile__head .rv-avatar { width: 108px; height: 108px; font-size: 2.4rem; border: 3px solid rgba(253, 48, 122, 0.5); }
.rv-profile__name { font-family: 'Zen Dots', sans-serif; font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0; }
.rv-profile__headline { font-size: 1.1rem; color: #fff; margin: 0.35rem 0; }
.rv-profile__facts { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--rv-soft); font-size: 0.85rem; }
.rv-profile__grid { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; margin-top: 2.5rem; align-items: start; }
.rv-panel { background: var(--rv-card); border: 1px solid var(--rv-line); border-radius: 16px; padding: 1.4rem; }
.rv-panel + .rv-panel { margin-top: 1.2rem; }
.rv-panel h2, .rv-panel h3 { font-family: 'Zen Dots', sans-serif; font-weight: 400; font-size: 1.1rem; margin: 0 0 1rem; }
.rv-skills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.rv-skill { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--rv-line); border-radius: 20px; padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.rv-showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; }
.rv-showcase figure { margin: 0; border-radius: 12px; overflow: hidden; background: #000; }
.rv-showcase img, .rv-showcase video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rv-showcase video { object-fit: contain; }
.rv-showcase figcaption { background: var(--rv-bg-2); padding: 0.5rem 0.7rem; font-size: 0.78rem; color: var(--rv-soft); }
.rv-showcase--videos { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 0.9rem; }
.rv-gig { border: 1px solid var(--rv-line); border-radius: 14px; padding: 1.1rem 1.2rem; background: rgba(255, 255, 255, 0.02); }
.rv-gig + .rv-gig { margin-top: 0.9rem; }
.rv-gig h3 { margin: 0 0 0.35rem; font-size: 1.05rem; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.rv-gig__meta { display: flex; flex-wrap: wrap; gap: 0.8rem; font-size: 0.8rem; color: var(--rv-steel); margin-bottom: 0.5rem; }
.rv-gig__price { color: var(--rv-pink); font-weight: 800; }
.rv-status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; }
.rv-status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #34d399; }
.rv-status--busy::before { background: #fbbf24; }
.rv-status--unavailable::before { background: #f87171; }
.rv-note { font-size: 0.78rem; color: var(--rv-soft); background: rgba(251, 191, 36, 0.07); border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 10px; padding: 0.7rem 0.9rem; margin-top: 1rem; }
@media (max-width: 900px) { .rv-profile__grid { grid-template-columns: 1fr; } }
