/* =====================================================
   DOSYA: public/css/search-modal.css
   Kullanıcı Arama Modali - Profesyonel Tema
   ===================================================== */

/* Search Modal */
#userSearchModal {
    display: flex;
    position: fixed;
    z-index: 980;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

#userSearchModal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(88, 101, 242, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Close Button */
.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(88, 101, 242, 0.1);
    color: var(--text-primary);
}

/* Search Input Wrapper */
.search-input-wrapper {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(88, 101, 242, 0.08);
    background: var(--bg-secondary);
}

/* Search Input */
.search-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 2px solid rgba(88, 101, 242, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #5865F2;
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Search Results */
.search-results-modal {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Search Empty State */
.search-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Search Result Item */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background: rgba(88, 101, 242, 0.1);
}

.search-result-item:active {
    background: rgba(88, 101, 242, 0.15);
}

/* Avatar */
.search-result-avatar {
    position: relative;
    flex-shrink: 0;
}

.search-result-avatar .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.2);
}

.search-result-avatar .status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Result Info */
.search-result-info {
    flex: 1;
    min-width: 0;
}

.result-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-status {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Result Actions */
.search-result-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-search-action {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

/* View Profile Button */
.view-profile-btn {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.2);
}

.view-profile-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.view-profile-btn:active {
    transform: translateY(0);
}

/* Scrollbar */
.search-results-modal::-webkit-scrollbar {
    width: 6px;
}

.search-results-modal::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-modal::-webkit-scrollbar-thumb {
    background: rgba(88, 101, 242, 0.2);
    border-radius: 3px;
}

.search-results-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(88, 101, 242, 0.3);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: 480px;
        max-height: 70vh;
    }
    
    .search-results-modal {
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 10px 12px;
    }
    
    .search-result-avatar .avatar {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .result-username {
        font-size: 12px;
    }
    
    .result-status {
        font-size: 10px;
    }
    
    .btn-search-action {
        padding: 6px 10px;
        font-size: 10px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
    }
    
    .search-results-modal {
        max-height: 350px;
    }
    
    .search-empty {
        padding: 24px 16px;
        font-size: 12px;
    }
    
    .search-result-actions {
        gap: 4px;
    }
    
    .btn-search-action {
        padding: 6px 8px;
        font-size: 9px;
    }
}