/*
 * =====================================================================
 *  rumcajzl-blog.css  –  v4
 *  Styly pro blogové články na Rumcajzl.cz (Shoptet editor)
 *
 *  Barvy ověřeny ze živého webu (duben 2025):
 *    #272727  primární tmavá    #c79040  zlatavá akcent
 *    #1f1f1f  text              #fbfbfb  pozadí stránky
 *    Open Sans – tělo  |  Poppins – nadpisy  |  border-radius: 12px
 *
 *  Pozor: Shoptet používá html{font-size:62.5%} → 1rem=10px
 *  Proto fonty určujeme v px nebo em (nikoli rem).
 * =====================================================================
 */

/* ==========================================================================
   TABULKY
   ========================================================================== */

main.content table,
article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5em 0 2em;
  font-size: 16px;
  font-family: "Open Sans", sans-serif;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* Caption – popis nad tabulkou */
main.content table caption,
article table caption {
  caption-side: top;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #c79040;
  margin-bottom: .5em;
  text-align: left;
  padding-left: 2px;
}

/* Záhlaví */
main.content table thead th,
article table thead th {
  background: #272727;
  color: #fff;
  padding: .75em 1em;
  text-align: left;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: none;
}

/* Zaoblení rohů záhlaví */
main.content table thead th:first-child,
article table thead th:first-child { border-radius: 8px 0 0 0; }
main.content table thead th:last-child,
article table thead th:last-child  { border-radius: 0 8px 0 0; }
main.content table tbody tr:last-child td:first-child,
article table tbody tr:last-child td:first-child { border-radius: 0 0 0 8px; }
main.content table tbody tr:last-child td:last-child,
article table tbody tr:last-child td:last-child  { border-radius: 0 0 8px 0; }

/* Tělo tabulky */
main.content table tbody td,
article table tbody td {
  padding: .65em 1em;
  border-bottom: 1px solid #e0d5c0;
  vertical-align: top;
  line-height: 1.5;
  color: #1f1f1f;
  font-size: 16px;
}

main.content table tbody tr:nth-child(odd),
article table tbody tr:nth-child(odd) { background: #f5f0e8; }

main.content table tbody tr:hover,
article table tbody tr:hover { background: #ede5d0; transition: background .15s; }

/* ==========================================================================
   ODKAZY
   ========================================================================== */

/*
main.content a, article a {
  color: #c79040;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-weight: 600;
  transition: color .2s, border-color .2s;
}
main.content a:hover, article a:hover {
  color: #a0722a;
  border-bottom-color: #a0722a;
}
*/

main.content table a, article table a {
  border-bottom: none;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}
main.content table a:hover, article table a:hover {
  color: #a0722a;
  text-decoration-color: #a0722a;
}

/* ==========================================================================
   BLOCKQUOTE
   ========================================================================== */

main.content blockquote, article blockquote {
  margin: 1.8em 0;
  padding: 1.1em 1.4em;
  background: #faf7f0;
  border-left: 4px solid #c79040;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  font-style: italic;
  font-family: "Open Sans", sans-serif;
  color: #3a3530;
}
main.content blockquote p, article blockquote p {
  margin: 0;
  line-height: 1.7;
  font-size: 16px;
}
main.content blockquote strong, article blockquote strong {
  font-style: normal;
  font-family: "Poppins", sans-serif;
  color: #c79040;
}

/* ==========================================================================
   SEZNAM – flexbox (žádné absolute positioning)
   ========================================================================== */

article ul {
  list-style: none;
  padding-left: 0;
  margin: 1em 0 1.2em;
}

article ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: .5em;
  line-height: 1.65;
  color: #1f1f1f;
  font-size: 16px;
}

/* ==========================================================================
   KARTY PRODUKTOVÝCH ŘAD  (.rc-card-grid)
   ========================================================================== */

.rc-card-grid {
  display: flex;
  gap: 16px;
  margin: 1.5em 0 2em;
  flex-wrap: wrap;
}

.rc-card {
  flex: 1 1 220px;
  background: #fff;
  border: 1px solid #e0d5c0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.rc-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.13);
  transform: translateY(-3px);
}

/* Barevný pruh nahoře */
.rc-card-header {
  background: #272727;
  color: #fff;
  padding: 14px 16px 10px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

/* Zlatavý badge s alkoholem */
.rc-card-badge {
  display: inline-block;
  background: #c79040;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 20px;
  margin: 10px 16px 0;
  width: fit-content;
}

/* Ikona / emoji */
.rc-card-icon {
  font-size: 32px;
  padding: 12px 16px 0;
  line-height: 1;
}

/* Text */
.rc-card-body {
  padding: 10px 16px 14px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  flex-grow: 1;
}

/* CTA tlačítko dole */
.rc-card-btn {
  display: block;
  margin: 0 16px 16px;
  padding: 9px 0;
  background: #272727;
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: none !important;
  letter-spacing: .03em;
  transition: background .2s;
}
.rc-card-btn:hover {
  background: #c79040 !important;
  color: #fff !important;
  border-bottom: none !important;
}

/* ==========================================================================
   OCENĚNÍ  (.rc-award-grid)
   ========================================================================== */

.rc-award-grid {
  display: flex;
  gap: 16px;
  margin: 1.5em 0 2em;
  flex-wrap: wrap;
}

.rc-award {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  border: 1px solid #e0d5c0;
}

/* Zlatá / stříbrná varianta – barevný proužek nahoře */
.rc-award--gold   { border-top: 4px solid #c79040; }
.rc-award--silver { border-top: 4px solid #9e9e9e; }

.rc-award-inner {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.rc-award-medal {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 4px;
}

.rc-award-year {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #767676;
}

.rc-award-title {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #272727;
  line-height: 1.2;
}

.rc-award--gold   .rc-award-title { color: #c79040; }
.rc-award--silver .rc-award-title { color: #6e6e6e; }

.rc-award-event {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  color: #767676;
  font-style: italic;
}

.rc-award-product {
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
  margin-top: 4px;
}

/* ==========================================================================
   RESPONZIVITA
   ========================================================================== */

@media (max-width: 640px) {
  /* Tabulky scrollovatelné */
  main.content table, article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 14px;
  }
  main.content table thead th, article table thead th,
  main.content table tbody td, article table tbody td {
    padding: .5em .7em;
    white-space: nowrap;
  }
  main.content blockquote, article blockquote { padding: .9em 1em; }

  /* Karty pod sebou */
  .rc-card-grid, .rc-award-grid { flex-direction: column; }
  .rc-card, .rc-award { flex: 1 1 auto; }
}
