/* VRABO TRAVEL • DESIGN SYSTEM GODMODE (2026-01-07)
   - Palette: violet / yellow / blue / green / deep-black
   - Font: Space Grotesk (squared, clean)
*/
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

:root{
  --vr-maxw: 1280px;
  --vr-pad: clamp(14px, 2.2vw, 22px);
  --vr-gap: clamp(14px, 1.6vw, 18px);
  /* Sharper, more squared corners (user request) */
  --vr-rad: 10px;

  --vr-bg0:#06060b;
  --vr-bg1:#070a12;
  --vr-text: rgba(255,255,255,.94);
  --vr-muted: rgba(255,255,255,.70);

  --vr-violet:#7c3aed;
  --vr-yellow:#facc15;
  --vr-blue:#22d3ee;
  --vr-green:#34d399;

  --vr-glass: rgba(255,255,255,.06);
  --vr-glass2: rgba(255,255,255,.04);
  --vr-stroke: rgba(255,255,255,.14);

  --vr-shadow: 0 26px 70px rgba(0,0,0,.66);
  --vr-shadow-soft: 0 12px 40px rgba(0,0,0,.45);

  --vr-focus: 0 0 0 3px rgba(34,211,238,.28), 0 0 0 1px rgba(255,255,255,.18);

  /* compatibility aliases (legacy CSS) */
  --maxw: var(--vr-maxw);
  --gap: var(--vr-gap);
  --pad: var(--vr-pad);
  --rad: var(--vr-rad);
  --bg0: var(--vr-bg0);
  --glass: var(--vr-glass);
  --glass2: var(--vr-glass2);
  --stroke: var(--vr-stroke);
  --text: var(--vr-text);
  --muted: var(--vr-muted);
  --gold: var(--vr-yellow);
  --shadow: var(--vr-shadow);
}

*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  color:var(--vr-text);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 900px at 12% 18%, rgba(124,58,237,.26), transparent 60%),
    radial-gradient(900px 700px at 88% 14%, rgba(34,211,238,.18), transparent 55%),
    radial-gradient(1000px 900px at 86% 82%, rgba(52,211,153,.14), transparent 60%),
    radial-gradient(900px 700px at 38% 92%, rgba(250,204,21,.10), transparent 60%),
    linear-gradient(180deg, var(--vr-bg0), var(--vr-bg1));
  overflow-x:hidden;
  position:relative;
  isolation:isolate;
}

/* Masked vortex wallpaper layer */
body::before{
  content:"";
  position:fixed;
  inset:-60px;
  pointer-events:none;
  background: url("/assets/img/vrabo_vortex.webp") center/cover no-repeat;
  /* show more background (less masked) */
  opacity: .32;
  transform: scale(1.08);
  filter: blur(9px) saturate(1.30) contrast(1.08);
  mix-blend-mode: screen;
  z-index:-2;
}

/* Vignette + glass shimmer */
body::after{
  content:"";
  position:fixed;
  inset:-40px;
  pointer-events:none;
  background:
    radial-gradient(1200px 900px at 50% 45%, rgba(0,0,0,.06), rgba(0,0,0,.46) 70%, rgba(0,0,0,.70) 100%),
    linear-gradient(120deg, rgba(255,255,255,.06), transparent 40%),
    radial-gradient(800px 700px at 50% 10%, rgba(255,255,255,.06), transparent 55%);
  opacity:.72;
  mix-blend-mode: overlay;
  z-index:-1;
}


a{ color:inherit; text-decoration:none }
a:hover{ text-decoration:none; opacity:.95 }

:focus-visible{ outline:none; box-shadow: var(--vr-focus); border-radius: 8px }

.wrap{
  max-width: var(--vr-maxw);
  margin: 0 auto;
  padding: 24px var(--vr-pad) 46px;
  min-height: 100%;
  display:flex;
  flex-direction:column;
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.6px;
  text-transform: uppercase;
}
.logo{
  width:34px;height:34px;
  border-radius:8px;
  background: rgba(0,0,0,.35) url("/assets/brand/logo.png") center/cover no-repeat;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.pill{
  padding: 8px 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background: rgba(0,0,0,.24);
  color: var(--vr-muted);
  font-size:12px;
  backdrop-filter: blur(10px);
}

.hero{
  border-radius: calc(var(--vr-rad) + 2px);
  padding: 18px 18px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--vr-shadow);
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(600px 200px at 18% 0%, rgba(124,58,237,.35), transparent 60%),
              radial-gradient(520px 220px at 86% 0%, rgba(34,211,238,.24), transparent 60%);
  opacity:.55;
  pointer-events:none;
}
.hero > *{ position:relative; z-index:1 }

h1{
  margin:0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height:1.08;
  letter-spacing: -0.02em;
}
p{ margin: 10px 0 0; color: var(--vr-muted); line-height:1.55; }

.gold{
  background: linear-gradient(90deg, var(--vr-yellow), var(--vr-green), var(--vr-blue), var(--vr-violet));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.pills{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  color: var(--vr-text);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.03) }
.btn:active{ transform: translateY(0px) scale(.99) }
.btn.ghost{
  background: rgba(0,0,0,.22);
  color: var(--vr-muted);
}

.grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 560px));
  gap: var(--vr-gap);
  align-items: stretch;
  justify-content: center;
}

.card{
  position:relative;
  border-radius: var(--vr-rad);
  overflow:hidden;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--vr-shadow-soft);
  display:flex;
  flex-direction:column;
  min-height: 520px;
  content-visibility: auto;
  contain: layout paint style;
  contain-intrinsic-size: 520px 820px;
}
.card::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(700px 200px at 10% 0%, rgba(124,58,237,.22), transparent 60%),
    radial-gradient(700px 200px at 90% 0%, rgba(34,211,238,.14), transparent 60%);
  opacity:.8;
  pointer-events:none;
}
.card::after{
  content:"";
  position:absolute; inset:0;
  border-radius: var(--vr-rad);
  padding:1px;
  background: linear-gradient(135deg, rgba(124,58,237,.50), rgba(34,211,238,.30), rgba(52,211,153,.28), rgba(250,204,21,.26));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity:.55;
  pointer-events:none;
}

.cardHead{
  padding: 14px 14px 10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  position:relative;
  z-index:1;
}
.titleRow{ display:flex; align-items:flex-start; gap:10px; min-width:0 }
.pLogo{
  width:36px;height:36px;border-radius:8px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  flex:0 0 auto;
}
.pLogo img{ width:26px;height:26px; object-fit:contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)) }
.meta{ min-width:0 }
.meta .t{
  font-weight:800;
  letter-spacing:.2px;
  margin-top:-2px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.meta .d{
  margin-top:6px;
  color: var(--vr-muted);
  font-size: 12.5px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; flex:0 0 auto }

.widgetShell{
  position:relative;
  z-index:1;
  padding: 0 14px 14px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.widgetBox{
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  padding: 12px;
  overflow: visible; /* avoid "sticky" iframe edges */
}

/* Inner frame so the widget doesn't touch the card border */
.widgetFrame{
  border-radius: 8px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 12px 30px rgba(0,0,0,.35);
}

.widgetBox iframe{
  width:100%;
  border:0;
  display:block;
  background: transparent;
  border-radius: 6px;
}


.cardFoot{
  position:relative;
  z-index:1;
  margin-top:auto;
  padding: 12px 14px 14px;
  color: var(--vr-muted);
  font-size: 12px;
  line-height:1.55;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.12);
}

/* Modal */
.modal{ position:fixed; inset:0; background: rgba(0,0,0,.64); display:none; align-items:center; justify-content:center; padding:20px; z-index:9999 }
.modal[aria-hidden="false"]{ display:flex }
.modalCard{
  width: min(1060px, 100%);
  max-height: min(86vh, 900px);
  border-radius: 14px;
  overflow:hidden;
  background: rgba(10,12,18,.86);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--vr-shadow);
  backdrop-filter: blur(12px);
  display:flex;
  flex-direction:column;
}
.modalTop{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.modalTitle{ font-weight: 800; letter-spacing:.2px }
.modalClose{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: var(--vr-text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor:pointer;
}
.modalBody{ padding: 0; overflow:auto }
.modalBody iframe{ width:100%; border:0; display:block; min-height: 70vh; background: transparent }

/* Footer capsule */
#legalFooter{
  width:100%;
  margin-top:auto;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  background: transparent;
}
#legalFooter .legalCapsule{
  max-width: var(--vr-maxw);
  width:100%;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  border-radius: 999px;
  padding: 10px 12px;
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  color: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
}
#legalFooter a{ color: rgba(255,255,255,.86) }
#legalFooter a:hover{ color: white }
#legalFooter .sep{ opacity:.45 }

/* Mobile */
@media (max-width: 980px){
  .hero{ padding: 16px 14px 14px }
  .card{ min-height: 480px }
}
@media (prefers-reduced-motion: reduce){
  .btn{ transition:none }
  body::before{ opacity:.22 }
}


/* Legacy helpers */
.noteAll{
  margin-top:12px;
  font-size:13px;
  line-height:1.5;
  color:var(--vr-muted);
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  padding:12px 14px;
}
.noteAll b{ color: var(--vr-text) }

.modal.isOpen{ display:flex }
