/* ====================================
   VOCALAI - VOICES
==================================== */

/* Voice Grid */

.voice-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fill,minmax(260px,1fr));
    gap:16px;
}

/* Voice Card */

.voice-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:16px;
    cursor:pointer;
    transition:all .3s ease;
    position:relative;
}

.voice-card:hover{
    transform:translateY(-4px);
    border-color:var(--primary);
    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

/* Active Voice */

.voice-card.active{
    border:2px solid var(--primary);
    background:rgba(109,93,252,.08);
}

/* Favorite Voice */

.voice-card.favorite{
    border-color:var(--secondary);
}

/* Top Area */

.voice-top{
    display:flex;
    align-items:center;
    gap:12px;
}

/* Avatar */

.voice-avatar{
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-weight:700;
    background:
    linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
}

/* Voice Name */

.voice-name{
    font-size:16px;
    font-weight:700;
    color:var(--text);
}

/* Language */

.voice-lang{
    font-size:13px;
    color:var(--muted);
}

/* Badges */

.voice-badge{
    display:inline-flex;
    align-items:center;
    gap:4px;
    font-size:11px;
    padding:4px 8px;
    border-radius:999px;
    background:#eef2ff;
    color:var(--primary);
    margin-top:6px;
}

/* Footer */

.voice-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:12px;
}

/* Buttons */

.voice-btn{
    border:none;
    background:none;
    cursor:pointer;
    transition:.3s;
}

.voice-btn:hover{
    transform:scale(1.05);
}

/* Favorite */

.voice-favorite{
    color:#d1d5db;
}

.voice-favorite.active{
    color:var(--secondary);
}

/* Select Button */

.voice-select{
    background:var(--primary);
    color:white;
    border:none;
    border-radius:10px;
    padding:8px 14px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
}

.voice-select:hover{
    opacity:.9;
}

/* Category Bar */

.voice-categories{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:20px;
}

/* Category Button */

.voice-category{
    border:none;
    background:#f3f4f6;
    color:#374151;
    padding:8px 14px;
    border-radius:999px;
    cursor:pointer;
    font-size:13px;
    transition:.3s;
}

.voice-category:hover{
    background:#e5e7eb;
}

/* Active Category */

.voice-category.active{
    background:var(--primary);
    color:white;
}

/* Search */

.voice-search{
    width:100%;
    padding:12px 16px;
    border:1px solid var(--border);
    border-radius:14px;
    margin-bottom:18px;
    font-size:14px;
}

/* Count */

.voice-count{
    font-size:13px;
    color:var(--muted);
    margin-bottom:12px;
}

/* Preview Button */

.voice-preview{
    background:#f8fafc;
    border:1px solid var(--border);
    border-radius:10px;
    padding:8px 12px;
    cursor:pointer;
}

.voice-preview:hover{
    border-color:var(--primary);
}

/* Mobile */

@media(max-width:768px){

    .voice-grid{
        grid-template-columns:1fr;
    }

    .voice-categories{
        overflow-x:auto;
        flex-wrap:nowrap;
        padding-bottom:6px;
    }

    .voice-category{
        white-space:nowrap;
    }

}