/* Улучшенные стили поиска */
.search-profiles-section {
    background: linear-gradient(135deg, rgba(19, 135, 58, 0.1), rgba(28, 33, 41, 0.95));
    border-radius: 24px;
    padding: 30px;
    margin: 20px 0 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(19, 135, 58, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
}

.section-header h2 i {
    color: #13873a;
    margin-right: 12px;
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.search-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    color: #fff;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

.form-group label i {
    color: #13873a;
    margin-right: 8px;
}

.group-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(19, 135, 58, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.group-select:hover {
    border-color: #13873a;
    background: rgba(19, 135, 58, 0.1);
}

.group-select option {
    background: #1C2129;
    color: #fff;
}

.search-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(19, 135, 58, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #13873a;
    background: rgba(19, 135, 58, 0.1);
    box-shadow: 0 0 0 3px rgba(19, 135, 58, 0.2);
}

.search-button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #13873a, #0d5e2a);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19, 135, 58, 0.4);
}

/* Детали пользователя */
.user-details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 24px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.detail-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    min-width: 70px;
}

.detail-label i {
    color: #13873a;
    width: 20px;
    margin-right: 6px;
}

.detail-value {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    word-break: break-word;
}

/* Результаты поиска */
.results-container {
    margin-top: 30px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    color: rgba(19, 135, 58, 0.5);
    margin-bottom: 20px;
}

.empty-text h3 {
    color: #fff;
    margin-bottom: 10px;
}

.empty-text p {
    color: rgba(255, 255, 255, 0.6);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    animation: fadeInUp 0.5s ease;
}

.user-card {
    background: linear-gradient(135deg, rgba(28, 33, 41, 0.95), rgba(19, 135, 58, 0.1));
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(19, 135, 58, 0.3);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(19, 135, 58, 0.2), transparent);
    transition: left 0.5s;
}

.user-card:hover::before {
    left: 100%;
}

.user-card:hover {
    transform: translateY(-5px);
    border-color: #13873a;
    box-shadow: 0 10px 30px rgba(19, 135, 58, 0.3);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #13873a;
}

.user-badge {
    flex: 1;
}

.user-name {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.user-level {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(19, 135, 58, 0.2);
    border-radius: 12px;
    font-size: 12px;
    color: #13873a;
}

.user-details {
    margin: 15px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.detail-value {
    color: #fff;
    font-weight: 500;
    font-size: 13px;
}

.clan-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #13873a;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.user-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.view-profile-btn {
    padding: 6px 14px;
    background: rgba(19, 135, 58, 0.2);
    border: 1px solid #13873a;
    border-radius: 8px;
    color: #13873a;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-profile-btn:hover {
    background: #13873a;
    color: #fff;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Загрузчик */
.loader {
    text-align: center;
    padding: 40px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(19, 135, 58, 0.3);
    border-top-color: #13873a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Статистика поиска */
.search-stats {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(19, 135, 58, 0.1);
    border-radius: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-profiles-section {
        padding: 20px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-button {
        width: 100%;
        justify-content: center;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}
/* Кнопки */
.user-footer {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.action-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(19, 135, 58, 0.15);
    color: #13873a;
    border: 1px solid rgba(19, 135, 58, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
}

.copy-btn {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.3);
}

.copy-btn:hover {
    background: #3498db;
    color: #fff;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.copy-btn.copied {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}

.view-btn {
    background: rgba(19, 135, 58, 0.15);
    color: #13873a;
    border-color: rgba(19, 135, 58, 0.3);
}

.view-btn:hover {
    background: #13873a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(19, 135, 58, 0.3);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}