/* ARASIENCE - şeffaf, minimal görünüm */

:root {
  color-scheme: dark;
  --text: #ffffff;
  --muted: #d8cde8;
  --glass: rgba(15, 12, 24, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #09090f;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 110px 18px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: #09090f;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Arka plan videosu */
.background-video {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: brightness(0.58) saturate(0.9);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(5, 4, 10, 0.22);
}

/* Profil kartı: mor çerçeve yok, yalnızca şeffaf cam görünümü */
.profile {
  width: min(100%, 430px);
  min-height: 420px;
  padding: 48px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 0;
  border-radius: 25px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
  animation: appear 650ms ease both;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Profil fotoğrafı tam yuvarlak */
.avatar {
  width: 120px;
  height: 120px;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 5px 24px rgba(0, 0, 0, 0.32);
  margin: 0 0 20px;
}

.profile h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 8vw, 43px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.welcome {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.bio {
  max-width: 310px;
  min-height: 1em;
  margin: 10px 0 0;
  color: #eee7f7;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

/* Müzik oynatıcı: ekranın sol üst köşesi */
.music-player {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  width: min(285px, calc(100vw - 86px));
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(10, 8, 16, 0.48);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.music-label {
  display: block;
  margin: 0 0 6px 2px;
  color: #f0e8ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.music-player audio {
  display: block;
  width: 100%;
  height: 34px;
}

/* Ayarlar: ekranın sağ üst köşesi, profil kartından bağımsız */
.customize {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 40;
}

.customize summary {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  list-style: none;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 8, 16, 0.48);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 25px;
  transition: transform 180ms ease, background 180ms ease;
}

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

.customize summary:hover {
  transform: rotate(30deg);
  background: rgba(10, 8, 16, 0.7);
}

.settings-panel {
  position: absolute;
  top: 58px;
  right: 0;
  width: min(270px, calc(100vw - 32px));
  padding: 18px;
  border: 0;
  border-radius: 16px;
  background: rgba(15, 12, 24, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.38);
}

.settings-panel h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.settings-panel label {
  display: block;
  margin: 13px 0 7px;
  color: #f4efff;
  font-size: 13px;
}

.settings-panel input[type="range"] {
  width: 100%;
  accent-color: #bca5df;
  cursor: pointer;
}

.settings-panel textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
  font-size: 13px;
}

.settings-panel textarea:focus {
  outline: 1px solid rgba(255, 255, 255, 0.45);
}

.settings-panel button {
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: rgba(125, 91, 165, 0.72);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.settings-panel button:hover {
  background: rgba(145, 109, 190, 0.9);
}

/* Discord yalnızca simge */
.social-links {
  margin-top: 26px;
}

.discord-link {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: rgba(88, 101, 242, 0.82);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, background 160ms ease;
}

.discord-link:hover,
.discord-link:focus-visible {
  transform: translateY(-3px);
  background: #5865f2;
  outline: none;
}

.discord-link svg {
  width: 31px;
  height: 25px;
}

/* Görüntülenme sayacı */
.views {
  margin-top: 28px;
  color: rgba(245, 239, 255, 0.86);
  font-size: 13px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.views strong {
  margin-left: 4px;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 480px) {
  body {
    padding: 100px 13px 28px;
  }

  .profile {
    padding: 42px 20px 26px;
    border-radius: 20px;
  }

  .avatar {
    width: 108px;
    height: 108px;
  }

  .music-player {
    top: 12px;
    left: 12px;
    width: min(250px, calc(100vw - 82px));
    padding: 8px 9px;
  }

  .customize {
    top: 12px;
    right: 12px;
  }

  .customize summary {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Yeni özellikler: saat, yazı animasyonu, galeri, kar ve müzik görselleştirmesi */

#effectsCanvas {
  position: fixed;
  inset: 0;
  z-index: 15;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.profile,
.music-player,
.customize {
  position: relative;
  z-index: 20;
}

.music-player {
  position: fixed;
  z-index: 30;
}

.customize {
  position: fixed;
  z-index: 40;
}

.music-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.music-label {
  margin-bottom: 6px;
}

.equalizer {
  height: 19px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  opacity: 0.55;
}

.equalizer i {
  width: 3px;
  height: 5px;
  display: block;
  border-radius: 5px;
  background: #e8dcff;
}

.equalizer.playing {
  opacity: 1;
}

.equalizer.playing i {
  animation: equalize 650ms ease-in-out infinite alternate;
}

.equalizer.playing i:nth-child(2) { animation-delay: 120ms; }
.equalizer.playing i:nth-child(3) { animation-delay: 240ms; }
.equalizer.playing i:nth-child(4) { animation-delay: 80ms; }
.equalizer.playing i:nth-child(5) { animation-delay: 190ms; }

@keyframes equalize {
  from { height: 4px; }
  to { height: 18px; }
}

.typing-line {
  min-height: 23px;
  margin: 12px 0 0;
  color: #e7dafa;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.typing-cursor {
  display: inline-block;
  margin-left: 3px;
  animation: blink-cursor 800ms steps(2, start) infinite;
}

@keyframes blink-cursor {
  to { visibility: hidden; }
}

.live-clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
  color: rgba(245, 239, 255, 0.88);
  font-size: 12px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.clock-separator {
  opacity: 0.65;
}

.gallery {
  width: 100%;
  margin-top: 27px;
}

.gallery h2 {
  margin: 0 0 12px;
  color: rgba(245, 239, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

.gallery-grid img.missing {
  display: none;
}

@media (max-width: 480px) {
  .gallery {
    margin-top: 23px;
  }

  .typing-line {
    font-size: 13px;
  }

  .live-clock {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .equalizer.playing i,
  .typing-cursor {
    animation: none !important;
  }
}


/* Ayarlar içinden fotoğraf seçme alanları */
.gallery-settings-title {
  margin: 20px 0 6px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.gallery-help {
  margin: 0 0 8px;
  color: rgba(245, 239, 255, 0.7);
  font-size: 11px;
  line-height: 1.45;
}

.settings-panel .gallery-file {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 7px;
  border: 0;
  border-radius: 8px;
  color: #eee7f7;
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 11px;
}

.gallery-placeholder {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
  font-size: 25px;
}


/* Mobil hizalama düzeltmesi */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  display: block;
  min-height: 100vh;
  padding: 112px 13px 36px;
}

.profile {
  display: flex;
  width: min(100%, 430px);
  max-width: 430px;
  min-width: 0;
  margin: 28px auto 36px;
  padding: 42px 20px 28px;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  position: relative;
  left: auto;
  right: auto;
  transform: none;
}

.profile > * {
  max-width: 100%;
}

.gallery {
  width: 100%;
}

.gallery-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.gallery-placeholder,
.gallery-grid img {
  width: 100%;
  min-width: 0;
}

@media (max-width: 480px) {
  body {
    padding: 105px 12px 30px;
  }

  .profile {
    width: 100%;
    margin: 24px auto 30px;
    padding: 38px 18px 25px;
  }
}


/* Kesin mobil merkezleme: viewport merkezini referans al */
html,
body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
}

body {
  display: block !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

main.profile {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
  left: 50% !important;
  right: auto !important;
  width: min(430px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  min-width: 0 !important;
  margin: 24px 0 32px !important;
  padding: 38px 18px 26px !important;
  text-align: center !important;
  transform: translateX(-50%) !important;
  animation: none !important;
}

main.profile > * {
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}

main.profile .gallery {
  width: 100%;
  max-width: 100%;
}

main.profile .gallery-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

main.profile .gallery-grid > * {
  width: 100%;
  min-width: 0;
}

@media (max-width: 600px) {
  main.profile {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }
}


/* Müzik kontrolünü gizle; ses dosyası arka planda oynatılmayı dener */
.music-player,
#siteAudio {
  display: none !important;
}


/* Full-screen "click to enter" intro */
.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #050505;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 600ms ease, visibility 600ms ease;
}

.entry-screen span {
  display: block;
  color: #fff;
  font-size: clamp(30px, 7vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-align: center;
  text-shadow: 0 0 28px rgba(255,255,255,0.08);
  animation: entry-pulse 1.8s ease-in-out infinite;
}

.entry-screen:focus-visible {
  outline: 2px solid rgba(255,255,255,0.75);
  outline-offset: -8px;
}

.entry-screen-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body:not(.entered) .profile,
body:not(.entered) .customize,
body:not(.entered) .music-player {
  visibility: hidden;
}

@keyframes entry-pulse {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .entry-screen span { animation: none; }
  .entry-screen { transition: none; }
}


/* Profil fotoğrafı seçme alanı */
.settings-panel input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  color: #f4efff;
  font: inherit;
  font-size: 12px;
}

.settings-panel input[type="file"]::file-selector-button {
  margin: 0 8px 6px 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(125, 91, 165, 0.72);
  font: inherit;
  cursor: pointer;
}

.settings-panel .secondary-setting-button {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}
