/* Art Battle Artists Display Plugin Styles */

.ab-artists-container {
    max-width: 1200px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ab-artists-error,
.ab-artists-empty {
    background: #fee;
    color: #c33;
    padding: 15px;
    border: 1px solid #fcc;
    border-radius: 4px;
    margin: 20px 0;
}

.ab-artists-empty {
    background: #fffbf0;
    color: #996633;
    border-color: #ffcc99;
}

/* Event Header */
.ab-event-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e1e1;
}

.ab-event-header h3 {
    font-size: 2em;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 700;
}

.ab-event-venue,
.ab-event-date {
    font-size: 1.1em;
    color: #666;
    margin: 5px 0;
}

.ab-artist-count {
    font-size: 1em;
    color: #888;
    font-style: italic;
    margin: 10px 0 0 0;
}

.ab-apply-now-link {
    color: #e74c3c !important;
    font-weight: bold !important;
    font-style: normal !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    font-size: 1.1em;
}

.ab-apply-now-link:hover {
    color: #c0392b !important;
    text-decoration: underline !important;
}

/* Grid Layout */
.ab-artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* List Layout */
.ab-artists-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.ab-artists-list .ab-artist-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ab-artists-list .ab-artist-image {
    flex-shrink: 0;
    width: 120px;
}

.ab-artists-list .ab-artist-content {
    flex: 1;
}

/* Artist Cards */
.ab-artist-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.ab-artist-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Artist Images */
.ab-artist-image {
    margin-bottom: 15px;
    text-align: center;
}

.ab-artist-image img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.ab-artist-thumbnail {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ab-artist-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ab-artists-list .ab-artist-image img {
    height: 120px;
    width: 120px;
    border-radius: 50%;
}

/* Artist Content */
.ab-artist-name {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.ab-artist-city {
    font-size: 0.95em;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.ab-artist-bio {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    margin: 15px 0;
}

.ab-artist-bio br {
    margin-bottom: 8px;
}

/* Social Links */
.ab-artist-social {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9em;
}

.ab-artist-social a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ab-artist-social a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Footer */
.ab-artists-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.ab-generated-time {
    font-size: 0.85em;
    color: #888;
    font-style: italic;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ab-artists-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ab-event-header h3 {
        font-size: 1.6em;
    }
    
    .ab-artist-card {
        padding: 15px;
    }
    
    .ab-artists-list .ab-artist-card {
        flex-direction: column;
    }
    
    .ab-artists-list .ab-artist-image {
        width: 100%;
        text-align: center;
    }
    
    .ab-artists-list .ab-artist-image img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .ab-artists-container {
        margin: 10px 0;
    }
    
    .ab-artist-card {
        padding: 12px;
    }
    
    .ab-event-header h3 {
        font-size: 1.4em;
    }
    
    .ab-artist-name {
        font-size: 1.2em;
    }
    
    .ab-artist-image img {
        height: 150px;
    }
    
    .ab-artists-list .ab-artist-image img {
        width: 120px;
        height: 120px;
    }
}

/* Modal Styles */
.ab-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(2px);
}

.ab-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.ab-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s ease;
}

.ab-modal-close:hover {
    color: #ccc;
}

#ab-modal-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: block;
    margin: 0 auto;
}

.ab-modal-caption {
    color: #fff;
    font-size: 18px;
    padding: 15px 0;
    text-align: center;
    font-weight: 500;
}

/* Prevent body scroll when modal open */
body.ab-modal-open {
    overflow: hidden;
}

/* Print Styles */
@media print {
    .ab-artist-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .ab-artist-social a {
        color: #000;
        text-decoration: none;
    }
    
    .ab-artist-social a:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    .ab-modal {
        display: none !important;
    }
}

/* Mobile Modal Improvements */
@media (max-width: 768px) {
    .ab-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .ab-modal-close {
        top: -35px;
        font-size: 28px;
    }
    
    #ab-modal-image {
        max-height: 70vh;
    }
    
    .ab-modal-caption {
        font-size: 16px;
        padding: 10px 0;
    }
}