/* ========================================
   HERO
   ======================================== */

.irregular-verbs__hero {
  max-width: 800px;

  margin: 3rem auto 2rem;

  text-align: center;
}

.irregular-verbs__hero h1 {
  margin: 0;

  color: var(--heading-color);

  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.irregular-verbs__hero p {
  max-width: 700px;

  margin: 1rem auto 0;

  color: #425875;

  font-size: 1.15rem;
  line-height: 1.6;
}

/* ========================================
   LEVEL FILTER
   ======================================== */

.level-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;

  margin: 2rem 0 2.5rem;
}

.level-filter__button {
  min-width: 5rem;

  padding: 0.75rem 1.5rem;

  border: none;
  border-radius: 999px;

  background-color: #ffffff;

  color: var(--heading-color);

  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;

  box-shadow: 0 0.25rem 1rem rgb(15 39 71 / 0.05);

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.level-filter__button:hover {
  transform: translateY(-1px);

  box-shadow: 0 0.35rem 1.25rem rgb(15 39 71 / 0.08);
}

.level-filter__button--active {
  background-color: var(--primary-color);
  color: var(--text-color-of-primary);

  box-shadow: 0 0.35rem 1rem rgb(0 157 197 / 0.2);
}

/* ========================================
   VERB LIST
   ======================================== */

.irregular-verbs__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.irregular-verbs__actions {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.translate-all-button {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background-color: #0aa3c7;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.translate-all-button:hover {
  background-color: #078eae;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.translate-all-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ========================================
   VERB CARD
   ======================================== */

.irregular-verb-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 1.75rem;
  background-color: #ffffff;
  border: 1px solid rgb(15 39 71 / 0.04);
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgb(15 39 71 / 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.irregular-verb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 2rem rgb(15 39 71 / 0.09);
}

/* ========================================
   VERB HEADER
   ======================================== */

.irregular-verb-card__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.irregular-verb-card__level {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  background-color: #eaf7fb;
  border-radius: 0.5rem;
}

.irregular-verb-card__verb {
  margin: 0;
  color: var(--heading-color);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

/* ========================================
   AUDIO BUTTON
   ======================================== */

.irregular-verb-card__audio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 2.75rem;
  height: 2.75rem;

  padding: 0;

  border: none;
  border-radius: 50%;

  background-color: #eaf5fb;

  color: var(--primary-color);

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.irregular-verb-card__audio-button:hover {
  background-color: var(--tertiary-color);

  color: var(--hover-color-of-button-primary);

  transform: scale(1.05);
}

.irregular-verb-card__audio-button:active {
  transform: scale(0.95);
}

.irregular-verb-card__audio-button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.irregular-verb-card__audio-button--speaking {
  background-color: var(--primary-color);
  color: var(--text-color-of-primary);

  transform: scale(1.05);
}

.irregular-verb-card__audio-button svg {
  width: 1.25rem;
  height: 1.25rem;

  fill: none;

  stroke: currentColor;
  stroke-width: 2;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========================================
   VERB FORMS
   ======================================== */

.irregular-verb-card__forms {
  display: grid;
  grid-template-columns: 1fr 1fr;

  margin-bottom: 1.5rem;

  border-bottom: 1px solid #e3eaf2;
}

.irregular-verb-card__form {
  padding-bottom: 1.25rem;
}

.irregular-verb-card__form + .irregular-verb-card__form {
  padding-left: 1.5rem;

  border-left: 1px solid #e3eaf2;
}

.irregular-verb-card__form-label {
  display: block;

  margin-bottom: 0.5rem;

  color: var(--primary-color);

  font-size: 0.95rem;
  font-weight: 700;
}

.irregular-verb-card__form--participle .irregular-verb-card__form-label {
  color: #159447;
}

.irregular-verb-card__form-value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: #172b46;
}

.irregular-verb-card__form-word {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.irregular-verb-card__form-separator {
  display: inline-block;
}
/* ========================================
   INFORMATION
   ======================================== */

.irregular-verb-card__section {
  margin-bottom: 1.25rem;
}

.irregular-verb-card__section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  margin-bottom: 0.4rem;

  color: #0563d8;

  font-size: 0.95rem;
  font-weight: 700;
}

.irregular-verb-card__section--example .irregular-verb-card__section-label {
  color: var(--example-color);
}

.irregular-verb-card__section-icon {
  font-size: 1rem;
}

.irregular-verb-card__section-text {
  margin: 0;

  padding-left: 1.5rem;

  color: #172b46;

  font-size: 0.95rem;
  line-height: 1.5;
}

.irregular-verb-card__translation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background-color: #f1f9fb;
}

.irregular-verb-card__translation:empty {
  display: none;
}

.irregular-verb-card__translation-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

.irregular-verb-card__translation-value {
  font-size: 15px;
  font-weight: 600;
  color: #0aa3c7;
}

/* ========================================
   CARD FOOTER
   ======================================== */

.irregular-verb-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: auto;
}

.irregular-verb-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid #b9d9ff;
  border-radius: 0.65rem;
  background: #f0f7ff;
  color: var(--primary-color);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.irregular-verb-card__action:not(:disabled):hover {
  border-color: var(--primary-color);
  background: var(--secondary-background-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgb(0 157 197 / 12%);
}

.irregular-verb-card__action:not(:disabled):active {
  transform: translateY(0);
  box-shadow: none;
}

.irregular-verb-card__action--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.irregular-verb-card__action--disabled:hover {
  color: var(--primary-color);
  transform: none;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;

  margin: 2rem 0 3rem;
}

.pagination__button {
  min-width: 2.5rem;
  height: 2.5rem;

  padding: 0 0.75rem;

  border: 1px solid #cfe1f7;
  border-radius: 0.75rem;

  background-color: #ffffff;

  color: var(--heading-color);

  font-weight: 600;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.pagination__button:hover {
  background-color: #eaf5fb;
}

.pagination__button--active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);

  color: var(--text-color-of-primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1050px) {
  .irregular-verbs__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .irregular-verbs__hero {
    margin-top: 2rem;
  }

  .irregular-verbs__hero h1 {
    font-size: 2.25rem;
  }

  .irregular-verbs__hero p {
    font-size: 1rem;
  }

  .level-filter {
    justify-content: center;

    overflow-x: auto;

    padding-bottom: 0.25rem;
  }

  .level-filter__button {
    min-width: 4rem;

    padding: 0.65rem 1rem;
  }

  .irregular-verbs__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  .irregular-verb-card {
    min-height: auto;

    padding: 1.25rem;
  }

  .irregular-verb-card__verb {
    font-size: 1.75rem;
  }

  .irregular-verb-card__forms {
    grid-template-columns: 1fr;
  }

  .irregular-verb-card__form + .irregular-verb-card__form {
    padding-top: 1rem;
    padding-left: 0;

    border-top: 1px solid #e3eaf2;
    border-left: none;
  }
}
