/* CSS for Selected Artists and Mentors Page */

/* CSS Reset and Base Styles */
.selected-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.selected-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #121212;
    background-color: #fafafa;
    overflow-x: hidden;
}

/* Typography */
.selected-page h1, 
.selected-page h2, 
.selected-page h3, 
.selected-page h4, 
.selected-page h5, 
.selected-page h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.selected-page h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

.selected-page h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #de8723;
}

.selected-page p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Header */
.artists-header {
    background: linear-gradient(135deg, #de8723 0%, #e86f0e 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.artists-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.artists-header h1 {
    margin-bottom: 0.5rem;
    color: white;
}

.header-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 2rem;
}

.header-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Container */
.artists-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section */
.artists-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #de8723, #e86f0e);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Grid Layout */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    align-items: start;
}

/* Profile Cards */
.profile-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    border: 1px solid #f0f0f0;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(222, 135, 35, 0.15);
    border-color: #de8723;
}

.profile-card:focus {
    outline: 3px solid #de8723;
    outline-offset: 2px;
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.profile-card:hover .card-image img {
    transform: scale(1.05);
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #de8723, #e86f0e);
    color: white;
    font-size: 3rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.card-content {
    padding: 2rem;
}

.card-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #121212;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.card-role {
    color: #de8723;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.card-preview {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal */
.artists-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.artists-modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 2rem auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    height: auto;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.artists-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #de8723, #e86f0e);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100%;
}

.modal-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    font-size: 4rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.modal-body {
    padding: 3rem;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-name {
    font-size: 2.5rem;
    color: #121212;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.modal-role {
    color: #de8723;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}

.modal-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.modal-bio p {
    margin-bottom: 2.5rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #121212;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    background: white;
    transform: rotate(90deg);
}

.close-modal:focus {
    outline: 3px solid #de8723;
}

/* Footer */
.artists-footer {
    background: #121212;
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
}

.artists-footer p {
    opacity: 0.8;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .artists-container {
        padding: 0 1rem;
    }

    .artists-header {
        padding: 3rem 0;
    }

    .artists-section {
        padding: 3rem 0;
    }

    .artists-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
        min-height: auto;
    }

    .modal-body {
        padding: 2rem;
    }

    .modal-name {
        font-size: 2rem;
    }

    .card-image {
        height: 250px;
    }

    .modal-header {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        border-radius: 12px;
    }

    .card-content {
        padding: 1.5rem;
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .selected-page * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .profile-card {
        border: 2px solid #121212;
    }

    .close-modal {
        background: white;
        border: 2px solid #121212;
    }
}

/* Focus states for better accessibility */
.profile-card:focus-visible {
    outline: 3px solid #de8723;
    outline-offset: 2px;
}

.close-modal:focus-visible {
    outline: 3px solid #de8723;
    outline-offset: 2px;
}

/* Add a media query specifically for larger screens */
@media (min-width: 1200px) {
    .modal-content {
        max-height: none;
    }
    
    .modal-header {
        height: 400px;
    }
    
    .modal-body {
        padding: 3rem 4rem;
        max-height: none;
    }
} 