/* ==========================================================================
   CELERY AGENCY — Link in Bio
   Deep Teal + Cyan + Mint Green | Dark & Light Mode
   ========================================================================== */

/* ── DARK MODE (default) ── */
:root {
  --bg-base:        #020c0f;
  --white:          #ffffff;
  --text:           #d8eaf0;
  --text-dim:       #5a7a8a;
  --accent-cyan:    #3ab8d4;
  --accent-mint:    #1dc9a4;
  --accent-mint-bright: #2eefc5;
  --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(5, 25, 32, 0.45);
  --card-border:    rgba(58, 184, 212, 0.12);
  --link-bg:        rgba(255, 255, 255, 0.03);
  --link-border:    rgba(58, 184, 212, 0.1);
  --link-hover-bg:  rgba(58, 184, 212, 0.07);
  --link-hover-border: rgba(58, 184, 212, 0.2);
  --social-bg:      rgba(5, 30, 42, 0.5);
  --social-border:  rgba(58, 184, 212, 0.15);
  --footer-color:   #5a7a8a;
  --toggle-bg:      rgba(5, 30, 42, 0.6);
  --toggle-border:  rgba(58, 184, 212, 0.2);
  --toggle-icon:    #5a7a8a;
}

/* ── LIGHT MODE ── */
body.light {
  --bg-base:        #eef6f8;
  --white:          #ffffff;
  --text:           #0d2d38;
  --text-dim:       #4a7a8a;
  --accent-cyan:    #0a8fa8;
  --accent-mint:    #0faa88;
  --accent-mint-bright: #0faa88;
  --card-bg:        rgba(255, 255, 255, 0.75);
  --card-border:    rgba(10, 143, 168, 0.18);
  --link-bg:        rgba(255, 255, 255, 0.6);
  --link-border:    rgba(10, 143, 168, 0.15);
  --link-hover-bg:  rgba(10, 143, 168, 0.07);
  --link-hover-border: rgba(10, 143, 168, 0.25);
  --social-bg:      rgba(255, 255, 255, 0.7);
  --social-border:  rgba(10, 143, 168, 0.2);
  --footer-color:   #6a9aaa;
  --toggle-bg:      rgba(255, 255, 255, 0.8);
  --toggle-border:  rgba(10, 143, 168, 0.25);
  --toggle-icon:    #0a8fa8;
}

*, *::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 — dark */
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%,  #063a4a 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0%  20%,  #042a38 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 90% 100%, #063d30 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 85%, #042e24 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(58,184,212,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0%  20%,  rgba(29,201,164,0.08) 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 90% 100%, rgba(29,201,164,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 85%, rgba(58,184,212,0.08) 0%, transparent 50%);
}

/* Grid overlay — dark only */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 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-mint);
  color: var(--accent-mint);
}

.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: 18px;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid rgba(58, 184, 212, 0.35);
  box-shadow: 0 0 0 4px rgba(58, 184, 212, 0.07), 0 0 30px rgba(0,0,0,0.4);
  transition: border-color 0.3s ease;
}

body.light .profile__avatar {
  border-color: rgba(10, 143, 168, 0.4);
  box-shadow: 0 0 0 4px rgba(10, 143, 168, 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(58, 184, 212, 0.06); }

.filter-tab.active {
  color: var(--accent-mint-bright);
  background: rgba(29, 201, 164, 0.08);
  border-color: rgba(29, 201, 164, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.light .filter-tab.active {
  color: var(--accent-mint);
  background: rgba(15, 170, 136, 0.1);
  border-color: rgba(15, 170, 136, 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.2);
  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(5, 40, 55, 0.55);
  border: 1.5px solid rgba(58, 184, 212, 0.3);
  box-shadow: 0 0 40px rgba(58,184,212,0.06), 0 12px 40px rgba(0,0,0,0.4);
}

body.light .card--hero {
  background: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(10,143,168,0.25);
  box-shadow: 0 0 30px rgba(10,143,168,0.08), 0 8px 30px rgba(0,0,0,0.08);
}

.card--hero .card__title { color: rgba(100, 210, 230, 0.9); font-size: 0.85rem; }
body.light .card--hero .card__title { color: var(--accent-cyan); }

.card--hero .badge { background: rgba(29,201,164,0.15); color: var(--accent-mint-bright); }
body.light .card--hero .badge { background: rgba(15,170,136,0.12); color: var(--accent-mint); }

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

.card--hero .link-row--highlight {
  background: linear-gradient(135deg, rgba(20,100,140,0.9) 0%, rgba(10,70,100,0.9) 100%);
  border: 1.5px solid rgba(58,184,212,0.45);
  box-shadow: 0 4px 20px rgba(58,184,212,0.15);
}
body.light .card--hero .link-row--highlight {
  background: linear-gradient(135deg, #0a8fa8 0%, #0a7a90 100%);
  border-color: rgba(10,143,168,0.4);
}
.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(30,120,160,0.95) 0%, rgba(15,85,120,0.95) 100%); }
body.light .card--hero .link-row--highlight:hover { background: linear-gradient(135deg, #0aa0bc 0%, #0a8fa8 100%); }

.card--hero .link-row--bright { background: rgba(29,201,164,0.08); border-color: rgba(29,201,164,0.2); }
body.light .card--hero .link-row--bright { background: rgba(15,170,136,0.07); border-color: rgba(15,170,136,0.2); }
.card--hero .link-row--bright .link-row__text { color: rgba(160,225,240,0.9); }
body.light .card--hero .link-row--bright .link-row__text { color: var(--accent-mint); }
.card--hero .link-row--bright:hover { background: rgba(29,201,164,0.14); }

/* ==========================================================================
   CARD — FEATURED
   ========================================================================== */
.card--featured {
  background: rgba(5,30,42,0.5);
  border: 1.5px solid rgba(58,184,212,0.2);
  box-shadow: 0 0 20px rgba(58,184,212,0.05), 0 12px 40px rgba(0,0,0,0.3);
}

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

.card--featured .card__title { color: rgba(100,200,220,0.9); font-size: 0.85rem; }
body.light .card--featured .card__title { color: var(--accent-cyan); }

.card--featured .link-row { background: rgba(58,184,212,0.06); border-color: rgba(58,184,212,0.15); }
.card--featured .link-row:hover { background: rgba(58,184,212,0.12); border-color: rgba(58,184,212,0.28); }
.card--featured .link-row__text { color: rgba(170,220,235,0.85); }
body.light .card--featured .link-row__text { color: var(--text); }
.card--featured .link-row__arrow { color: rgba(58,184,212,0.35); }
.card--featured .link-row:hover .link-row__arrow { color: rgba(100,210,230,0.7); }

.card--featured .link-row--highlight {
  background: linear-gradient(135deg, rgba(20,100,140,0.85) 0%, rgba(10,70,100,0.85) 100%);
  border: 1.5px solid rgba(58,184,212,0.4);
}
body.light .card--featured .link-row--highlight { background: linear-gradient(135deg, #0a8fa8 0%, #0a7a90 100%); border-color: rgba(10,143,168,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(30,120,160,0.9) 0%, rgba(15,85,120,0.9) 100%); }

.card--featured .link-row--bright { background: rgba(58,184,212,0.1); border-color: rgba(58,184,212,0.22); }
.card--featured .link-row--bright .link-row__text { color: rgba(180,225,240,0.9); }
body.light .card--featured .link-row--bright .link-row__text { color: var(--text); }
.card--featured .link-row--bright:hover { background: rgba(58,184,212,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(20,100,140,0.85) 0%, rgba(10,70,100,0.85) 100%);
  border-color: rgba(58,184,212,0.4);
}
body.light .link-row--highlight { background: linear-gradient(135deg, #0a8fa8 0%, #0a7a90 100%); border-color: rgba(10,143,168,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(30,120,160,0.9) 0%, rgba(15,85,120,0.9) 100%); }
body.light .link-row--highlight:hover { background: linear-gradient(135deg, #0aa0bc 0%, #0a8fa8 100%); }
.link-row--highlight:hover .link-row__arrow { color: rgba(255,255,255,0.8); }

.link-row--bright { background: rgba(29,201,164,0.07); border-color: rgba(29,201,164,0.18); }
body.light .link-row--bright { background: rgba(15,170,136,0.07); border-color: rgba(15,170,136,0.2); }
.link-row--bright .link-row__text { color: var(--white); }
body.light .link-row--bright .link-row__text { color: var(--accent-mint); }
.link-row--bright:hover { background: rgba(29,201,164,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-mint); 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(29,201,164,0.15);
  color: var(--accent-mint-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(29,201,164,0.45);
  color: var(--accent-mint-bright);
  background: rgba(29,201,164,0.08);
  box-shadow: 0 0 12px rgba(29,201,164,0.12);
}

body.light .social-link:hover {
  border-color: rgba(15,170,136,0.4);
  color: var(--accent-mint);
  background: rgba(15,170,136,0.08);
}

.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; }
}
