@import url("theme.css");

/* =========================================
   BASE
========================================= */
html, body {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body {
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* =========================================
   SCENE
========================================= */
.scene {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 8vh 4vw;
  text-align: center;
  box-sizing: border-box;
  z-index: 3;
}

.scene::before {
  content: "";
  position: absolute;
  inset: -10vmax;
  background:
    radial-gradient(520px 280px at 30% 60%, var(--accent) 35%, transparent 60%),
    radial-gradient(420px 220px at 70% 35%, var(--accent) 25%, transparent 60%);
  filter: blur(22px);
  opacity: 0.18;
  z-index: -1;
}

@media (max-width: 600px) { .scene { padding: 10vh 6vw; } }
@media (max-width: 480px) { .scene { padding: 6vh 3vw; } }

/* =========================================
   CARD
========================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.info-box {
  width: min(720px, 95vw);
  padding: 2rem;
  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.0025);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 0 30px var(--accent-glow);

  display: flex;
  flex-direction: column;
  gap: 1.2rem;

  opacity: 0;
  animation: fadeUp 900ms ease-out 200ms forwards;

  transition:
    box-shadow 0.4s ease,
    background-color 0.4s ease,
    border-color 0.4s ease;

  contain: layout paint;
}

.info-box:hover {
  box-shadow: 0 0 50px var(--accent-glow);
}

@media (min-width: 769px) { .info-box { min-height: 560px; } }

@media (max-width: 768px) {
  .info-box { width: 90vw; padding: 1.5rem; gap: 1rem; }
}

@media (max-width: 600px) {
  .info-box { width: min(90vw, 100%); max-height: 90vh; overflow-y: auto; padding: 1.5rem; gap: 1rem; }
}

@media (max-width: 480px) {
  .info-box { padding: 1rem; gap: 0.8rem; }
}

/* =========================================
   AVATAR
========================================= */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  display: block;
  border: 2px solid var(--accent);
  box-shadow: 0 0 25px var(--accent-glow), 0 0 60px rgba(0,0,0,0.4);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.avatar:hover {
  box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(0,0,0,0.5);
}

@media (max-width: 768px) { .avatar { width: 100px; height: 100px; } }
@media (max-width: 480px) { .avatar { width: 80px; height: 80px; } }

/* =========================================
   TYPOGRAPHY
========================================= */
.info-box h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.5rem 0 0.1rem;
}

.info-box p { font-size: 1.2rem; opacity: 0.85; }
.info-box .tagline { font-size: 1.1rem; opacity: 0.75; margin: 0 0 0.6rem; }
.description { font-size: 1.15rem; opacity: 0.85; margin-bottom: 1rem; }
.status { font-size: 0.85rem; opacity: 0.55; margin: 0; }
.stats { font-size: 0.9rem; opacity: 0.6; letter-spacing: 1px; }

@media (max-width: 480px) {
  .info-box h1 { font-size: 1.6rem; }
  .info-box p, .description { font-size: 1rem; }
  .tagline { font-size: 0.75rem; opacity: 0.7; }
}

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.7;
  margin: 1rem 0;
}

/* =========================================
   LAYOUT SECTIONS
========================================= */
.bottom-section {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-row {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

/* =========================================
   SOCIALS
========================================= */
.socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

@media (max-width: 480px) { .socials { gap: 1rem; } }

.socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.25s ease;
}

.socials a:hover { transform: translateY(-4px); }

.social-icon {
  width: 28px;
  height: 28px;
  display: block;
  color: var(--fg);
  opacity: 0.6;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    color 0.25s ease,
    filter 0.25s ease;
}

.socials a:hover .social-icon {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

@media (max-width: 768px) { .social-icon { width: 24px; height: 24px; } }

.twitter { transform: scale(1.3); }

/* =========================================
   TOOLTIP
========================================= */
.icon { position: relative; }

.tooltip {
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.icon:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================
   TIME
========================================= */
.time-row {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.time-label { opacity: 0.7; }

#current-time {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}