/* ==========================================================================
   БАЗОВЫЕ СТИЛИ: ДЛЯ МОБИЛЬНЫХ (По умолчанию, 1-2 карточки в ряд)
   ========================================================================== */

/* Контейнер сетки Views вывод актрис*/
.view-frontpage > .view-content,
.view-taxonomy-term > .view-content {
  display: grid;
  grid-template-columns: repeat(
    2,
    1fr
  ); /* На телефонах делаем по 2 компактные карточки в ряд */
  gap: 12px; /* Отступы между карточками */
  padding: 10px;
}

/* Контейнер для поля страны на карточке */
.views-row .views-field-field-country {
  padding: 0 10px 10px 10px; /* Отступы внутри карточки */
  text-align: center;
  font-size: 1.4rem;
}

/* Сама ссылка на страну */
.views-row .views-field-field-country a {
  color: var(--text-gray, #aaa); /* Делаем цвет по умолчанию поспокойнее */
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-smooth);
}

/* Эффект при наведении на страну */
.views-row .views-field-field-country a:hover {
  color: var(--gold); /* Подсвечиваем золотым при наведении */
  text-decoration: underline; /* Можно добавить легкое подчеркивание */
}

/* Стилизация картинки внутри карточки */
.views-row .views-field-field-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Текстовый блок карточки (Имя, инфо) */
.views-row .views-field-title {
  padding: 10px;
  text-align: center;
}

.views-row .views-field-title a {
  color: var(--text-white);
  font-weight: bold;
  font-size: 1.6rem;
  text-decoration: none;
}
.views-row .views-field-title a:hover {
  color: var(--gold);
}

.actress {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  transition:
    transform 0.3s,
    border-color 0.3s;
  cursor: pointer;
}

.actress__text {
  padding: 1.5rem;
}
.actress__name {
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.actress__country-age {
  font-size: 1.3rem;
}

.all-content {
  min-height: 65vh;
}

.actress:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.view-similar > .view-content {
  display: grid;
  grid-template-columns: repeat(
    1,
    1fr
  ); /* На телефонах делаем по 2 компактные карточки в ряд */
  gap: 12px; /* Отступы между карточками */
  padding: 10px;
}

/* Страницы всех стран и других таксономий */

/* Контейнер сетки Views для вывода всех терминов таксономии */
.view-page-country > .view-content,
.view-page-breast > .view-content,
.view-page-year-of-career-completion > .view-content,
.view-page-year-of-death > .view-content,
.view-page-appearance > .view-content,
.view-page-breast-size > .view-content,
.view-page-career-start > .view-content,
.view-page-career-status > .view-content,
.view-page-eye-color > .view-content,
.view-page-hair-color > .view-content,
.view-page-piercing > .view-content,
.view-page-shoe-size > .view-content,
.view-page-tags > .view-content,
.view-page-tattoo > .view-content,
.view-page-zodiac-sign > .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
}

.country-card,
.card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  padding: 1.5rem 1.8rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition:
    filter 0.3s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.card {
  flex-direction: column;
  font-size: 1.3rem;
  position: relative;
}

.card .card-name a {
  text-decoration: none;
  color: inherit;
}

.card .card-name a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.country-card:hover,
.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  filter: brightness(1.35);
}

.country-flag {
  font-size: 4rem;
}

.country-info {
  display: flex;
  flex-direction: column;
  font-size: 1.3rem;
}

.country-name,
.card-name a {
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 3px;
  font-size: 1.5rem;
}

.country-count,
.card-count {
  color: #9ca3af;
}

/* ==========================================================================
   АДАПТИВ: ДЛЯ ПЛАНШЕТОВ (Экран от 350px и шире — 2 карточки в ряд)
   ========================================================================== */
@media screen and (min-width: 350px) {
  .view-similar > .view-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ==========================================================================
   АДАПТИВ: ДЛЯ ПЛАНШЕТОВ (Экран от 768px и шире — 3 карточки в ряд)
   ========================================================================== */
@media screen and (min-width: 768px) {
  .view-frontpage > .view-content,
  .view-taxonomy-term > .view-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .view-similar > .view-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .views-row .views-field-field-photo img {
    height: 280px; /* На больших экранах можно сделать фото повыше */
  }
}

/* ==========================================================================
   АДАПТИВ: ДЛЯ ПК (Экран от 1024px и шире — 4 карточки в ряд)
   ========================================================================== */
@media screen and (min-width: 1024px) {
  .view-frontpage > .view-content,
  .view-taxonomy-term > .view-content {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
  }

  .view-similar > .view-content {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1200px;
    margin: 0 auto;
  }
}
