/* AMITA Global Stylesheet
   Path: /assets/style.css
   Consolidated + normalized from inline styles.
*/

* { box-sizing: border-box; }
html, body { height: 100%; }

:root {
  --primary-dark: #273D3A;
  --bg: #0f1716;
  --bg-2: #0b1211;
  --card: #142320;
  --text: #e8f1ef;
  --muted: #9fb5b0;
  --accent-green: #9AE6B4;
  --accent-green-2: #8edaa9;
  --accent-green-3: #7fcb9a;
  --ring: rgba(154,230,180,.6);
  --border: rgba(255,255,255,0.08);
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

/* Layout */
.container { width: min(1200px, 92vw); margin: 0 auto; }
.container--narrow { width: min(900px, 92vw); margin: 0 auto; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 24px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: 0.55rem 1.05rem;
  min-height: 44px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  background: #182b27;
  color: #fff;
  letter-spacing: .01em;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease, filter .2s ease, background-color .2s ease;
}
.btn:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.btn:focus { outline: 2px solid var(--accent-green); outline-offset: 2px; }

.btn-login {
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
}
.btn-login:hover, .btn-login:focus {
  background: rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: none;
}

.btn-signup, .btn-primary {
  background: var(--accent-green);
  color: var(--primary-dark);
  border: 1px solid rgba(0,0,0,0.0);
  box-shadow: none;
}
.btn-signup:hover, .btn-signup:focus, .btn-primary:hover, .btn-primary:focus {
  filter: brightness(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 35, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img.logo { width: 34px; height: 34px; border-radius: 8px; }
.brand .name { font-weight: 800; letter-spacing: .02em; }

.nav-links { display: flex; gap: clamp(10px, 2vw, 22px); align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); font-weight: 600; }
.nav-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.auth { display: flex; gap: 10px; align-items: center; }

/* User menu / avatar */
.user-menu { display: none; align-items: center; gap: 10px; }
.user-menu.active { display: flex; animation: fade-in .18s ease-out both; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); overflow: hidden; }

@keyframes fade-in { from { opacity: 0; transform: translateY(-2px);} to { opacity:1; transform:none;} }

/* Mobile nav */
.mobile-toggle { display: none; }
.mobile-auth-buttons { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; align-items:center; justify-content:center; }
  .mobile-auth-buttons { display:flex; gap:10px; }
}

/* Sections */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section-header { margin-bottom: clamp(16px, 2.5vw, 24px); }
.section-title { font-size: clamp(24px, 3.6vw, 40px); margin: 0 0 10px; }
.section-subtitle { color: var(--muted); margin: 0; }

/* Hero */
.hero { padding-top: 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(16px, 3vw, 24px);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero .lead { color: var(--muted); }

/* Grid helpers */
.grid { display: grid; gap: clamp(12px, 2.4vw, 20px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(20, 35, 32, 0.92);
  padding: 22px 0;
  color: var(--muted);
}

/* Utilities */
.text-muted { color: var(--muted); }
.hidden { display: none !important; }
.center { text-align: center; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; }
.p-1 { padding: .25rem; } .p-2 { padding: .5rem; } .p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
