:root {
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
	--max-width: 1600px;	/* var(--max-width) */
}

body { 
	font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #E6E6E6;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(0, 229, 255, 0.06),
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(124, 92, 255, 0.05),
      transparent 45%
    ),
    #0b1220;	
}

header {
	font-family: var(--font-heading);
	position: relative;
  overflow: hidden;
	background: linear-gradient(
    170deg,
    #0f1724 0%,
    #13243a 45%,
    #0c1a2b 100%
  );
	min-height:440px;	
	border-bottom: 1px solid rgba(120, 180, 255, 0.15);
	box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 40px rgba(0, 0, 0, 0.4);	
}

header::before {
	content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(0, 229, 255, 0.18) 0%,
    transparent 60%
  );
  pointer-events: none;
}

header::after {
	content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 40%,
    rgba(124, 92, 255, 0.16) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero {  
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 10px 20px 10px;
}

.hero-content {
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  font-size: 44px;
  font-weight: 700;

  color: #ffffff;
  letter-spacing: -0.03em;

  margin-bottom: 10px;

  text-shadow: 0 0 20px rgba(124, 92, 255, 0.25);
}

/* Генераторные страницы: строка 1 = просто "AI Metadata Generator", строка 2 =
   Image/Video/Audio + Free/Pro-бейдж (тот же визуальный язык, что
   .nav-label/.nav-badge в меню, layout/nav.php, цвета один в один —
   --lime/--neon-green) + тематическая иконка. Обе строки одного кегля
   (наследуют 44px/белый/glow от .hero h1). Бейдж приподнят своим align-self
   (не общим align-items строки — тот держит иконку по центру, это разные
   требования на одном ряду).
   Не-генераторные страницы (VisBreeze) сюда не попадают — см. else-ветку в
   layout/header.php, там просто голый текст внутри того же flex-column h1. */
.hero-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Image/Video/Audio — та же shimmer-техника (градиент-текст + background-
   clip), что у h1 на заглушке hub.visbreeze.com/index.php, буквально
   один в один (те же цвета/тайминг), просто здесь есть с чем сравнивать
   рядом (бейдж и иконку не трогать, 2026-08-19). */
.hero-title-text {
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--success), var(--purple));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-title-shimmer 8s linear infinite;
}

@keyframes hero-title-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-text { animation: none; }
}

.hero-badge {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  text-shadow: none;
}
.hero-badge-free { color: var(--lime); }
.hero-badge-pro  { color: var(--neon-green); }

/* Тематическая иконка (Image/Video/Audio) — переехала из шапки (.hero-icon,
   2026-08-19) в фон .top-status-bar (см. css/components/) 2026-08-20, по
   — в шапке дублировала название, в статус-баре работает как
   опознавательный водяной знак. Сама shimmer-анимация (purple → cyan →
   success по currentColor) переехала вместе с ней, см. .top-status-bar-icon. */

@keyframes hero-icon-shimmer {
  0%   { color: var(--purple); }
  33%  { color: var(--cyan); }
  66%  { color: var(--success); }
  100% { color: var(--purple); }
}

@media (prefers-reduced-motion: reduce) {
  .top-status-bar-icon { animation: none; }
}

.subtitle {
  font-size: 18px;
  color: #b8c1d1; 
}

.support-box {
  margin-top: 16px;
  display: flex;
  justify-content: center;
	gap:10px;
	flex-wrap: wrap;
}

.kofi-button {
  display: inline-block;

  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font: inherit;
  cursor: pointer;

  background: linear-gradient(90deg, #72a4f2, #00e5ff);
  color: #0b0f1a;

  font-weight: 500;
  text-decoration: none;

  transition: 0.2s ease;
}

/* SVG внутри (Give feedback) — просто пробел в разметке даёт тот же
   отступ, что и "☕ Support this project" рядом (эмодзи + пробел),
   без флекса/gap. Тут только вертикальная подгонка под базовую линию. */
.kofi-button svg {
  vertical-align: -3px;
}

.kofi-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(114, 164, 242, 0.4);
}

.privacy {
  font-size: 13px;
  color: #7c8599;
  margin-top: 10px;
	opacity: 0.8;
}

.features-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px auto;
    max-width: 100%;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(99, 179, 237, 0.3);
    border-left: 5px solid #63b3ed;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: #c0caf5;
}

.tooltip-trigger {
    position: relative;
    cursor: help;
}

/* Кликабельные элементы с тултипом (ссылки, кнопки, переключатели) должны
   сохранять обычный курсор "рука" — иначе "?" от .tooltip-trigger перебивает
   ожидаемый cursor:pointer и непонятно, что на элементе можно нажать.
   Только реальные toggle-переключатели (визуально кликабельны) — НЕ все
   <label>: обычные подписи полей (.settings-field-label) и строки-обёртки
   вида <label class="kr-field-row">…<textarea></label> — это просто текст/
   поле ввода, а не кнопка, им курсор "?" уместен. */
a.tooltip-trigger,
button.tooltip-trigger,
.settings-toggle-switch.tooltip-trigger,
.custom-toggle-label.tooltip-trigger,
.tooltip-trigger[role="button"] {
    cursor: pointer;
}

.tooltip {
    /* position:fixed + top/left выставляются в JS (tooltips.js: show()) —
       попап живёт как прямой потомок <body>, а не внутри .tooltip-trigger,
       поэтому не обрезается overflow:hidden/auto никакого предка (боковая
       панель, модалка со скроллом) и не раздвигает scroll-область страницы. */
    visibility: hidden;
    opacity: 0;
    position: fixed;
    background: rgba(15, 25, 50, 0.95);
    border: 1px solid rgba(99, 179, 237, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #c0caf5;
    width: max-content;
    max-width: min(500px, 90vw);
    white-space: normal;
    text-align: left;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 10000;
}

/* Абзацы в многострочных тултипах (Export CSV/ZIP/Folder и т.п.) — строки
   TOOLTIP_* в main.js всех генераторов по-прежнему пишут
   их через "<br><br>", но updateExportButtonInfo() в batch-export.js
   разбивает это на настоящие <p> перед вставкой в DOM (см. комментарий
   там) — никаких хаков с высотой <br> больше не нужно, отступ обычным
   margin. */
.tooltip p {
    margin: 0 0 10px 0;
}
.tooltip p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .tooltip {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 80vw;
    }
}

.tooltip.tt-visible {
    visibility: visible;
    opacity: 0.92;
}

main {
   
  min-height: calc(100vh - 440px - 200px);
  color: #e6e6e6;
	padding:20px;
	max-width: var(--max-width);
	margin: 0 auto;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);

  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.3;
}



/* ********************* */

.footer {
  min-height:200px;
	padding: 40px 20px 20px;

  background:
    linear-gradient(
      180deg,
      rgba(11, 18, 32, 0.5),
      rgba(11, 18, 32, 1)
    );

  border-top: 1px solid rgba(124, 92, 255, 0.15);

  backdrop-filter: blur(12px);

  color: #b8c1d1;
}

/* Раньше flex + justify-content:space-between на 3 неравных по ширине
   колонках (.footer-left/.footer-center/.footer-support) — .footer-center
   у себя внутри центрировал nav-ссылки/Product Hunt badge, но САМА колонка
   позиционировалась распределением space-between, а не центром всей
   строки футера — визуально выглядело "не по центру" при неравных по
   ширине соседних колонках (найдено по репорту пользователя 2026-08-25).
   Grid с явной средней колонкой даёт настоящее центрирование независимо
   от ширины left/support. */
.footer-inner {
  max-width: calc(var(--max-width) - 50px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;

  gap: 30px;
}

.footer-left    { justify-self: start; }
.footer-center  { justify-self: center; }
.footer-support { justify-self: end; }

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-left, .footer-center, .footer-support {
    justify-self: center;
  }
}

.brand {
  font-size: 16px;
  font-weight: 600;

  color: #ffffff;

  text-shadow: 0 0 12px rgba(124, 92, 255, 0.2);
}

.desc {
  font-size: 13px;
  color: #7c8599;

  margin-top: 6px;
  max-width: 240px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: #7aa2ff;
  text-decoration: none;

  transition: 0.2s ease;
}

.footer-links a:hover {
  color: #00e5ff;

  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.kofi-footer {
  display: inline-block;

  padding: 8px 12px;

  border-radius: 10px;

  background: linear-gradient(90deg, #72a4f2, #00e5ff);

  color: #0b1220;

  font-weight: 600;

  text-decoration: none;

  transition: 0.2s ease;
}

.kofi-footer:hover {
  transform: translateY(-2px);

  box-shadow:
    0 0 18px rgba(114, 164, 242, 0.3),
    0 0 40px rgba(0, 229, 255, 0.15);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 14px;

  border-top: 1px solid rgba(255, 255, 255, 0.05);

  text-align: center;

  font-size: 12px;
  color: #7c8599;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.footer-legal-links a {
  font-size: 12px;
  color: #7c8599;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-legal-links a:hover {
  color: #7aa2ff;
}

.footer-ph-badge {
	margin-top: 12px;
	display: flex;
	justify-content: center;
	width: 100%;
}

.footer-ph-badge img {
	display: block;
}

.footer-center{
	display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}