/* ================================
   EVENT MESSAGE CARDS IN CHAT
   Spezielle Styles für Event-Nachrichten
   ================================ */

/* Event Message */
.message.event-message {
  max-width: 320px;
}

.message.event-message .message-content {
  padding: 0;
  overflow: hidden;
}

/* Event Card in Chat */
.event-message-content {
  background: linear-gradient(135deg, #1E88E5 0%, #00BCD4 100%);
  color: white;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 280px;
  max-width: 100%;
}

.message-received .event-message-content {
  background: white;
  color: #333;
}

/* Event Image Container */
.event-image-container {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.event-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-image-container:hover img {
  transform: scale(1.05);
}

.event-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

/* Event Info Overlay on Image */
.event-image-info {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  color: white;
  z-index: 1;
}

.event-image-info .event-name {
  font-weight: 700;
  font-size: 1.15rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.event-image-info .event-artist {
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Event Header */
.event-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.message-received .event-header {
  background: rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.event-icon {
  font-size: 22px;
  margin-right: 10px;
}

.event-title {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Event Details */
.event-details {
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.15);
}

.message-received .event-details {
  background: rgba(0, 0, 0, 0.025);
}

.event-details > div {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.event-details > div:last-child {
  margin-bottom: 0;
}

.event-details i {
  width: 22px;
}

.message-received .event-details i {
  color: #1E88E5;
}

/* Event Action Button */
.event-action {
  padding: 10px 15px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.message-received .event-action {
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.event-details-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.2);
}

.message-received .event-details-btn {
  background: linear-gradient(135deg, #1E88E5 0%, #00BCD4 100%);
  color: white;
  box-shadow: 0 2px 6px rgba(30, 136, 229, 0.3);
}

.event-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.message-received .event-details-btn:hover {
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
}

/* Event Selection Modal */
#event-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#event-modal.active {
  opacity: 1;
  visibility: visible;
}

#event-modal .modal-content {
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

#event-modal.active .modal-content {
  transform: translateY(0);
}

/* Event List in Modal */
#event-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 15px;
}

.absolute-event-card {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  background: var(--notification-item-bg);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.absolute-event-card:hover {
  background: var(--notification-hover-bg);
  transform: translateX(5px);
}

.absolute-event-card.selected {
  border-color: var(--primary-blue);
  background: rgba(30, 136, 229, 0.1);
}

.absolute-event-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.absolute-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.absolute-event-info {
  flex: 1;
  min-width: 0;
}

.absolute-event-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.absolute-event-artist {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.absolute-event-details {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.absolute-event-details > div {
  margin-bottom: 3px;
}

.absolute-event-details i {
  width: 18px;
  color: var(--primary-blue);
}

/* Event Send Button */
#event-send-btn {
  width: calc(100% - 30px);
  margin: 15px;
  padding: 12px 20px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#event-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#event-send-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
