/* Renkleri buradan değiştirerek sayfanın tarzını değiştirebilirsin */
:root {
  --bg: #0a0612;
  --pink: #ff4fa3;
  --violet: #8b5cf6;
  --text: #f4eefc;
  --muted: #b9a9d6;
  --glass: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 700px at 15% 10%, #2a1050 0, transparent 60%),
    radial-gradient(900px 600px at 90% 90%, #4a0f3d 0, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* Giriş ekranı */
#splash {
  position: fixed; inset: 0; z-index: 10;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background: rgba(10, 6, 18, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  transition: opacity 0.6s ease, visibility 0.6s;
}
#splash span {
  font-size: 1.15rem; letter-spacing: 0.35em; text-transform: lowercase;
  animation: pulse 2.2s ease-in-out infinite;
}
#splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* Sayfa */
#page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 28px 16px;
  perspective: 900px;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
#page.hidden { opacity: 0; transform: scale(0.96); }

.card {
  width: min(100%, 440px);
  padding: 30px 24px 22px;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 26px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.15s ease-out;
}

.avatar {
  position: relative;
  width: 104px; height: 104px; margin: 0 auto 14px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 0 34px rgba(255, 79, 163, 0.45);
  overflow: hidden;
}
.avatar-fallback, .avatar img {
  position: absolute; inset: 3px;
  width: calc(100% - 6px); height: calc(100% - 6px);
  border-radius: 50%;
}
.avatar-fallback {
  display: grid; place-items: center;
  background: #150a26; font-size: 2.6rem; font-weight: 800;
  background-image: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-color: #150a26;
}
.avatar img { object-fit: cover; background: #150a26; }

h1 { margin: 0; font-size: 1.7rem; letter-spacing: 0.02em; }

.type { min-height: 1.5em; margin: 6px 0 20px; color: var(--muted); font-size: 0.98rem; }
.caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 3px;
  vertical-align: -0.15em; background: var(--pink);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Öne çıkanlar */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.feat {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 14px; border-radius: 16px; color: var(--text); text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 79, 163, 0.14), rgba(139, 92, 246, 0.14));
  border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feat b { font-size: 0.98rem; }
.feat small { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.feat:hover { transform: translateY(-3px); border-color: var(--pink); box-shadow: 0 8px 26px rgba(255, 79, 163, 0.25); }

/* Bağlantılar */
.links { display: grid; gap: 10px; }
.links a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  color: var(--text); text-decoration: none; font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.links a .ic { width: 22px; text-align: center; font-size: 1.1rem; }
.links a .arrow { margin-left: auto; opacity: 0.5; transition: transform 0.2s, opacity 0.2s; }
.links a:hover { transform: translateY(-2px); border-color: var(--violet); background: rgba(139, 92, 246, 0.14); }
.links a:hover .arrow { transform: translateX(3px); opacity: 1; }

footer { margin-top: 20px; color: var(--muted); font-size: 0.75rem; opacity: 0.7; }

@media (max-width: 380px) { .featured { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
