﻿/* =============================================
   YETKİLİ İDARELER - MODERN ARAMA BÖLÜMÜ
   Custom Dropdown - Arama Özellikli
   ============================================= */

/* Ana Section */
.yetkili-modern-section {
    position: relative;
    padding: 80px 0 120px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    margin-top: -1px;
}

    /* Animasyonlu Arka Plan */
    .yetkili-modern-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 10% 90%, rgba(30, 77, 121, 0.4) 0%, transparent 40%), radial-gradient(circle at 90% 10%, rgba(37, 38, 56, 0.5) 0%, transparent 40%), radial-gradient(circle at 50% 50%, rgba(30, 77, 121, 0.15) 0%, transparent 50%);
        animation: yetkiliPulse 20s ease-in-out infinite;
    }

@keyframes yetkiliPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

/* Floating Particles */
.yetkili-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

    .yetkili-particles .particle {
        position: absolute;
        width: 4px;
        height: 4px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        animation: floatParticleYetkili 18s infinite linear;
    }

        .yetkili-particles .particle:nth-child(1) {
            left: 5%;
            animation-delay: 0s;
        }

        .yetkili-particles .particle:nth-child(2) {
            left: 15%;
            animation-delay: 2s;
        }

        .yetkili-particles .particle:nth-child(3) {
            left: 25%;
            animation-delay: 4s;
        }

        .yetkili-particles .particle:nth-child(4) {
            left: 35%;
            animation-delay: 1s;
        }

        .yetkili-particles .particle:nth-child(5) {
            left: 45%;
            animation-delay: 3s;
        }

        .yetkili-particles .particle:nth-child(6) {
            left: 55%;
            animation-delay: 5s;
        }

        .yetkili-particles .particle:nth-child(7) {
            left: 65%;
            animation-delay: 2s;
        }

        .yetkili-particles .particle:nth-child(8) {
            left: 75%;
            animation-delay: 4s;
        }

        .yetkili-particles .particle:nth-child(9) {
            left: 85%;
            animation-delay: 1s;
        }

        .yetkili-particles .particle:nth-child(10) {
            left: 95%;
            animation-delay: 3s;
        }

@keyframes floatParticleYetkili {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Ana Kart Container */
.yetkili-search-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: visible;
}

    .yetkili-search-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent 0%, #1E4D79 20%, #4a90c2 50%, #1E4D79 80%, transparent 100%);
    }

/* Başlık Alanı */
.yetkili-header {
    text-align: center;
    margin-bottom: 40px;
}

.yetkili-header-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #1E4D79 0%, #2d6da3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(30, 77, 121, 0.4);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.yetkili-header-icon i {
    font-size: 32px;
    color: #fff;
}

.yetkili-header h3 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.yetkili-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Alanı */
.yetkili-form {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr auto;
    gap: 20px;
    align-items: end;
}

/* Input ve Select Grupları */
.yetkili-input-group {
    position: relative;
}

    .yetkili-input-group label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

        .yetkili-input-group label i {
            margin-right: 8px;
            color: #4a90c2;
        }

/* Modern Input */
.yetkili-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

    .yetkili-input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .yetkili-input:focus {
        background: rgba(255, 255, 255, 0.08);
        border-color: #1E4D79;
        box-shadow: 0 0 20px rgba(30, 77, 121, 0.3);
    }

/* =============================================
   CUSTOM DROPDOWN - MODERN TASARIM
   ============================================= */
.custom-dropdown {
    position: relative;
    width: 100%;
}

/* Dropdown Trigger */
.dropdown-trigger {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-align: left;
    position: relative;
}

    .dropdown-trigger:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .dropdown-trigger.active {
        background: rgba(255, 255, 255, 0.1);
        border-color: #1E4D79;
        box-shadow: 0 0 25px rgba(30, 77, 121, 0.4);
        border-radius: 12px 12px 0 0;
    }

.dropdown-trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .dropdown-trigger-text.placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

/* Dropdown Ok İkonu */
.dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .dropdown-arrow i {
        font-size: 11px;
        color: #4a90c2;
        transition: transform 0.3s ease;
    }

.dropdown-trigger:hover .dropdown-arrow {
    background: rgba(30, 77, 121, 0.3);
}

.dropdown-trigger.active .dropdown-arrow {
    background: #1E4D79;
}

    .dropdown-trigger.active .dropdown-arrow i {
        transform: rotate(180deg);
        color: #fff;
    }

/* Dropdown Menü */
.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(22, 33, 62, 0.98) 0%, rgba(26, 26, 46, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid #1E4D79;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

    .dropdown-menu-custom.open {
        max-height: 280px;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
    }

/* =============================================
   DROPDOWN SEARCH INPUT
   ============================================= */
.dropdown-search-wrapper {
    position: sticky;
    top: 0;
    background: rgba(22, 33, 62, 0.98);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.dropdown-search-input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

    .dropdown-search-input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .dropdown-search-input:focus {
        background: rgba(255, 255, 255, 0.12);
        border-color: #4a90c2;
    }

.dropdown-search-wrapper::before {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* Custom Scrollbar */
.dropdown-menu-custom::-webkit-scrollbar {
    width: 5px;
}

.dropdown-menu-custom::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.dropdown-menu-custom::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1E4D79, #4a90c2);
    border-radius: 3px;
}

/* Dropdown Item - Kompakt */
.dropdown-item-custom {
    padding: 10px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

    .dropdown-item-custom:last-child {
        border-bottom: none;
    }

    /* Hover Efekti */
    .dropdown-item-custom::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(180deg, #1E4D79, #4a90c2);
        transform: scaleY(0);
        transition: transform 0.2s ease;
    }

    .dropdown-item-custom:hover {
        background: rgba(30, 77, 121, 0.2);
        color: #fff;
        padding-left: 18px;
    }

        .dropdown-item-custom:hover::before {
            transform: scaleY(1);
        }

    /* Seçili Item */
    .dropdown-item-custom.selected {
        background: rgba(30, 77, 121, 0.3);
        color: #fff;
    }

        .dropdown-item-custom.selected::before {
            transform: scaleY(1);
        }

        .dropdown-item-custom.selected::after {
            content: '\f00c';
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            right: 12px;
            color: #4a90c2;
            font-size: 11px;
        }

/* Item İkonu - Kompakt */
.dropdown-item-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

    .dropdown-item-icon i {
        font-size: 12px;
        color: #4a90c2;
    }

.dropdown-item-custom:hover .dropdown-item-icon {
    background: rgba(30, 77, 121, 0.4);
    transform: scale(1.05);
}

.dropdown-item-custom.selected .dropdown-item-icon {
    background: #1E4D79;
}

    .dropdown-item-custom.selected .dropdown-item-icon i {
        color: #fff;
    }

/* Gizli Select */
.dropdown-hidden-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* Arama Butonu */
.yetkili-search-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1E4D79 0%, #2d6da3 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    min-width: 130px;
    height: 54px;
}

    .yetkili-search-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .yetkili-search-btn:hover::before {
        left: 100%;
    }

    .yetkili-search-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(30, 77, 121, 0.5);
    }

    .yetkili-search-btn:active {
        transform: translateY(-1px);
    }

    .yetkili-search-btn i {
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    .yetkili-search-btn:hover i {
        transform: translateX(3px);
    }

/* Alt Bilgi Alanı */
.yetkili-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.yetkili-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yetkili-stat-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .yetkili-stat-icon i {
        font-size: 18px;
        color: #4a90c2;
    }

.yetkili-stat-text {
    text-align: left;
}

.yetkili-stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.yetkili-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1200px) {
    .yetkili-form {
        grid-template-columns: 1fr 1fr;
    }

    .yetkili-search-btn {
        grid-column: span 2;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .yetkili-modern-section {
        padding: 60px 0 100px;
    }

    .yetkili-search-card {
        padding: 40px 35px;
    }

    .yetkili-header h3 {
        font-size: 26px;
    }

    .yetkili-footer {
        flex-wrap: wrap;
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .yetkili-modern-section {
        padding: 50px 0 80px;
    }

    .yetkili-search-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .yetkili-header-icon {
        width: 60px;
        height: 60px;
    }

        .yetkili-header-icon i {
            font-size: 24px;
        }

    .yetkili-header h3 {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .yetkili-header p {
        font-size: 13px;
    }

    .yetkili-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .yetkili-search-btn {
        grid-column: span 1;
    }

    .yetkili-input,
    .dropdown-trigger {
        padding: 14px 16px;
    }

    .yetkili-footer {
        flex-direction: column;
        gap: 20px;
    }

    .yetkili-stat {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu-custom {
        max-height: 220px;
    }
}

@media (max-width: 480px) {
    .yetkili-search-card {
        padding: 25px 15px;
    }

    .yetkili-header h3 {
        font-size: 18px;
    }

    .yetkili-search-btn {
        padding: 14px 25px;
    }
}

/* =============================================
   ANİMASYONLAR
   ============================================= */
.yetkili-search-card {
    animation: cardFadeIn 0.8s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown item animasyonu */
.dropdown-menu-custom.open .dropdown-item-custom {
    animation: itemSlideIn 0.25s ease forwards;
    opacity: 0;
}

    .dropdown-menu-custom.open .dropdown-item-custom:nth-child(1) {
        animation-delay: 0.03s;
    }

    .dropdown-menu-custom.open .dropdown-item-custom:nth-child(2) {
        animation-delay: 0.06s;
    }

    .dropdown-menu-custom.open .dropdown-item-custom:nth-child(3) {
        animation-delay: 0.09s;
    }

    .dropdown-menu-custom.open .dropdown-item-custom:nth-child(4) {
        animation-delay: 0.12s;
    }

    .dropdown-menu-custom.open .dropdown-item-custom:nth-child(5) {
        animation-delay: 0.15s;
    }

    .dropdown-menu-custom.open .dropdown-item-custom:nth-child(6) {
        animation-delay: 0.18s;
    }

@keyframes itemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
