/* Components CSS for Mužská Rovnováha */

/* Interactive Quiz Component */
.quiz-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(2, 132, 199, 0.15);
  position: relative;
  overflow: hidden;
}

.quiz-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
}

.quiz-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.quiz-step.active {
  display: block;
}

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

.quiz-step h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.quiz-step p.step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

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

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--border-active);
  transform: translateX(4px);
}

.quiz-option-btn.selected {
  background: rgba(2, 132, 199, 0.2);
  border-color: var(--primary-light);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.25);
}

.quiz-option-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.quiz-option-btn.selected .quiz-option-radio {
  border-color: var(--primary-light);
  background: var(--primary);
}

.quiz-option-btn.selected .quiz-option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.quiz-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

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

.score-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, rgba(17, 24, 39, 0.8) 70%);
  border: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--accent-glow);
}

.score-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.score-label {
  font-size: 0.75rem;
  color: var(--accent-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.quiz-result h3 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.result-summary-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
  text-align: left;
}

.result-summary-box h4 {
  color: var(--primary-light);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.result-summary-box ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.result-summary-box li {
  list-style: disc;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-active);
  padding: 1.5rem 0;
  z-index: 9999;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  display: none;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.cookie-text p {
  font-size: 0.88rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

.cookie-text a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-cookie-accept:hover {
  background: var(--primary-light);
}

.btn-cookie-decline {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
}

.btn-cookie-decline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cookie-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.cookie-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.cookie-pref-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.cookie-pref-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

/* Form Styles */
.lead-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: all 0.25s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  background: rgba(10, 14, 23, 0.9);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 1.5rem;
  line-height: 1.45;
}

.form-checkbox-label input {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.guarantee-item {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.guarantee-item svg {
  display: block;
  margin: 0 auto 0.4rem;
  color: var(--accent-light);
}

/* Blog Components */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.25rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-card);
}

.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img .category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  border: 1px solid var(--border-active);
}

.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.blog-card-body p {
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

/* Article Page Typography */
.article-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
}

.article-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.article-content h2 {
  margin: 2.5rem 0 1rem;
  color: #ffffff;
}

.article-content h3 {
  margin: 2rem 0 0.85rem;
  color: var(--primary-light);
}

.article-content ul, .article-content ol {
  margin: 1.25rem 0 1.75rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.6rem;
  list-style: disc;
}

.article-callout {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--primary-light);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
}

.article-callout.green {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: var(--accent-light);
}

.article-callout h4 {
  color: #ffffff;
  margin-bottom: 0.4rem;
}

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

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.cert-card:hover {
  border-color: var(--border-emerald);
  transform: translateY(-4px);
}

.cert-card-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1.6rem;
}

.cert-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.cert-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Thank You Page */
.thank-you-box {
  background: var(--bg-card);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  font-size: 2.5rem;
  border: 2px solid var(--accent);
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
  text-align: left;
}

.timeline-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.timeline-step h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.timeline-step p {
  font-size: 0.82rem;
  margin-bottom: 0;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .quiz-wrapper, .lead-form-box, .thank-you-box {
    padding: 2rem 1.25rem;
  }
  .timeline-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .form-guarantees {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
