/**
 * KNOMAD Mobile CSS
 * 
 * Mobile-responsive optimizations for the KNOMAD app.
 * Applied via media queries for screens <= 768px.
 */

/* ===========================================
   Mobile Landing Page
   =========================================== */
.mobile-landing {
  position: fixed;
  /* Safari <14.5 fallback */
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mobile-landing-header {
  flex: 0 0 auto;
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.mobile-logo {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 0;
  background: linear-gradient(135deg, #00c864 0%, #00a050 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0.5rem 0 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===========================================
   Landing Content Container
   =========================================== */
.mobile-landing-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-section {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.mobile-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

/* ===========================================
   Screen Selection Grid
   =========================================== */
.mobile-screen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* .mobile-screen-grid--required uses default grid settings */

.mobile-screen-grid--calibration {
  /* Calibration tools - 3 columns for smaller cards */
  grid-template-columns: repeat(3, 1fr);
}

.mobile-screen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-height: 120px;
}

.mobile-screen-card:active {
  transform: scale(0.96);
  background: rgba(0, 200, 100, 0.15);
  border-color: rgba(0, 200, 100, 0.4);
}

/* Required cards - larger, prominent */
.mobile-screen-card--required {
  min-height: 120px;
  border-color: rgba(0, 200, 100, 0.3);
}

/* Calibration cards - smaller, subtle */
.mobile-screen-card--calibration {
  min-height: 90px;
  padding: 1rem 0.5rem;
  border-color: rgba(255, 255, 255, 0.08);
}

.mobile-screen-card--calibration .mobile-screen-icon {
  font-size: 1.5rem;
}

.mobile-screen-card--calibration .mobile-screen-label {
  font-size: 0.8125rem;
}

.mobile-screen-card--calibration .mobile-screen-desc {
  font-size: 0.625rem;
}

.mobile-screen-icon {
  font-size: 2rem;
  line-height: 1;
}

.mobile-screen-label {
  font-size: 1rem;
  font-weight: 600;
}

.mobile-screen-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ===========================================
   Landing Footer
   =========================================== */
.mobile-landing-footer {
  flex: 0 0 auto;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===========================================
   Mobile Coming Soon Screen
   =========================================== */
.mobile-coming-soon {
  position: fixed;
  /* Safari <14.5 fallback */
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mobile-coming-soon-content {
  text-align: center;
  padding: 2rem;
  max-width: 320px;
}

.mobile-coming-soon-logo {
  margin-bottom: 2.5rem;
}

.mobile-coming-soon-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.mobile-coming-soon-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 0;
  background: linear-gradient(135deg, #00c864 0%, #00a854 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-coming-soon-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.25rem 0 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-coming-soon-message {
  margin-bottom: 2.5rem;
}

.mobile-coming-soon-message h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #00c864;
}

.mobile-coming-soon-message p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.5rem;
}

.mobile-coming-soon-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.mobile-coming-soon-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-coming-soon-features li:last-child {
  border-bottom: none;
}

.mobile-coming-soon-cta {
  margin-bottom: 2rem;
}

.mobile-coming-soon-cta p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.75rem;
}

.mobile-coming-soon-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #00c864 0%, #00a854 100%);
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.mobile-coming-soon-link:active {
  transform: scale(0.98);
}

.mobile-coming-soon-footer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

