/* Tıbbi Birimler Sayfası Stilleri - Premium Doruk Tasarımı */

:root {
    --card-shadow: 0 10px 30px rgba(11, 44, 84, 0.05);
    --card-hover-shadow: 0 20px 40px rgba(11, 44, 84, 0.12);
}

/* Filter Bar Improvements */
.units-filter-bar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(11, 44, 84, 0.06);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.search-input-group .form-control {
    font-size: 14px;
    font-weight: 500;
    color: var(--doruk-primary);
    transition: all 0.3s ease;
    border: 1px solid transparent !important;
}

.search-input-group .form-control:focus {
    background: #fff !important;
    border-color: rgba(255, 107, 53, 0.3) !important;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.05) !important;
}

/* Alphabetical Index - Premium Redesign */
.alphabet-wrapper {
    position: relative;
}

.alphabet-index {
    padding: 5px 0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    display: flex;
    gap: 4px;
}

.alphabet-index::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.letter-item {
    flex: 0 0 auto;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
    border-radius: 50px;
    text-transform: uppercase;
}

.letter-item:hover {
    color: var(--doruk-primary);
}

.letter-item.active {
    background: var(--doruk-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(11, 44, 84, 0.15);
}

.letter-item.disabled {
    opacity: 0.2;
    pointer-events: none;
}

/* Scroll Fade Indicators (Desktop only hint) */
@media (min-width: 992px) {
    .alphabet-index {
        justify-content: center;
        overflow: visible;
    }
}

/* Unit Cards Management */
.unit-letter-group {
    scroll-margin-top: 240px;
}

.letter-header {
    margin-bottom: 30px;
}

.letter-indicator {
    width: 44px;
    height: 44px;
    background: #f8fafc;
    color: var(--doruk-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    border-radius: 10px;
    border: 1px solid rgba(11, 44, 84, 0.08);
}

.unit-link-card {
    background: #ffffff;
    padding: 22px 20px;
    border-radius: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(11, 44, 84, 0.04);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.unit-link-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--doruk-accent);
    transition: width 0.3s ease;
}

.unit-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(255, 107, 53, 0.15);
}

.unit-link-card:hover::before {
    width: 3px;
}

.unit-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--doruk-primary);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.unit-link-card:hover .unit-name {
    color: var(--doruk-accent);
}

.unit-link-card i {
    font-size: 18px;
    color: #eee;
    transition: all 0.3s ease;
}

.unit-link-card:hover i {
    color: var(--doruk-accent);
    transform: translateX(3px);
}

/* CTA Section */
.units-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--doruk-primary) 0%, #1a3f7a 100%);
    position: relative;
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .units-filter-bar {
        position: sticky !important;
        top: 60px; /* Adjust for mobile header if needed */
        padding-top: 15px !important;
        margin-bottom: 0;
    }
    
    .unit-letter-group {
        scroll-margin-top: 250px;
    }

    .letter-item {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .search-input-group .form-control {
        height: 45px !important;
    }
}

@media (max-width: 767px) {
    .unit-link-card {
        padding: 16px 15px;
    }
    
    .unit-name {
        font-size: 13px;
    }
    
    .letter-indicator {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
