/* ==========================================================================
   RAFAEL AZUAJE v2 — Link in Bio
   Deep Navy + Blue/Gold · Dark & Light Mode
   ========================================================================== */

/* ── DARK MODE (default) ── */
:root {
  --bg-base:            #020609;
  --white:              #ffffff;
  --text:               #dde4f0;
  --text-dim:           #6a7a9a;
  --accent-blue:        #4a8fff;
  --accent-gold:        #d4a520;
  --accent-gold-bright: #f0c040;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 480px;
  --glass-blur: 20px;

  --card-bg:           rgba(10, 20, 50, 0.45);
  --card-border:       rgba(74, 143, 255, 0.12);
  --link-bg:           rgba(255, 255, 255, 0.03);
  --link-border:       rgba(74, 143, 255, 0.1);
  --link-hover-bg:     rgba(74, 143, 255, 0.07);
  --link-hover-border: rgba(74, 143, 255, 0.2);
  --social-bg:         rgba(10, 25, 65, 0.5);
  --social-border:     rgba(74, 143, 255, 0.15);
  --footer-color:      #6a7a9a;
  --toggle-bg:         rgba(10, 25, 65, 0.6);
  --toggle-border:     rgba(74, 143, 255, 0.2);
  --toggle-icon:       #6a7a9a;
}

/* ── LIGHT MODE ── */
body.light {
  --bg-base:            #f0f4ff;
  --white:              #ffffff;
  --text:               #0d1a3a;
  --text-dim:           #5a6a8a;
  --accent-blue:        #1a5fd4;
  --accent-gold:        #b8860b;
  --accent-gold-bright: #c8960d;
  --card-bg:            rgba(255, 255, 255, 0.78);
  --card-border:        rgba(74, 143, 255, 0.18);
  --link-bg:            rgba(255, 255, 255, 0.6);
  --link-border:        rgba(74, 143, 255, 0.15);
  --link-hover-bg:      rgba(74, 143, 255, 0.07);
  --link-hover-border:  rgba(74, 143, 255, 0.25);
  --social-bg:          rgba(255, 255, 255, 0.7);
  --social-border:      rgba(74, 143, 255, 0.18);
  --footer-color:       #7a8aaa;
  --toggle-bg:          rgba(255, 255, 255, 0.8);
  --toggle-border:      rgba(74, 143, 255, 0.25);
  --toggle-icon:        #1a5fd4;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  background: var(--bg-base);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Background gradients — deep navy + blue top-left + gold bottom-right */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 90% 70% at 10% 5%,  #0d3580 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0%  20%,  #0a2060 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 90% 100%, #7a5c06 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 85%, #5a4505 0%, transparent 50%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.light::before {
  background-image:
    radial-gradient(ellipse 90% 70% at 10% 5%,  rgba(74,143,255,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0%  20%,  rgba(74,143,255,0.07) 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 90% 100%, rgba(212,165,32,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 85%, rgba(212,165,32,0.07) 0%, transparent 50%);
}

/* Grid overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.light::after { opacity: 0.3; }

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

/* --- THEME TOGGLE --- */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  color: var(--toggle-icon);
}

.theme-toggle:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

body.light .theme-toggle:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.icon-sun { display: none; }
.icon-moon { display: block; }
body.light .icon-sun { display: block; }
body.light .icon-moon { display: none; }

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- PROFILE --- */
.profile { text-align: center; padding-bottom: 8px; }

.profile__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid rgba(212, 165, 32, 0.4);
  box-shadow:
    0 0 0 4px rgba(212, 165, 32, 0.08),
    0 0 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease;
}

body.light .profile__avatar {
  border-color: rgba(212, 165, 32, 0.5);
  box-shadow: 0 0 0 4px rgba(212, 165, 32, 0.08), 0 4px 20px rgba(0,0,0,0.12);
}

.profile__name { font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.profile__tagline { color: var(--text-dim); font-size: 0.85rem; margin-top: 4px; }
.profile__bio { color: var(--text); font-size: 0.88rem; margin-top: 12px; max-width: 360px; margin-left: auto; margin-right: auto; line-height: 1.55; }

/* --- FILTER TABS --- */
.filters { display: flex; justify-content: center; gap: 6px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 2px 0; }
.filters::-webkit-scrollbar { display: none; }

.filter-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font);
  white-space: nowrap;
}

.filter-tab:hover { color: var(--text); background: rgba(74, 143, 255, 0.06); }

.filter-tab.active {
  color: var(--accent-gold-bright);
  background: rgba(212, 165, 32, 0.08);
  border-color: rgba(212, 165, 32, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.light .filter-tab.active {
  color: var(--accent-blue);
  background: rgba(74, 143, 255, 0.1);
  border-color: rgba(74, 143, 255, 0.3);
}

/* ==========================================================================
   GLASS CARD BASE
   ========================================================================== */
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.card.hidden { display: none; }

.card__header { display: flex; align-items: center; gap: 10px; padding: 0 4px 4px; }
.card__icon { font-size: 1.15rem; flex-shrink: 0; }
.card__title { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.card__description { color: var(--text-dim); font-size: 0.8rem; line-height: 1.5; padding: 0 4px; }
.card__links { display: flex; flex-direction: column; gap: 6px; }

/* ==========================================================================
   CARD — HERO
   ========================================================================== */
.card--hero {
  background: rgba(15, 30, 70, 0.55);
  border: 1.5px solid rgba(212, 165, 32, 0.3);
  box-shadow: 0 0 40px rgba(212,165,32,0.06), 0 12px 40px rgba(0,0,0,0.4);
}

body.light .card--hero {
  background: rgba(255,255,255,0.82);
  border: 1.5px solid rgba(212,165,32,0.3);
  box-shadow: 0 0 30px rgba(212,165,32,0.08), 0 8px 30px rgba(0,0,0,0.08);
}

.card--hero .card__title { color: var(--accent-gold-bright); font-size: 0.85rem; }
body.light .card--hero .card__title { color: var(--accent-gold); }

.card--hero .badge { background: rgba(212,165,32,0.15); color: var(--accent-gold-bright); }
body.light .card--hero .badge { background: rgba(184,134,11,0.12); color: var(--accent-gold); }

.card--hero .card__description { color: var(--text); }

.card--hero .link-row--highlight {
  background: linear-gradient(135deg, rgba(30,80,220,0.9) 0%, rgba(20,60,180,0.9) 100%);
  border: 1.5px solid rgba(100,160,255,0.45);
  box-shadow: 0 4px 20px rgba(50,100,255,0.2);
}
body.light .card--hero .link-row--highlight {
  background: linear-gradient(135deg, #1a5fd4 0%, #1550b8 100%);
  border-color: rgba(74,143,255,0.4);
  box-shadow: 0 4px 16px rgba(74,143,255,0.2);
}
.card--hero .link-row--highlight .link-row__text { color: #fff; font-weight: 700; }
.card--hero .link-row--highlight .link-row__arrow { color: rgba(255,255,255,0.5); }
.card--hero .link-row--highlight:hover { background: linear-gradient(135deg, rgba(50,100,240,0.95) 0%, rgba(30,75,200,0.95) 100%); }
body.light .card--hero .link-row--highlight:hover { background: linear-gradient(135deg, #2070e8 0%, #1a5fd4 100%); }

.card--hero .link-row--bright { background: rgba(74,143,255,0.08); border-color: rgba(74,143,255,0.2); }
body.light .card--hero .link-row--bright { background: rgba(74,143,255,0.08); border-color: rgba(74,143,255,0.2); }
.card--hero .link-row--bright .link-row__text { color: rgba(180,210,255,0.9); }
body.light .card--hero .link-row--bright .link-row__text { color: var(--accent-blue); }
.card--hero .link-row--bright:hover { background: rgba(74,143,255,0.14); }

/* ==========================================================================
   CARD — FEATURED
   ========================================================================== */
.card--featured {
  background: rgba(10,25,65,0.5);
  border: 1.5px solid rgba(74,143,255,0.2);
  box-shadow: 0 0 20px rgba(74,143,255,0.05), 0 12px 40px rgba(0,0,0,0.3);
}

body.light .card--featured {
  background: rgba(255,255,255,0.78);
  border: 1.5px solid rgba(74,143,255,0.2);
}

.card--featured .card__title { color: rgba(130,180,255,0.9); font-size: 0.85rem; }
body.light .card--featured .card__title { color: var(--accent-blue); }

.card--featured .link-row { background: rgba(74,143,255,0.06); border-color: rgba(74,143,255,0.15); }
.card--featured .link-row:hover { background: rgba(74,143,255,0.12); border-color: rgba(74,143,255,0.28); }
.card--featured .link-row__text { color: rgba(180,210,255,0.85); }
body.light .card--featured .link-row__text { color: var(--text); }
.card--featured .link-row__arrow { color: rgba(74,143,255,0.35); }
.card--featured .link-row:hover .link-row__arrow { color: rgba(130,180,255,0.7); }

.card--featured .link-row--highlight {
  background: linear-gradient(135deg, rgba(30,80,220,0.85) 0%, rgba(20,60,180,0.85) 100%);
  border: 1.5px solid rgba(100,160,255,0.4);
}
body.light .card--featured .link-row--highlight { background: linear-gradient(135deg, #1a5fd4 0%, #1550b8 100%); border-color: rgba(74,143,255,0.4); }
.card--featured .link-row--highlight .link-row__text { color: var(--white); font-weight: 600; }
.card--featured .link-row--highlight .link-row__arrow { color: rgba(255,255,255,0.4); }
.card--featured .link-row--highlight:hover { background: linear-gradient(135deg, rgba(50,100,240,0.9) 0%, rgba(30,75,200,0.9) 100%); }

.card--featured .link-row--bright { background: rgba(74,143,255,0.1); border-color: rgba(74,143,255,0.22); }
.card--featured .link-row--bright .link-row__text { color: rgba(190,215,255,0.9); }
body.light .card--featured .link-row--bright .link-row__text { color: var(--text); }
.card--featured .link-row--bright:hover { background: rgba(74,143,255,0.16); }

/* ==========================================================================
   LINK ROW (base)
   ========================================================================== */
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--link-bg);
  border: 1px solid var(--link-border);
  border-radius: var(--radius-sm);
  transition: all 0.12s ease;
  cursor: pointer;
  gap: 12px;
}

.link-row:hover { background: var(--link-hover-bg); border-color: var(--link-hover-border); }
.link-row__text { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.link-row__arrow { flex-shrink: 0; width: 16px; height: 16px; color: var(--text-dim); transition: color 0.12s ease; }
.link-row:hover .link-row__arrow { color: var(--text); }

.link-row--highlight {
  background: linear-gradient(135deg, rgba(30,80,220,0.85) 0%, rgba(20,60,180,0.85) 100%);
  border-color: rgba(100,160,255,0.4);
}
body.light .link-row--highlight { background: linear-gradient(135deg, #1a5fd4 0%, #1550b8 100%); border-color: rgba(74,143,255,0.4); }
.link-row--highlight .link-row__text { color: #fff; font-weight: 700; }
.link-row--highlight .link-row__arrow { color: rgba(255,255,255,0.45); }
.link-row--highlight:hover { background: linear-gradient(135deg, rgba(50,100,240,0.9) 0%, rgba(30,75,200,0.9) 100%); }
body.light .link-row--highlight:hover { background: linear-gradient(135deg, #2070e8 0%, #1a5fd4 100%); }
.link-row--highlight:hover .link-row__arrow { color: rgba(255,255,255,0.8); }

.link-row--bright { background: rgba(74,143,255,0.07); border-color: rgba(74,143,255,0.18); }
body.light .link-row--bright { background: rgba(74,143,255,0.08); border-color: rgba(74,143,255,0.2); }
.link-row--bright .link-row__text { color: var(--white); }
body.light .link-row--bright .link-row__text { color: var(--accent-blue); }
.link-row--bright:hover { background: rgba(74,143,255,0.13); }

/* --- COUPON --- */
.link-row__content { display: flex; flex-direction: column; gap: 2px; }
.link-row__sub { font-family: var(--mono); font-size: 0.68rem; color: var(--accent-gold); letter-spacing: 0.06em; font-weight: 500; }

/* --- BADGE --- */
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  background: rgba(212, 165, 32, 0.15);
  color: var(--accent-gold-bright);
}

/* --- SOCIAL --- */
.social-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 4px 0; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--social-bg);
  border: 1px solid var(--social-border);
  transition: all 0.12s ease;
  color: var(--text-dim);
}

.social-link:hover {
  border-color: rgba(212,165,32,0.4);
  color: var(--accent-gold-bright);
  background: rgba(212,165,32,0.07);
  box-shadow: 0 0 12px rgba(212,165,32,0.1);
}

body.light .social-link:hover {
  border-color: rgba(74,143,255,0.4);
  color: var(--accent-blue);
  background: rgba(74,143,255,0.07);
  box-shadow: 0 0 12px rgba(74,143,255,0.1);
}

.social-link svg { width: 17px; height: 17px; fill: currentColor; }

/* --- FOOTER --- */
.footer { text-align: center; padding: 20px 0 8px; color: var(--footer-color); font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.06em; }

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
  .container { padding: 36px 12px 24px; }
}
