/* SiriusCare Drive — Deep Sky design system */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&family=Inter:wght@400;500&display=swap');

:root {
  /* Navy ramp */
  --navy-50:  #EEF1F8;
  --navy-100: #C8D4E8;
  --navy-200: #96AACC;
  --navy-300: #5A7AAF;
  --navy-400: #1A3A6B;
  --navy-500: #112250;

  /* Solar Gold ramp */
  --gold-50:  #FEF8EC;
  --gold-100: #FDECC4;
  --gold-200: #FAD278;
  --gold-300: #F5A623;
  --gold-400: #D4870A;

  /* Neutral ramp */
  --neutral-50:  #F8F9FB;
  --neutral-100: #EDF0F5;
  --neutral-200: #C8D0E0;
  --neutral-300: #6B7A99;
  --neutral-400: #2D3748;

  --font-headline: 'Outfit', sans-serif;
  --font-body:     'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--navy-500);
  color: var(--neutral-50);
  min-height: 100vh;
}

/* ── Landing page ── */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.landing__logo {
  width: 120px;
  margin-bottom: 2rem;
}

.landing__headline {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--neutral-50);
  line-height: 1.15;
  max-width: 640px;
  margin-bottom: 1rem;
}

.landing__sub {
  font-size: 1.125rem;
  color: var(--navy-200);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background: var(--gold-300);
  color: var(--navy-500);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--gold-400); }

/* ── App shell ── */
.shell { display: flex; flex-direction: column; min-height: 100vh; }

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy-500);
  padding: 0 1.5rem;
  height: 60px;
  border-bottom: 1px solid var(--navy-400);
  flex-shrink: 0;
}

.topnav__logo { height: 36px; }

.topnav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topnav__email {
  font-size: 0.875rem;
  color: var(--navy-200);
}

.topnav__signout {
  font-size: 0.875rem;
  color: var(--gold-300);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}
.topnav__signout:hover { text-decoration: underline; }

.main-content {
  flex: 1;
  background: var(--neutral-50);
  color: var(--neutral-400);
  padding: 1.5rem 2rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--neutral-300);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.breadcrumb a { color: var(--navy-400); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.toolbar__title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-500);
}

.btn-upload {
  background: var(--gold-300);
  color: var(--navy-500);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-upload:hover { background: var(--gold-400); }

/* File/folder grid */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.file-card {
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.file-card:hover { border-color: var(--navy-300); box-shadow: 0 2px 8px rgba(26,58,107,0.1); }

.file-card__icon { font-size: 2rem; line-height: 1; }
.file-card__name { font-size: 0.875rem; font-weight: 500; color: var(--neutral-400); word-break: break-word; }
.file-card__meta { font-size: 0.75rem; color: var(--neutral-300); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--neutral-300);
}
.empty-state p { font-size: 1rem; margin-top: 0.5rem; }

/* Loading / error */
.status-msg {
  text-align: center;
  padding: 3rem;
  color: var(--neutral-300);
  font-size: 0.95rem;
}

/* Hidden upload input */
#file-input { display: none; }
