/* ==========================================================================
   porovnani.css - Srovnávací stránky modelů (/porovnani)
   ========================================================================== */

/* Verdikt - answer-first odstavec pod nadpisem */
.cmp-verdict {
  max-width: 760px; margin: 0 auto 40px;
  font-size: 17px; line-height: 1.7; color: var(--gray-600);
  text-align: center;
}

/* Duel - dva stroje vedle sebe */
.cmp-duel {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 24px; align-items: stretch; max-width: 960px; margin: 0 auto;
}
.cmp-machine {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.cmp-machine-img {
  display: flex; align-items: center; justify-content: center;
  flex: 1; width: 100%;
}
.cmp-machine-img img {
  max-width: 100%; height: auto; border-radius: 12px;
  transition: transform var(--transition-base);
}
.cmp-machine:hover .cmp-machine-img img { transform: scale(1.04); }
.cmp-machine-name {
  font-size: 20px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--navy); margin: 16px 0 4px;
}
.cmp-machine-price {
  font-size: 18px; font-weight: 700; color: var(--teal); margin: 0 0 16px;
}
.cmp-machine .btn {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark, #177D8B) 100%);
  box-shadow: 0 6px 18px rgba(30, 154, 171, 0.35);
  border: none; border-radius: 10px;
  padding: 14px 30px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.cmp-machine .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(30, 154, 171, 0.45);
}
.cmp-machine .btn .btn-arrow {
  display: inline-block;
  transition: transform var(--transition-base);
}
.cmp-machine .btn:hover .btn-arrow { transform: translateX(4px); }
.cmp-vs {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: 0.5px; flex-shrink: 0;
  align-self: center;
  animation: cmp-vs-pulse 2.4s ease-in-out infinite;
}
@keyframes cmp-vs-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 154, 171, 0.35); }
  50%      { box-shadow: 0 0 0 12px rgba(30, 154, 171, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-vs { animation: none; }
}

/* Srovnávací tabulka */
.cmp-table-section { background: var(--gray-50); }
.cmp-table-wrap { overflow-x: visible; }
@media (max-width: 720px) {
  /* Na mobilu horizontalni scroll (sticky svisle nefunguje uvnitr overflow kontejneru) */
  .cmp-table-wrap { overflow-x: auto; }
}
.cmp-table thead th {
  position: sticky;
  top: 80px; /* vyska fixni hlavicky webu */
  z-index: 5;
}
@media (max-width: 900px) {
  .cmp-table thead th { top: 70px; }
}
.cmp-th-machine {
  display: inline-flex; align-items: center; gap: 10px;
}
.cmp-th-machine img {
  width: 56px; height: 42px; object-fit: contain;
  background: var(--white); border-radius: 6px;
  flex-shrink: 0;
}
.cmp-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: 12px; font-size: 15px;
}
.cmp-table thead th:first-child { border-top-left-radius: 12px; }
.cmp-table thead th:last-child  { border-top-right-radius: 12px; }
.cmp-table th, .cmp-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.cmp-table thead th {
  background: var(--navy); color: var(--white);
  text-transform: uppercase; letter-spacing: 0.5px; font-size: 13px;
}
.cmp-table tbody th[scope="row"] {
  font-weight: 500; color: var(--gray-500); width: 30%;
}
.cmp-table tbody tr:nth-child(even) { background: var(--gray-50); }
.cmp-table tbody tr { transition: background var(--transition-base); }
.cmp-table tbody tr:hover { background: rgba(30, 154, 171, 0.07); }
.cmp-table tbody tr.cmp-diff th[scope="row"] { position: relative; padding-left: 30px; }
.cmp-table tbody tr.cmp-diff th[scope="row"]::before {
  content: ''; position: absolute; left: 14px; top: 18px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
}
.cmp-table.cmp-diff-only tbody tr.cmp-same { display: none; }

/* Nástroje nad tabulkou */
.cmp-table-tools {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 14px;
}
.cmp-toggle-diff {
  background: var(--white); color: var(--teal);
  border: 2px solid var(--teal); border-radius: 8px;
  padding: 10px 18px; font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
  font-family: inherit;
}
.cmp-toggle-diff:hover, .cmp-toggle-diff[aria-pressed="true"] {
  background: var(--teal); color: var(--white);
}
.cmp-diff-legend { font-size: 13px; color: var(--gray-500); display: inline-flex; align-items: center; gap: 6px; }
.cmp-diff-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block;
}

/* Pro koho karty */
.cmp-forwho-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.cmp-forwho-card {
  background: var(--gray-50); border-radius: 12px; padding: 28px 24px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.cmp-forwho-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(15, 30, 46, 0.08);
}
.cmp-forwho-card h3 {
  font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--teal); margin: 0 0 14px;
}
.cmp-forwho-card ul { margin: 0; padding: 0; list-style: none; }
.cmp-forwho-card li {
  padding: 7px 0 7px 26px; position: relative;
  color: var(--gray-600); line-height: 1.5;
}
.cmp-forwho-card li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.cmp-cta-note {
  margin-top: 32px; text-align: center; font-size: 16px; color: var(--gray-600);
}
.cmp-cta-note a { color: var(--teal); font-weight: 600; }

/* Přehled srovnání (/porovnani) */
.cmp-listing {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 960px; margin: 0 auto;
}
.cmp-listing-card {
  display: block; background: var(--white); border: 1px solid var(--gray-100);
  border-radius: 12px; padding: 24px; text-decoration: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.cmp-listing-card:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 30px rgba(15, 30, 46, 0.1);
  transform: translateY(-4px);
}
.cmp-listing-card { will-change: transform; }
.cmp-listing-card:hover .cmp-listing-link { text-decoration: underline; }
.cmp-listing-imgs {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 16px;
}
.cmp-listing-imgs img { max-width: 42%; height: auto; border-radius: 8px; }
.cmp-listing-vs {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.cmp-listing-card h2 {
  font-size: 17px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--navy); margin: 0 0 8px; text-align: center;
}
.cmp-listing-link {
  display: block; text-align: center; color: var(--teal); font-weight: 600; font-size: 15px;
}


/* Sekce kategorií na přehledu */
.cmp-cat-section { margin-top: 48px; }
.cmp-cat-title {
  font-size: 22px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--navy); margin: 0 0 20px; text-align: center;
}
.cmp-listing-card h3 {
  font-size: 17px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--navy); margin: 0 0 8px; text-align: center;
}


/* FAQ sekce na porovnani - odlisene pozadi od okolnich sekci */
.cmp-faq {
  background: linear-gradient(180deg, rgba(30, 154, 171, 0.10) 0%, rgba(30, 154, 171, 0.05) 100%);
}


/* Disclaimer pod tabulkou / vypisem */
.cmp-disclaimer {
  margin-top: 16px; text-align: center;
  font-size: 13px; color: var(--gray-400); font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .cmp-duel { grid-template-columns: 1fr; gap: 12px; }
  .cmp-vs { margin: 0 auto; }
  .cmp-forwho-grid { grid-template-columns: 1fr; }
  .cmp-listing { grid-template-columns: 1fr; }
  .cmp-table th, .cmp-table td { padding: 10px 12px; font-size: 14px; }
}
