/**
 * Artist Directory - Single Artist Template Styles
 * 
 * Updated design with:
 * - Transparent info overlay on header (90% width)
 * - Bio with 300 char preview and Read More
 * - Gallery with no header, touching images, no rounded edges, center slide
 * - Booking section with smaller header at bottom
 */

/* ===================================
   HEADER WITH OVERLAY INFO
   =================================== */

.bge-artist-header {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.bge-artist-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bge-artist-header-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bge-artist-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.bge-artist-name {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 2rem 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

/* Info Bar - Transparent background, 90% width */
.bge-artist-info-bar {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    width: 90%;
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    gap: 2rem;
}

.bge-artist-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.bge-info-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.bge-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.bge-info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* ===================================
   CONTENT CONTAINER
   =================================== */

.bge-artist-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ===================================
   SOCIAL MEDIA ROW
   =================================== */

.bge-artist-social-media {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.bge-artist-social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 50%;
    color: #1f2937;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.bge-artist-social-media a:hover {
    background: #1f2937;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Specific social media colors on hover */
.bge-artist-social-media a:hover .fa-facebook { color: #1877f2; }
.bge-artist-social-media a:hover .fa-twitter { color: #1da1f2; }
.bge-artist-social-media a:hover .fa-instagram { color: #e1306c; }
.bge-artist-social-media a:hover .fa-youtube { color: #ff0000; }
.bge-artist-social-media a:hover .fa-spotify { color: #1db954; }
.bge-artist-social-media a:hover .fa-apple { color: #000000; }
.bge-artist-social-media a:hover .fa-amazon { color: #ff9900; }

/* ===================================
   BIO SECTION (300 char preview)
   =================================== */

.bge-artist-bio {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.bge-bio-preview,
.bge-bio-full {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1rem;
}

.bge-bio-preview p,
.bge-bio-full p {
    margin-bottom: 1rem;
}

.bge-bio-ellipsis {
    color: #6b7280;
}

.bge-bio-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background: #1f2937;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bge-bio-toggle:hover {
    background: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===================================
   GALLERY CAROUSEL (3 images, 15px gaps, continuous scroll)
   =================================== */

.bge-artist-gallery-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    overflow: hidden;
}

.bge-artist-gallery {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.bge-gallery-item {
    flex: 0 0 calc((100% - 30px) / 3); /* 3 images, accounting for 2 gaps of 15px */
    height: 500px;
}

.bge-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Arrows */
.bge-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bge-gallery-nav span {
    line-height: 1;
    display: block;
}

.bge-gallery-prev {
    left: 20px;
}

.bge-gallery-next {
    right: 20px;
}

.bge-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.bge-gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* ===================================
   VIDEOS SECTION
   =================================== */

.bge-artist-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.bge-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.bge-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===================================
   BOOKING & CONTACT (Smaller header, at bottom)
   =================================== */

.bge-artist-booking {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.bge-booking-header {
    font-size: 1.25rem; /* Smaller header */
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bge-booking-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.bge-booking-item {
    display: flex;
    flex-direction: column;
}

.bge-booking-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.bge-booking-value {
    font-size: 1rem;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.bge-booking-value:hover {
    color: #4f46e5;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .bge-artist-header {
        height: 500px;
    }
    
    .bge-artist-name {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .bge-artist-info-bar {
        width: 95%;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .bge-artist-info-item {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .bge-artist-info-item:last-child {
        border-bottom: none;
    }
    
    .bge-artist-content {
        padding: 2rem 1rem;
    }
    
    .bge-artist-social-media {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .bge-artist-social-media a {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .bge-gallery-item {
        flex: 0 0 calc((100% - 30px) / 3); /* Keep 3 images on tablet */
        height: 400px;
    }
    
    .bge-gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .bge-gallery-prev {
        left: 10px;
    }
    
    .bge-gallery-next {
        right: 10px;
    }
    
    .bge-artist-videos {
        grid-template-columns: 1fr;
    }
    
    .bge-booking-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bge-artist-header {
        height: 400px;
    }
    
    .bge-artist-name {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .bge-info-icon {
        font-size: 1.5rem;
    }
    
    .bge-info-value {
        font-size: 1rem;
    }
    
    .bge-gallery-item {
        flex: 0 0 100%; /* Show 1 image on mobile */
        height: 300px;
    }
    
    .bge-artist-gallery {
        gap: 0; /* No gap on mobile when showing 1 image */
    }
    
    .bge-gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .bge-gallery-prev {
        left: 5px;
    }
    
    .bge-gallery-next {
        right: 5px;
    }
}

/**
 * Artist Archive/Gallery Styles
 * 
 * Styles for the filterable artist directory page
 */

/* ===================================
   ARCHIVE HEADER
   =================================== */

.bge-artist-archive {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: #000;
}

.bge-archive-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.bge-archive-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    letter-spacing: -0.5px;
}

.bge-archive-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================
   FILTER BAR
   =================================== */

.bge-filter-bar {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.bge-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

.bge-filter-item {
    flex: 1;
    min-width: 200px;
}

.bge-filter-search {
    flex: 2;
}

.bge-search-input,
.bge-filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
}

.bge-search-input:focus,
.bge-filter-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.bge-filter-button {
    width: 100%;
    padding: 0.75rem 2rem;
    background: #1f2937;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bge-filter-button:hover {
    background: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bge-clear-filters {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bge-clear-filters:hover {
    background: #ffffff;
    color: #1f2937;
    border-color: #9ca3af;
}

.bge-results-info {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.bge-results-count {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* ===================================
   ARTISTS GRID
   =================================== */

.bge-artists-container {
    margin-bottom: 3rem;
}

.bge-artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ===================================
   ARTIST CARD
   =================================== */

.bge-artist-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bge-artist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.bge-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card Image */
.bge-card-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bge-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.bge-artist-card:hover .bge-card-img {
    transform: scale(1.05);
}

.bge-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bge-placeholder-icon {
    font-size: 5rem;
    opacity: 0.5;
}

/* Genre Badge */
.bge-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Content */
.bge-card-content {
    padding: 1.5rem;
}

.bge-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.bge-artist-card:hover .bge-card-title {
    color: #4f46e5;
}

.bge-card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.bge-location-icon {
    font-size: 1rem;
}

/* ===================================
   PAGINATION
   =================================== */

.bge-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.bge-pagination ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bge-pagination li {
    margin: 0;
}

.bge-pagination a,
.bge-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bge-pagination a:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.bge-pagination .current {
    background: #1f2937;
    color: #ffffff;
    border-color: #1f2937;
}

/* ===================================
   NO RESULTS
   =================================== */

.bge-no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.bge-no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.bge-no-results-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.bge-no-results h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.bge-no-results p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0 0 2rem 0;
}

.bge-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #1f2937;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bge-button:hover {
    background: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .bge-artist-archive {
        padding: 2rem 1rem;
    }
    
    .bge-archive-title {
        font-size: 2rem;
    }
    
    .bge-archive-description {
        font-size: 1rem;
    }
    
    .bge-filter-bar {
        padding: 1.5rem;
    }
    
    .bge-filters {
        flex-direction: column;
    }
    
    .bge-filter-item,
    .bge-filter-search {
        flex: none;
        width: 100%;
    }
    
    .bge-results-info {
        justify-content: center;
    }
    
    .bge-artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .bge-card-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .bge-archive-title {
        font-size: 1.75rem;
    }
    
    .bge-artists-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bge-card-image {
        height: 200px;
    }
    
    .bge-pagination a,
    .bge-pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 0.75rem;
        font-size: 0.875rem;
    }
}

/* ===================================
   LOADING STATE (Optional)
   =================================== */

.bge-artists-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .bge-filter-bar,
    .bge-pagination {
        display: none;
    }
    
    .bge-artist-card {
        break-inside: avoid;
    }
}

/* Shortcode-specific wrapper adjustments */
.bge-artist-shortcode-wrapper,
.bge-artist-single-shortcode-wrapper {
    margin: 2rem 0;
}
