/* ==========================================================================
   ANTIGRAVITY MUSEUM | YERÇEKİMSİZ SANAL MÜZE (CSS TASARIMI)
   5. Sınıf Görsel Sanatlar & Maarif Modeli Uyumlu Gamified Zero-Gravity Arayüz
   ========================================================================== */

/* 1. Uzay ve Yerçekimsiz Alan Konteyneri */
.antigravity-wrapper {
  position: relative;
  min-height: calc(100vh - 80px);
  background: radial-gradient(circle at 50% 30%, #1A2A6C 0%, #0F172A 60%, #050811 100%);
  color: #FFFFFF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 2rem 2.5rem;
  font-family: var(--font-sans, system-ui, sans-serif);
}

/* Arka Plan Kozmik Yıldız & Işık Efektleri */
.antigravity-stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #FFD700, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 60px 140px, #81D4FA, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 150px 80px, #FFFFFF, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 280px 220px, #FF80AB, rgba(0,0,0,0)),
    radial-gradient(2.5px 2.5px at 400px 110px, #FFD700, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 620px 290px, #80D8FF, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 850px 170px, #FFFFFF, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 980px 320px, #FFD700, rgba(0,0,0,0)),
    radial-gradient(3px 3px at 1200px 90px, #81D4FA, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 1350px 260px, #FF80AB, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 800px 600px;
  animation: cosmic-twinkle 8s ease-in-out infinite alternate;
  opacity: 0.75;
}

@keyframes cosmic-twinkle {
  0% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
  100% { opacity: 0.65; transform: scale(0.99); }
}

/* 2. Üst Oyunlaştırılmış HUD / Gösterge Çubuğu */
.antigravity-hud {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  padding: 1rem 1.75rem;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.08);
  margin-bottom: 1.5rem;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hud-astronaut-icon {
  font-size: 2.2rem;
  animation: hud-float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(129, 212, 250, 0.6));
}

@keyframes hud-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(4deg); }
}

.hud-title-wrap h2 {
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 1.4rem;
  color: #FFD700;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.hud-title-wrap p {
  font-size: 0.85rem;
  color: #90CAF9;
  margin: 0.15rem 0 0;
}

.hud-stats-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hud-stat-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(30, 41, 59, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(129, 212, 250, 0.3);
}

.hud-stat-icon {
  font-size: 1.3rem;
}

.hud-stat-content {
  display: flex;
  flex-direction: column;
}

.hud-stat-label {
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hud-stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFD700;
}

/* İlerleme Çubuğu */
.hud-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 160px;
}

.hud-progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.hud-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF9100, #FFD700, #00E676);
  border-radius: 8px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.hud-controls-group {
  display: flex;
  gap: 0.6rem;
}

.hud-btn {
  background: linear-gradient(135deg, #1E293B, #0F172A);
  color: #E2E8F0;
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.hud-btn:hover {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  border-color: #FFD700;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.hud-btn.active {
  background: linear-gradient(135deg, #D97706, #B45309);
  border-color: #FCD34D;
  color: #FFFFFF;
}

/* 3. Yerçekimsiz Alan & Yüzen Eserler Sahnesi */
.antigravity-scene {
  position: relative;
  flex: 1;
  min-height: 520px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.4);
  border: 2px dashed rgba(129, 212, 250, 0.25);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 2.5rem 2rem;
  align-items: center;
  justify-items: center;
  z-index: 5;
}

/* 4. Yüzen Eser Kapsülü (Floating Artifact Pod) */
.floating-artifact-card {
  position: relative;
  width: 220px;
  cursor: pointer;
  outline: none;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  transform-origin: center center;
}

/* Eser Kapsül Gövdesi (Hexagonal / Rounded Hologram) */
.artifact-pod-inner {
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 20px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(129, 212, 250, 0.12);
  transition: all 0.3s ease;
}

/* Kozmik Hologram Halka */
.artifact-halo-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 26px;
  border: 1.5px dashed rgba(255, 215, 0, 0.4);
  pointer-events: none;
  animation: rotate-halo 16s linear infinite;
}

@keyframes rotate-halo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Eser Görsel Alanı */
.artifact-image-viewport {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
  margin-bottom: 0.85rem;
  background: #000000;
}

.artifact-image-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.floating-artifact-card:hover .artifact-image-viewport img {
  transform: scale(1.12);
}

/* Eser Rozet ve İsim Etiketi */
.artifact-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.4);
  margin-bottom: 0.4rem;
}

.artifact-name-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  text-align: center;
  line-height: 1.2;
}

.artifact-collected-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00E676;
  color: #052E16;
  font-size: 0.9rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px #00E676;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-artifact-card.collected .artifact-collected-check {
  opacity: 1;
  transform: scale(1);
}

.floating-artifact-card.collected .artifact-pod-inner {
  border-color: #00E676;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), inset 0 0 18px rgba(0, 230, 118, 0.2);
}

/* ==========================================================================
   CSS YERÇEKİMSİZ SALINIM & DÖNME ANİMASYONLARI (7 FARKLI VARYASYON)
   ========================================================================== */

.float-style-1 {
  animation: antigravity-drift-1 6s ease-in-out infinite;
}

.float-style-2 {
  animation: antigravity-drift-2 7.5s ease-in-out infinite 0.5s;
}

.float-style-3 {
  animation: antigravity-drift-3 8s ease-in-out infinite 1s;
}

.float-style-4 {
  animation: antigravity-drift-4 6.5s ease-in-out infinite 1.5s;
}

.float-style-5 {
  animation: antigravity-drift-5 7s ease-in-out infinite 2s;
}

.float-style-6 {
  animation: antigravity-drift-6 8.5s ease-in-out infinite 0.8s;
}

.float-style-7 {
  animation: antigravity-drift-7 9s ease-in-out infinite 1.2s;
}

@keyframes antigravity-drift-1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-16px) rotate(3deg) translateX(6px); }
  66% { transform: translateY(12px) rotate(-3deg) translateX(-6px); }
}

@keyframes antigravity-drift-2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(18px) rotate(-4deg) translateX(-8px); }
  66% { transform: translateY(-14px) rotate(3deg) translateX(6px); }
}

@keyframes antigravity-drift-3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(-3deg) translateX(10px); }
  66% { transform: translateY(15px) rotate(4deg) translateX(-8px); }
}

@keyframes antigravity-drift-4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(14px) rotate(4deg) translateX(8px); }
  66% { transform: translateY(-18px) rotate(-3deg) translateX(-8px); }
}

@keyframes antigravity-drift-5 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(3deg) translateX(-10px); }
  66% { transform: translateY(16px) rotate(-4deg) translateX(8px); }
}

@keyframes antigravity-drift-6 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(18px) rotate(-3deg) translateX(7px); }
  66% { transform: translateY(-14px) rotate(4deg) translateX(-9px); }
}

@keyframes antigravity-drift-7 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-22px) rotate(4deg) translateX(12px); }
  66% { transform: translateY(16px) rotate(-3deg) translateX(-10px); }
}

/* Hover Sırasında Yumuşak Işıma & Büyüme */
.floating-artifact-card:hover {
  animation-play-state: paused;
  transform: scale(1.08) translateY(-6px);
  filter: drop-shadow(0 12px 24px rgba(255, 215, 0, 0.45));
}

.floating-artifact-card:hover .artifact-pod-inner {
  border-color: #FFD700;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 215, 0, 0.4);
}

/* 5. İnteraktif Kozmik Bilgi Kartı (Gamified Popup) */
.antigravity-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 17, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modal-fade-in 0.3s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.antigravity-info-card {
  position: relative;
  width: 540px;
  max-width: 100%;
  background: linear-gradient(145deg, #1E293B, #0F172A);
  border: 2px solid #FFD700;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 215, 0, 0.35);
  animation: card-pop-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes card-pop-up {
  from { transform: scale(0.8) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-cross {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #FFFFFF;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-cross:hover {
  background: #EF4444;
  border-color: #EF4444;
  transform: rotate(90deg);
}

.info-card-header {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.info-card-thumb {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  overflow: hidden;
  border: 2.5px solid #FFD700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  flex-shrink: 0;
}

.info-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card-titles h3 {
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 1.4rem;
  color: #FFD700;
  margin: 0.25rem 0;
}

.info-card-titles .civ-badge-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
}

.info-card-fact-box {
  background: rgba(30, 41, 59, 0.6);
  border-left: 4px solid #38BDF8;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
}

.info-card-fact-box strong {
  color: #38BDF8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.info-card-fact-box p {
  color: #E2E8F0;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.info-card-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-collect-badge {
  flex: 1;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, #FFB300, #F57C00);
  color: #000000;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(255, 179, 0, 0.4);
  transition: all 0.2s ease;
}

.btn-collect-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 24px rgba(255, 179, 0, 0.6);
}

.btn-collect-badge.already-collected {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #FFFFFF;
  cursor: default;
}

.btn-speech-read {
  padding: 0.9rem 1.25rem;
  background: rgba(30, 41, 59, 0.9);
  color: #81D4FA;
  border: 1.5px solid rgba(129, 212, 250, 0.4);
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-speech-read:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
  color: #FFFFFF;
}

/* 6. Rozet Galerisi / Başarılar Çekmecesi */
.antigravity-badge-drawer {
  margin-top: 1.75rem;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 20px;
  padding: 1.25rem 1.75rem;
  border: 1.5px solid rgba(255, 215, 0, 0.25);
}

.badge-drawer-title {
  font-size: 1rem;
  font-weight: 800;
  color: #FFD700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge-items-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge-item-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 90px;
  opacity: 0.35;
  filter: grayscale(1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-item-slot.unlocked {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.05);
}

.badge-slot-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border: 2px solid #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.badge-item-slot.unlocked .badge-slot-circle {
  border-color: #FFD700;
  background: linear-gradient(135deg, #78350F, #D97706);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
  animation: badge-unlock-glow 2s infinite alternate;
}

@keyframes badge-unlock-glow {
  from { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
  to { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

.badge-slot-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #E2E8F0;
  text-align: center;
  line-height: 1.1;
}

/* 7. Mobil & Akıllı Tahta Uyumluluğu */
@media (max-width: 768px) {
  .antigravity-wrapper {
    padding: 1rem;
  }
  .antigravity-hud {
    flex-direction: column;
    align-items: flex-start;
  }
  .antigravity-scene {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .floating-artifact-card {
    width: 100%;
    max-width: 260px;
  }
}
