:root {
  color-scheme: light;
  --ink: #14171f;
  --muted: #707684;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  background: #fafbfc;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shell {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 0 20px 56px;
}

/* ---- Cover ---- */
.cover {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1400 / 349;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Intro ---- */
.intro {
  margin-top: -44px;
  padding: 0 4px;
}

.avatar {
  display: block;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #e6eaef;
  background: #e9edf2;
  cursor: pointer;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.avatar:hover img {
  transform: scale(1.08);
}

.intro h1 {
  margin: 18px 0 0;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.role {
  margin: 8px 0 0;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
}

.about {
  margin-top: 8px;
  text-align: left;
}

.about summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  user-select: none;
}

.about summary .role {
  margin: 0;
}

.about summary::-webkit-details-marker {
  display: none;
}

.about .chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.about[open] .chevron {
  transform: rotate(180deg);
}

.bio {
  margin: 12px 0 0;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}


/* ---- Bento grid ---- */
.grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  grid-template-areas:
    "linkedin email   photo"
    "spotify  github  photo"
    "map      map     map";
  gap: 16px;
}

.card.photo     { grid-area: photo; }
.linkedin       { grid-area: linkedin; }
.mail           { grid-area: email; }
.spotify        { grid-area: spotify; }
.github         { grid-area: github; }
.map            { grid-area: map; }

.card {
  background: #ffffff;
  border: 1px solid rgba(20, 23, 31, 0.05);
  border-radius: 26px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(20, 23, 31, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(20, 23, 31, 0.1);
}

/* ---- Icon circle ---- */
.icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 14px rgba(20, 23, 31, 0.12);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.title {
  font-size: 1.05rem;
  font-weight: 700;
}

.handle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: -8px;
}

/* ---- Pills ---- */
.pill {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  border: 2px solid transparent;
}

.outline-blue { color: #0a66c2; border-color: rgba(10, 102, 194, 0.4); }
.outline-dark { color: #14171f; border-color: rgba(20, 23, 31, 0.18); }
.fill-mail    { color: #fff; background: linear-gradient(135deg, #f97316, #ef4444); }
.fill-ig      { color: #fff; background: linear-gradient(135deg, #f9ce34, #ee2a7b 45%, #6228d7); }

/* ---- Brand tints + icon colors ---- */
.linkedin  { background: #eef4fb; }
.linkedin .icon  { background: #0a66c2; }

.mail      { background: #fff4ee; }
.mail .icon      { background: linear-gradient(135deg, #f97316, #ef4444); }

.spotify   { background: #edf9f1; }
.spotify .icon   { background: #1db954; }

.github    { background: #f4f5f7; }
.github .icon    { background: #181717; }

.card.map {
  padding: 0;
  overflow: hidden;
}

/* ---- Photo hero ---- */
.card.photo {
  padding: 0;
  overflow: hidden;
}

.card.photo {
  cursor: pointer;
}

.card.photo img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.card.photo:hover img {
  transform: scale(1.08);
}

/* ---- Spotify play ---- */
.play-btn {
  margin-top: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1db954;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(29, 185, 84, 0.4);
  transition: transform 0.18s ease;
}

.spotify:hover .play-btn {
  transform: scale(1.08);
}

.play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 2px;
}

/* ---- Map ---- */
.map-frame {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  height: 100%;
}

.map-frame img,
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-frame iframe {
  filter: saturate(0.5) brightness(1.1) contrast(0.85);
}

.map-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1a73e8;
  border: 3px solid #fff;
  box-shadow: 0 0 0 5px rgba(26, 115, 232, 0.25), 0 2px 6px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(20, 23, 31, 0.12);
}

/* ---- IBAN page ---- */
.iban-grid {
  grid-template-columns: 1fr;
  grid-template-areas:
    "garanti"
    "enpara"
    "tom";
  gap: 12px;
}

.iban-card.garanti  { grid-area: garanti; --accent: #007a3d; }
.iban-card.enpara   { grid-area: enpara;  --accent: #9c4d97; }
.iban-card.tom      { grid-area: tom;     --accent: #7b3fd4; }

.iban-card {
  align-items: flex-start;
  gap: 12px;
  position: relative;
  background: #fff;
  border-color: rgba(20, 23, 31, 0.07);
  box-shadow: none;
}

.iban-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.bank-logo {
  height: 24px;
  width: auto;
  display: block;
}

/* Kutulardaki bosluk paylari farkli oldugu icin yukseklikler esit degil:
   harf yuksekligi ~15px'te esitlenecek sekilde ayarlandi */
.enpara .bank-logo { height: 37px; }
.tom .bank-logo    { height: 19px; }

.iban-value {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.84rem, 3.2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  min-width: 0;
  user-select: all;
  -webkit-user-select: all;
}

.copy-btn {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease, transform 0.18s ease;
}

/* Görünümü büyütmeden dokunma alanını 44px'e çıkarır */
.copy-btn::after {
  content: "";
  position: absolute;
  inset: -7px;
}

.copy-btn:hover  { color: var(--accent); }
.copy-btn:active { transform: scale(0.92); }

.copy-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-radius: 9px;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
  grid-area: 1 / 1;
}

.copy-btn .check-icon { display: none; }
.copy-btn.copied { color: #16a34a; background: transparent; }
.copy-btn.copied .copy-icon { display: none; }
.copy-btn.copied .check-icon { display: block; }
.copy-btn.failed { color: #dc2626; }

.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Staggered fade-in ---- */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid .card {
  opacity: 0;
  animation: cardIn 0.5s ease forwards;
}

.grid .card:nth-child(1) { animation-delay: 0.05s; }
.grid .card:nth-child(2) { animation-delay: 0.13s; }
.grid .card:nth-child(3) { animation-delay: 0.21s; }
.grid .card:nth-child(4) { animation-delay: 0.29s; }
.grid .card:nth-child(5) { animation-delay: 0.37s; }
.grid .card:nth-child(6) { animation-delay: 0.45s; }
.grid .card:nth-child(7) { animation-delay: 0.53s; }

@media (prefers-reduced-motion: reduce) {
  .grid .card { opacity: 1; animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .grid:not(.iban-grid) {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "linkedin email"
      "spotify  github"
      "photo    map";
  }
  .card.photo img { min-height: 180px; }
  .map-frame { min-height: 180px; }
  .intro h1 { font-size: 2.1rem; }
  .avatar { width: 96px; height: 96px; }
}

@media (max-width: 560px) {
  .iban-value { white-space: normal; }
}

@media (max-width: 460px) {
  .grid { gap: 12px; }
  .card { padding: 16px; border-radius: 22px; }
  .icon { width: 38px; height: 38px; }
}
