:root {
    --primary: #0099ff;
    --light-blue: #e3f2fd;
    --dark-text: #2c3e50;
    --glass: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 153, 255, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    background: linear-gradient(135deg, #f5faff 0%, #e0f2fe 100%);
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-wrapper {
    width: 95%;
    max-width: 1100px;
    height: 85vh;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid white;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.main-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.logo-area { text-align: center; }
.main-logo { height: 90px; margin-bottom: 5px; }
.logo-area h1 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; color: #555; }
.logo-area h1 span { color: var(--primary); font-weight: 700; }

/* Main Layout */
.showcase-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    background: rgba(255, 255, 255, 0.4);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column; /* Organiza itens em coluna */
    padding: 1.5rem;
    height: 100%; /* Força a altura total */
    overflow: hidden; /* Impede que a sidebar inteira role, apenas a lista deve rolar */
}

.sidebar h3 { font-size: 0.9rem; margin-bottom: 1rem; color: var(--primary); text-transform: uppercase; }

.collection-tabs {
    display: flex;
    gap: 5px;
    background: rgba(0,0,0,0.05);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    color: #666;
    transition: 0.3s;
}

.tab-btn.active { background: white; color: var(--primary); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.weapon-scroller {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 8px;
    margin-top: 10px;
}

/* Estilo da Scrollbar (Opcional, mas recomendado para ficar bonito) */
.weapon-scroller::-webkit-scrollbar {
    width: 6px;
}

.weapon-scroller::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.weapon-scroller::-webkit-scrollbar-thumb {
    background: var(--primary); /* Cor azul do tema */
    border-radius: 10px;
}

.weapon-scroller::-webkit-scrollbar-thumb:hover {
    background: #0077cc; /* Cor um pouco mais escura ao passar o mouse */
}

.weapon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s;
}

.weapon-item:hover, .weapon-item.active {
    border-color: var(--primary);
    transform: translateX(5px);
    background: var(--light-blue);
}

.weapon-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.weapon-list-info strong { font-size: 0.85rem; display: block; }
.id-badge { font-size: 0.7rem; color: #999; }

/* Preview Stage */
.preview-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle, rgba(0,153,255,0.05) 0%, rgba(255,255,255,0) 70%);
}

.glass-card { text-align: center; width: 80%; }

.badge {
    background: var(--primary);
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.display-box {
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

#weapon-gif {
    max-width: 500px;
    z-index: 2;
    image-rendering: pixelated;
    filter: drop-shadow(0 10px 20px rgba(0,153,255,0.3));
    transition: opacity 0.3s;
}

.aura-effect {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,153,255,0.15) 0%, transparent 70%);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

.btn-details {
    margin-top: 1rem;
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-details:hover { background: var(--primary); color: white; }

/* Footer */
.main-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #888;
}

.footer-links a { color: var(--primary); text-decoration: none; margin-left: 15px; }

/* =========================================
   GAMBIARRA PARA MOBILE
   ========================================= */
@media (max-width: 768px) {
    .main-wrapper {
        width: 100%;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
        border: none;
    }

    .showcase-container {
        display: flex;
        flex-direction: column;
    }
    .preview-stage {
        order: 1;
        height: 45%;
        background: radial-gradient(circle, rgba(0,153,255,0.1) 0%, rgba(255,255,255,0) 80%);
        padding: 1rem;
    }
    .sidebar {
        order: 2; /* Lista vai para baixo */
        height: 55%; /* Ocupa o restante */
        width: 100%; /* Largura total */
        border-right: none;
        border-top: 1px solid var(--border-color); /* Separação visual */
        padding: 1rem;
    }

    /* 4. Ajustes no Preview (GIF e Textos) para caber melhor */
    .glass-card {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .display-box {
        height: 140px; /* Reduz altura da área do GIF */
        margin: 1rem 0;
    }

    #weapon-gif {
        max-width: 100px; /* Reduz o GIF para não estourar */
        max-height: 100px;
    }

    .weapon-header h2 {
        font-size: 1.2rem; /* Fonte menor no título */
    }

    /* 5. Ajustes na Lista (Sidebar) */
    .sidebar-header h3 {
        display: none; /* Esconde o título "Coleções" para ganhar espaço */
    }

    .collection-tabs {
        margin-bottom: 10px;
    }

    .tab-btn {
        padding: 6px;
        font-size: 0.7rem;
    }

    /* Garante rolagem suave na lista inferior */
    .weapon-scroller {
        padding-bottom: 20px; /* Espaço extra no final para o dedo */
    }
    
    /* 6. Ajuste no Header e Footer */
    .main-header {
        display: none;
        padding: 10px;
    }
    .main-footer {
        display: none; /* Esconde rodapé no mobile para ganhar área útil */
    }
	.glass-card {
		width: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
    .display-box {
        height: 200px;
        margin: 1rem 0;
    }
    #weapon-gif {
        max-width: 160px;
        max-height: 160px;
    }
    .weapon-header h2 {
        font-size: 1.2rem;
    }
}