:root {
    --primary: #76A9C3;
    --primary-dark: #5A8BA8;
    --primary-light: #A8CEE0;
    --accent: #D4A843;
    --accent-hover: #C49A3A;
    --dark: #1A1A2E;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-600: #6C757D;
    --gray-900: #212529;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { font-family: var(--font-family); }

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: white;
    font-size: 0.8rem;
    padding: 6px 0;
}
.top-bar a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.top-bar a:hover { color: white; }

/* Navbar */
.navbar { padding: 12px 0; }
.navbar .nav-link {
    font-weight: 500;
    color: var(--gray-900);
    padding: 8px 14px !important;
    transition: color 0.2s;
}
.navbar .nav-link:hover { color: var(--primary); }

/* Dropdown Categorias */
.dropdown-menu-categorias { min-width: 250px; padding: 8px; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dropdown-submenu { position: relative; }
.dropdown-submenu .dropdown-menu {
    position: absolute; left: 100%; top: 0; margin-top: -8px; display: none; min-width: 220px;
}
.dropdown-submenu:hover .dropdown-menu { display: block; }

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, #2A2A4A 100%);
    color: white;
    padding: 80px 0;
    min-height: 500px;
}
.hero-title { font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.7); margin-bottom: 30px; max-width: 500px; }
.text-accent { color: var(--accent); }
.stat-number { font-size: 2rem; font-weight: 800; display: block; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.hero-logo { filter: brightness(1) drop-shadow(0 10px 20px rgba(0,0,0,0.3)); }

/* Categoria Cards */
.categoria-card {
    display: block;
    background: white;
    border-radius: 16px;
    padding: 25px 15px;
    text-decoration: none;
    color: var(--gray-900);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    color: var(--primary);
}
.categoria-icon {
    width: 60px; height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    color: var(--primary-dark);
}
.categoria-card span { font-weight: 600; font-size: 0.9rem; }

/* Section Titles */
.section-title { font-size: 1.8rem; font-weight: 700; }

/* Leilão Cards */
.leilao-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.leilao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.card-img-wrapper { position: relative; overflow: hidden; }
.card-img-wrapper img { height: 200px; width: 100%; object-fit: cover; transition: transform 0.3s; }
.leilao-card:hover .card-img-wrapper img { transform: scale(1.05); }
.badge-leilao-tipo {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,0.7); color: white;
    padding: 4px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; z-index: 2;
}
.badge-leilao-status {
    position: absolute; top: 10px; right: 10px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; z-index: 2;
}
.categoria-tag { color: var(--primary); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.leilao-info { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--gray-200); }

/* Newsletter */
.newsletter-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.newsletter-input .form-control { border-radius: 50px 0 0 50px; border: none; padding-left: 20px; }
.newsletter-input .btn { border-radius: 0 50px 50px 0; }

/* Footer */
.footer { background: var(--dark) !important; }
.footer a:hover { color: var(--accent) !important; }

/* Filtros Card */
.filtros-card { border: none; box-shadow: 0 2px 10px rgba(0,0,0,0.06); position: sticky; top: 90px; }

/* Detalhe Leilão */
.img-detalhe { max-height: 450px; object-fit: cover; }
.thumb-img { cursor: pointer; height: 70px; object-fit: cover; }
.valor-box { border-radius: 12px; }

/* Admin */
.bg-primary { background-color: var(--primary) !important; }
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); color: white; }
.btn-accent { background-color: var(--accent); border-color: var(--accent); color: white; }
.btn-accent:hover { background-color: var(--accent-hover); border-color: var(--accent-hover); color: white; }
.text-primary { color: var(--primary) !important; }

/* Alertas customizados */
.alert { border-radius: 12px; border: none; }

/* Responsivo */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-section { padding: 50px 0; min-height: auto; }
    .top-bar-info span { display: block; margin: 0 !important; }
    .dropdown-submenu .dropdown-menu { position: static; }
}