﻿/* Modern Professionals Page - Glassmorphism Design */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Page Header - About sayfası tarzı */
.page-header {
    background: linear-gradient(135deg, var(--kodlegal-light) 0%, var(--kodlegal-border-light) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.02) 0%, rgba(46, 16, 101, 0.05) 100%);
    pointer-events: none;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="team-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23team-dots)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.page-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 3.5rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 2px;
    transition: all 0.4s ease;
}

.page-title:hover::after {
    width: 120px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary), var(--kodlegal-accent));
    height: 4px;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--kodlegal-primary);
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Filter Section - Glassmorphism */
.filter-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    padding: 2rem 0;
    overflow-x: hidden;
    width: 100%;
}

.alphabet-filter {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--kodlegal-primary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 16, 101, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    min-width: 50px;
    box-shadow: 0 4px 15px rgba(46, 16, 101, 0.1);
}

.filter-btn:hover, .filter-btn:active {
    color: white;
    background: rgba(46, 16, 101, 0.9);
    border-color: var(--kodlegal-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 16, 101, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(46, 16, 101, 0.3);
    transform: translateY(-1px);
}

.filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--danger-color);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

.filter-clear:hover, .filter-clear:active {
    background: linear-gradient(135deg, var(--danger-color), var(--danger-light));
    color: var(--kodlegal-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

/* Professional Cards - Glassmorphism */
.professionals-section {
    background: linear-gradient(135deg, var(--kodlegal-light) 0%, var(--kodlegal-bg-light) 100%);
    padding: 3rem 0;
    min-height: auto;
    overflow-x: hidden;
    width: 100%;
}

.professional-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 8px 32px rgba(46, 16, 101, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.professional-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.professional-card:hover, .professional-card:active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(46, 16, 101, 0.3);
    box-shadow: 0 20px 60px rgba(46, 16, 101, 0.15);
    transform: translateY(-10px);
}

.professional-card:hover::before {
    opacity: 1;
}

.professional-card:hover, .professional-card:active .professional-image img {
    transform: scale(1.05);
}

.professional-info {
    padding: 2rem;
    position: relative;
}

.professional-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--kodlegal-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.professional-title {
    font-size: 1.1rem;
    color: var(--kodlegal-primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.professional-specialties {
    font-size: 0.95rem;
    color: var(--kodlegal-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.professional-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.detail-item i {
    width: 20px;
    color: var(--kodlegal-primary);
    margin-right: 0.8rem;
    font-size: 1rem;
}

.detail-item a {
    color: var(--kodlegal-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.detail-item a:hover, a:active {
    color: var(--kodlegal-primary);
}

.professional-link {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    color: white !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 16, 101, 0.2);
}

.professional-link:hover, .professional-link:active {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 16, 101, 0.3);
}

/* No Professionals Found */
.no-professionals {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(46, 16, 101, 0.1);
    margin: 2rem 0;
}

.no-professionals i {
    font-size: 4rem;
    color: var(--kodlegal-primary);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-professionals h3 {
    font-size: 1.8rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-professionals p {
    color: var(--kodlegal-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Join Team Section - Glassmorphism */
.join-team-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 0;
    margin-top: 1rem;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    transition: all 0.4s ease;
    border-radius: 2px;
}

.section-title:hover::after {
    width: 100px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary), var(--kodlegal-accent));
    height: 4px;
}

/* Pagination - Glassmorphism */
.pagination {
    margin-top: 2rem;
    gap: 0.5rem;
}

.page-item .page-link {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 16, 101, 0.2);
    border-radius: 10px;
    color: var(--kodlegal-primary);
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 16, 101, 0.1);
}

.page-item:hover, .page-item:active .page-link {
    background: rgba(46, 16, 101, 0.9);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 16, 101, 0.2);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(46, 16, 101, 0.3);
}

.page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.4);
    color: rgba(46, 16, 101, 0.4);
    border-color: rgba(46, 16, 101, 0.1);
}

/* Animasyon */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0;
    }
    
    .page-title {
        font-size: 2.8rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .alphabet-filter {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .professional-image {
        height: 220px;
        width: 100%;
    }
    
    .professional-image img {
        object-fit: fill !important;
        width: 100%;
        height: 100%;
    }
    
    .professional-info {
        padding: 1.5rem;
    }
    
    .professional-name {
        font-size: 1.2rem;
    }
    
    .professional-title {
        font-size: 0.85rem;
    }
    
    .professional-specialties {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .detail-item {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .professionals-section {
        padding: 2rem 0;
    }
    
    .join-team-section {
        padding: 2rem 0;
        margin-top: 0.5rem;
    }
    
    .pagination {
        margin-top: 1.5rem;
    }
}

.professional-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--kodlegal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.professional-image img {
    width: 100%;
    height: 100%;
    object-fit: fill !important;
    transition: all 0.4s ease;
    display: block;
}

.professional-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--kodlegal-gray);
}

.professional-placeholder i {
    font-size: 4rem;
}

.professional-info {
    padding: 1.5rem;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.professional-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--kodlegal-dark);
    margin-bottom: 0.5rem;
}

.professional-title {
    color: var(--kodlegal-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.professional-specialties {
    color: var(--kodlegal-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.professional-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.detail-item i {
    color: var(--kodlegal-primary);
    width: 18px;
    margin-right: 0.75rem;
}

.detail-item a {
    color: var(--kodlegal-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-item a:hover, a:active {
    color: var(--kodlegal-primary);
}

.professional-link {
    color: var(--kodlegal-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.professional-link:hover, .professional-link:active {
    color: var(--kodlegal-accent);
}

/* No Professionals */
.no-professionals {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--kodlegal-gray);
}

.no-professionals i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--kodlegal-primary);
}

.no-professionals h3 {
    color: var(--kodlegal-dark);
    margin-bottom: 1rem;
}

/* Join Team Section */
.join-team-section .section-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 2.2rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--kodlegal-primary);
    border-color: var(--kodlegal-border-light);
    font-size: 0.875rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--kodlegal-primary);
    border-color: var(--kodlegal-primary);
}

.pagination .page-link:hover, .page-link:active {
    color: var(--kodlegal-accent);
    border-color: var(--kodlegal-primary);
}

/* Responsive */
@media (max-width: 991px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    body, html {
        overflow-x: hidden !important;
    }
    
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .filter-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .alphabet-filter {
        justify-content: flex-start;
        padding: 0 5px;
    }
    
    .professional-image {
        height: 200px;
        width: 100%;
    }
    
    .professional-image img {
        object-fit: fill !important;
        width: 100%;
        height: 100%;
    }
    
    .professional-info {
        padding: 1rem;
    }
    
    .professional-name {
        font-size: 1.1rem;
    }
    
    .professional-title {
        font-size: 0.8rem;
    }
    
    .professional-specialties {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .detail-item {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .detail-item i {
        width: 16px;
        font-size: 0.9rem;
    }
    
    .professional-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .alphabet-filter {
        text-align: left;
    }
    
    .filter-btn {
        margin: 0.1rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Join Team Section - "BAŞVURU YAP" button color override */
.join-team-section .btn-primary {
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary)) !important;
    border: 2px solid transparent !important;
    box-shadow: 0 8px 25px rgba(46, 16, 101, 0.2);
    transition: all 0.3s ease;
    color: white !important;
}

.join-team-section .btn-primary:hover,
.join-team-section .btn-primary:active {
    background: white !important;
    color: var(--kodlegal-primary) !important;
    border: 2px solid var(--kodlegal-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(46, 16, 101, 0.3);
}

