/*
 * File: detail-pages.css
 * Version: mmdb-0.8.18-claude
 * Munich Musicians DB - Detail Pages Styles
 * Artist and band detail pages, headers, content sections
 * 0.6.23 Edit profile/band from detail pages
 * 0.6.35 CR: is_professional for admins and content editors
 * 0.8.6a display band category
 */

/* Artist Detail Page Styles */
.artist-detail-page{margin:20px 0}
.artist-detail-nav{margin-bottom:20px}
.artist-loading,.artist-error{text-align:center;padding:40px}

/* Band Detail Page Styles - Match artist detail spacing */
.band-detail-page{margin:20px 0}
.band-detail-nav{margin-bottom:20px}
.band-loading,.band-error{text-align:center;padding:40px}

/* Band Detail Page Styles - Match artist detail spacing */
.band-detail-page{margin:20px 0}
.band-detail-nav{margin-bottom:20px}
.band-loading,.band-error{text-align:center;padding:40px}

.artist-detail-content{
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

.artist-detail-header{
  padding:40px;
  background:linear-gradient(135deg, #007cba 0%, #005a8b 100%);
  color:#fff;
}

.artist-header-content{
  display:grid;
  grid-template-columns:200px 1fr;
  gap:40px;
  align-items:center;
}

.artist-photo-large{
  width:200px;
  height:200px;
  border-radius:12px;
  object-fit:cover;
  border:4px solid rgba(255,255,255,0.2);
}

.artist-no-photo-large{
  width:200px;
  height:200px;
  border:4px dashed rgba(255,255,255,0.4);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:4rem;
  color:rgba(255,255,255,0.6);
}

.artist-name-section h1{
  margin:0 0 15px 0;
  font-size:2.5rem;
  font-weight:bold;
}

.artist-stage-name{
  font-size:1.4rem;
  opacity:0.9;
  margin-bottom:20px;
}

.artist-status-badges{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
}

.status-badge-large{
  padding:10px 20px;
  border-radius:8px;
  font-size:14px;
  font-weight:bold;
  text-transform:uppercase;
  border:2px solid transparent;
}

.status-badge-large.status-yes{
  background:rgba(255,255,255,0.2);
  color:#fff;
  border-color:rgba(255,255,255,0.3);
}

.status-badge-large.status-no{
  background:rgba(0,0,0,0.2);
  color:rgba(255,255,255,0.7);
  border-color:rgba(255,255,255,0.2);
}

.status-badge-large.status-private{
  background:#fff3cd;
  color:#856404;
  border-color:#ffeaa7;
}

.status-badge-large.status-category{
  background:rgba(108, 117, 125, 0.2);
  color:#fff;
  border-color:rgba(255,255,255,0.3);
}

.status-badge-large.status-professional{
  background:linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color:#333;
  border:2px solid #ffd700;
  font-weight:bold;
  text-shadow:0 1px 2px rgba(0,0,0,0.1);
}

.artist-detail-body{
  padding:40px;
}

.artist-section{
  margin-bottom:40px;
}

.artist-section h2{
  margin:0 0 20px 0;
  color:#007cba;
  font-size:1.4rem;
  border-bottom:2px solid #eee;
  padding-bottom:10px;
}

.artist-contact{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:20px;
  margin-bottom:40px;
}

.contact-item{
  display:flex;
  align-items:center;
  gap:15px;
  padding:20px;
  background:#f8f9fa;
  border-radius:10px;
  transition:background 0.2s;
}

.contact-item:hover{
  background:#e9ecef;
}

.contact-item a{
  color:#007cba;
  text-decoration:none;
  font-weight:500;
  font-size:1.1rem;
}

.contact-item a:hover{
  text-decoration:underline;
}

.contact-icon{
  font-size:1.8rem;
  color:#666;
  min-width:30px;
}

.social-media{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:20px;
}

.social-item{
  display:flex;
  align-items:center;
  gap:15px;
  padding:15px 20px;
  background:#f8f9fa;
  border-radius:10px;
  text-decoration:none;
  color:#333;
  transition:all 0.3s ease;
  font-weight:500;
  border:2px solid transparent;
}

.social-item:hover{
  background:var(--social-color, #007cba);
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  border-color:var(--social-color, #007cba);
}

.social-icon{
  min-width:24px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.social-icon svg{
  width:24px;
  height:24px;
  fill:currentColor;
}

.tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.detail-tag{
  background:#e6f3ff;
  color:#007cba;
  padding:8px 16px;
  border-radius:8px;
  font-size:1rem;
  border:1px solid #cce7ff;
  font-weight:500;
}

.detail-tag-looking{
  background:#d4edda;
  color:#155724;
  border:1px solid #c3e6cb;
}

/* Looking for sections (instruments/skills) */
.looking-for-section {
  margin-bottom: 12px;
}

.looking-for-section:last-child {
  margin-bottom: 0;
}

.looking-for-label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 6px;
  font-weight: 500;
}

/* Band Directory List in Artist Detail - FIXED SIZING */
.bands-directory-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.band-directory-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 15px;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.band-directory-item.clickable {
    cursor: pointer;
}

.band-directory-item.clickable:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    border-color: #007cba;
}

.band-directory-item.unavailable {
    opacity: 0.6;
    background: #f5f5f5;
}

.band-directory-photo-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CRITICAL: Enforce small photo size with !important */
.band-directory-photo {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #ddd;
    display: block;
}

.band-directory-no-photo {
    width: 50px;
    height: 50px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
    background: #fff;
}

.band-directory-name {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.personal-note{
  background:#f8f9fa;
  padding:25px;
  border-radius:10px;
  border-left:5px solid #007cba;
  font-style:italic;
  line-height:1.7;
  font-size:1.1rem;
}

/* Band-specific styles for detail pages */
.band-detail-content {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.band-detail-header {
    padding: 40px;
    background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
    color: #fff;
}

.band-header-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
}

.band-photo-large {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
}

.band-no-photo-large {
    width: 200px;
    height: 200px;
    border: 4px dashed rgba(255,255,255,0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.6);
}

.band-name-section h1 {
    margin: 0 0 15px 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.band-status-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.band-detail-body {
    padding: 40px;
}

.band-section {
    margin-bottom: 40px;
}

.band-section h2 {
    margin: 0 0 20px 0;
    color: #007cba;
    font-size: 1.4rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.band-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.band-description {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #007cba;
    line-height: 1.7;
    font-size: 1.1rem;
}

.band-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.band-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.band-member.clickable {
    cursor: pointer;
}

.band-member.clickable:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #007cba;
}

.member-photo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
}

.member-no-photo {
    width: 80px;
    height: 80px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #999;
    margin-bottom: 10px;
}

.member-info {
    text-align: center;
}

.member-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.admin-badge {
    background: #007cba;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Contact Request Button - matches existing contact-item styling */
.contact-request-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-request-btn:hover {
    background: #005a8b;
    color: #fff;
}

.contact-request-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.contact-request-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-request-btn:disabled:hover {
    background: #007cba;
}

/* Ensure contact-item container handles button properly */
.contact-item .contact-request-btn {
    margin: 0;
    width: auto;
}

/* Success state for sent requests */
.contact-request-sent {
    color: #28a745;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Band Mini Tags for Artist Detail */
.band-mini-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 2px;
    background: #e6f3ff;
    color: #007cba;
    border: 1px solid #cce7ff;
}

.tag-bookable,
.tag-collaborate {
    background: #e6f3ff;
    color: #007cba;
    border: 1px solid #cce7ff;
}

.band-mini-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.band-directory-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.band-directory-status {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-self: end;
}

.band-directory-status .band-mini-tag {
    margin: 0;
}

/* Edit Button for Detail Pages */
.detail-edit-btn {
    display: inline-block;
    background: #fff;
    color: #007cba;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.detail-edit-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-decoration: none;
}

.detail-edit-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Show Detail Button for Profile Pages (inverse colors) */
.show-detail-btn {
    display: inline-block;
    background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #007cba;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,124,186,0.3);
}

.show-detail-btn:hover {
    background: linear-gradient(135deg, #005a8b 0%, #004066 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,124,186,0.4);
    text-decoration: none;
}

.show-detail-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .detail-edit-btn {
        padding: 8px 16px;
        font-size: 12px;
        top: 10px !important;
        right: 10px !important;
    }

    .show-detail-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Photo/Image Credit Display */
.photo-credit,
.image-credit {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
    font-style: italic;
    text-align: center;
}

/* Musician and Band detail pages have dark header background */
#artist-photo-container .photo-credit,
#band-photo-container .photo-credit {
    color: rgba(255, 255, 255, 0.8);
}

/* ================================================
   BOOKER (ORGANIZER) DETAIL PAGE STYLES
   Using teal/green gradient to distinguish from
   artist (blue) pages
   ================================================ */

.booker-detail-page{margin:20px 0}
.booker-detail-nav{margin-bottom:20px}
.booker-loading,.booker-error{text-align:center;padding:40px}

.booker-detail-content {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.booker-detail-header {
    padding: 40px;
    background: linear-gradient(135deg, #20c997 0%, #17a285 100%);
    color: #fff;
}

.booker-header-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
}

.booker-photo-large {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
}

.booker-no-photo-large {
    width: 200px;
    height: 200px;
    border: 4px dashed rgba(255,255,255,0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.6);
}

.booker-name-section h1 {
    margin: 0 0 15px 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.booker-organization {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.booker-type-badge {
    margin-bottom: 15px;
}

.status-badge-large.status-organizer {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.booker-detail-body {
    padding: 40px;
}

.booker-section {
    margin-bottom: 40px;
}

.booker-section h2 {
    margin: 0 0 20px 0;
    color: #20c997;
    font-size: 1.4rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Booker opportunities list */
.booker-opportunities-list,
.booker-venues-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booker-opportunity-item,
.booker-venue-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 15px;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.booker-opportunity-item.clickable,
.booker-venue-item.clickable {
    cursor: pointer;
}

.booker-opportunity-item.clickable:hover,
.booker-venue-item.clickable:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    border-color: #20c997;
}

/* Thumbnail for opportunities/venues */
.booker-item-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #e9ecef;
}

.booker-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Icon fallback when no thumbnail */
.booker-item-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #e9ecef;
    border-radius: 6px;
}

.booker-opp-title,
.booker-venue-name {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.booker-opp-category,
.booker-venue-city {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

/* Booker photo credit styling for dark header */
#booker-photo-container .photo-credit {
    color: rgba(255, 255, 255, 0.8);
}

/* Profile Header Row (booker profile page) */
.profile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.profile-header-row h2 {
    margin: 0;
}

/* Responsive for booker detail */
@media (max-width: 768px) {
    .booker-header-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .booker-photo-large,
    .booker-no-photo-large {
        width: 150px;
        height: 150px;
        margin: 0 auto 20px;
    }

    .booker-name-section h1 {
        font-size: 1.8rem;
    }

    .booker-type-badge {
        justify-content: center;
        display: flex;
    }

    .booker-detail-header,
    .booker-detail-body {
        padding: 20px;
    }

    .profile-header-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


/* Upcoming Events Section - Row-based layout */
.upcoming-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    display: flex;
    gap: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

a.event-card:hover {
    background: #e9ecef;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #007cba;
}

.event-card-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.event-card-image.placeholder {
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #999;
}

.event-card-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.event-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.event-card-date {
    font-size: 0.9rem;
    color: #007cba;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.event-card-location {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    flex-shrink: 0;
}

/* Pagination for upcoming events */
.upcoming-events-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.upcoming-events-pagination button {
    padding: 8px 16px;
    border: 1px solid #007cba;
    background: #fff;
    color: #007cba;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.upcoming-events-pagination button:hover:not(:disabled) {
    background: #007cba;
    color: #fff;
}

.upcoming-events-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upcoming-events-pagination .page-info {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .event-card {
        flex-wrap: wrap;
    }

    .event-card-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .event-card-image {
        width: 45px;
        height: 45px;
    }

    .event-card-location {
        max-width: 100%;
    }
}
