/* Shared stylesheet for learner UI */
:root {
  /* Warm neutral palette */
  --bg-surface: #faf8f5; /* very light warm */
  --bg-card: #ffffff; /* white cards */
  --accent-500: #a66b3c; /* warm accent */
  --accent-600: #8c572f; /* darker accent for hover */
  --text-primary: #2b2b2b;
  --text-secondary: #5a5a5a;
  --border-muted: #dcd8d0;
  --shadow-muted: rgba(0,0,0,0.05);
}

/* Typography */
body {
  font-family: "Merriweather", Georgia, serif;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  margin: 0;
  padding: 1rem;
  line-height: 1.6;
}
h1, h2, h3 {
  margin: 0.5rem 0;
  font-weight: 600;
}
.title {
  font-size: 2rem;
  text-align: center;
  padding: 1rem 0;
}
.section-title {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: var(--text-primary);
}

/* Layout */
.header {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-muted);
}
.dashboard {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 0;
}
.create-section, .courses-section {
  margin-bottom: 2rem;
}

/* Forms */
.input {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  width: 70%;
  max-width: 300px;
  margin-right: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
}
.input:focus {
  outline: none;
  border-color: var(--accent-600);
  box-shadow: 0 0 0 2px rgba(166,107,60,0.2);
}
.btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}
.btn:focus {
  outline: 2px solid var(--accent-600);
  outline-offset: 2px;
}
.btn-primary {
  background-color: var(--accent-600);
  color: white;
}
.btn-primary:hover {
  background-color: var(--accent-500);
}

.card-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.courses-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 calc(33.333% - 1rem);
  box-shadow: 0 2px 4px var(--shadow-muted);
  min-width: 200px;
}
.card a {
  text-decoration: none;
  color: var(--accent-600);
  font-size: 1.2rem;
  font-weight: 500;
}
.card a:hover {
  text-decoration: underline;
}

/* Empty state */
.empty-state {
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 1rem;
}
.hidden { display: none; }

/* Responsive */
@media (max-width: 768px) {
  .card {
    flex-basis: calc(50% - 1rem);
  }
}
@media (max-width: 480px) {
  .card {
    flex-basis: 100%;
  }
  .input {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .btn {
    width: 100%;
  }
}
