/* Адаптивные размеры шрифтов */
:root {
  --font-size-base: clamp(0.95rem, 0.85rem + 0.5vw, 1rem);
  --font-size-title: clamp(1.3rem, 1.1rem + 0.8vw, 1.5rem);
  --font-size-list: clamp(0.9rem, 0.8rem + 0.4vw, 0.95rem);
  --font-size-small: clamp(0.85rem, 0.75rem + 0.4vw, 0.9rem);
}

html,
body {
  font-size: var(--font-size-base);
  background: hsl(43, 40%, 96%) !important; /* Мягкий кремовый фон */
  min-height: 100vh;
}

/* Убираем фон у секций и контейнеров Bulma */
.section,
.container,
.columns,
.column {
  background: transparent !important;
}

/* Контейнер с тенью для основных блоков */
.content-card {
  background: hsl(0, 0%, 100%);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.75rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

/* Поддержка темной темы */
@media (prefers-color-scheme: dark) {
  html,
  body {
    background: hsl(0, 0%, 7%) !important; /* Темный фон для темной темы */
  }

  .content-card {
    background: hsl(0, 0%, 14%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .log-list-item:hover {
    background-color: rgba(255, 221, 87, 0.15);
  }

  .fab-menu button {
    background: hsl(0, 0%, 21%);
    border-color: hsl(0, 0%, 30%);
  }

  .fab-menu button:hover {
    background: hsl(0, 0%, 28%);
  }
}

/* Адаптивные заголовки */
.adaptive-title {
  font-size: var(--font-size-title);
  font-weight: 600;
}

/* Адаптивный текст списка */
.adaptive-list-item {
  font-size: var(--font-size-list);
  padding: 0.5rem 0.25rem;
}

/* Адаптивный обычный текст */
.adaptive-text {
  font-size: var(--font-size-base);
}

/* Адаптивный мелкий текст */
.adaptive-small {
  font-size: var(--font-size-small);
}

/* FAB стили */
.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.fab-main {
  background: #ffcc00;
  border-radius: 50%;
  padding: 16px 20px;
  font-size: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.fab-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 75px;
  right: 0;
  gap: 15px;
}

.fab-menu button {
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;

  width: 48px;
  height: 48px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
}

.fab-menu button:hover {
  background: #f0f0f0;
}

.hidden {
  display: none;
}

/* Улучшенная читаемость для списков логов */
.log-list-item {
  transition: background-color 0.2s;
  border-radius: 4px;
  padding: 0.5rem 0.25rem;
}

.log-list-item:hover {
  background-color: rgba(255, 221, 87, 0.1);
}
