/* style.css - Versão Final com Destaques Restaurados */

:root {
    /* Cores do auction.css incorporadas */
    --primary: #3498db;          
    --accent: #f39c12;           
    --danger: #e74c3c;           
    --dark-section: #34495e;     
    --bg: #f4f7f6;               
    --card-bg: #ffffff;          
    --text-main: #2c3e50;        
    --text-dim: #7f8c8d;         
    
    --comum: #95a5a6;
    --incomum: #27ae60;
    --raro: #2980b9;
    --epico: #8e44ad;
    --lendario: #e67e22;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg); 
    color: var(--text-main); 
    font-family: 'Roboto', sans-serif;
    min-height: 100vh; 
    display: flex; 
    justify-content: center; 
    padding: 40px 0;
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* --- LOGOS E CABEÇALHO --- */
header { text-align: center; margin-bottom: 30px; }
.header-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
header h1 { font-family: 'Rajdhani', sans-serif; color: var(--dark-section); font-size: 1.8rem; }
header .highlight { color: var(--primary); }

.search-container { margin-top: 20px; }
#searchInput {
    width: 100%; max-width: 400px; padding: 12px 20px;
    background: #fff; border: 1px solid #ddd;
    border-radius: 4px; color: #333; outline: none; transition: 0.3s;
}
#searchInput:focus { border-color: var(--primary); box-shadow: 0 0 8px rgba(52, 152, 219, 0.2); }

/* --- FILTROS --- */
.filters { display: flex; justify-content: center; gap: 10px; margin: 30px 0; flex-wrap: wrap; }
.filter-btn {
    background: #fff; border: 1px solid #eee; color: var(--text-dim);
    padding: 8px 18px; border-radius: 4px; cursor: pointer; transition: 0.3s;
    font-family: 'Rajdhani', sans-serif; font-weight: bold; text-transform: uppercase;
}
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- PREVIEW CARD --- */
.main-preview-card {
    position: relative; height: 400px; border-radius: 8px; overflow: hidden;
    border: 2px solid var(--primary); background: #fdfdfd; margin-bottom: 30px;
}
#main-display { width: 100%; height: 100%; object-fit: cover; }
.overlay-info {
    position: absolute; bottom: 0; width: 100%; padding: 30px;
    background: linear-gradient(transparent, rgba(255,255,255,0.95));
    color: var(--text-main); display: flex; justify-content: space-between; align-items: flex-end;
}
#item-title { font-family: 'Rajdhani', sans-serif; font-size: 26px; font-weight: bold; }

/* --- MINIATURAS (RESTAURADO) --- */
.mini-item-icon {
    width: 42px; height: 42px; border: 1px solid #ddd;
    margin-left: 8px; border-radius: 4px; background: #fff;
    transition: 0.2s;
}
/* Destaque azul ao passar o mouse nas miniaturas do preview */
.mini-item-icon:hover { 
    border-color: var(--primary); 
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}

/* --- GRID E CARDS DE ITENS (RESTAURADO) --- */
.selection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.item-card { 
    background: #fff; border-radius: 6px; border: 1px solid #eee; 
    overflow: hidden; cursor: pointer; transition: 0.3s;
}

/* Destaque azul ao passar o mouse na lista de itens */
.item-card:hover { 
    border-color: var(--primary); 
    transform: translateY(-3px); 
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15); 
}

.card-img-wrapper { height: 130px; background: #f9f9f9; border-bottom: 1px solid #eee; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.card-info { padding: 15px; text-align: center; }
.set-name { display: block; font-weight: bold; color: var(--text-main); }

/* --- RODAPÉ --- */
.site-footer {
    margin-top: 60px; padding: 50px 0 20px 0;
    background: var(--dark-section); color: #ecf0f1;
    border-radius: 0 0 8px 8px; width: 100%;
}
.footer-content {
    max-width: 1100px; margin: 0 auto; display: flex;
    justify-content: space-between; padding: 0 20px; flex-wrap: wrap; gap: 40px;
}
.footer-logo { max-width: 150px; height: auto; margin-bottom: 15px; display: block; }
.footer-brand h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; color: #fff; }
.footer-brand h3 .highlight { color: var(--accent); }
.footer-column h4 { font-family: 'Rajdhani', sans-serif; color: var(--primary); text-transform: uppercase; margin-bottom: 15px; font-size: 0.9rem; }
.footer-column a { display: block; color: #bdc3c7; text-decoration: none; margin-bottom: 10px; font-size: 0.9rem; transition: 0.3s; }
.footer-column a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); color: #95a5a6; font-size: 0.8rem; }

/* --- RARIDADES --- */
.rarity-epico { color: var(--epico); }
.rarity-lendario { color: var(--lendario); }
.rarity-raro { color: var(--raro); }

.glitch-animation { animation: simple-blink 0.3s ease-in-out; }
@keyframes simple-blink { 0% { opacity: 0.6; } 100% { opacity: 1; } }