/* THE GRID */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0;
    list-style: none;
    width: 100%;
    margin-left: 0.25rem;
}

/* THE CARD STRUCTURE */
.participant-card {
    background-color: light-dark(#ffffff, #000000);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 4px 8px 20px light-dark(rgba(0, 0, 0, 0.15), rgba(255,255,255,0.35))
}

/* Subtle lift effect on hover to indicate interactivity */
.participant-card:hover {
    transform: translateY(-4px);
    /*box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);*/
    box-shadow: none;
    border: 1px solid #2266f0;
}

/* HERO IMAGE */
.participant-hero {
    width: 100%;
    /*height: 220px;*/ /* Slightly shorter than artist images to emphasize the tagline */
    border-bottom: 1px solid #f1f5f9;
}

.participant-hero img {
    width: 100%;
    height: 100%;
    /* Ensures the image fits within the container without being cropped */
    object-fit: contain/*cover*/;
    display: block;
}

/* PARTICIPANT DETAILS */
.participant-info {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex-grow: 1; /* Pushes the footer to the bottom */
}

.participant-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    color: light-dark(#0f172a, #f0e9d6);
}

.participant-tagline {
    margin: 0;
    color: light-dark(#475569, #b0b7c3);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==================== */
/* Bio Accordion Styles */
/* ==================== */

/* ACCORDIONS */
details {
  background-color: light-dark(#f8f9fa, #1a1a1a);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

summary {
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem 0;
}

/* Creates a subtle divider when the accordion is clicked open */
details[open] summary {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

details p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* THE BIO ACCORDION */
.participant-bio {
  margin-top: 0;
  background-color: light-dark(#f8f9fa, #1a1a1a);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

.participant-bio summary {
  font-weight: 600;
  cursor: pointer;
}

.participant-bio p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ========================== */
/* [END] Bio Accordion Styles */
/* ========================== */

/* FOOTER & BUTTONS */
.participant-actions {
    position: relative;
    max-height: max(80px, 6.5rem);
    min-height: max(80px, 6.5rem);
    width: 97.5%;
    padding: 1.5rem;
    padding-left: 0.3rem;
    display: flex;
    flex-wrap: wrap; /* Allows buttons to stack neatly if there are too many for one row */
    gap: 0.75rem;
    margin-top: auto;
    flex-direction: row;
}

.btn {
    display: inline-block;
    flex: 1; /* Buttons share the width evenly */
    text-align: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
    min-width: 100px; /* Prevents buttons from getting too squished */
    gap: 0.5rem;
    cursor: pointer;
}

/* Specific button branding */
.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}
.btn-primary:hover { background-color: #1d4ed8; }

.btn-contact {
    background-color: #f16521; /* Classic orange */
    color: #ffffff;
}
.btn-contact:hover { background-color: #d1561c; }