/* MartyK Workshops — Frontend Styles */

/* ── Archive ─────────────────────────────────────────────────────────────── */

.mkw-archive {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.mkw-archive-header {
  text-align: center;
  padding: 48px 20px 36px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 40px;
}

.mkw-archive-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
}

.mkw-archive-subtitle {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.mkw-section-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111;
  display: inline-block;
}

.mkw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

.mkw-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.mkw-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.mkw-card--cancelled {
  opacity: 0.6;
}

.mkw-card-image {
  display: block;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #222;
}

.mkw-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mkw-badge--full      { background: #111; color: #fff; }
.mkw-badge--cancelled { background: #c0392b; color: #fff; }

.mkw-card-body {
  padding: 20px 22px 22px;
}

.mkw-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}

.mkw-card-title a {
  color: #111;
  text-decoration: none;
}

.mkw-card-title a:hover {
  text-decoration: underline;
}

.mkw-card-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.mkw-card-meta li {
  font-size: 13.5px;
  color: #555;
  padding: 3px 0 3px 20px;
  position: relative;
  line-height: 1.4;
}

.mkw-meta-date::before     { content: "📅"; position: absolute; left: 0; font-size: 12px; top: 4px; }
.mkw-meta-location::before { content: "📍"; position: absolute; left: 0; font-size: 12px; top: 4px; }
.mkw-meta-price::before    { content: "💰"; position: absolute; left: 0; font-size: 12px; top: 4px; }
.mkw-meta-spots::before    { content: "🎫"; position: absolute; left: 0; font-size: 12px; top: 4px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.mkw-btn {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  padding: 11px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #111111;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  line-height: 1;
}

.mkw-btn:hover {
  background: #333;
  border-color: #333;
  color: #fff;
  text-decoration: none;
}

.mkw-btn--outline {
  background: transparent;
  color: #111;
}

.mkw-btn--outline:hover {
  background: #111;
  color: #fff;
}

.mkw-btn--disabled {
  background: #ccc;
  border-color: #ccc;
  color: #888;
  cursor: default;
}

.mkw-btn--submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  text-align: center;
  margin-top: 8px;
}

/* ── Empty / Past ──────────────────────────────────────────────────────── */

.mkw-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.mkw-past {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e8e8e8;
}

.mkw-past-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mkw-past-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #666;
}

.mkw-past-list a {
  color: #444;
}

/* ── Single Page ────────────────────────────────────────────────────────── */

.mkw-single {
  max-width: 820px;
  margin: 0 auto;
}

.mkw-hero {
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: 0;
}

.mkw-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
  display: flex;
  align-items: flex-end;
}

.mkw-hero-content {
  padding: 32px 40px;
  color: #fff;
}

.mkw-hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.mkw-hero-date {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.mkw-no-hero {
  padding: 40px 0 0;
}

.mkw-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 24px;
}

.mkw-single-inner {
  padding: 36px 0 60px;
}

/* ── Banners ─────────────────────────────────────────────────────────────── */

.mkw-banner {
  padding: 14px 20px;
  border-radius: 4px;
  margin-bottom: 28px;
  font-size: 14.5px;
  line-height: 1.5;
}

.mkw-banner--cancelled {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

.mkw-banner--full {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}

.mkw-banner a { color: inherit; font-weight: 600; }

/* ── Info Row ──────────────────────────────────────────────────────────── */

.mkw-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 36px;
}

.mkw-info-item {
  flex: 1 1 160px;
  padding: 16px 20px;
  border-right: 1px solid #e5e5e5;
}

.mkw-info-item:last-child {
  border-right: none;
}

.mkw-info-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #888;
  margin-bottom: 4px;
}

.mkw-info-value {
  display: block;
  font-size: 14.5px;
  color: #222;
  line-height: 1.4;
}

.mkw-sold-out {
  color: #c0392b;
  font-weight: 600;
}

/* ── Content ─────────────────────────────────────────────────────────────── */

.mkw-content {
  margin-bottom: 40px;
  line-height: 1.7;
  color: #333;
}

.mkw-content h2, .mkw-content h3 {
  color: #111;
  margin-top: 28px;
}

/* ── Gallery ─────────────────────────────────────────────────────────────── */

.mkw-gallery {
  margin-bottom: 48px;
}

.mkw-gallery-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
}

.mkw-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.mkw-gallery-item {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
}

.mkw-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mkw-gallery-item:hover img {
  transform: scale(1.04);
}

/* ── Registration Form ──────────────────────────────────────────────────── */

.mkw-register-section {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 40px;
}

.mkw-register-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}

.mkw-register-sub {
  color: #666;
  font-size: 14.5px;
  margin: 0 0 24px;
  line-height: 1.5;
}

.mkw-form-row {
  margin-bottom: 18px;
}

.mkw-form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.mkw-form-row input[type="text"],
.mkw-form-row input[type="email"],
.mkw-form-row input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}

.mkw-form-row input:focus {
  outline: none;
  border-color: #111;
}

.mkw-required { color: #c0392b; }
.mkw-optional { color: #999; font-weight: 400; font-size: 12px; }

.mkw-card-element {
  padding: 11px 14px;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.15s;
}

.mkw-card-element.StripeElement--focus {
  border-color: #111;
}

.mkw-card-errors {
  color: #c0392b;
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
}

.mkw-form-message {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 16px;
}

.mkw-form-message--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

.mkw-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 28px 32px;
  text-align: center;
}

.mkw-success-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.mkw-success h3 {
  font-size: 1.3rem;
  color: #111;
  margin: 0 0 8px;
}

.mkw-success p {
  color: #555;
  font-size: 14.5px;
  margin: 0 0 6px;
}

.mkw-success .mkw-ticket-ref {
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 2px;
  background: #f0f0f0;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 4px;
  margin: 10px 0;
}

.mkw-back-link {
  margin-top: 20px;
}

.mkw-back-link a {
  color: #666;
  font-size: 14px;
  text-decoration: none;
}

.mkw-back-link a:hover {
  color: #111;
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .mkw-hero { height: 280px; }
  .mkw-hero-title { font-size: 1.5rem; }
  .mkw-hero-content { padding: 20px; }
  .mkw-single-inner { padding: 24px 16px 40px; }
  .mkw-info-item { flex: 1 1 100%; border-right: none; border-bottom: 1px solid #e5e5e5; }
  .mkw-info-item:last-child { border-bottom: none; }
  .mkw-register-section { padding: 20px; }
  .mkw-grid { grid-template-columns: 1fr; }
  .mkw-archive-title { font-size: 1.6rem; }
}
