/*
 * main.css — Globální styly
 * Paleta: černá (#1a1a1a) + červená (#e0292e) + šedá (#888888)
 * Fonty: Montserrat (headings) + Inter (body)
 * Závisí na: variables.css, reset.css
 */

/* ===== BASE ===== */

html {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

body {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  overflow-x: hidden;
}

/* ===== TYPOGRAFIE ===== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

h1 { font-size: var(--text-5xl); font-weight: var(--font-weight-black); }
h2 { font-size: var(--text-4xl); font-weight: var(--font-weight-black); }
h3 { font-size: var(--text-3xl); font-weight: var(--font-weight-bold); }
h4 { font-size: var(--text-2xl); font-weight: var(--font-weight-bold); }
h5 { font-size: var(--text-xl);  font-weight: var(--font-weight-semibold); }
h6 { font-size: var(--text-lg);  font-weight: var(--font-weight-semibold); }

p {
  color: var(--color-text);
  line-height: var(--line-height-loose);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

/* Focus visible — klávesnicová přístupnost */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

strong, b {
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

/* ===== UTILITY — TEXT ===== */

.text-primary  { color: var(--color-primary); }
.text-accent   { color: var(--color-accent); }
.text-muted    { color: var(--color-text-muted); }
.text-inverted { color: var(--color-text-inverted); }
.text-center   { text-align: center; }
.text-left     { text-align: left; }
.text-right    { text-align: right; }
.text-upper    { text-transform: uppercase; letter-spacing: var(--letter-spacing-caps); }

/* ===== UTILITY — SPACING ===== */

.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }

/* ===== SR-ONLY — přístupnost ===== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== LOGO LINKA (dekorativní prvek z vizuální identity) ===== */

.logo-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-neutral);
}

/* ===== HR DIVIDER ===== */

hr,
.divider {
  border: none;
  height: 1px;
  background-color: var(--color-border);
  margin-block: var(--space-8);
}

/* ===== OBRÁZKY ===== */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== OBAL STRÁNKY ===== */

/* Placeholder obrázky — tmavě šedý box s textem */
.img-placeholder {
  background-color: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  font-size: var(--text-sm);
  font-family: var(--font-heading);
  letter-spacing: var(--letter-spacing-wide);
  min-height: 200px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border-strong);
}

/* ===== ČERVENÁ TEČKA — ikonický prvek z loga ===== */

/* Použití: <span aria-hidden="true" class="red-dot"></span> */
.red-dot {
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  vertical-align: middle;
  margin-inline: 0.05em;
}
