/* ============================================
   EVENT DETAIL PAGE STYLES
   ============================================ */

.detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.past-event {
    opacity: 0.8;
}

/* Breadcrumb */
.breadcrumb {
    padding: 10px 0 20px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #00bcd4;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #ccc;
}

/* Hero */
.detail-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.detail-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: white;
}

.detail-hero-overlay h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    color: white;
}

.past-event-badge {
    display: inline-block;
    background: rgba(255, 152, 0, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Info Cards Grid */
.event-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-card i {
    font-size: 2rem;
    color: #00bcd4;
}

.info-card.free i {
    color: #4caf50;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-content strong {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info-content span {
    font-size: 1.05rem;
    color: #333;
    font-weight: 500;
}

/* Sections */
.detail-section {
    margin-bottom: 40px;
}

.detail-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h2 i {
    color: #00bcd4;
}

.event-description {
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
    white-space: pre-line;
}

/* Schedule (Programação) */
.schedule-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-day {
    background: #ffffff;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.schedule-summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

details > summary::-webkit-details-marker {
    display: none;
}

.schedule-date {
    font-weight: 700;
    color: #2c3e50;
}

.schedule-count {
    font-size: 0.85rem;
    color: #777;
    background: #f3f6f8;
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.schedule-list {
    margin: 0;
    padding: 0 16px 14px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-item {
    padding: 12px;
    border-radius: 10px;
    background: #f8f9fa;
}

.schedule-item-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.schedule-time {
    font-weight: 600;
    color: #00bcd4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.schedule-label {
    font-weight: 600;
    color: #2c3e50;
}

.schedule-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

/* Tags */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Organizer */
.organizer-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-directions {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: white;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
}

.btn-directions:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

/* Map */
.event-map {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

/* Loading and Error States */
.loading-state,
.error-state {
    text-align: center;
    padding: 80px 20px;
}

.loading-state i {
    font-size: 3rem;
    color: #00bcd4;
    margin-bottom: 20px;
}

.error-state i {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.error-state h2 {
    color: #333;
    margin-bottom: 10px;
}

.error-state p {
    color: #666;
    margin-bottom: 25px;
}

/* Mobile */
@media (max-width: 768px) {
  .detail-hero {
    height: 300px;
  }

  .detail-hero-overlay {
    padding: 24px;
  }

  .detail-hero-overlay h1 {
    font-size: 1.6rem;
  }

  .event-info-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }

  .event-info-cards .info-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .event-info-cards .info-card i {
    font-size: 1.4rem;
  }

  .event-info-cards .info-content strong {
    font-size: 0.8rem;
  }

  .event-info-cards .info-content span {
    font-size: 0.95rem;
  }

  /* Priorizar Data e Local no mobile */
  .event-info-cards .info-card:nth-child(1) {
    order: 1; /* Data */
  }

  .event-info-cards .info-card:nth-child(3) {
    order: 2; /* Local */
  }

  .event-info-cards .info-card:nth-child(2) {
    order: 3; /* Horário */
  }

  .event-info-cards .info-card:nth-child(4) {
    order: 4; /* Entrada */
  }

  .organizer-card {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .detail-section {
    margin-bottom: 28px;
  }
}