/* src/modules/home/home_view-v1.css */

/* Garante que o container ocupe a tela certa sem quebrar o header */
#view-home-hub {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    display: none; /* Controlado pelo router */
    flex-direction: column;
    align-items: center;
    padding-bottom: 80px; /* Espaço para scroll no mobile */
}

#view-home-hub.active {
    display: flex;
}

.hub-container {
    width: 100%;
    max-width: 1100px;
    margin-top: 20px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hub-header {
    margin-bottom: 40px;
    text-align: left;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.hub-header h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 300;
}

.hub-header strong {
    color: var(--gold, #D4AF37);
    font-weight: 700;
}

.hub-header p {
    color: #888;
    font-size: 1rem;
}

/* GRID SYSTEM */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* CARDS */
.hub-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.hub-card:hover {
    background: #222;
    border-color: var(--gold, #D4AF37);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Efeito de brilho dourado lateral no hover */
.hub-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--gold, #D4AF37);
    opacity: 0;
    transition: 0.3s;
}
.hub-card:hover::before { opacity: 1; }

.hub-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1px solid #333;
    transition: 0.3s;
}

.hub-card:hover .hub-icon-box {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold, #D4AF37);
}

.hub-info {
    flex: 1;
}

.hub-info h3 {
    color: #eee;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hub-info span {
    color: #666;
    font-size: 0.85rem;
    display: block;
    line-height: 1.2;
}

.hub-arrow {
    color: #444;
    font-size: 0.9rem;
}

.hub-card:hover .hub-arrow {
    color: var(--gold, #D4AF37);
    transform: translateX(5px);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .hub-header h2 { font-size: 1.5rem; }
    .hub-grid { grid-template-columns: 1fr; } /* Um card por linha no celular */
    .hub-card { padding: 20px; }
}