/* ============================================
   SCARLIGHT PROJECTS — GÜNEŞ SİSTEMİ ANA SAYFA
   ============================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  width: 100%;
  overflow: hidden; /* sayfa kaydırılmıyor, tek ekranlık deneyim */
  font-family: 'Segoe UI', Arial, sans-serif;
  color: white;
  background: radial-gradient(ellipse at center, #0b1330 0%, #05070f 65%, #020309 100%);
}

/* ✨ Yıldız alanı */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.5px 1.5px at 80% 12%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 50% 62%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1.5px 1.5px at 28% 82%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 72% 75%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 92% 40%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 18% 48%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 62% 22%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 40% 92%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 6% 65%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 34% 14%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 88% 58%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 4% 38%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.5px 1.5px at 56% 6%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 96% 85%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 22% 68%, rgba(255,255,255,0.65), transparent),
    radial-gradient(2px 2px at 46% 44%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 70% 92%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 14% 4%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 84% 78%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.5px 1.5px at 60% 78%, rgba(255,255,255,0.65), transparent),
    radial-gradient(1px 1px at 38% 32%, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 12% 90%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 78% 30%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.5px 1.5px at 30% 56%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 66% 10%, rgba(255,255,255,0.55), transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes twinkle {
  from { opacity: .55; }
  to   { opacity: 1; }
}

/* 🎥 PARALLAX KATMANLARI — JS burayı kaydırır, içindeki elementler kendi animasyonlarını korur */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.6s ease-out;
}

/* 🌫️ NEBULA BULUTLARI — evrenin derinliğini ve "canlılığını" hissettiren renkli, yumuşak ışık kümeleri */
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
  mix-blend-mode: screen;
  animation: drift ease-in-out infinite alternate, hueShift 20s ease-in-out infinite;
}

.nebula-1 {
  width: 50vmax;
  height: 50vmax;
  top: -16%;
  left: -14%;
  background: radial-gradient(circle, rgba(140,100,255,0.85) 0%, rgba(140,100,255,0.35) 45%, transparent 72%);
  animation-duration: 34s, 22s;
}

.nebula-2 {
  width: 42vmax;
  height: 42vmax;
  bottom: -18%;
  right: -12%;
  background: radial-gradient(circle, rgba(255,90,170,0.75) 0%, rgba(255,90,170,0.3) 45%, transparent 72%);
  animation-duration: 42s, 28s;
}

.nebula-3 {
  width: 38vmax;
  height: 38vmax;
  top: 15%;
  right: 2%;
  background: radial-gradient(circle, rgba(70,210,255,0.7) 0%, rgba(70,210,255,0.28) 45%, transparent 72%);
  animation-duration: 48s, 25s;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4%, 3%) scale(1.1); }
}

@keyframes hueShift {
  0%, 100% { filter: blur(90px) hue-rotate(0deg); }
  50%      { filter: blur(90px) hue-rotate(45deg); }
}

/* ✨ İKİNCİ YILDIZ TOZU KATMANI — farklı hızda yavaşça kayarak derinlik hissi verir */
.stardust {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(1px 1px at 15% 35%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 45% 8%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 65% 45%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 85% 65%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 25% 75%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 55% 90%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 95% 20%, rgba(255,255,255,0.4), transparent);
  animation: driftSlow 80s linear infinite;
  opacity: 0.7;
}

@keyframes driftSlow {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-6%, -4%); }
}

/* 🌠 SAMANYOLU ŞERİDİ */
.milkyway {
  position: absolute;
  inset: -50%;
  background: linear-gradient(100deg,
    transparent 30%,
    rgba(180,180,255,0.05) 44%,
    rgba(255,255,255,0.09) 50%,
    rgba(180,180,255,0.05) 56%,
    transparent 70%);
  transform: rotate(-18deg);
  filter: blur(6px);
}

/* 🌌 Güneş sistemi kapsayıcısı */
.solar-system {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ☀️ GÜNEŞ */
.sun {
  position: relative;
  width: 15vmin;
  height: 15vmin;
  min-width: 70px;
  min-height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d0, #ffd27a 35%, #ff9d3d 65%, #ff6b1a 100%);
  box-shadow: 0 0 60px 18px rgba(255,170,60,0.55), 0 0 150px 60px rgba(255,120,40,0.25);
  animation: sunPulse 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 60px 18px rgba(255,170,60,0.55), 0 0 150px 60px rgba(255,120,40,0.25); }
  50%      { box-shadow: 0 0 80px 28px rgba(255,170,60,0.7), 0 0 180px 80px rgba(255,120,40,0.35); }
}

.sun-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: clamp(10px, 1.5vmin, 14px);
  font-weight: 700;
  color: #2a1400;
  background: rgba(255,255,255,0.9);
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 0 18px rgba(255,180,60,0.7);
  pointer-events: none;
}

/* 🪐 YÖRÜNGE DÜZLEMİ */
.orbit-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.orbit {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.planet-pivot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: spin var(--speed) linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 🌍 GEZEGEN BUTONU */
.planet {
  position: absolute;
  top: 50%;
  left: var(--r);
  width: var(--size);
  height: var(--size);
  min-width: 26px;
  min-height: 26px;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.planet:hover {
  transform: translate(-50%, -50%) scale(1.18);
  filter: brightness(1.25);
}

.planet.disabled {
  opacity: 0.5;
  filter: grayscale(0.4);
  cursor: not-allowed;
}

.planet.disabled:hover {
  transform: translate(-50%, -50%) scale(1.06);
  filter: grayscale(0.4) brightness(1.05);
}

.planet-core {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9), transparent 45%),
    var(--planet-color);
  box-shadow: inset -5px -5px 12px rgba(0,0,0,0.5), 0 0 16px var(--planet-glow);
}

/* Proje renkleri */
.planet-scartech { --planet-color: linear-gradient(135deg, #7bdfff, #6a8cff); --planet-glow: rgba(106,140,255,0.7); }
.planet-stars     { --planet-color: linear-gradient(135deg, #cfd8e8, #7c8aa8); --planet-glow: rgba(180,190,210,0.5); }
.planet-manga     { --planet-color: linear-gradient(135deg, #ff9d9d, #c23b5a); --planet-glow: rgba(194,59,90,0.5); }

/* Yörünge yarıçapları + hız (vmin = akışkan, mobil dahil tüm ekranlarda orantılı) */
.orbit-1 .orbit-ring, .orbit-1 .planet { --r: 22vmin; }
.orbit-1 .planet-pivot { --speed: 26s; }
.orbit-1 .planet { --size: 6.5vmin; max-width: 54px; max-height: 54px; }

.orbit-2 .orbit-ring, .orbit-2 .planet { --r: 32vmin; }
.orbit-2 .planet-pivot { --speed: 42s; }
.orbit-2 .planet { --size: 5vmin; max-width: 42px; max-height: 42px; }

.orbit-3 .orbit-ring, .orbit-3 .planet { --r: 41vmin; }
.orbit-3 .planet-pivot { --speed: 60s; }
.orbit-3 .planet { --size: 4.5vmin; max-width: 38px; max-height: 38px; }

/* ============================================
   📋 BİLGİ PANELİ (masaüstü: sağdan; mobil: alttan)
   ============================================ */
.info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 40;
}

.info-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.info-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(380px, 90vw);
  background: rgba(14,18,36,0.55);
  backdrop-filter: blur(35px) saturate(170%);
  -webkit-backdrop-filter: blur(35px) saturate(170%);
  border-left: 1px solid rgba(255,255,255,0.12);
  box-shadow: -12px 0 45px rgba(0,0,0,0.45), inset 1px 0 0 rgba(255,255,255,0.08);
  transform: translateX(105%);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  z-index: 50;
  padding: 80px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-panel.active {
  transform: translateX(0);
}

.info-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.info-close:hover {
  background: rgba(255,255,255,0.18);
  transform: rotate(90deg);
}

.info-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(123,223,255,0.15);
  color: #7bdfff;
  border: 1px solid rgba(123,223,255,0.3);
}

.info-badge.soon {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.15);
}

.info-panel h2 {
  margin: 0;
  font-size: 26px;
  background: linear-gradient(45deg, #7bdfff, #6a8cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-tagline {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

.info-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.info-cta {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  color: white;
  background: linear-gradient(45deg, #7bdfff, #6a8cff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px #6a8cff, inset 0 1px 0 rgba(255,255,255,0.5);
}

.info-cta.disabled {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  cursor: not-allowed;
  box-shadow: none;
}

.info-cta.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* 📱 MOBİL: panel alttan açılan bir "sheet" olur */
@media (max-width: 768px) {
  .info-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 78vh;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -12px 45px rgba(0,0,0,0.45);
    transform: translateY(105%);
    padding: 26px 22px 28px;
  }

  .info-panel.active {
    transform: translateY(0);
  }

  .info-close {
    top: 16px;
    right: 16px;
  }

  .sun-label {
    font-size: 10px;
    padding: 5px 10px;
  }
}