/* COSYdata "Core Verbs" tool. Page-level styles only: the palette comes from
   tokens.css and the shared dictionary chrome from dictionary-ui.css. */

:root {
  --cosy-bg: var(--cosy-color-cream, #fdfcf8);
  --cosy-card-bg: var(--cosy-color-warm-white, #ffffff);
  --t10-soft: var(--cosy-color-sage-mist, #f3f4f1);
  --t10-soft2: var(--cosy-color-cream-dark, #f9f8f3);
  --t10-soft3: var(--cosy-color-sage-mist, #eef2ed);
  --t10-line: var(--cosy-color-border, #f0f0f0);
  --cosy-text: var(--cosy-color-ink, #2a2a2a);
  --cosy-muted: var(--cosy-color-ink-soft, #666666);
  --cosy-sage: var(--cosy-ink-sage, #416b49);
  --cosy-sage-light: var(--cosy-color-sage-light, #eaf1eb);
  --cosy-border: var(--cosy-color-border, rgba(65, 107, 73, 0.15));
  --cosy-accent: var(--cosy-ink-honey, #945E05);
  --cosy-accent-bg: var(--cosy-color-honey-pale, #fef3c7);
  --cosy-radius: 12px;
  --cosy-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--cosy-bg);
  color: var(--cosy-text);
  font-family: var(--cosy-font-sans, 'Nunito', 'DM Sans', sans-serif);
  line-height: 1.6;
}
.hero {
  background-color: var(--cosy-card-bg);
  border-bottom: 1px solid var(--cosy-border);
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(65, 107, 73, 0.06);
}
.hero-badge {
  display: inline-block;
  background-color: var(--cosy-sage-light);
  color: var(--cosy-sage);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--cosy-font-serif, 'Fraunces', 'Lora', serif);
  font-size: 34px;
  margin: 0 0 10px 0;
  color: var(--cosy-sage);
}
.hero-subtitle {
  font-size: 16px;
  color: var(--cosy-muted);
  max-width: 720px;
  margin: 0 auto 20px auto;
}
.hero-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--t10-soft);
  color: var(--cosy-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.pill-btn:hover, .pill-btn.active {
  background: var(--cosy-sage);
  color: #ffffff;
}

.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Filter Controls */
.filter-card {
  background-color: var(--cosy-card-bg);
  border: 1px solid var(--cosy-border);
  border-radius: var(--cosy-radius);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--cosy-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--cosy-sage);
}
.btn-toggle {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--cosy-border);
  background: var(--t10-soft2);
  color: var(--cosy-text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-toggle:hover {
  background: var(--t10-soft3);
  border-color: var(--cosy-sage);
}
.btn-toggle.active {
  background: var(--cosy-fill-sage, #375742);
  color: var(--cosy-on-brand, #ffffff);
  border-color: var(--cosy-fill-sage, #375742);
}

select, input[type="text"] {
  padding: 8px 12px;
  border: 1px solid var(--cosy-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: var(--cosy-card-bg);
}
select:focus, input[type="text"]:focus {
  border-color: var(--cosy-sage);
  box-shadow: 0 0 0 3px rgba(65, 107, 73, 0.1);
}

/* Verb Display Grid */
.verbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}
.verb-card {
  background: var(--cosy-card-bg);
  border: 1px solid var(--cosy-border);
  border-radius: var(--cosy-radius);
  padding: 20px;
  box-shadow: var(--cosy-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.verb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.verb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--cosy-border);
}
.verb-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cosy-sage);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.part-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--cosy-accent-bg);
  color: var(--cosy-accent);
  padding: 2px 8px;
  border-radius: 4px;
}
.verb-infinitive {
  font-size: 16px;
  font-weight: 700;
  color: var(--cosy-text);
  margin-bottom: 6px;
}
.verb-notes {
  font-size: 12px;
  color: var(--cosy-muted);
  background-color: var(--t10-soft2);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  line-height: 1.4;
  border-left: 3px solid var(--cosy-sage);
}

.conjugation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.conjugation-table th, .conjugation-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--t10-line);
  text-align: left;
}
.conjugation-table th {
  background-color: var(--cosy-sage-light);
  color: var(--cosy-ink-sage, #416b49);
  font-weight: 700;
}
.conjugation-table tr:last-child td {
  border-bottom: none;
}
.pronoun-col {
  color: var(--cosy-muted);
  font-weight: 600;
  width: 45%;
}
.verb-col {
  font-weight: 700;
  color: var(--cosy-text);
}

.footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  border-top: 1px solid var(--cosy-border);
  color: var(--cosy-muted);
  font-size: 14px;
}

html[data-theme="dark"] .hero { background-color: var(--cosy-card-bg); }
