/* =============================================
   Horóscopo Diário v2 – Estilos
   ============================================= */

.hd-wrapper {
    font-family: inherit;
    margin: 1.5em 0;
    position: relative;
}

.hd-title {
    text-align: center;
    font-size: 1.6em;
    margin-bottom: .2em;
}

.hd-post-date {
    text-align: center;
    color: #888;
    font-size: .85em;
    margin-bottom: 1.2em;
}

/* =============================================
   GRADE DE ÍCONES
   ============================================= */
.hd-icons-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .7em;
}

@media (max-width: 700px) {
    .hd-icons-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
    .hd-icons-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Botão de cada signo */
.hd-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3em;
    padding: .8em .4em;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: transform .18s, border-color .18s, box-shadow .18s, background .18s;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    font-family: inherit;
}

.hd-icon-btn:hover {
    transform: translateY(-3px);
    border-color: var(--hd-cor, #aaa);
    box-shadow: 0 6px 18px rgba(0,0,0,.11);
    background: color-mix(in srgb, var(--hd-cor, #aaa) 6%, white);
}

.hd-icon-btn[aria-expanded="true"] {
    border-color: var(--hd-cor, #aaa);
    background: color-mix(in srgb, var(--hd-cor, #aaa) 10%, white);
    box-shadow: 0 4px 14px rgba(0,0,0,.14);
}

.hd-icon-simbolo {
    font-size: 2em;
    line-height: 1;
}

.hd-icon-nome {
    font-size: .75em;
    font-weight: 700;
    color: #444;
    text-align: center;
    line-height: 1.2;
}

/* =============================================
   PAINEL DE DETALHE
   ============================================= */
.hd-detalhe {
    overflow: hidden;
    max-height: 0;
    transition: max-height .4s ease, opacity .3s ease, margin-top .3s;
    opacity: 0;
    margin-top: 0;
}

.hd-detalhe:not([hidden]) {
    max-height: 600px;
    opacity: 1;
    margin-top: 1em;
}

/* Remove o display:none nativo do [hidden] para a animação funcionar */
.hd-detalhe[hidden] {
    display: block !important;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.hd-detalhe-inner {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 1.4em 1.6em;
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
    border-left: 5px solid var(--hd-detalhe-cor, #999);
}

/* Botão fechar */
.hd-fechar {
    position: absolute;
    top: .7em;
    right: .9em;
    background: none;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: .2em .4em;
    border-radius: 50%;
    transition: background .15s, color .15s;
}
.hd-fechar:hover {
    background: #f0f0f0;
    color: #333;
}

/* Header do painel */
.hd-detalhe-header {
    display: flex;
    align-items: center;
    gap: .7em;
    margin-bottom: .9em;
}

.hd-detalhe-simbolo {
    font-size: 2.6em;
    line-height: 1;
}

.hd-detalhe-nome {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 .15em;
}

.hd-detalhe-elemento {
    font-size: .75em;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 600;
    color: var(--hd-detalhe-cor, #666);
    background: color-mix(in srgb, var(--hd-detalhe-cor, #666) 12%, transparent);
    padding: .2em .7em;
    border-radius: 20px;
    display: inline-block;
}

/* Texto do signo */
.hd-detalhe-texto {
    font-size: 1em;
    line-height: 1.75;
    color: #333;
    margin: 0 0 .9em;
}

/* Link matéria completa */
.hd-detalhe-link {
    font-size: .85em;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color .15s;
}
.hd-detalhe-link:hover { color: #222; }

/* Estado vazio */
.hd-empty {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 2em;
    background: #fafafa;
    border-radius: 10px;
}
