/* Contact Display Styles */
.contact-display {
  display: flex;
  gap: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-display__image {
  flex: 1;
  min-width: 200px;
  max-width: 200px;
}

.contact-display__image img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.contact-display__placeholder {
  width: 200px;
  height: 200px;
  background: #f8f9fa;
  border: 2px dashed #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-display__content {
  flex: 3;
}

.contact-display__header {
  margin-bottom: 1rem;
}

.contact-display__name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: #333;
}

.contact-display__name a {
  color: #1e3a8a;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-display__name a:hover {
  color: #1e40af;
  text-decoration: underline;
  text-shadow: 0 1px 2px rgba(30, 58, 138, 0.2);
}

.contact-display__status {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.contact-display__status.inactive {
  color: #dc3545;
}

.contact-display__info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-display__phone,
.contact-display__email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.contact-display__address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.contact-display__address.hidden {
  display: none;
}

.contact-icon {
  width: 16px;
  height: 16px;
  color: #c4261c;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-display {
    flex-direction: column;
  }
  
  .contact-display__image {
    flex: none;
    align-self: center;
    min-width: auto;
    max-width: none;
  }
  
  .contact-display__image img,
  .contact-display__placeholder {
    width: 150px;
    height: 150px;
  }
  
  .contact-display__placeholder svg {
    width: 150px;
    height: 150px;
  }
  
  .contact-display__content {
    flex: none;
  }
  
  .contact-display__info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Additional fields section styling */
.contact-display__additional-details,
.contact-display__artist-details {
  margin-left: 1rem;
  margin-top: 1.5rem;
}

.contact-display__awards,
.contact-display__artist-lists {
  margin-bottom: 1rem;
}

.contact-display__awards h4,
.contact-display__artist-lists h4,
.contact-display__event-counts h4 {
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1.1rem;
}

/* Event Count Summary Styles */
.contact-display__event-counts {
  margin-bottom: 1rem;
}

.event-counts-table {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1rem;
  border-left: 4px solid #c4261c;
}

.event-year-section {
  margin-bottom: 1rem;
}

.event-year-section:last-child {
  margin-bottom: 0;
}

.event-year {
  margin: 0 0 0.5rem 0;
  color: #c4261c;
  font-size: 1rem;
  font-weight: bold;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.25rem;
}

.event-modules {
  margin-left: 1rem;
}

.event-module-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  border-bottom: 1px solid #e9ecef;
}

.event-module-row:last-child {
  border-bottom: none;
}

.module-name {
  font-weight: 500;
  color: #333;
  flex: 1;
}

.event-count {
  font-weight: bold;
  color: #666;
  text-align: right;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .event-counts-table {
    padding: 0.75rem;
  }
  
  .event-modules {
    margin-left: 0.5rem;
  }
  
  .event-module-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .event-count {
    text-align: left;
    font-size: 0.85rem;
  }
}

/* Expandable Year Sections (Full View Only) */
.event-year-toggle {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  margin: 0;
  text-align: left;
}

.event-year-toggle:hover {
  background: rgba(196, 38, 28, 0.05);
  border-radius: 4px;
}

.event-year-toggle .event-year {
  margin: 0;
  flex: 1;
}

.toggle-icon {
  color: #c4261c;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.event-year-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.event-details {
  margin-top: 0.5rem;
  padding: 1rem;
  background: white;
  border-radius: 4px;
  border-left: 2px solid #c4261c;
}

.event-details-content p {
  margin: 0 0 0.5rem 0;
  color: #333;
}

.event-loading {
  color: #666;
  font-style: italic;
  padding: 0.5rem 0;
}

/* Animation for expand/collapse */
.event-details {
  overflow: hidden;
  transition: height 0.3s ease;
}

/* Event Details Content Styling */
.event-module-section {
  margin-bottom: 1.5rem;
}

.event-module-section:last-child {
  margin-bottom: 0;
}

.event-module-title {
  margin: 0 0 1rem 0;
  color: #c4261c;
  font-size: 1.1rem;
  font-weight: bold;
  border-bottom: 2px solid #c4261c;
  padding-bottom: 0.25rem;
}

.event-group-item {
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #e9ecef;
}

.event-group-item:last-child {
  margin-bottom: 0;
}

.event-group-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.event-group-title a {
  color: #1e3a8a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.event-group-title a:hover {
  color: #c4261c;
  text-decoration: underline;
}

.event-list {
  margin: 0.5rem 0 0 1rem;
  padding: 0;
  list-style: decimal;
}

.event-item {
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
}

.event-item:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments for event details */
@media (max-width: 768px) {
  .event-group-item {
    padding-left: 0.5rem;
  }
  
  .event-list {
    margin-left: 0;
  }
  
  .event-item {
    padding: 0.4rem;
  }
  
  .event-module-title {
    font-size: 1rem;
  }
  
  .event-group-title {
    font-size: 0.95rem;
  }
}