/* css/pages/Функции_index/search_by_number_or_nickna.css */

/* Основной контейнер поиска */
.search-profiles-section {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid rgba(19, 135, 58, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Заголовок */
.search-profiles-section .section-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(19, 135, 58, 0.3);
}

.search-profiles-section .section-header h2 {
    color: #13873a;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.search-profiles-section .section-header p {
    color: #adb5bd;
    margin: 0;
    font-size: 1rem;
}

/* Форма поиска */
.search-form {
    background: rgba(28, 33, 41, 0.7);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #13873a;
}

.group-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(19, 135, 58, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.group-select:focus {
    outline: none;
    border-color: #13873a;
    box-shadow: 0 0 0 3px rgba(19, 135, 58, 0.2);
}

.group-select option {
    background: #1C2129;
    color: #fff;
    padding: 10px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(19, 135, 58, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #13873a;
    box-shadow: 0 0 0 3px rgba(19, 135, 58, 0.2);
}

.search-button {
    padding: 12px 25px;
    background: #13873a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-button:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 135, 58, 0.4);
}

.search-button:disabled {
    background: #4a5568;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Результаты поиска */
.results-container {
    margin-top: 20px;
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #13873a;
}

.loading-spinner {
    font-size: 2rem;
    margin-bottom: 15px;
}

.loading-text h4 {
    margin: 0 0 5px 0;
    color: #fff;
}

.loading-text p {
    color: #adb5bd;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #4a5568;
}

.empty-text h3 {
    margin: 0 0 10px 0;
    color: #fff;
}

.empty-text p {
    color: #adb5bd;
    margin: 0;
}

.error-state .empty-icon {
    color: #e53e3e;
}

.error-state .empty-text h3 {
    color: #e53e3e;
}

/* Карточка результата */
.result-card {
    background: rgba(28, 33, 41, 0.7);
    border: 1px solid rgba(19, 135, 58, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.result-card:hover {
    border-color: #13873a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(19, 135, 58, 0.2);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: #13873a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-number i {
    font-size: 1.1rem;
}

.result-nickname {
    color: #d1d5db;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-nickname i {
    color: #4ade80;
    font-size: 0.9rem;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.result-stat {
    background: rgba(19, 135, 58, 0.1);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(19, 135, 58, 0.2);
}

.result-stat-label {
    display: block;
    color: #4ade80;
    font-size: 0.85rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.result-stat-value {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.result-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-group i {
    color: #13873a;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(22, 27, 34, 0.95);
    border-left: 4px solid #13873a;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.notification.error {
    border-left-color: #e53e3e;
}

.notification.success {
    border-left-color: #38a169;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-profiles-section {
        margin: 15px;
        padding: 20px;
    }
    
    .search-form {
        padding: 20px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-button {
        width: 100%;
        justify-content: center;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .search-profiles-section {
        padding: 15px;
        margin: 10px;
    }
    
    .search-form {
        padding: 15px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .result-card {
        padding: 15px;
    }
}

/* Кнопка копирования в карточке профиля */
.result-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-profile-btn {
    background: rgba(19, 135, 58, 0.2);
    color: #13873a;
    border: 1px solid rgba(19, 135, 58, 0.3);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.copy-profile-btn:hover {
    background: rgba(19, 135, 58, 0.3);
    border-color: #13873a;
    transform: translateY(-2px);
}

.copy-profile-btn.copied {
    background: rgba(56, 161, 105, 0.2);
    color: #38a169;
    border-color: #38a169;
}

.copy-profile-btn.copied i {
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Анимация успешного копирования */
.copy-success {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(56, 161, 105, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}