/**
 * Event Detail Modal - Component Styles
 * =====================================
 * Import into main CSS or <link> in HTML
 * Works with the spacer float for bleed-over content
 */

/* ============================================
   MODAL CONTENT LAYOUT
   ============================================ */

.edm-content {
  font-size: 14px;
  line-height: 1.5;
}

.edm-section {
  margin-bottom: 16px;
}

.edm-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8a8a8a;
  margin-bottom: 6px;
  font-weight: 600;
}

/* ============================================
   DESCRIPTION
   ============================================ */

.edm-description {
  color: #333;
  line-height: 1.6;
}

.edm-description-full {
  margin-top: 8px;
}

.edm-read-more {
  color: #4a86e8;
  cursor: pointer;
  font-size: 13px;
  margin-top: 4px;
  display: inline-block;
}

/* ============================================
   TAGS
   ============================================ */

.edm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.edm-tag {
  background: #e9ecef;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #495057;
  white-space: nowrap;
}

.edm-tag.edm-tag-category {
  background: #4a86e8;
  color: white;
}

.edm-tag.edm-tag-age {
  background: #6c757d;
  color: white;
}

.edm-tag.edm-tag-genre {
  background: #e7f3ff;
  color: #0066cc;
}

/* ============================================
   COST / PRICE
   ============================================ */

.edm-cost {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.edm-cost-badge {
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
}

.edm-cost-badge.edm-free {
  background: #d4edda;
  color: #155724;
}

.edm-cost-badge.edm-paid {
  background: #4a86e8;
  color: white;
}

.edm-cost-badge.edm-soldout {
  background: #f8d7da;
  color: #721c24;
  text-decoration: line-through;
}

.edm-cost-details {
  font-size: 13px;
  color: #6c757d;
}

.edm-ticket-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.edm-ticket-btn:hover {
  background: #218838;
}

/* ============================================
   LOCATION
   ============================================ */

.edm-location {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
}

.edm-location-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.edm-location-icon {
  font-size: 18px;
  line-height: 1;
}

.edm-location-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.edm-location-address {
  font-size: 13px;
  color: #6c757d;
}

.edm-location-region {
  font-size: 12px;
  color: #6c757d;
  margin-top: 2px;
}

.edm-location-notes {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e9ecef;
  font-size: 13px;
  color: #495057;
}

.edm-location-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.edm-location-note:last-child {
  margin-bottom: 0;
}

/* Location - Restricted/Fuzzy */
.edm-location.edm-location-restricted {
  background: #fffbeb;
  border-color: #fbbf24;
}

.edm-location-fuzzy {
  font-style: italic;
  color: #92400e;
  font-size: 13px;
}

.edm-location-locked {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: #92400e;
}

/* ============================================
   ACCESS CONTROL / REQUEST
   ============================================ */

.edm-access {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
}

.edm-access-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.edm-access-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.edm-access-badge.edm-public {
  background: #d4edda;
  color: #155724;
}

.edm-access-badge.edm-request {
  background: #fff3cd;
  color: #856404;
}

.edm-access-badge.edm-approved {
  background: #d4edda;
  color: #155724;
}

.edm-access-badge.edm-pending {
  background: #cce5ff;
  color: #004085;
}

.edm-access-badge.edm-denied {
  background: #f8d7da;
  color: #721c24;
}

.edm-access-badge.edm-invite {
  background: #e2e3e5;
  color: #383d41;
}

.edm-access-stats {
  font-size: 12px;
  color: #6c757d;
}

.edm-access-requirements {
  font-size: 13px;
  color: #495057;
}

.edm-access-requirements ul {
  margin: 6px 0 0 0;
  padding-left: 18px;
}

.edm-access-requirements li {
  margin-bottom: 3px;
}

.edm-access-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.edm-access-form input,
.edm-access-form textarea,
.edm-access-form select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 8px;
  font-family: inherit;
}

.edm-access-form textarea {
  resize: vertical;
  min-height: 60px;
}

.edm-access-submit {
  background: #4a86e8;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}

.edm-access-submit:hover {
  background: #3a76d8;
}

/* ============================================
   ARTISTS / LINEUP (Music Events)
   ============================================ */

.edm-lineup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edm-artist {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px;
}

.edm-artist-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.edm-artist-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.edm-artist-info {
  flex: 1;
  min-width: 0;
}

.edm-artist-name {
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edm-artist-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #6c757d;
}

.edm-artist-role.edm-headliner {
  color: #4a86e8;
  font-weight: 600;
}

.edm-artist-time {
  font-size: 12px;
  color: #6c757d;
  margin-top: 2px;
}

.edm-artist-meta {
  font-size: 11px;
  color: #999;
  text-align: right;
}

.edm-artist-links {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.edm-artist-link {
  font-size: 11px;
  color: #4a86e8;
  text-decoration: none;
}

/* ============================================
   RECURRENCE
   ============================================ */

.edm-recurrence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e7f3ff;
  color: #0066cc;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
}

.edm-recurrence-icon {
  font-size: 14px;
}

.edm-recurrence-series {
  font-size: 12px;
  color: #6c757d;
  margin-top: 6px;
}

.edm-recurrence-series a {
  color: #4a86e8;
}

/* ============================================
   ORGANIZER
   ============================================ */

.edm-organizer {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
}

.edm-organizer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a86e8 0%, #667eea 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.edm-organizer-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.edm-organizer-info {
  flex: 1;
  min-width: 0;
}

.edm-organizer-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.edm-organizer-type {
  font-size: 12px;
  color: #6c757d;
}

.edm-organizer-stats {
  font-size: 12px;
  color: #6c757d;
  margin-top: 2px;
}

.edm-organizer-socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.edm-organizer-social {
  font-size: 12px;
  color: #4a86e8;
  text-decoration: none;
}

.edm-organizer-follow {
  background: #f0f0f0;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

/* ============================================
   ACTIONS
   ============================================ */

.edm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.edm-action-btn {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #e9ecef;
  background: white;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.15s;
}

.edm-action-btn:hover {
  background: #f8f9fa;
}

.edm-action-btn.edm-primary {
  background: #4a86e8;
  color: white;
  border-color: #4a86e8;
}

.edm-action-btn.edm-primary:hover {
  background: #3a76d8;
}

.edm-action-btn.edm-success {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.edm-action-btn.edm-pinned {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

/* ============================================
   METRICS
   ============================================ */

.edm-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6c757d;
}

.edm-metric {
  display: flex;
  align-items: center;
  gap: 4px;
}

.edm-metric-icon {
  font-size: 12px;
}

/* ============================================
   SOURCE
   ============================================ */

.edm-source {
  font-size: 12px;
  color: #999;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.edm-source a {
  color: #4a86e8;
  text-decoration: none;
}

.edm-source a:hover {
  text-decoration: underline;
}

/* ============================================
   TIMING / DOORS
   ============================================ */

.edm-timing {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edm-timing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.edm-timing-label {
  color: #6c757d;
  min-width: 50px;
}

.edm-timing-value {
  color: #333;
}

/* ============================================
   CAPACITY
   ============================================ */

.edm-capacity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edm-capacity-bar {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.edm-capacity-fill {
  height: 100%;
  background: #4a86e8;
  border-radius: 4px;
  transition: width 0.3s;
}

.edm-capacity-fill.edm-almost-full {
  background: #ffc107;
}

.edm-capacity-fill.edm-full {
  background: #dc3545;
}

.edm-capacity-text {
  font-size: 12px;
  color: #6c757d;
  white-space: nowrap;
}

/* ============================================
   DIVIDER
   ============================================ */

.edm-divider {
  height: 1px;
  background: #e9ecef;
  margin: 16px 0;
}

