/* Modal base */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* escondido por padrão */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

/* Conteúdo do modal */
.modal__content--trofeus {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 48px 20px 24px 20px; /* topo maior para o X */
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Botão de fechar */
.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-text);
}

.modal__close svg {
    width: 24px;
    height: 24px;
}

/* Lista de troféus */
.modal__trofeu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal__trofeu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-bg-light, #f3f4f6);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.modal__trofeu-item:hover {
    transform: translateY(-2px);
    background-color: var(--color-bg-lighter, #e5e7eb);
}

/* Nome e ano */
.modal__trofeu-name {
    font-weight: 600;
    color: var(--color-text, #111827);
}

.modal__trofeu-year {
    font-weight: 700;
    color: var(--color-primary, #10b981);
}

.modal__trofeu-name::before {
    content: "🏆";
    margin-right: 8px;
}