/* Artists Page Styles */

.add-section-hidden {
    display: none;
}

.artist-clickable {
    cursor: pointer;
}

.artist-festivals-hidden {
    display: none;
}

.artists-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: white;
    border-radius: var(--border-radius, 8px);
    padding: var(--space-sm, 8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Center the artists list and limit its width to match other list layouts */
.artists-list {
    margin: 0 auto;
    max-width: 960px;
}

.artist-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.15s ease;
    border-radius: 4px;
}

.artist-row:hover {
    background-color: #fff5f5;
    box-shadow: 0 1px 4px rgba(230, 57, 70, 0.1);
}

.artist-row:last-child {
    border-bottom: none;
}

.artist-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.artist-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color, #e63946);
    min-width: 140px;
}

.artist-meta {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
}

.artist-bio-short {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}
.artist-links {
    display: inline-flex;
    gap: 6px;
    margin-left: 0.5rem;
}

.artist-link {
    display: inline-block;
    padding: 2px 6px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.artist-link:hover {
    background: var(--primary-color, #e63946);
    transform: translateY(-1px);
}

.artist-row-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.75rem;
}
.btn-list-edit, .btn-list-delete, .btn-show-festivals {
    padding: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, transform 0.15s ease;
    background: transparent;
    color: inherit;
}

.btn-list-edit svg, .btn-list-delete svg, .btn-show-festivals svg { display: block; width: 16px; height: 16px; }

.btn-list-edit:hover, .btn-list-delete:hover, .btn-show-festivals:hover {
    transform: translateY(-1px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.add-section {
    text-align: center;
    margin: 0.75rem 0;
}

.filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: white;
    padding: 0.75rem;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0.75rem;
}

.filters input {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius, 8px);
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.filters input:focus {
    outline: none;
    border-color: var(--primary-color, #e63946);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.loading, .error, .no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    color: #dc3545;
}

.required::after {
    content: " *";
    color: red;
}

/* Button styles specific to artists page */
.btn-primary {
    background: var(--primary-color, #e63946);
    color: white;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--border-radius, 8px);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #d62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Artist wrapper */
.artist-wrapper {
    border-bottom: 1px solid #f5f5f5;
}

.artist-wrapper:last-child {
    border-bottom: none;
}

.artist-wrapper:last-child .artist-row {
    border-bottom: none;
}

/* Show Festivals button */
.btn-show-festivals {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    background: transparent;
    color: inherit;
}

.btn-show-festivals:hover {
    transform: translateY(-1px);
}

/* Artist festivals section */
.artist-festivals {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    background: #fef3e2;
    border-top: 1px solid #f4a261;
}

.festivals-header {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--secondary-color, #1d3557);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.festivals-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.festival-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: white;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color, #e63946);
    cursor: pointer;
    transition: all 0.15s ease;
}

.festival-item:hover {
    background: #fff5f5;
    transform: translateX(4px);
    box-shadow: 0 1px 4px rgba(230, 57, 70, 0.15);
}

.festival-item-name {
    font-weight: 600;
    color: var(--primary-color, #e63946);
    font-size: 0.85rem;
    min-width: 160px;
}

.festival-item-meta {
    font-size: 0.8rem;
    color: #666;
}

.no-festivals {
    padding: 0.75rem;
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 0.85rem;
}

.loading-festivals {
    padding: 0.75rem;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}
