/**
 * Events Notification Widget - Styles
 *
 * Main stylesheet for the Events Notification Widget frontend display.
 *
 * @package EnwEventsNotificationWidget
 * @since 1.0.0
 */

:root {
  --enw-primary: #2563eb;
  --enw-dark: #0f172a;
  --enw-muted: #64748b;
  --enw-bg: #f8fafc;
  --enw-card: #ffffff;
  --enw-border: #e2e8f0;
}

.enw-widget {
  background: var(--enw-bg);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--enw-border);
  font-family: inherit;
}

.enw-header h2 {
  margin: 0 0 8px;
  color: var(--enw-dark);
  font-size: 28px;
}

.enw-subtitle {
  margin: 0 0 8px;
  color: var(--enw-muted);
  font-weight: 600;
}

.enw-description {
  margin: 0 0 24px;
  color: var(--enw-muted);
}

.enw-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.enw-card {
  background: var(--enw-card);
  border: 1px solid var(--enw-border);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.enw-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.enw-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.enw-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.enw-card-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--enw-dark);
  margin-bottom: 6px;
}

.enw-card-dates {
  font-size: 14px;
  color: var(--enw-muted);
}

.enw-subscribe {
  background: #ffffff;
  border: 1px solid var(--enw-border);
  border-radius: 14px;
  padding: 20px;
}

.enw-subscribe h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.enw-subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.enw-subscribe-form input[type="email"] {
  flex: 1 1 220px;
  padding: 10px 12px;
  border: 1px solid var(--enw-border);
  border-radius: 10px;
}

.enw-subscribe-form button {
  background: var(--enw-primary);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.enw-subscribe-message {
  flex-basis: 100%;
  margin: 0;
  font-size: 14px;
  color: var(--enw-muted);
}

.enw-subscribe-message.is-error {
  color: #b91c1c;
}

.enw-subscribe-message.is-success {
  color: #15803d;
}

.enw-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.enw-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.enw-modal.is-open {
  display: flex;
}

.enw-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.enw-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  max-width: 860px;
  width: calc(100% - 32px);
  z-index: 1;
  overflow: hidden;
}

.enw-modal-body {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
}

.enw-modal-image {
  background-size: cover;
  background-position: center;
  min-height: 260px;
}

.enw-modal-details {
  padding: 24px;
}

.enw-modal-details h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.enw-modal-dates {
  color: var(--enw-muted);
  margin: 0 0 12px;
}

.enw-modal-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  color: var(--enw-dark);
}

.enw-modal-list li {
  margin-bottom: 6px;
}

.enw-modal-cta {
  display: inline-block;
  background: var(--enw-primary);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.enw-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--enw-dark);
}

@media (max-width: 768px) {
  .enw-modal-body {
    grid-template-columns: 1fr;
  }

  .enw-modal-image {
    min-height: 200px;
  }
}
