/* =====================================
   🎨 Taken's Hub Stylesheet
   Apple++ Dark UI • Anime Vibes • Glassmorphism
   Organized & Modular
   (Drop into assets/css/style.css)
   ===================================== */

/* =========================
   Root variables & reset
   ========================= */
:root{
  --bg-0: #080b10;
  --bg-1: #0b0f14;
  --bg-2: rgba(255,255,255,0.06);
  --txt: #e8edf2;
  --muted: #a9b3be;
  --brand: #7cf0ff;
  --brand-2: #a78bfa;
  --glass: rgba(255,255,255,0.08);
  --stroke: rgba(255,255,255,0.12);
  --shadow-color: 0,0,0;
  --shadow: 0 10px 30px rgba(var(--shadow-color), .35);
  --radius: 18px;

  /* animation */
  --dur-fast: 160ms;
  --dur-med: 260ms;
  --dur-long: 420ms;
  --easing: cubic-bezier(.2,.9,.3,1);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 1ms; --dur-med: 1ms; --dur-long: 1ms; --easing: linear; }
}

/* Minimal reset */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--txt);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* app wrapper */
#app { position: relative; min-height: 100vh; display: flex; flex-direction: column; }

/* =========================
   Background
   ========================= */
.bg.gradient {
  position: fixed;
  inset: -20vmax;
  background:
    radial-gradient(60vmax 60vmax at 20% 10%, rgba(124,240,255,0.20), transparent 60%),
    radial-gradient(50vmax 50vmax at 80% 20%, rgba(167,139,250,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-1), #06080c 60%);
  filter: saturate(1.08) blur(.3px);
  z-index: -2;
}
#particles { position: fixed; inset: 0; z-index: -1; }

/* =========================
   Utilities & glass tokens
   ========================= */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(1.06);
  -webkit-backdrop-filter: blur(12px) saturate(1.06);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.lift { transform: translateZ(0); will-change: transform; }

/* hoverable base */
.hoverable {
  transition: transform var(--dur-med) var(--easing), box-shadow var(--dur-med) var(--easing), background var(--dur-med) var(--easing);
  cursor: pointer;
}
.hoverable:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(var(--shadow-color), .46);
}

/* text helpers */
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* chips */
.chip {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--txt);
}

/* =========================
   Navbar
   ========================= */
.nav {
  position: sticky;
  top: 12px;
  margin: 12px auto;
  max-width: 1300px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 18px rgba(124,240,255,.6);
}
.brand-name { color: var(--txt); text-decoration: none; font-weight: 700; letter-spacing: .3px; }

/* nav links */
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a {
  color: var(--txt);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: color var(--dur-fast) var(--easing), background var(--dur-fast) var(--easing), transform var(--dur-fast) var(--easing);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-links a:hover { border-color: var(--stroke); background: rgba(255,255,255,0.04); transform: translateY(-2px); }
.nav-links a.active { background: rgba(124,240,255,0.12); border-color: rgba(124,240,255,0.35); color: #071018; }

/* small ghost button inside nav */
.btn.ghost {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--txt);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--easing), background var(--dur-fast) var(--easing);
}
.btn.ghost:hover { border-color: rgba(124,240,255,0.45); background: rgba(255,255,255,0.03); }

/* =========================
   Page wrapper / layout
   ========================= */
.page {
  width: 100%;
  flex: 1 1 auto;
  max-width: 1100px;
  margin: 30px auto 26px;
  padding: 0 16px 26px;
  display: block;
}

/* =========================
   Hero
   ========================= */
.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: center;
}
.hero-content .badge {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px dashed var(--stroke);
  border-radius: 999px;
  color: var(--muted);
}
.hero h1 { font-size: 48px; line-height: 1.05; margin: 6px 0 10px; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 18px; max-width: 48ch; }

/* call to action group */
.cta { margin-top: 18px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.btn {
  background: rgba(255,255,255,0.09);
  color: var(--txt);
  border: 1px solid var(--stroke);
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--easing), box-shadow var(--dur-fast) var(--easing), background var(--dur-fast) var(--easing);
  user-select: none;
}
.btn:hover { transform: translateY(-3px); background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); }
.btn.primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #071018; border-color: transparent;
}
.btn.primary:hover { filter: saturate(1.05) brightness(1.03); }

/* hero side card */
.hero-card { display: grid; gap: 14px; padding: 18px; min-height: 180px; }
.hero-stat { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; }
.hero-stat .num {
  font-size: 36px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat .label { color: var(--muted); font-size: 13px; }

/* =========================
   Cards layout
   ========================= */
.cards {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  padding: 16px;
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  background: transparent;
}
.card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }

/* placeholder shimmer */
.placeholder {
  position: relative;
  display: grid;
  place-items: center;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px dashed var(--stroke);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.placeholder .shimmer {
  position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.06) 40%, transparent 80%);
  animation: shimmer 2s infinite linear;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ratio helpers */
.ratio-16x9 { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; border-radius: 12px; }
.ratio-16x9 iframe, .ratio-16x9 .round { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.round { border-radius: 12px; overflow: hidden; }

/* =========================
   Footer
   ========================= */
.footer {
  margin: 12px auto 16px;
  max-width: 1100px;
  width: calc(100% - 32px);
  padding: 14px 16px;
}
.footer-grid { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.social { display:flex; gap:12px; }
.icon-link {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--txt);
  border: 1px solid var(--stroke); background: rgba(255,255,255,0.05); transition: all var(--dur-fast) var(--easing);
}
.icon-link:hover { border-color: rgba(124,240,255,0.45); color: var(--brand); transform: translateY(-3px); }
.fineprint { margin-top: 8px; color: var(--muted); font-size: 12px; text-align: center; }

/* =========================
   Profile / About
   ========================= */
.profile-grid { max-width: 1100px; margin: 18px auto; padding: 0 16px; }
.profile-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  padding: 20px;
  align-items: start;
}

/* avatar */
.avatar { width: 120px; height: 120px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; }
.avatar.round {
  background: linear-gradient(180deg, rgba(124,240,255,0.12), rgba(167,139,250,0.08));
  border-radius: 18px; border: 1px solid rgba(255,255,255,0.06);
}
.avatar-inner {
  width: 96px; height: 96px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 36px; color: #071018;
  background: linear-gradient(90deg, #7cf0ff, #a78bfa);
  box-shadow: 0 10px 30px rgba(167,139,250,0.08), 0 6px 18px rgba(124,240,255,0.06);
  overflow: hidden;
}
.avatar-inner img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* profile left */
.profile-left { display:flex; flex-direction: column; gap: 12px; }
.profile-name { margin-top: 6px; font-size: 28px; }
.profile-bio { color: var(--muted); line-height: 1.45; margin-top: 6px; }

/* badges */
.badges { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.badges .chip { font-size: 13px; padding: 6px 10px; }

/* skills */
.skills-card h3 { margin: 0 0 8px; }
.skill { margin-bottom: 10px; }
.skill-head { display:flex; justify-content: space-between; font-size: 13px; color:var(--muted); margin-bottom:6px; }
.skill-bar { background: rgba(255,255,255,0.04); border-radius: 999px; overflow: hidden; height: 12px; position: relative; }
.skill-bar .fill { width: 0%; height: 100%; border-radius: 999px; background: linear-gradient(90deg,var(--brand),var(--brand-2)); transition: width 900ms var(--easing); }

/* timeline */
.timeline-card h3 { margin-bottom: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tl-item {
  display:flex; gap:12px; align-items:flex-start;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-long) var(--easing), transform var(--dur-long) var(--easing);
}
.tl-item.in-view { opacity: 1; transform: translateY(0); }
.tl-item time { min-width: 56px; font-weight:700; color:var(--muted); }
.tl-content { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.03); padding: 10px 12px; border-radius: 12px; }
.tl-content p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* =========================
   Carousel
   ========================= */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  overflow: hidden;
}
.carousel-track { display: flex; gap: 18px; transition: transform .45s var(--easing); will-change: transform; }
.carousel-item {
  min-width: 220px; max-width: 280px; overflow: hidden; border-radius: 12px; display:flex; flex-direction: column;
}
.carousel-item img { width:100%; height:150px; object-fit: cover; display:block; }
.carousel-caption { padding: 10px; display:flex; justify-content:space-between; gap:8px; align-items:center; }

/* nav buttons */
.carousel-nav {
  position: absolute; top:50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid var(--stroke);
  color: var(--txt); width: 28px; height: 28px; font-size: 20px; line-height: 1;
  display:flex; align-items:center; justify-content:center; border-radius: 50%; cursor:pointer; z-index:2;
  transition: transform var(--dur-fast) var(--easing), background var(--dur-fast) var(--easing);
}
.carousel-nav.left { left: 4px; }
.carousel-nav.right { right: 4px; }
.carousel-nav:hover { background: rgba(255,255,255,0.15); transform: translateY(-50%) scale(1.06); }

/* =========================
   Fun Zone
   ========================= */
.fun-grid { display:grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.fun-left { display:flex; flex-direction: column; gap: 14px; }
.fun-right { display:flex; flex-direction: column; gap: 14px; }

/* fun panel */
.fun-panel { padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.02); transition: transform var(--dur-fast) var(--easing), box-shadow var(--dur-fast) var(--easing); }
.fun-panel:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(var(--shadow-color), .28); }

/* clicker */
.big-btn { font-size: 20px; padding: 14px 20px; border-radius: 14px; }
.clicker { display:flex; flex-direction: column; gap:10px; align-items:flex-start; }
.clicker .score { font-weight:700; }
.clicker-actions { display:flex; gap:8px; flex-wrap:wrap; }

/* roulette */
.roulette { display:flex; flex-direction: column; gap:10px; align-items:stretch; }
#rouletteResult {
  background: rgba(255,255,255,0.02);
  padding: 12px; border-radius: 10px; min-height:48px;
  display:grid; place-items:center; color:var(--muted);
}

/* trivia */
#answers { display:grid; grid-template-columns: repeat(2,1fr); gap:8px; margin-top:8px; }
#answers .answer { padding:8px; border-radius:8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.03); transition: transform var(--dur-fast) var(--easing); }
#answers .answer:hover { transform: translateY(-3px); }

/* scoreboard */
#scoreboard { min-height:80px; }

/* secret box unlocked */
#secretBox.unlocked {
  border: 1px solid rgba(124,240,255,0.28);
  background: linear-gradient(90deg, rgba(124,240,255,0.04), rgba(167,139,250,0.02));
  color: var(--brand); padding: 10px; border-radius:10px;
  box-shadow: 0 10px 30px rgba(124,240,255,0.03) inset;
}

/* =========================
   Discord status helpers
   ========================= */
.discord-status { display:flex; flex-direction:column; gap:1rem; padding:1rem; }
.discord-user { display:flex; align-items:center; gap:1rem; }
.discord-user img { width:56px; height:56px; border-radius:50%; border:2px solid rgba(255,255,255,0.06); box-shadow: 0 0 8px rgba(0,0,0,.45); }
.discord-activity { background: rgba(255,255,255,0.03); border-radius: 1rem; padding:1rem; display:flex; gap:1rem; align-items:center; position:relative; }
.discord-activity img.large { width:72px; height:72px; border-radius:.5rem; }
.discord-activity img.small { width:24px; height:24px; border-radius:50%; position:absolute; bottom:4px; right:4px; border:2px solid #111; }

.status-dot { display:inline-block; width:12px; height:12px; border-radius:50%; margin-right:6px; vertical-align:middle; }
.status-online { background: #43b581; }
.status-idle   { background: #faa61a; }
.status-dnd    { background: #f04747; }
.status-offline{ background: #747f8d; }

/* =========================
   Responsive tweaks
   ========================= */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { order: 2; }
  .profile-card { grid-template-columns: 1fr; }
  .avatar { margin: 0 auto; }
  .fun-grid { grid-template-columns: 1fr; }
  .fun-right { order: 2; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .carousel-item img { height: 130px; }
}

/* =========================
   Theme — Light mode adjustments
   (toggle with `body.theme-light`)
   ========================= */
body.theme-light {
  --bg-0: #f6f7fb;
  --bg-1: #fefefe;
  --txt: #0c1220;
  --muted: #516079;
  --glass: rgba(255,255,255,0.75);
  --stroke: rgba(0,0,0,0.08);
  --shadow-color: 22,28,45;
  --shadow: 0 8px 26px rgba(var(--shadow-color), .06);
}
body.theme-light .btn.primary { color: #0c1220; }
body.theme-light .brand-name { color: var(--txt); }
body.theme-light .placeholder { border-color: rgba(0,0,0,0.06); }

/* =========================
   Helpful small utilities
   ========================= */
.center { display:grid; place-items:center; }
.text-muted { color: var(--muted); font-size: 14px; }

/* =========================
   End of file
   ========================= */
