/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    text-align: right;
}

.header-top .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    text-align: center;
    padding: 20px 0;
}

.logo-container img {
    max-height: 60px;
}

.logo-container h1 {
    margin: 10px 0 0 0;
    font-size: 2em;
    font-weight: bold;
    color: #fff;
}

/* Navegação */
nav {
    background-color: rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Banner principal */
.hero-banner {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.hero-banner h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero-banner p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.hero-banner .btn {
    background-color: #28a745;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.hero-banner .btn:hover {
    background-color: #218838;
}

/* Container principal */
main {
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Contador de leilão */
.countdown-section {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.countdown-section h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #1e3a5f;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    background-color: #f9f9f9;
    border: 2px solid #1e3a5f;
    border-radius: 10px;
    padding: 20px;
    min-width: 80px;
}

.countdown-item .number {
    font-size: 2.5em;
    font-weight: bold;
    color: #1e3a5f;
}

.countdown-item .label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
}

/* Categorias */
.categories-section {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: #1e3a5f;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-card .icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.category-card h4 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 0.9em;
    color: #666;
}

/* Grid de leilões e lotes */
.leiloes-grid, .lotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.leilao-card, .lote-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.leilao-card:hover, .lote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.leilao-card img, .lote-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.leilao-card-content, .lote-card-content {
    padding: 20px;
}

.leilao-card h3, .lote-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1e3a5f;
    font-size: 1.3em;
}

.leilao-card p, .lote-card p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 8px;
}

.lote-info {
    background-color: #f9f9f9;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.lote-info p {
    margin-bottom: 5px;
}

.lote-info strong {
    color: #1e3a5f;
}

.price-highlight {
    font-size: 1.3em;
    font-weight: bold;
    color: #28a745;
}

/* Botões */
.btn {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-dar-lance {
    background-color: #dc3545;
    width: 100%;
}

.btn-dar-lance:hover {
    background-color: #c82333;
}

/* Formulários */
form {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

form h2 {
    margin-bottom: 20px;
    color: #1e3a5f;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="file"],
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="file"]:focus,
form textarea:focus {
    outline: none;
    border-color: #007bff;
}

form input[type="file"] {
    padding: 8px;
}

form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

form button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Mensagens */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: #fff;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-banner h2 {
        font-size: 1.8em;
    }

    .hero-banner p {
        font-size: 1em;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li a {
        padding: 12px 20px;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 15px;
    }

    .countdown-item .number {
        font-size: 2em;
    }
}

/* WhatsApp flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}
