/************************************************/
/*            Mentor Styles                     */
/************************************************/

:root {
    --mentor-bg: #f5f7fa;
    --mentor-primary: #2c3e50;
    --mentor-secondary: #e74c3c;
    --mentor-accent: #3498db;
    --mentor-light: #f8f9fa;
    --mentor-dark: #2c3e50;
    --mentor-highlight: #e74c3c;
    --mentor-text: #333;
    --mentor-text-light: #718093;
    --mentor-border: #dfe6e9;
    --mentor-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --mentor-gradient: linear-gradient(135deg, #3498db, #2c3e50);
    --mentor-gradient-hover: linear-gradient(135deg, #2c3e50, #3498db);
    --mentor-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mentor-header {
    text-align: center;
    padding-top: 120px; /* Navbar'dan kaçmak için */
    padding-bottom: 40px;
    background-color: var(--mentor-light);
}

.mentor-header h1 {
    font-size: 3rem;
    color: var(--mentor-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.mentor-header p {
    max-width: 700px;
    margin: 0 auto 25px;
    color: var(--mentor-text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.header-underline {
    width: 100px;
    height: 4px;
    background: var(--mentor-gradient);
    margin: 0 auto;
    border-radius: 2px;
}

/* Filter and Search Styles */
.filter-container {
    display: none; /* Hide the filter container */
}

.filter-button {
    display: none; /* Hide filter buttons */
}

.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 30px;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--mentor-border);
    transition: var(--mentor-transition);
}

.search-box:focus-within {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
    border-color: var(--mentor-accent);
}

.search-box i {
    color: var(--mentor-text-light);
    margin-right: 10px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 5px 0;
    font-size: 1rem;
}

#clear-search {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mentor-text-light);
    display: none;
}

#clear-search:hover {
    color: var(--mentor-highlight);
}

/* Mentor Grid Styles */
.mentor-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mentor-card {
    position: relative;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--mentor-shadow);
    transition: var(--mentor-transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transform: translateY(0);
}

.mentor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.mentor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--mentor-gradient);
    opacity: 0;
    transition: var(--mentor-transition);
    z-index: 1;
}

.mentor-card:hover::before {
    opacity: 0.05;
}

.mentor-card:hover .mentor-image {
    transform: scale(1.05);
}

.mentor-card:hover .mentor-info h3 {
    color: var(--mentor-accent);
}

.mentor-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* Aspect ratio 1:1 */
}

.mentor-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--mentor-transition);
}

.mentor-specialty-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--mentor-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mentor-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    position: relative;
}

.mentor-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--mentor-dark);
    transition: var(--mentor-transition);
}

.mentor-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--mentor-text-light);
}

.mentor-view-details {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mentor-accent);
}

.mentor-view-details i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.mentor-card:hover .mentor-view-details i {
    transform: translateX(5px);
}

/* Modal Styles */
.mentor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90%;
    width: 800px;
    margin: 50px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    animation: modalFadeIn 0.5s ease forwards;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: var(--mentor-text-light);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--mentor-transition);
}

.close-modal:hover {
    background: var(--mentor-highlight);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.modal-header {
    background: var(--mentor-gradient);
    padding: 30px 40px;
    color: white;
    position: relative;
    text-align: center;
    font-size: 1.8rem;
}

.modal-header h2 {
    font-size: 2.5rem;
    margin: 0 0 10px;
    font-weight: 700;
}

.modal-header .title {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
    margin: 0;
}

.modal-profile {
    display: flex;
    justify-content: center;
    padding: 20px 20px 30px;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.modal-image-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 5px solid white;
    flex-shrink: 0;
}

.modal-image-wrapper.full-size {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal-image-wrapper.full-size img {
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    object-position: center top;
    display: block;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove unused modal sections */
.modal-info,
.modal-description,
.specialties,
.specialties h3,
.specialties h3:before,
.specialties ul,
.specialties li,
.contact-info,
.contact-info p,
.contact-info i {
    display: none;
}

/* No Results Message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--mentor-text-light);
}

.no-results i {
    font-size: 3rem;
    color: var(--mentor-border);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--mentor-dark);
}

.no-results p {
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Hidden element */
.hidden {
    display: none !important;
}

/* Responsive design */
@media (max-width: 1024px) {
    .mentor-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .mentor-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .mentor-header h1 {
        font-size: 2.2rem;
    }
    
    .mentor-header p {
        font-size: 1rem;
    }
    
    .modal-content {
        max-width: 95%;
        width: 95%;
        margin: 30px auto;
    }
    
    .modal-header {
        padding: 20px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.8rem;
    }
    
    .modal-profile {
        padding: 15px;
    }
    
    .modal-image-wrapper.full-size {
        max-height: 60vh;
    }
    
    .modal-image-wrapper.full-size img {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .mentor-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .mentor-info {
        padding: 15px;
    }
    
    .mentor-info h3 {
        font-size: 1rem;
    }
    
    .mentor-info p {
        font-size: 0.8rem;
    }
    
    .mentor-view-details {
        font-size: 0.8rem;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
    
    .modal-content {
        margin: 20px auto;
    }
    
    .modal-header {
        padding: 15px 10px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-image-wrapper.full-size {
        max-height: 50vh;
    }
    
    .modal-image-wrapper.full-size img {
        max-height: 50vh;
    }
}

.contact-info i {
    display: none;
}

.mentor-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
