/* =============================================================
   Mandy Hub Styles — Bold & Minimal
   Matches marioncarr.com design: DM Sans, same palette
   ============================================================= */

:root {
  --fc-bg: #ffffff;
  --fc-bg-alt: #f7f7f7;
  --fc-text: #1a1a1a;
  --fc-text-muted: #7a8288;
  --fc-link: #1a56db;
  --fc-link-hover: #0f3a8a;
  --fc-border: #e5e5e5;
  --fc-card-bg: #ffffff;
  --fc-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --fc-success: #62c462;
  --fc-danger: #ee5f5b;
  --fc-warning: #f89406;
  --fc-radius: 4px;
  --fc-font: 'DM Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fc-bg: #111111;
    --fc-bg-alt: #1a1a1a;
    --fc-text: #e8e8e8;
    --fc-text-muted: #999999;
    --fc-link: #5b9cf5;
    --fc-link-hover: #7db4ff;
    --fc-border: #2a2a2a;
    --fc-card-bg: #1e1e1e;
    --fc-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--fc-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fc-text);
  background: var(--fc-bg);
  -webkit-font-smoothing: antialiased;
}

/* App container */
.app-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  min-height: 100vh;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--fc-border);
}

.app-header h1 {
  font-size: 1.5em;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.app-header h1 a {
  color: var(--fc-text);
  text-decoration: none;
}

/* Views — hide/show */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* Auth / gate view */
.auth-container {
  max-width: 380px;
  margin: 60px auto;
}

.auth-container h2 {
  font-size: 1.5em;
  font-weight: 700;
  margin: 0 0 8px;
}

.auth-container p {
  color: var(--fc-text-muted);
  margin: 0 0 24px;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9em;
  margin-bottom: 6px;
  color: var(--fc-text);
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  background: var(--fc-bg);
  color: var(--fc-text);
  font-family: var(--fc-font);
  font-size: 0.95em;
  transition: border-color 0.2s ease-in-out;
}

.form-group input:focus {
  outline: none;
  border-color: var(--fc-link);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border: none;
  border-radius: var(--fc-radius);
  font-family: var(--fc-font);
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background: var(--fc-link);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--fc-link-hover);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Messages */
.message {
  padding: 12px 16px;
  border-radius: var(--fc-radius);
  margin-bottom: 16px;
  font-size: 0.9em;
  font-weight: 500;
  animation: fadeIn 0.2s ease-out;
}

.message-error {
  background: rgba(238, 95, 91, 0.1);
  color: var(--fc-danger);
  border: 1px solid rgba(238, 95, 91, 0.2);
}

.message-success {
  background: rgba(98, 196, 98, 0.1);
  color: var(--fc-success);
  border: 1px solid rgba(98, 196, 98, 0.2);
}

/* Hub welcome */
.hub-welcome {
  text-align: center;
  padding: 80px 20px;
  color: var(--fc-text-muted);
}

.hub-welcome h2 {
  font-size: 1.5em;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--fc-text);
}

.hub-welcome p {
  margin: 0;
  font-size: 1em;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  .app-container {
    padding: 16px 16px 80px;
  }

  .app-header h1 {
    font-size: 1.2em;
  }
}
