/* ===================================
   Voice Selector Modal Styles
   Современный темный дизайн для выбора голосов
   =================================== */

/* Модальное окно */
#voiceSelectorModal .modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
}

#voiceSelectorModal .modal-header {
    border-bottom: 1px solid #333;
    padding: 1.5rem;
}

/* Боковая панель фильтров */
.voice-filters-sidebar {
    background: rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.voice-filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.voice-filters-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.voice-filters-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.voice-filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Чекбоксы */
.form-check-input {
    background-color: transparent;
    border-color: #666;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Карточка голоса */
.voice-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #333;
    background: #222 !important;
}

.voice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: #0d6efd;
}

.voice-card.selected {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.1) !important;
}

/* Аватарка голоса */
.voice-avatar .avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.voice-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Имя голоса */
.voice-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

/* Описание голоса */
.voice-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    line-height: 1.3;
    max-height: 2.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Бейджи популярности */
.badge-popularity {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

.badge-popular {
    background-color: #dc3545;
}

.badge-trending {
    background-color: #ffc107;
    color: #000;
}

.badge-new {
    background-color: #20c997;
}

/* Теги стиля */
.voice-tags .badge {
    font-size: 0.65rem;
    padding: 0.2em 0.5em;
    background: rgba(13, 110, 253, 0.2);
    color: #6ea8fe;
    border: 1px solid rgba(13, 110, 253, 0.3);
    font-weight: normal;
}

/* Кнопка воспроизведения */
.voice-play-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-color: #0d6efd;
    color: #0d6efd;
}

.voice-play-btn:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.voice-play-btn.playing {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* Счетчик результатов */
#voiceResultsCount {
    font-size: 0.9rem;
}

#voiceResultsCount span {
    font-size: 1.1rem;
}

/* Сортировка */
#voiceSortSelect {
    max-width: 200px;
}

/* Скелетон загрузки */
#voiceLoadingSkeleton .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Пустое состояние */
#voiceEmptyState i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Адаптивность */
@media (max-width: 991px) {
    .voice-filters-sidebar {
        border-right: none;
        border-bottom: 1px solid #333;
        max-height: none;
    }

    #voiceSelectorModal .modal-dialog {
        margin: 0;
    }

    #voiceSelectorModal .modal-content {
        height: 100vh;
        border-radius: 0;
    }
}

@media (max-width: 767px) {
    .voice-card .card-body {
        padding: 0.75rem !important;
    }

    .voice-avatar .avatar-circle,
    .voice-avatar img {
        width: 40px;
        height: 40px;
    }

    .voice-name {
        font-size: 0.9rem;
    }

    .voice-description {
        font-size: 0.7rem;
    }
}

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

.voice-card-item {
    animation: fadeIn 0.3s ease-out;
}

/* Утилиты */
.cursor-pointer {
    cursor: pointer;
}

.min-w-0 {
    min-width: 0;
}
