
/* ==========================================
   STĚHOVÁNÍ ROTTER – SJEDNOCENÝ MODERNÍ STYL
   Barvy: bílá, tmavá a červená
   ========================================== */

:root {
  --rotter-red: #e30613;
  --rotter-red-dark: #bd0010;
  --rotter-text: #262626;
  --rotter-muted: #626262;
  --rotter-border: #e8e8e8;
  --rotter-radius: 10px;
  --rotter-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
}

/* Čitelnost obsahu a formulářů */
.article-detail {
  color: var(--rotter-text);
  line-height: 1.7;
}

.article-detail p,
.article-detail li {
  line-height: 1.75;
}

.article-detail form {
  font-size: 12pt;
  border-radius: var(--rotter-radius);
  padding: 20px;
  box-shadow: var(--rotter-shadow);
}

@media (min-width: 768px) {
  .form-horizontal .control-label {
    text-align: left;
  }
}

/* Nadpisy */
.article-detail h1 {
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.article-detail h2 {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 18px;
  line-height: 1.3;
}

.article-detail h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 10px;
  background: var(--rotter-red);
  border-radius: 3px;
}

.article-detail h3 {
  color: var(--rotter-text);
  line-height: 1.4;
}

/* Odkazy */
.article-detail a {
  transition: color 0.2s ease;
}

.article-detail a:not(.btn):hover {
  color: var(--rotter-red-dark);
}

/* Tlačítka */
.article-detail .btn,
.btn {
  border-radius: 7px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary,
.btn-danger {
  font-weight: 600;
}

.btn-primary:hover,
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:active,
.btn-danger:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Obrázky v obsahu */
.article-detail img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-detail a img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .article-detail a img:hover {
    transform: scale(1.015);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }
}

/* Informační boxy, pokud je stránka používá */
.article-detail .info-box,
.info-box {
  border-radius: var(--rotter-radius);
  box-shadow: var(--rotter-shadow);
  transition: box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .article-detail .info-box:hover,
  .info-box:hover {
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.11);
  }
}

/* Formulářová pole */
.article-detail form input,
.article-detail form textarea,
.article-detail form select {
  max-width: 100%;
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-detail form input:focus,
.article-detail form textarea:focus,
.article-detail form select:focus {
  border-color: var(--rotter-red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.10);
  outline: none;
}

/* Přilepená hlavička – zachovat stávající chování */
.sticky-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
}

.header {
  top: 52px;
}

/* Patička */
.under-footer {
  position: sticky;
  bottom: -1px;
  z-index: 1000;
}

/* Plovoucí WhatsApp tlačítko */
.wa-btn {
  position: fixed;
  right: 15px;
  bottom: 80px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.20);
  animation: wa-pulse 2.5s infinite;
}

.wa-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.20),
      0 0 0 0 rgba(37, 211, 102, 0.45);
  }

  70% {
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.20),
      0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.20),
      0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Mobilní zařízení */
@media (max-width: 767px) {
  .article-detail h1 {
    letter-spacing: 0;
  }

  .article-detail form {
    padding: 14px;
  }

  .wa-btn {
    width: 55px;
    height: 55px;
    right: 10px;
    bottom: 70px;
  }

  .wa-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* Respektování nastavení omezení animací */
@media (prefers-reduced-motion: reduce) {
  .wa-btn {
    animation: none;
  }

  .article-detail *,
  .btn,
  .info-box {
    transition: none !important;
  }

  .article-detail a img:hover,
  .btn-primary:hover,
  .btn-danger:hover {
    transform: none;
  }
}
