/* ===== RESET / BASE ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f9fafa;
  color: #181717;
}

/* ===== LAYOUT ===== */

header {
  background: #99aabb;
  padding: 10px;
  text-align: center;       /* centers inline images */
}
header .subtitle {
  margin-top: 8px;
  font-size: 1rem;
  color: #17191a;
  text-align: center;
}

header img {
  display: block;
  margin: 0 auto;           /* ensures centered even if parent is flex later */
  max-width: 460px;
}


.logo-img {
  width: 356px;
  height: 356px;
  object-fit: contain;
}

.logo-text h1 {
  margin: 0;
  font-size: 1.6rem;
}

.logo-text p {
  margin: 2px 0 0 10;
  font-size: 1.9rem;
  color: #111213;
}
.phrase-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.phrase-es-block {
  text-align: right;
}

.phrase-phonetic-under-es {
  font-size: 0.8rem;
  color: #0532a5;
  margin-top: 2px;
}

.app-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px;
  min-height: calc(100vh - 160px);
}

.app-footer {
  padding: 10px 14px 14px 14px;
  font-size: 0.8rem;
  text-align: center;
  color: #a0a5b2;
  border-top: 1px solid #222633;
}

/* ===== MAIN NAV BUTTONS ===== */

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-btn {
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

/* Color-code the three main views */
.nav-btn[data-view="phrasesView"] {
  background: #416f97; /* blue */
}

.nav-btn[data-view="verbsView"] {
  background: #4c834e; /* green */
}

.nav-btn[data-view="dialogsView"] {
  background: #7c501a; /* orange */
}

.nav-btn.active {
  filter: brightness(1.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.nav-btn:hover,
.nav-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.7);
}

/* ===== VIEWS ===== */

.view.hidden {
  display: none;
}

.view h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

/* ===== FILTERS ===== */

.filters-row,
.verb-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.filter-group label {
  color: #c0c5d2;
}

.filter-group select,
.filter-group input[type="text"] {
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #333946;
  background: #cecdcd;
  color: #141414;
  font-size: 0.9rem;
}

/* ===== PHRASE ACCORDION ===== */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-section {
  background: #ecedee;
  border-radius: 10px;
  border: 1px solid #222633;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: linear-gradient(90deg, #9cc9f1, #5ba3f5);
  color: #492020;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.accordion-header span.count {
  font-size: 0.8rem;
  opacity: 0.9;
}

.accordion-header span.chevron {
  font-size: 0.9rem;
}

.accordion-body {
  padding: 8px 10px 10px 10px;
}

.accordion-body.collapsed {
  display: none;
}

/* Phrase cards */

.phrase-card {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #222633;
  background: #dedfe0;
  margin-bottom: 6px;
}

.phrase-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.phrase-en {
  font-weight: 600;
  font-size: 0.95rem;
}

.phrase-es {
  color: #2e19a8;
  font-weight: 600;
  font-size: 0.95rem;
}

.phrase-meta {
  margin-top: 2px;
  font-size: 0.8rem;
  color: #0a6831;
}

/* ===== VERB LIST ===== */

.verb-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.verb-card {
  background: #e9eaec;
  border: 1px solid #222633;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.verb-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.verb-infinitive {
  font-size: 1.2rem;
  color: #9c155f;
  font-weight: 700;
}

.verb-english {
  font-size: 1.2rem;
  color: #611d5b;
  font-weight: 700;
}

.verb-tags {
  font-size: 0.75rem;
  color: #0c0335;
  margin-bottom: 4px;
}

.verb-tags span {
  margin-right: 6px;
}

.verb-forms {
  font-size: 0.8rem;
  line-height: 1.35;
}

.verb-form-row {
  display: flex;
  justify-content: space-between;
}

.verb-form-row .label {
  color: #05531c;
  margin-right: 8px;
}

/* ===== DIALOGS ===== */

.dialogs-intro {
  font-size: 0.9rem;
  color: #e91733;
  margin-bottom: 10px;
}

.dialog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dialog-card {
  background: #eaeaec;
  border-radius: 10px;
  border: 1px solid #222633;
  overflow: hidden;
}

.dialog-header {
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: linear-gradient(90deg, #c0bdbd, #242423);
  color: #a31919be;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.dialog-header span.chevron {
  font-size: 0.9rem;
}

.dialog-body {
  padding: 8px 10px 10px 10px;
}

.dialog-body.collapsed {
  display: none;
}

.dialog-line {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.dialog-speaker {
  font-weight: 600;
  color: #1b1b1b;
}

.dialog-es {
  color: #202020;
}

.dialog-en {
  color: #11097a;
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 600px) {
  .logo-row {
    flex-direction: row;
    align-items: flex-start;
  }

  .nav-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .filters-row,
  .verb-filters-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
