/* ============================================================
   GoomView Hub - Shared Styles
   Industry: Instagram viewer tools / anonymous browsing
   Style: Casino-affiliate authority hub
   ============================================================ */

:root {
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Brand tokens */
  --void: #0A0612;
  --night: #14091F;
  --plum: #1F1133;
  --grape: #2E1A47;
  --violet: #6B2BE0;
  --magenta: #E837A1;
  --pink: #FF5BA5;
  --gold: #F5C13D;
  --gold-deep: #C99A1B;
  --mint: #4DE6B5;
  --ice: #F4F0FF;
  --paper: #FAF8FD;
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--void);
  color: var(--ice);
  overflow-x: hidden;
}

.font-display {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -.025em;
}

.hero-display {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .95;
}

/* ============================================================
   GRADIENTS / BACKGROUNDS
   ============================================================ */

.gradient-text {
  background: linear-gradient(90deg, #E837A1, #FF5BA5, #F5C13D);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-violet {
  background: linear-gradient(135deg, #6B2BE0, #E837A1);
}

.gradient-instagram {
  background: linear-gradient(45deg, #F5C13D 0%, #E837A1 50%, #6B2BE0 100%);
}

.bg-mesh {
  background:
    radial-gradient(at 15% 20%, rgba(232, 55, 161, 0.18) 0%, transparent 50%),
    radial-gradient(at 85% 30%, rgba(107, 43, 224, 0.22) 0%, transparent 55%),
    radial-gradient(at 50% 90%, rgba(245, 193, 61, 0.10) 0%, transparent 50%),
    #0A0612;
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
  pointer-events: none;
  animation: float 16s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

/* ============================================================
   GLASS / CARDS
   ============================================================ */

.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-strong {
  background: rgba(31, 17, 51, 0.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.card-tilt {
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.card-tilt:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(232, 55, 161, 0.28);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #E837A1, #6B2BE0);
  color: white;
  font-weight: 800;
  padding: .9rem 1.6rem;
  border-radius: 9999px;
  transition: all .4s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(232, 55, 161, 0.55);
}

.btn-primary:hover::after { transform: translateX(120%); }

.btn-gold {
  background: linear-gradient(135deg, #F5C13D, #C99A1B);
  color: #14091F;
  font-weight: 800;
  padding: .9rem 1.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .3s var(--ease);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(245, 193, 61, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 700;
  padding: .85rem 1.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .3s var(--ease);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   BADGES (Editor's Choice, Best, Trusted, etc.)
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  border-radius: 9999px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge-gold {
  background: linear-gradient(135deg, #F5C13D, #C99A1B);
  color: #14091F;
}

.badge-pink {
  background: linear-gradient(135deg, #E837A1, #FF5BA5);
  color: white;
}

.badge-violet {
  background: rgba(107, 43, 224, 0.22);
  color: #C5A7FF;
  border: 1px solid rgba(107, 43, 224, 0.35);
}

.badge-mint {
  background: rgba(77, 230, 181, 0.15);
  color: #4DE6B5;
  border: 1px solid rgba(77, 230, 181, 0.35);
}

.badge-outline {
  background: transparent;
  color: #F4F0FF;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge-glow {
  position: relative;
  background: linear-gradient(135deg, #F5C13D, #E837A1);
  color: #14091F;
  font-weight: 900;
  padding: .45rem .9rem;
  border-radius: 9999px;
  box-shadow: 0 0 0 0 rgba(245, 193, 61, 0.6);
  animation: pulse-glow 2.4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 193, 61, 0.55); }
  50% { box-shadow: 0 0 0 10px rgba(245, 193, 61, 0); }
}

/* ============================================================
   RATING STARS / SCORE WIDGETS
   ============================================================ */

.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 1rem;
  color: #F5C13D;
  letter-spacing: 1px;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6B2BE0, #E837A1);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  box-shadow: 0 12px 32px -8px rgba(232, 55, 161, 0.55);
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(245, 193, 61, 0.18), rgba(232, 55, 161, 0.18));
  border: 1px solid rgba(245, 193, 61, 0.35);
  color: #F5C13D;
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .03em;
}

/* ============================================================
   TABLES (Comparison)
   ============================================================ */

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.compare-table th {
  background: rgba(255, 255, 255, 0.04);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244, 240, 255, 0.6);
}

.compare-table tr:hover td {
  background: rgba(232, 55, 161, 0.04);
}

/* ============================================================
   REVEAL / ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.1s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.float-soft {
  animation: float-soft 6s ease-in-out infinite;
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-bg {
  background: linear-gradient(90deg, transparent, rgba(245, 193, 61, 0.15), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* ============================================================
   STICKY ELEMENTS
   ============================================================ */

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 6, 18, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================================
   PROSE (article content)
   ============================================================ */

.prose-hub h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
  font-size: 2rem;
  line-height: 1.15;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  color: white;
}

.prose-hub h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  color: white;
}

.prose-hub p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(244, 240, 255, 0.82);
  margin-bottom: 1.4rem;
}

.prose-hub strong { color: white; font-weight: 700; }

.prose-hub a {
  color: #FF5BA5;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 91, 165, 0.4);
  transition: all .25s var(--ease);
}

.prose-hub a:hover {
  color: #F5C13D;
  border-bottom-color: #F5C13D;
}

.prose-hub ul, .prose-hub ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose-hub li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(244, 240, 255, 0.82);
  margin-bottom: .6rem;
}

.prose-hub blockquote {
  border-left: 3px solid #E837A1;
  padding: .5rem 0 .5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.125rem;
  color: rgba(244, 240, 255, 0.7);
}

/* ============================================================
   TOP RANKED TABLE / AFFILIATE LIST
   ============================================================ */

.rank-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  margin-bottom: .75rem;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}

.rank-row:hover {
  border-color: rgba(232, 55, 161, 0.35);
  background: rgba(232, 55, 161, 0.04);
  transform: translateY(-2px);
}

.rank-row.featured {
  background: linear-gradient(135deg, rgba(245, 193, 61, 0.08), rgba(232, 55, 161, 0.05));
  border-color: rgba(245, 193, 61, 0.35);
}

.rank-row.featured::before {
  content: "EDITOR'S CHOICE";
  position: absolute;
  top: 12px;
  right: -34px;
  background: linear-gradient(135deg, #F5C13D, #C99A1B);
  color: #14091F;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: .55rem;
  padding: .25rem 2.5rem;
  letter-spacing: .15em;
  transform: rotate(35deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rank-number {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 2.25rem;
  background: linear-gradient(135deg, #F5C13D, #E837A1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  width: 60px;
  line-height: 1;
}

/* ============================================================
   PILLAR / TOPIC CARDS
   ============================================================ */

.pillar-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(107, 43, 224, 0.12), rgba(232, 55, 161, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all .4s var(--ease);
}

.pillar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(232, 55, 161, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 55, 161, 0.35);
}

.pillar-card:hover::after { opacity: 1; }

/* ============================================================
   FAQ / DETAILS
   ============================================================ */

details summary {
  list-style: none;
  cursor: pointer;
}

details summary::-webkit-details-marker { display: none; }
details[open] summary .chev { transform: rotate(45deg); }
.chev { transition: transform .3s var(--ease); }

/* ============================================================
   UTILITIES
   ============================================================ */

.text-balance { text-wrap: balance; }

.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 55, 161, 0.5), transparent);
}

.affiliate-banner {
  background: linear-gradient(90deg, rgba(245, 193, 61, 0.12), rgba(232, 55, 161, 0.08), rgba(107, 43, 224, 0.12));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: .72rem;
  color: rgba(244, 240, 255, 0.65);
  padding: .5rem 0;
  text-align: center;
  letter-spacing: .02em;
}

/* Responsive helpers */
@media (max-width: 768px) {
  .rank-row {
    grid-template-columns: 50px 1fr;
    gap: .75rem;
    padding: 1rem;
  }
  .rank-row > .score-area,
  .rank-row > .cta-area {
    grid-column: 1 / -1;
  }
}
