:root {
  --footer-color: rgb(200, 16, 46);
  --light-color: #ffffff;
  --hover: black;
  --myWebsite: cornflowerblue;
}

footer img {
  width: 20px;
  height: 20px;
}

.footer {
  background-color: var(--footer-color);
  color: var(--light-color);
  padding: 3rem 0 1.2rem;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== LAYOUT DESKTOP ===== */
.footer-content {
  display: flex;
  flex-direction: column;    /* vše pod sebe */
  align-items: center;       /* na střed */
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* klik pouze na skutečném tlačítku */
.footer-links,
.footer-social {
  pointer-events: none;
}
.footer-links button,
.footer-social button {
  pointer-events: auto;
}

/* textové odkazy */
.footer-links button {
  background: none;
  border: none;
  color: var(--light-color);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: color .2s, transform .05s;
}

.footer-links button:hover,
.footer-links button:focus-visible {
  color: var(--hover);
  outline: none;
}

/* ikony – čisté, bez rámečku a podbarvení */
.footer-social button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.footer-social button:hover,
.footer-social button:focus-visible {
  transform: scale(1.1); /* jemné zvětšení při hoveru */
  outline: none;
}

/* ===== TOOLTIPY ===== */
.footer-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-tooltip-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  top: 30px;
  width: max-content;
  background-color: rgba(0,0,0,.9);
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 2;

  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.footer-tooltip:hover .footer-tooltip-text,
.footer-tooltip:focus-within .footer-tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== spodní lišta ===== */
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.footer-cr {
  text-align: center;
}

.myWebsite {
  color: var(--myWebsite);
  text-decoration: none;
  font-weight: 600;
}

.myWebsite:hover {
  text-decoration: underline;
}

/* ---------- RESPONZIVITA ---------- */
@media (max-width: 600px) {
  .footer {
    padding: 2rem 0 1rem;
  }

  .footer-links button,
  .footer-social button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    text-align: center;
  }

  .footer-bottom {
    margin-top: 1rem;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-tooltip-text { transition: none; }
}
