/**
 * geoBIM.app
 * © 2026 Christof Lorenz. All rights reserved.
 *
 * Licensed under the Business Source License 1.1 (BSL 1.1)
 * Non-commercial use, evaluation, research, and education permitted.
 * Commercial use requires written permission.
 * Contact: info@geobim.app
 *
 * Change Date: 2030-03-01 — converts to MIT License
 */

/* ===============================
   SPLASH SCREEN v3.0 – Tabbed Welcome
   =============================== */

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
}

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

.splash-content {
  max-width: 960px;
  width: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

/* ── Left: logo ── */
.splash-left {
  flex-shrink: 0;
}

.splash-logo-img {
  width: 360px;
  height: auto;
}

/* ── Right: tabbed panel ── */
.splash-right {
  text-align: left;
  max-width: 460px;
  width: 100%;
}

.splash-divider {
  width: 100%;
  height: 1px;
  background: #2ECFB0;
  margin: 0 0 16px 0;
  opacity: 0.5;
}

/* ── Tabs ── */
.splash-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.splash-tab {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-family: inherit;
}

.splash-tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.splash-tab.active {
  color: #2ECFB0;
  border-bottom-color: #2ECFB0;
}

/* ── Tab content ── */
.splash-tab-content {
  display: none;
}

.splash-tab-content.active {
  display: block;
}

/* scrollable area for features / shortcuts */
.splash-tab-content[data-tab="features"],
.splash-tab-content[data-tab="shortcuts"] {
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.splash-tab-content::-webkit-scrollbar {
  width: 5px;
}

.splash-tab-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

/* ═══════════════════════
   ABOUT TAB
   ═══════════════════════ */

.splash-about-header {
  margin-bottom: 10px;
}

.splash-app-name {
  font-size: 22px;
  font-weight: 700;
  color: #E2E8F0;
}

.splash-version {
  font-size: 13px;
  color: #2ECFB0;
  font-weight: 600;
}

.splash-tagline {
  font-size: 14px;
  font-weight: 600;
  color: #2ECFB0;
  margin: 0 0 8px 0;
  letter-spacing: 0.4px;
}

.splash-description {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 18px 0;
}

.splash-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.splash-info-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 9px 12px;
}

.splash-info-label {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.splash-info-value {
  display: block;
  font-size: 12px;
  color: #E2E8F0;
}

/* ═══════════════════════
   FEATURES TAB
   ═══════════════════════ */

.splash-feature-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.splash-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.splash-feature-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.splash-feature-item strong {
  display: block;
  font-size: 13px;
  color: #E2E8F0;
  margin-bottom: 1px;
}

.splash-feature-item span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* ═══════════════════════
   SHORTCUTS TAB
   ═══════════════════════ */

.splash-shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.splash-shortcut-group {
  font-size: 11px;
  color: #2ECFB0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 2px;
}

.splash-shortcut-group:first-child {
  margin-top: 0;
}

.splash-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.splash-shortcut kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-family: 'SF Mono', 'Consolas', monospace;
  color: #E2E8F0;
  white-space: nowrap;
}

.splash-shortcut > span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}

/* ═══════════════════════
   FOOTER
   ═══════════════════════ */

.splash-footer {
  margin-top: 24px;
}

.splash-button {
  background: linear-gradient(135deg, #2ECFB0 0%, #25A98F 100%);
  color: #000;
  border: none;
  padding: 13px 56px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.3px;
}

.splash-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(46, 207, 176, 0.25);
}

.splash-button:active {
  transform: translateY(0);
}

/* CTA section */
.splash-cta-section {
  margin-top: 16px;
}

.splash-cta {
  font-size: 12px;
  margin: 0 0 4px 0;
  color: rgba(255, 255, 255, 0.6);
}

.splash-cta-link {
  color: #2ECFB0;
  text-decoration: underline;
}

.splash-cta-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.splash-privacy {
  font-size: 10px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.22);
}

.splash-bsl {
  font-size: 0.7rem;
  color: #666;
  margin-top: 12px;
  line-height: 1.5;
}

.splash-bsl a {
  color: #2ECFB0;
  text-decoration: none;
}

.splash-bsl a:hover {
  text-decoration: underline;
}

/* ═══════════════════════
   RESPONSIVE
   ═══════════════════════ */

@media (max-width: 720px) {
  .splash-content {
    flex-direction: column;
    gap: 24px;
    padding: 24px 16px;
  }

  .splash-logo-img {
    width: 240px;
  }

  .splash-right {
    text-align: center;
    max-width: 100%;
  }

  .splash-tabs {
    justify-content: center;
  }

  .splash-tab {
    padding: 8px 12px;
    font-size: 12px;
  }

  .splash-divider {
    margin: 0 auto 16px;
  }

  .splash-info-grid {
    grid-template-columns: 1fr;
  }

  .splash-feature-list,
  .splash-shortcut-list {
    text-align: left;
  }

  .splash-tab-content[data-tab="features"],
  .splash-tab-content[data-tab="shortcuts"] {
    max-height: 260px;
  }

  .splash-button {
    width: 100%;
    padding: 12px 24px;
  }
}

@media (max-height: 700px) {
  .splash-content {
    margin-top: -20px;
  }

  .splash-tab-content[data-tab="features"],
  .splash-tab-content[data-tab="shortcuts"] {
    max-height: 220px;
  }
}
