/* === WORKSHOPS SECTION === */
.workshops-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}

.workshop-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.workshop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.workshop-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.workshop-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.workshop-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.workshop-date {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.workshop-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--terracotta);
  background: rgba(196, 107, 74, 0.1);
  padding: 3px 10px;
  border-radius: 12px;
}

.workshop-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.workshop-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.workshop-card-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.workshop-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.workshop-seats {
  font-size: 13px;
  color: var(--text-secondary);
}

.workshop-register-btn {
  padding: 8px 20px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.workshop-register-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.workshop-register-btn.registered {
  background: var(--sage);
  cursor: default;
}

/* === REGISTRATION MODAL === */
.workshop-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.workshop-modal {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.workshop-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.workshop-modal-close:hover {
  color: var(--text-primary);
}

.workshop-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.workshop-modal-subtitle {
  font-size: 14px;
  color: var(--terracotta);
  margin-bottom: 24px;
  font-weight: 500;
}

.ws-form-group {
  margin-bottom: 16px;
}

.ws-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.ws-form-group label small {
  font-weight: 400;
  color: var(--text-secondary);
}

.ws-form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.ws-form-group input:focus {
  outline: none;
  border-color: var(--terracotta);
}

.ws-form-message {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}

.ws-form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.ws-form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.ws-submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--terracotta);
}

.ws-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

/* Responsive */
@media (max-width: 480px) {
  .workshop-modal {
    padding: 24px;
  }
  .workshop-card-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .workshop-register-btn {
    width: 100%;
    text-align: center;
  }
}
