/*
  CAU Link-in-Bio — Blue Glass Grid
  - Full-bleed background from provided screenshot
  - Blue gradient overlay + subtle grain
  - Glassmorphism link tiles with responsive CSS grid
*/

:root {
  --blue-50: #e6f0ff;
  --blue-100: #cfe2ff;
  --blue-200: #a6c8ff;
  --blue-300: #76aafe;
  --blue-400: #4a8df3;
  --blue-500: #2c6be6;
  --blue-600: #1f54c9;
  --blue-700: #1a46a7;
  --blue-800: #163a88;
  --blue-900: #112c65;

  --text: #eaf1ff;
  --muted: rgba(234, 241, 255, 0.7);
  --tile: rgba(17, 44, 101, 0.38);
  --tile-hover: rgba(35, 88, 176, 0.55);
  --tile-border: rgba(166, 200, 255, 0.45);
  --backdrop: blur(14px) saturate(130%);
  --shadow: 0 20px 40px rgba(8, 19, 46, 0.35);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--blue-900);
  overflow-x: hidden;
}

/* removed loader and background image */

.container {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 28px;
  padding: 48px 18px 36px;
  max-width: 960px;
  margin: 0 auto;
}

.profile { text-align: center; }
.avatar {
  width: 120px; height: 120px;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid var(--tile-border);
  box-shadow: var(--shadow);
}
.title {
  margin: 14px 0 6px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.2px;
}
.subtitle {
  margin: 0 auto;
  max-width: 48ch;
  color: var(--muted);
  font-size: 15px;
}

.links, .secondary { width: 100%; }

.grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.grid.big {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.grid.stacked {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
  gap: 16px;
}

.grid.small { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.card { height: 100%; }

.tile {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(180deg, var(--tile), rgba(22, 58, 136, 0.32));
  border: 1px solid var(--tile-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--backdrop);
  backdrop-filter: var(--backdrop);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
  overflow: hidden;
}

.tile:hover, .tile:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--tile-hover), rgba(22, 58, 136, 0.42));
  border-color: rgba(255, 255, 255, 0.6);
}

.icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--blue-100);
}
.icon svg { width: 24px; height: 24px; }

.text { font-weight: 600; letter-spacing: .2px; }

/* Media card variant (large rectangular photo cards) */
.tile.media {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.media-img {
  width: 100%;
  /* Paste any rectangular photo — it will crop nicely */
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

/* Blue tint overlay for selected cards */
.tint-blue { position: relative; }
.tint-blue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(21, 76, 200, 0.25), rgba(21, 76, 200, 0.25));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.media-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #0a1e4a;
}

.media-text {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}

.tile.media .icon { color: var(--blue-50); width: 36px; height: 36px; }
.tile.media .text { font-size: 16px; }

.footer {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; color: var(--muted);
  font-size: 13px;
}
.mini { border-radius: 6px; border: 1px solid var(--tile-border); }

/* Focus styles for accessibility */
.tile:focus-visible {
  outline: 3px solid rgba(166, 200, 255, 0.9);
  outline-offset: 2px;
}
.avatar{
    border-radius: 50%;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
}

/* Larger screens: denser grid + hero spacing */
@media (min-width: 880px) {
  .container { gap: 32px; padding-top: 72px; }
  .grid { gap: 18px; }
}

/* Mobile tweaks */
@media (max-width: 520px) {
  .container { padding: 28px 14px 28px; }
  .grid.stacked { max-width: 94%; }
  .media-text { padding: 12px 14px; }
  .tile.media .text { font-size: 15px; }
}


