/* ===== Barra de busca central (estilo dark, inspirado no ChatGPT) ===== */
.destiny-search-wrapper {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

#destiny-search-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    color: #ececec;
    background: #2f2f2f;
    border: 1px solid #3d3d3d;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    outline: none;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#destiny-search-input::placeholder {
    color: #8e8e8e;
}

#destiny-search-input:focus {
    background: #343434;
    border-color: #565656;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

/* ===== Dropdown de sugestões (dark, minimalista) ===== */
#destiny-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #202123;
    border: 1px solid #343434;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 999;
}

.destiny-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #2c2c2e;
    transition: background 0.15s ease;
}

.destiny-dropdown-item:last-child {
    border-bottom: none;
}

.destiny-dropdown-item:hover {
    background: #2a2b2e;
}

.destiny-dropdown-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #3a3a3a;
}

.destiny-dropdown-logo-placeholder {
    background: #3a3a3a;
}

.destiny-dropdown-texto {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.destiny-dropdown-nome {
    font-weight: 500;
    font-size: 14px;
    color: #f2f2f2;
}

.destiny-dropdown-detalhe {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.destiny-dropdown-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9b9b9b;
    white-space: nowrap;
}

.destiny-dropdown-tag svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* ===== Página de resultados (grade de cards) ===== */
.destiny-resultados-titulo {
    text-align: center;
    margin: 40px 0 32px;
    font-weight: 600;
}

.destiny-sem-busca,
.destiny-sem-resultado {
    text-align: center;
    color: #777;
    margin: 40px 0;
}

.destiny-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.destiny-card {
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.destiny-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.destiny-card-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.destiny-card-titulo {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.destiny-card-titulo a {
    color: #111;
    text-decoration: none;
}

.destiny-card-titulo a:hover {
    text-decoration: underline;
}

.destiny-card-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin: 2px 0;
}

.destiny-card-info svg {
    flex-shrink: 0;
    opacity: 0.75;
}

.destiny-card-descricao {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    margin: 12px 0 0;
}

.destiny-card-botoes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.destiny-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.destiny-btn-primario {
    background: #111;
    color: #fff;
}

.destiny-btn-primario:hover {
    background: #333;
    color: #fff;
}

.destiny-btn-secundario {
    background: #f2f2f2;
    color: #111;
}

.destiny-btn-secundario:hover {
    background: #e6e6e6;
}
