/* =========================================================
   Tepuy App Launcher – Tesla Cockpit (Fixed & Styled)
   ========================================================= */

.app-launcher {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 6rem 1rem 6rem;
  background: radial-gradient(circle at 50% 30%, #182029 0%, #0b0e13 100%);
  backdrop-filter: blur(32px) saturate(160%);
  color: #fff;
  z-index: 99999;
  overflow-y: auto;
}

.app-launcher.active {
  display: flex;
  animation: fadeIn 0.45s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

/* --- layout & centering --- */
.app-launcher__inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.app-launcher__title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #00ffae, #00c480);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-launcher__subtitle {
  color: #cfd8dc;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* --- grid --- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  justify-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* --- cards --- */
.app-card {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 2.2rem 1.4rem;
  width: 100%;
  max-width: 260px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px) brightness(1.3);
  box-shadow: 0 0 18px rgba(0, 255, 174, 0.08);
  overflow: hidden;
}

.app-card:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #00ffae;
  transform: translateY(-6px);
  box-shadow: 0 0 32px rgba(0, 255, 174, 0.35);
}

.app-card h3 {
  color: #00ffae;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.app-card p {
  color: #f2f2f2;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* --- icon placeholders --- */
.app-card .emoji,
.app-card img.app-icon {
  display: block;
  font-size: 2.5rem;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 12px rgba(0,255,174,0.4));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.app-card:hover .emoji,
.app-card:hover img.app-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 25px rgba(0,255,174,0.7));
}

/* --- reflection sweep --- */
.app-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
  opacity: 0.2;
  pointer-events: none;
}
.app-card:hover::after {
  left: 125%;
}

/* --- close button --- */
.app-launcher__close {
  position: fixed;
  top: 1.4rem;
  right: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  z-index: 100000;
}
.app-launcher__close:hover { opacity: 1; }

/* --- footer --- */
.app-launcher__footer {
  margin-top: 3.5rem;
  font-size: 0.95rem;
  color: #aaa;
}
.app-launcher__footer a {
  color: #00ffae;
  text-decoration: underline;
}
.app-launcher__footer a:hover { color: #fff; }

/* --- mobile --- */
@media (max-width: 600px) {
  .app-launcher { padding: 4rem 1rem; align-items: flex-start; }
  .app-launcher__title { font-size: 1.8rem; }
  .app-card { padding: 1.5rem; max-width: 100%; }
}

/* === Tepuy app icons === */
.app-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0,255,174,0.4))
          brightness(1.2)
          contrast(1.1);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.app-card:hover .app-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 25px rgba(0,255,174,0.7))
          brightness(1.4);
}
/* === Override Tepuy global dark background === */
body.app-launcher-open {
  overflow: hidden !important;
}

.app-launcher {
  background: radial-gradient(circle at 50% 25%, #1b2733 0%, #0a0d11 100%) !important;
  backdrop-filter: blur(32px) saturate(180%) brightness(1.1) !important;
  z-index: 999999 !important;
}

/* Give it a faint inner glow instead of flat black */
.app-launcher::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(0,255,174,0.08) 0%, transparent 70%);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Ensure grid never collapses narrow */
.app-launcher__inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Strengthen card separation */
.app-card {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(14px) brightness(1.25);
}

/* === Override global Tepuy black background === */
.app-launcher {
  background: radial-gradient(circle at 50% 25%, #1b2733 0%, #0a0d11 100%) !important;
  backdrop-filter: blur(32px) saturate(180%) brightness(1.1) !important;
  z-index: 999999 !important;
}


