/* Переменные для Светлой темы */
:root[data-theme='light'] {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #ffffff;
    --accent-color: #bd1c1c;
}

/* Переменные для темной темы */
:root[data-theme='dark'] {
    --bg-color: #121212;
    --text-color: #f8f9fa;
    --card-bg: #1e1e1e;
    --accent-color: #2ecc71;
}

/* Базовые стили сайта */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

/* Стили для шапки */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.navigation a {
    color: var(--text-color);
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
}

.theme-btn {
    background: none;
    border: 1px solid var(--text-color);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 16px;
}

/* Фишка: Адаптивная CSS-сетка для карточек */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Стили карточек */
.category-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Эффект при наведении на карточку */
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
}
/* Плавный скролл для всего сайта */
html {
    scroll-behavior: smooth;
}

/* Стили секции квиза */
.quiz-section {
    padding: 60px 20px;
    margin-top: 50px;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.question-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.option-btn {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s, transform 0.1s;
}

.option-btn:hover:not(:disabled) {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.01);
}

.quiz-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin: 0 auto;
}
/* Стили для внутренних страниц героинь */
.profile-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  font-family: sans-serif;
}

.back-link {
  display: inline-block;
  color: #00bfa5; /* Цвет кнопок "Узнать больше" */
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 30px;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.8;
}

.profile-card {
  background: #222222; /* Темный фон под стиль сайта */
  border: 1px solid #333333;
  border-radius: 16px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.profile-img-wrap {
  width: 300px;
  min-width: 300px;
  height: 400px;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-info {
  padding: 40px;
  color: #ffffff;
}

.profile-name {
  font-size: 2rem;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.profile-status {
  font-size: 1rem;
  color: #00bfa5; 
  margin: 0 0 20px 0;
  font-weight: 600;
}

.profile-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #cccccc;
  margin: 0;
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
  }
  .profile-img-wrap {
    width: 100%;
    min-width: 100%;
    height: 300px;
  }
  .profile-info {
    padding: 25px;
  }
}