/* =========================================================
   MyActiveDays Web 3.1 — Core Styles
   Clean modern aesthetic, light/dark themes, responsive grid
   ========================================================= */

/* ====== THEME VARIABLES ====== */
:root[data-theme="light"] {
  --bg: #fafafa;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --card: #ffffff;
  --border: #e5e7eb;
}

:root[data-theme="dark"] {
  --bg: #0d1117;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #60a5fa;
/*  --card: #161b22; */
  --card: #14181f;    /* just a touch lighter */
  --border: #1f2937;
}

:root {
  --button-bg: var(--primary);
  --button-text: #ffffff; /* ensures text is readable */
  --button-hover: #0090cc;
}

/* === Typography + Accent === */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted, #666);
}

[data-theme="dark"] p { color: #a7b0b9; }

.main-heading {
  background: linear-gradient(90deg, #00bfff, #00e0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ====== GLOBAL RESET ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ====== HEADER ====== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;  /* bump to 20px */
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  height: 32px;
  width: auto;
}

.nav nav a {
  text-decoration: none;
  color: var(--accent);
  margin: 0 0.75rem;
  font-size: 1.15rem;  /* default is about 1rem */
  font-weight: 600;
  position: relative;
}

.nav nav a.active::after,
.nav nav a:hover::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Move top menu (Home / Plans) closer to the controls */
.nav nav {
  margin-left: auto;
  margin-right: 3rem; /* adjust: try 1.5rem–3rem until perfect */
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.controls button,
.controls select {
  font: inherit;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: background 0.2s;
}

.controls button:hover,
.controls select:hover {
  background: var(--border);
}

/* ====== HERO SECTION ====== */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 1.0rem;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--accent) 12%, transparent),
    transparent
  );
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-logo {
  display: block;
  margin: 2rem auto;
  width: 200px;
  border-radius: 16px;     /* 👈 Rounded corners */
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.03);  /* subtle lift on hover */
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn,
button {
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover,
button:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.btn.alt {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn.alt:hover {
  background: var(--accent);
  color: #fff;
}

/* Remove underline only from button-style links */
a.btn,
.btn,
.btn.alt {
  text-decoration: none;
}

/* Optional: still no underline on hover */
a.btn:hover,
.btn:hover,
.btn.alt:hover {
  text-decoration: none;
}

.google-play-badge img {
  height: 48px;
  margin-top: 2rem;
}

.google-play-badge.small img {
  height: 38px; /* smaller for footer */
  opacity: 0.9; /* optional, subtle visual hierarchy */
}

/* ====== FEATURE CARDS ====== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ====== CTA ====== */
.cta {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.cta h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

/* ====== FOOTER ====== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--card);
}

.footer-links {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 640px) {
  .nav nav {
    display: none;
  }

  .controls {
    margin-left: auto;
  }

  .hero {
    padding: 4rem 1rem 1rem;
  }

  .features {
    padding: 2rem 1rem;
  }

  .cta {
    padding: 2rem 1rem 3rem;
  }
}

/* ===== LEGAL + STATUS PAGES ===== */
.legal, .status-page {
  max-width: 700px;
  margin: 6rem auto;
  padding: 1.5rem;
  text-align: center;
}

.legal h1, .status-page h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.legal p, .status-page p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ========================================
   🌙 Dark Mode Overrides
   ======================================== */
[data-theme="dark"] {
  --background: #0f141a;
  --card: #1a2028;
  --border: #2a313a;
  --text: #e8e8e8;

  /* Button colors */
  --button-bg: #00bfff;
  --button-text: #ffffff;
  --button-hover: #33ccff;

  /* Accent & link colors */
  --primary: #00bfff;
  --secondary: #39d2c0;
  --muted: #a0a0a0;
}

/* ✅ Compact Mobile Header Fix — keep spacing tight but readable */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 0.6rem 1rem;
    gap: 0.25rem 0.5rem;
  }

  .logo {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.15rem;
  }

  .nav nav {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.1rem 0;
  }

  .controls {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.2rem;
  }

  .controls button,
  .controls select {
    transform: scale(0.95);
  }
}

/* --- Mission Page Layout --- */
/* --- Ensure Mission Card Uses Full Available Width --- */
.hero-content,
.hero {
  width: 100%;
  max-width: none;
}
.mission-card {
  width: 90%;          /* makes it responsive but still centered */
  max-width: 1100px;   /* limits total expansion on large screens */
  margin: 2rem auto;
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mission-content {
  max-height: 45vh;
  overflow-y: auto;
  padding-right: 0.75rem;
  text-align: left;
  line-height: 1.6;
}

.mission-content::-webkit-scrollbar {
  width: 6px;
}

.mission-content::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.mission-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

.mission-content h3 {
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.mission-content p,
.mission-content ul {
  color: var(--text);
  margin-bottom: 1rem;
}

.mission-content ul {
  margin-left: 1.25rem;
  list-style-type: disc;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .mission-card {
    padding: 1.25rem;
  }
  .mission-content {
    max-height: 60vh;
  }
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* === Mobile Layout Fixes for Mission Page === */
@media (max-width: 600px) {
  .mission-card ul {
    padding-left: 0.5rem !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.5 !important;
  }

  .mission-card li {
    margin-bottom: 0.4rem;
  }

  .mission-card h3 {
    margin-top: 1.8rem !important;
  }

  .mission-card p {
    margin-bottom: 1rem !important;
  }

  /* Buttons area */
  .btn-nav {
    display: block !important;
    width: 100% !important;
    margin: 0.4rem 0 !important;
    text-align: center !important;
  }

  .btn-nav + .btn-nav {
    margin-top: 0.6rem !important;
  }
}


