/* ==========================================================================
   Vzdelávania (Workshops) — Styles
   ========================================================================== */

/* ── Listing header ─────────────────────────────────────────── */
.ws-listing { padding: 2.5rem 0 4rem; }
.ws-listing-header { max-width: 36rem; margin-bottom: 3rem; }
.ws-h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--primary-deep);
  font-weight: 500;
  margin-top: .5rem;
}
@media (min-width: 640px) { .ws-h1 { font-size: 3rem; } }
.ws-subtitle {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--muted-fg);
  max-width: 32rem;
  line-height: 1.6;
}

/* ── Workshop cards grid ────────────────────────────────────── */
.ws-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) {
  .ws-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ws-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Workshop card ──────────────────────────────────────────── */
.ws-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer;
}
.ws-card:hover {
  border-color: rgba(107, 143, 106, .4);
  box-shadow: 0 8px 24px rgba(107, 143, 106, .1);
  transform: translateY(-2px);
}
.ws-card:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.ws-card-img {
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--muted);
  position: relative;
}
.ws-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ws-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 143, 106, .08);
  color: var(--primary);
}
.ws-card-img-placeholder svg {
  width: 3rem;
  height: 3rem;
  opacity: .4;
}

.ws-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ws-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
  font-size: .75rem;
}
.ws-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(107, 143, 106, .08);
  color: var(--primary-deep);
  padding: .2rem .6rem;
  border-radius: 9999px;
  font-size: .7rem;
  letter-spacing: .02em;
}
.ws-meta-badge svg {
  width: .85rem;
  height: .85rem;
}

.ws-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.375rem;
  color: var(--primary-deep);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: .5rem;
}

.ws-card-desc {
  font-size: .875rem;
  color: var(--muted-fg);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.ws-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.ws-card-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  color: var(--primary);
  line-height: 1;
}
.ws-card-price .ws-price-unit {
  font-family: "Inter", sans-serif;
  font-size: .75rem;
  color: var(--muted-fg);
  margin-left: .25rem;
}

/* ── Capacity badge (smart display) ─────────────────────────── */
.ws-capacity {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .65rem;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.ws-capacity svg {
  width: .8rem;
  height: .8rem;
}
.ws-capacity--available {
  background: rgba(77, 122, 76, .1);
  color: var(--primary-deep);
}
.ws-capacity--limited {
  background: rgba(200, 150, 50, .12);
  color: #8a6b15;
}
.ws-capacity--last {
  background: rgba(180, 60, 60, .1);
  color: #b43c3c;
}
.ws-capacity--full {
  background: rgba(100, 100, 100, .1);
  color: var(--muted-fg);
}

/* ── Loading skeleton ───────────────────────────────────────── */
.ws-loading { margin-top: 1rem; }
.ws-skeleton-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) { .ws-skeleton-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ws-skeleton-grid { grid-template-columns: repeat(3, 1fr); } }
.ws-skeleton-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
}
.ws-skeleton-card::before {
  content: "";
  display: block;
  aspect-ratio: 1200 / 630;
  background: linear-gradient(90deg, var(--muted) 25%, rgba(236, 229, 208, .6) 50%, var(--muted) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.ws-skeleton-card::after {
  content: "";
  display: block;
  height: 8rem;
  margin: 1.5rem;
  border-radius: .5rem;
  background: linear-gradient(90deg, var(--muted) 25%, rgba(236, 229, 208, .6) 50%, var(--muted) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite .2s;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Empty state ────────────────────────────────────────────── */
.ws-empty {
  text-align: center;
  padding: 4rem 1rem;
}
.ws-empty-icon {
  color: var(--muted-fg);
  opacity: .4;
  margin-bottom: 1.5rem;
}
.ws-empty h2 {
  font-size: 1.5rem;
  margin-bottom: .75rem;
}
.ws-empty p {
  font-size: .9375rem;
  color: var(--muted-fg);
}

/* ── Detail view ────────────────────────────────────────────── */
.ws-detail { padding: 2.5rem 0 4rem; }
.ws-detail .back-link { margin-bottom: 2rem; }
.ws-detail-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .ws-detail-grid { grid-template-columns: 1fr 18rem; align-items: start; }
}
@media (min-width: 1024px) {
  .ws-detail-grid { grid-template-columns: 1fr 20rem; align-items: start; }
}

.ws-detail-img {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  width: 100%;
  /* Zachová pomer strán obrázka workshopu (1200×630 ≈ 1.905:1) */
  aspect-ratio: 1200 / 630;
}
.ws-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ws-detail-info { display: flex; flex-direction: column; gap: 1.5rem; }

.ws-detail-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--primary-deep);
  font-weight: 500;
  line-height: 1.15;
}
@media (min-width: 640px) { .ws-detail-title { font-size: 2.5rem; } }

.ws-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.ws-detail-desc {
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

.ws-detail-learn {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
}
.ws-detail-learn h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.ws-detail-learn ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.ws-detail-learn li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: .9375rem;
  color: var(--fg);
}
.ws-detail-learn li svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: .2rem;
}

/* Detail sidebar / CTA */
.ws-detail-cta {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
  min-width: 0;
}
.ws-detail-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .5rem;
}
.ws-detail-price-unit {
  font-family: "Inter", sans-serif;
  font-size: .875rem;
  color: var(--muted-fg);
}
.ws-detail-cta .ws-capacity {
  margin: 1rem 0;
}
.ws-detail-cta-info {
  font-size: .8125rem;
  color: var(--muted-fg);
  line-height: 1.6;
  margin: 1rem 0;
}
.ws-detail-cta-info li {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: .5rem;
}
.ws-detail-cta-info li svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}
.ws-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-fg);
  padding: .875rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.ws-cta-btn:hover { background: var(--primary-deep); }
.ws-cta-btn:disabled {
  background: var(--muted);
  color: var(--muted-fg);
  cursor: not-allowed;
}
.ws-cta-btn:disabled:hover { background: var(--muted); }

/* ── Success banner ─────────────────────────────────────────── */
.ws-success-banner {
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  z-index: 45;
  animation: slideDown .4s ease;
}
.ws-success-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(77, 122, 76, .12);
  border: 1px solid rgba(77, 122, 76, .3);
  color: var(--primary-deep);
  border-radius: .75rem;
  padding: 1rem 1.5rem;
  font-size: .875rem;
  font-weight: 500;
}
.ws-success-inner svg { color: var(--primary); flex-shrink: 0; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-1rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Workshop Reviews Section ───────────────────────────────── */
.ws-reviews-section {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.ws-reviews-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
.ws-reviews-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  color: var(--primary-deep);
  font-weight: 500;
  line-height: 1.2;
  margin-top: .5rem;
}
.ws-reviews-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .ws-reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ws-reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Workshop Review Card ───────────────────────────────────── */
.ws-review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .875rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: box-shadow .2s, transform .2s;
}
.ws-review-card:hover {
  box-shadow: 0 4px 20px rgba(107,143,106,.12);
  transform: translateY(-2px);
}
.ws-review-stars {
  color: #e2a93b;
  font-size: .875rem;
  letter-spacing: 1px;
}
.ws-review-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--primary-deep);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ws-review-more-btn {
  background: none;
  border: none;
  color: var(--accent, var(--primary));
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  padding: .25rem 0;
  letter-spacing: .02em;
  transition: color .2s;
}
.ws-review-more-btn:hover {
  color: var(--primary-deep);
  text-decoration: underline;
}
.ws-review-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.ws-review-author {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.ws-review-workshop {
  font-size: .65rem;
  letter-spacing: .04em;
  color: var(--primary);
  font-weight: 500;
}

/* Workshop title inside review modal */
.ws-review-modal-workshop {
  display: block;
  margin-top: .5rem;
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--primary);
  font-weight: 500;
}

/* Show all reviews button */
.ws-reviews-show-all-wrap {
  text-align: center;
  margin-top: 2rem;
}
.ws-reviews-show-all-btn {
  font-size: .875rem;
}

/* ── Ďakovná stránka po nákupe ─────────────────────────────── */
.ws-thankyou {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.ws-thankyou-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  padding: 2.5rem 2rem;
  text-align: center;
}
.ws-thankyou-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 122, 76, .12);
  color: var(--primary);
}
.ws-thankyou-title {
  margin: .5rem 0 1rem;
}
.ws-thankyou-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted-fg);
  margin: 0 auto 1.5rem;
  max-width: 34rem;
}
.ws-thankyou-note {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  margin: 0 auto 2rem;
  max-width: 34rem;
  text-align: left;
}
.ws-thankyou-note p {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--muted-fg);
  margin: 0;
}
.ws-thankyou-portal {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: .5rem;
}
.ws-thankyou-portal h2 {
  font-size: 1.375rem;
  margin-bottom: .5rem;
}
.ws-thankyou-portal p {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--muted-fg);
  margin: 0 auto 1.5rem;
  max-width: 30rem;
}
.ws-thankyou-actions {
  margin-top: 1.75rem;
}

/* ── Dočasná "coming soon" brána (odstrániť po spustení vzdelávaní) ─────────── */
.ws-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg, #f6f2e9);
}
.ws-gate-card {
  max-width: 30rem;
  width: 100%;
  text-align: center;
  background: var(--card, #fbf7ec);
  border: 1px solid var(--border, #e3dccb);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 40px rgba(63, 92, 70, .1);
}
.ws-gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(107, 143, 106, .12);
  color: var(--primary-deep, #3f5c46);
  margin-bottom: 1.25rem;
}
.ws-gate-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  color: var(--primary-deep, #3f5c46);
  margin: 0 0 .75rem;
}
.ws-gate-text {
  color: var(--muted-fg, #6b7a6f);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}
.ws-gate-back {
  margin-bottom: 2rem;
}
.ws-gate-form {
  border-top: 1px solid var(--border, #e3dccb);
  padding-top: 1.5rem;
}
.ws-gate-admin-label {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-fg, #6b7a6f);
  margin-bottom: .6rem;
}
.ws-gate-input-row {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.ws-gate-input {
  flex: 1;
  min-width: 0;
  max-width: 16rem;
  padding: .6rem 1rem;
  border: 1px solid var(--border, #e3dccb);
  border-radius: .75rem;
  font: inherit;
  background: var(--bg, #f6f2e9);
  outline: none;
}
.ws-gate-input:focus {
  border-color: var(--primary, #6b8f6a);
}
.ws-gate-error {
  color: #b43c3c;
  font-size: .85rem;
  margin: .75rem 0 0;
}
