/* Container Principal */
.astro-grok-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: sans-serif;
    box-sizing: border-box;
}

/* Grid: Força 2 ícones por linha em sidebars estreitas */
.astro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); /* Reduzido para caber melhor */
    gap: 8px;
    padding: 0;
}

.astro-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 8px 4px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #e5e5e5;
    transition: transform 0.2s;
    text-align: center;
}

.astro-item:hover {
    border-color: #7b42f6;
    transform: translateY(-2px);
}

/* FORÇAR TAMANHO DO ÍCONE COM !IMPORTANT */
.astro-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    width: 100%;
}

.astro-icon svg {
    width: 28px !important;  /* Tamanho fixo pequeno */
    height: 28px !important; /* Tamanho fixo pequeno */
    max-width: 28px !important;
    color: #555;
    fill: none; /* Garante que não fique preenchido estranho */
}

.astro-item:hover .astro-icon svg {
    color: #7b42f6;
}

.astro-name {
    font-size: 9px !important; /* Fonte bem pequena */
    text-transform: uppercase;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

/* --- LIGHTBOX (MODAL) --- */
.astro-modal {
    display: none; 
    position: fixed; 
    z-index: 9999999; /* Z-index máximo */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(3px);
}

.astro-modal-content {
    background-color: #fff;
    margin: 15vh auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px; /* Modal compacto */
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    text-align: center;
    animation: astroZoom 0.3s ease-out;
}

/* Ícone dentro do Modal (Pode ser maior) */
#modal-icon svg {
    width: 50px !important;
    height: 50px !important;
    color: #7b42f6;
    margin-bottom: 10px;
}

.astro-close {
    position: absolute;
    right: 15px;
    top: 5px;
    font-size: 30px;
    font-weight: bold;
    color: #ccc;
    cursor: pointer;
}

.astro-close:hover { color: #000; }

#modal-title {
    margin: 5px 0 15px 0;
    color: #222;
    font-size: 20px;
}

#modal-text {
    font-size: 15px;
    line-height: 1.5;
    color: #444;
    text-align: justify;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #7b42f6;
}

.astro-meta {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.astro-meta span {
    font-size: 13px;
    color: #666;
}

.astro-meta strong {
    color: #000;
}

@keyframes astroZoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}