/* 
   TRENÉR MARTIN - BLOG O MUŽSKÉ VITALITĚ & PROSTALIS
   Design Palette: Czech Flag Colors (Czech Blue #002B7F, Deep Navy #0B2545, Czech Red #D7141A, Pure White #FFFFFF)
   Modern layout with dynamic curves, interactive widgets, responsive card containers.
*/

:root {
  --cz-blue-primary: #002B7F;
  --cz-blue-dark: #0B2545;
  --cz-blue-light: #1E40AF;
  --cz-blue-soft: #EFF6FF;
  --cz-red-primary: #D7141A;
  --cz-red-hover: #B91C1C;
  --cz-red-soft: #FEF2F2;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --gold-star: #F59E0B;
  --green-success: #10B981;
  
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 25px -5px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 20px 35px -10px rgba(11, 37, 69, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Top Czech Flag Bar */
.cz-flag-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--cz-blue-primary) 50%, var(--cz-red-primary) 50%);
  width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
}

/* Header & Navigation */
.site-header {
  background-color: var(--cz-blue-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--cz-blue-primary), var(--cz-red-primary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(215, 20, 26, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--gray-300);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--gray-200);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--cz-red-primary);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--cz-red-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(215, 20, 26, 0.4);
}

.btn-primary:hover {
  background-color: var(--cz-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(215, 20, 26, 0.5);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-blue {
  background: transparent;
  color: var(--cz-blue-primary);
  border: 2px solid var(--cz-blue-primary);
}

.btn-outline-blue:hover {
  background: var(--cz-blue-soft);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--cz-blue-dark) 0%, var(--cz-blue-primary) 100%);
  color: var(--white);
  padding: 4rem 0 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #93C5FD;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: #FCA5A5;
  background: linear-gradient(90deg, #FFFFFF, #FCA5A5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--gray-200);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.coach-trust-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.coach-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid var(--cz-red-primary);
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.coach-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.coach-meta p {
  font-size: 0.8rem;
  color: var(--gray-300);
}

/* Floating Card Preview (Hero Right Side) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 380px;
}

.hero-card-img-wrapper {
  position: relative;
  margin: -1rem 0 1.5rem 0;
}

.hero-product-img {
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
  transition: var(--transition);
}

.hero-product-img:hover {
  transform: scale(1.05) rotate(2deg);
}

.badge-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--cz-red-primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(215, 20, 26, 0.4);
}

.hero-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem;
  border-radius: var(--radius-md);
}

.stat-item h5 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FCA5A5;
}

.stat-item span {
  font-size: 0.7rem;
  color: var(--gray-300);
}

/* Wavy Divider SVG */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-divider .shape-fill {
  fill: var(--gray-50);
}

/* Section Common */
.section {
  padding: 4.5rem 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-block;
  color: var(--cz-red-primary);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cz-blue-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-top: 0.75rem;
}

/* Certificates Grid Section */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--cz-blue-primary);
  box-shadow: var(--shadow-md);
}

.cert-badge-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cz-blue-soft);
  color: var(--cz-blue-primary);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  border: 2px solid var(--cz-blue-primary);
}

.cert-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cz-blue-dark);
  margin-bottom: 0.4rem;
}

.cert-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Dynamic Interactive Vitality Quiz Box */
.quiz-widget-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  position: relative;
}

.quiz-progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--cz-blue-primary), var(--cz-red-primary));
  transition: width 0.4s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cz-blue-dark);
  margin-bottom: 1.5rem;
}

.quiz-options {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gray-700);
  background: var(--white);
}

.quiz-option:hover {
  border-color: var(--cz-blue-primary);
  background: var(--cz-blue-soft);
  color: var(--cz-blue-dark);
}

.quiz-option.selected {
  border-color: var(--cz-red-primary);
  background: var(--cz-red-soft);
  color: var(--cz-red-primary);
}

.quiz-option input[type="radio"] {
  margin-right: 1rem;
  accent-color: var(--cz-red-primary);
  width: 20px;
  height: 20px;
}

/* Quiz Result Box */
.quiz-result-box {
  text-align: center;
  padding: 1rem 0;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cz-blue-dark), var(--cz-blue-primary));
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 10px 25px rgba(0,43,127,0.3);
}

.score-circle h3 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.score-circle span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-300);
}

/* Grid of Articles */
.article-grid {
  display grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--cz-blue-primary);
}

.article-header {
  height: 180px;
  background: linear-gradient(135deg, var(--cz-blue-dark), var(--cz-blue-primary));
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.article-category {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.article-icon-bg {
  position: absolute;
  right: 1.5rem;
  bottom: 1rem;
  font-size: 4rem;
  opacity: 0.15;
}

.article-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.article-title a {
  color: inherit;
  text-decoration: none;
}

.article-title a:hover {
  color: var(--cz-blue-primary);
}

.article-excerpt {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.read-more-link {
  color: var(--cz-red-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.read-more-link:hover {
  gap: 0.5rem;
}

/* Product Showcase Section */
.product-showcase-section {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.product-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.product-gallery {
  position: relative;
  text-align: center;
  background: radial-gradient(circle, rgba(0,43,127,0.06) 0%, rgba(255,255,255,0) 70%);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.product-main-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}

.ingredient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.ingredient-chip {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cz-blue-dark);
}

.product-info-box h3 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--cz-blue-dark);
  margin-bottom: 0.5rem;
}

.product-sub-title {
  font-size: 1.1rem;
  color: var(--cz-red-primary);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.benefit-list {
  list-style: none;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.85rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--gray-700);
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--green-success);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Quality Guarantee Bar */
.quality-guarantee-box {
  background: var(--cz-blue-soft);
  border: 1px solid #93C5FD;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quality-guarantee-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cz-blue-dark);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--cz-blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 43, 127, 0.15);
}

/* Footer & Legal (Google policy compliant) */
.site-footer {
  background: var(--cz-blue-dark);
  color: var(--gray-300);
  padding: 4rem 0 2rem 0;
  border-top: 4px solid var(--cz-blue-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

/* Strict Google Ads Medical Disclaimer Banner */
.disclaimer-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--gray-300);
  margin-bottom: 2rem;
}

.disclaimer-box strong {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid, .product-showcase-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-visual {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .quiz-widget-card {
    padding: 1.5rem;
  }
}
