/* style.css
 *  Extracted and cleaned from index.html
 *  Paste this into your project's style.css and remove the inline <style> block from index.html
 */

/* ---------------------------------------
 *  Theme variables
 *  --------------------------------------- */
:root {
  --bg: #0b1220;
  --card: #0f172a;
  --muted: #94a3b8;
  --accent: #7c3aed;
  --text: #eef2ff;
  --btn-bg: rgba(255,255,255,0.03);
  --btn-border: rgba(255,255,255,0.06);
  --blur: 10px;
  --radius: 14px;
  --maxw: 520px;
  --color-cycle-duration: 8s;

  /* preferred font stack */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
  Roboto, "Helvetica Neue", Arial;
}

/* ---------------------------------------
 *  Base layout
 *  --------------------------------------- */
html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 36px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
  radial-gradient(1200px 600px at 10% 10%, rgba(124,58,237,0.10), transparent 8%),
  radial-gradient(900px 400px at 90% 90%, rgba(99,102,241,0.06), transparent 8%),
  var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------
 *  Card
 *  --------------------------------------- */
.card {
  width: 100%;
  max-width: var(--maxw);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  padding: 28px;
  backdrop-filter: blur(var(--blur));
  text-align: center;
}

/* ---------------------------------------
 *  Avatar
 *  --------------------------------------- */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.06);
  display: block;
  object-fit: cover;
  background: linear-gradient(45deg, var(--accent), #06b6d4);
}

/* ---------------------------------------
 *  Headings & subtitle
 *  --------------------------------------- */
h1 {
  margin: 4px 0 6px;
  font-size: 20px;
  letter-spacing: 0.2px;
}

p.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(0,0,0,0.45);
  animation: colorCycle var(--color-cycle-duration) linear infinite;
  transition: color .3s linear;
}

/* pastel color cycle animation for subtitle */
@keyframes colorCycle {
  0%   { color: #c6f6d5; } /* pastel mint */
  20%  { color: #d6e4ff; } /* pastel periwinkle */
  40%  { color: #ffd6e0; } /* pastel pink */
  60%  { color: #fff0c2; } /* soft peach */
  80%  { color: #cfe8ff; } /* pastel sky */
  100% { color: #c6f6d5; }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  p.subtitle {
    animation: none;
    color: var(--muted);
  }
}

/* ---------------------------------------
 *  Links & buttons
 *  --------------------------------------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  font-weight: 600;
  font-size: 15px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25) inset;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(2,6,23,0.6);
}

/* small emoji in buttons (keeps line-height sane) */
.btn .emoji {
  font-size: 18px;
  line-height: 1;
}

/* logo images inside buttons */
.logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
}

/* ---------------------------------------
 *  Utilities & small text
 *  --------------------------------------- */
.small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 14px;
}

/* 2-column grid utility (used elsewhere if needed) */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* ---------------------------------------
 *  Responsive tweaks
 *  --------------------------------------- */
@media (max-width: 420px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .avatar {
    width: 112px;
    height: 112px;
  }
}

/* ---------------------------------------
 *  Footer
 *  --------------------------------------- */
footer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.copy-notice {
  color: #9ae6b4;
  font-weight: 600;
  display: inline-block;
  margin-left: 6px;
}
