/* ============================================================
   Yıldız Haritası — Mobil Arayüz İyileştirmeleri
   ============================================================ */

/* ─── Info Paneli temel ─── */
@media (max-width: 768px) {

  .info-container {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;        /* bottom-bar'ın altından çıkar, JS yönetir */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important; /* JS height'ı yönetir */
    margin: 0 !important;
    overflow-y: hidden !important;
    border-radius: 20px 20px 0 0 !important;
    z-index: 200;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.7);
    -webkit-overflow-scrolling: touch;
  }

  /* Orijinal Vue X kapatma butonu — gizle, JS kendi kontrolünü ekler */
  .info-container .v-card > .v-btn.v-btn--icon {
    display: none !important;
  }

  .info-container .v-card {
    width: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
  }

  .info-container .v-card-title {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .info-container .text-h5 {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
  }
}

/* ─── Toolbar ─── */
@media (max-width: 600px) {
  #toolbar-image .v-toolbar {
    min-height: 48px !important;
  }

  #starme-toolbar-logo {
    height: 28px !important;
    width: auto !important;
  }

  .tsearch {
    max-width: calc(100vw - 120px) !important;
  }
}

/* ─── Kaydırma çubuğu ─── */
.info-container::-webkit-scrollbar { width: 4px; }
.info-container::-webkit-scrollbar-track { background: transparent; }
.info-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* ================================================================
   MOBİL BOTTOM BAR — [katmanlar] [pusula] [saat]
   ================================================================ */

body.mob-original-hide-active .mob-original-hide {
  visibility: hidden !important;
  pointer-events: none !important;
}

#mob-bar {
  position: fixed;
  bottom: 0;          /* JS dinamik olarak günceller */
  left: 0;
  right: 0;
  height: 58px;
  z-index: 300;       /* info-container (200) üzerinde başlar, panel altında kalır */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(8, 10, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  transition: bottom 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

#mob-layers-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
#mob-layers-btn:active,
#mob-bar.layers-open #mob-layers-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

#mob-compass-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

#mob-time-display {
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  min-width: 56px;
  text-align: right;
  user-select: none;
  cursor: pointer;
}
#mob-time-display:active { opacity: 0.7; }

/* ─── Katmanlar Popup ─── */
#mob-layers-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 58px;  /* bar'ın hemen üstü, JS günceller */
  z-index: 290;
  background: rgba(10, 13, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 12px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.22s ease;
}
#mob-layers-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#mob-layers-panel .tbtcontainer {
  grid-column: 1 / -1;
}
#mob-layers-panel .bottom-button {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 4px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  width: auto !important;
  min-height: 70px;
  transition: background 0.15s;
}
#mob-layers-panel .bottom-button:active { background: rgba(255,255,255,0.1); }
#mob-layers-panel .bottom-button.on    { background: rgba(100,150,255,0.15); }
#mob-layers-panel .bottom-button img   { width: 28px !important; height: 28px; filter: opacity(0.6); }
#mob-layers-panel .bottom-button.on img { filter: opacity(1) brightness(1.3); }
#mob-layers-panel .bottom-button .hint {
  display: block !important;
  position: static !important;
  width: auto !important;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68px;
}
#mob-layers-panel .bottom-button.on .hint { color: rgba(180,210,255,0.85); }

/* ─── action-buttons-below: card içinde sağ üste sabit ─── */
@media (max-width: 768px) {
  .info-container .v-card {
    position: relative !important;
  }

  /* Handle card içinde, card-title'ın üstünde → top:20px */
  .action-buttons-below {
    position: absolute !important;
    right: 4px !important;
    top: 20px !important;
    bottom: auto !important;
    left: auto !important;
    /* Yatay: − + odak yan yana */
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 !important;
    gap: 0px !important;
    z-index: 20 !important;
    width: auto !important;
  }

  .action-buttons-below .v-btn {
    margin: 0 !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
}
