/* ===================================
   Džemy.cz - Rustikální Design System
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --primary: #8B4513;
  --primary-light: #A0522D;
  --primary-dark: #5C2E0A;
  --secondary: #C41E3A;
  --secondary-light: #E8445A;
  --accent: #2D6B22;
  --accent-light: #4A8B3F;
  --gold: #D4A048;
  --gold-light: #E8C078;
  --bg: #FDF6EC;
  --bg-alt: #F5EBD8;
  --surface: #FFFFFF;
  --text: #2C1810;
  --text-light: #6B5B4F;
  --text-muted: #9C8B7D;
  --border: #E0D5C7;
  --border-dark: #C4B5A2;
  --shadow: 0 2px 12px rgba(44, 24, 16, 0.08);
  --shadow-hover: 0 6px 24px rgba(44, 24, 16, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --max-width-narrow: 800px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(139, 69, 19, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(196, 30, 58, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(45, 107, 34, 0.02) 0%, transparent 50%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { margin-bottom: 1em; color: var(--text-light); }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }
strong { color: var(--text); }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: var(--max-width-narrow); }

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-dark), transparent);
}
.divider--small { margin: 1rem 0; }

/* ===== HEADER ===== */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(44, 24, 16, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__logo:hover { color: var(--primary-dark); }
.nav__logo-icon { font-size: 1.75rem; }

.nav__links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav__link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav__link:hover, .nav__link--active {
  color: var(--primary);
  background: var(--bg-alt);
}

.nav__dropdown { position: relative; }
.nav__dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 200;
}
.nav__dropdown:hover .nav__dropdown-content { display: block; }
.nav__dropdown-link {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.nav__dropdown-link:hover { background: var(--bg-alt); color: var(--primary); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: var(--primary);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #F0E4D0 50%, var(--bg-alt) 100%);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 3px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(212, 160, 72, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(196, 30, 58, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; }
.hero__icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.hero h1 { font-size: 3rem; color: var(--primary-dark); margin-bottom: 0.75rem; }
.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero--small { padding: 3rem 0; }
.hero--small h1 { font-size: 2.25rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn--secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}
.btn--gold { background: var(--gold); color: white; border-color: var(--gold); }
.btn--gold:hover {
  background: #C49038;
  border-color: #C49038;
  color: white;
  transform: translateY(-2px);
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--border-dark);
}

.card__accent { height: 4px; background: var(--primary); }
.card__accent--red { background: var(--secondary); }
.card__accent--green { background: var(--accent); }
.card__accent--gold { background: var(--gold); }
.card__accent--berry { background: #6B2D75; }
.card__accent--orange { background: #E87F35; }
.card__accent--blue { background: #3B6FA0; }
.card__accent--pink { background: #D4567A; }
.card__accent--plum { background: #5B3A6B; }
.card__accent--peach { background: #F0A060; }
.card__accent--cherry { background: #9B1B30; }

.card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.card__title a { color: inherit; }
.card__title a:hover { color: var(--secondary); }
.card__text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.card__meta-item { display: flex; align-items: center; gap: 0.35rem; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: auto;
}
.card__link:hover { color: var(--secondary); gap: 0.6rem; }

/* ===== SECTIONS ===== */
.section { padding: 3rem 0; }
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__header { text-align: center; margin-bottom: 2.5rem; }
.section__header h2 { margin-bottom: 0.5rem; }
.section__header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* ===== RECIPE PAGE ===== */
.recipe { padding: 3rem 0; }
.recipe__header { text-align: center; margin-bottom: 2.5rem; }
.recipe__icon { font-size: 4rem; display: block; margin-bottom: 1rem; }
.recipe__meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.recipe__meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.recipe__meta-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.recipe__meta-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.recipe__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}
.recipe__sidebar { position: sticky; top: 5rem; }

/* Ingredients */
.ingredients {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.ingredients h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold-light);
}
.ingredients ul { list-style: none; }
.ingredients li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  color: var(--text-light);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.ingredients li::before { content: '•'; color: var(--gold); font-weight: bold; }
.ingredients li:last-child { border-bottom: none; }

/* Steps */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.step__number {
  counter-increment: step;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(139, 69, 19, 0.3);
}
.step__content h4 { margin-bottom: 0.35rem; color: var(--primary-dark); }
.step__content p { font-size: 0.95rem; line-height: 1.7; }

/* Tip Box */
.tip-box {
  background: linear-gradient(135deg, #FFF8E7, #FFF3D6);
  border: 1px solid var(--gold-light);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.tip-box__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tip-box p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0; }

/* Warning Box */
.warning-box {
  background: linear-gradient(135deg, #FFF0F0, #FFE8E8);
  border: 1px solid #F0C0C0;
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.warning-box__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, #F0F7ED, #E8F2E4);
  border: 1px solid #C0D8B8;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== FAQ ===== */
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq__question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq__question:hover { background: var(--bg-alt); }
.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform var(--transition);
}
.faq__item.active .faq__question::after { content: '\2212'; }
.faq__answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
}
.faq__item.active .faq__answer { display: block; }

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table { width: 100%; border-collapse: collapse; background: var(--surface); }
thead { background: var(--bg-alt); }
th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
  border-bottom: 2px solid var(--border-dark);
}
td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-light);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(253, 246, 236, 0.5); }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 1rem 0; font-size: 0.9rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 0.5rem; color: var(--border-dark); }

/* ===== CONTENT ===== */
.content { padding: 3rem 0; }
.content h2 { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.content h3 { margin-top: 1.5rem; }
.content ul, .content ol { margin: 1rem 0; padding-left: 1.5rem; color: var(--text-light); }
.content li { margin-bottom: 0.5rem; line-height: 1.6; }
.content blockquote {
  border-left: 4px solid var(--gold);
  background: var(--bg-alt);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}

/* ===== RELATED ===== */
.related { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.related h3 { text-align: center; margin-bottom: 1.5rem; }

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.feature { text-align: center; padding: 1.5rem; }
.feature__icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.feature__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}
.feature__text { font-size: 0.9rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: #D4C4B0;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__desc { font-size: 0.9rem; line-height: 1.6; color: #B8A896; }
.footer__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { color: #B8A896; font-size: 0.9rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--gold-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #8B7B6B;
}

/* ===== CALENDAR ===== */
.calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.calendar__month {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition);
}
.calendar__month:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.calendar__month-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.calendar__fruits { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
}
.cta-banner h3 { color: white; font-size: 1.5rem; margin-bottom: 0.75rem; }
.cta-banner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== TAGS ===== */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-alt);
  color: var(--text-light);
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.tag:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .recipe__grid { grid-template-columns: 1fr; }
  .recipe__sidebar { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 2.5rem 0; }
  .hero h1 { font-size: 2.25rem; }
  .hero__subtitle { font-size: 1.1rem; }
  .container { padding: 0 1.25rem; }
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  .nav__links.active { display: flex; }
  .nav__toggle { display: block; }
  .nav__dropdown-content {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    min-width: 0;
  }
  .nav__dropdown:hover .nav__dropdown-content,
  .nav__dropdown.active .nav__dropdown-content { display: block; }
  .cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .calendar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .hero h1 { font-size: 1.75rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .features { grid-template-columns: 1fr; }
  .recipe__meta { gap: 1rem; }
  .step { gap: 1rem; }
  .step__number { width: 40px; height: 40px; font-size: 1.1rem; }
}

@media print {
  .site-header, .site-footer, .nav, .hero__actions, .related { display: none; }
  body { background: white; color: black; }
  .recipe__grid { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
