/* Reset e Escopo do Leilão */
.aguabonita-leilao-wrapper {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
    color: #1a202c;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
    background: #fdfdfd;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.aguabonita-leilao-wrapper * {
    box-sizing: border-box;
}

/* Header Moderno */
.abl-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 50px 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.abl-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.abl-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.abl-logo-wrapper {
    margin: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.abl-logo {
    max-width: 180px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.abl-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 62, 62, 0.15);
    color: #fc8181;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid rgba(229, 62, 62, 0.3);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.1);
}

.abl-live-dot {
    width: 8px;
    height: 8px;
    background-color: #fc8181;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(252, 129, 129, 0.4);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(252, 129, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(252, 129, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(252, 129, 129, 0); }
}

.abl-header-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.abl-header h2 {
    font-size: 3.5rem;
    margin: 0 0 15px 0;
    font-weight: 900;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.abl-header p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 400;
}

.abl-countdown-wrapper {
    display: inline-block;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #f1f5f9;
}

.abl-countdown-label {
    margin: 0 0 15px 0 !important;
    font-weight: 700;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.abl-countdown {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.abl-cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: #fff;
    padding: 15px 20px;
    border-radius: 16px;
    min-width: 90px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.abl-cd-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}

.abl-cd-value {
    color: #38bdf8;
    font-size: 2.8rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    line-height: 1;
    margin-bottom: 5px;
}

.abl-cd-text {
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* Footer Moderno */
.abl-footer {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    color: #94a3b8;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
.abl-footer-content p {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}
.abl-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.abl-footer-links a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-size: 0.95rem;
}
.abl-footer-links a:hover {
    color: #7dd3fc;
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.4);
}

/* Grid de Carros */
.abl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Card */
.abl-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2f7;
}

.abl-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Carrossel */
.abl-carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #111;
}

.abl-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
}

.abl-carousel-slide {
    min-width: 100%;
    height: 100%;
}

.abl-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.abl-carousel-slide img:hover {
    transform: scale(1.02);
}

.abl-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1a202c;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.abl-carousel-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.abl-carousel-btn.prev { left: 15px; }
.abl-carousel-btn.next { right: 15px; }

/* Conteúdo do Card */
.abl-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.abl-car-title {
    font-size: 1.8rem;
    margin: 0 0 20px 0;
    color: #2d3748;
    font-weight: 800;
}

.abl-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.abl-specs li {
    font-size: 0.95rem;
    color: #4a5568;
    background: #f7fafc;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2f7;
}

.abl-specs li strong {
    color: #a0aec0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.abl-specs li span {
    font-weight: 600;
    color: #2d3748;
}

.abl-observacao {
    background: #f7fafc;
    border: 1px solid #edf2f7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.abl-observacao strong {
    display: block;
    color: #2d3748;
    margin-bottom: 4px;
}

/* Botão Dar Lance Principal */
.abl-btn-open-bid {
    width: 100%;
    background: #0c4b8e;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(12, 75, 142, 0.3);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.abl-btn-open-bid:hover {
    background: #08366b;
    box-shadow: 0 6px 20px rgba(12, 75, 142, 0.4);
    transform: translateY(-2px);
}

/* Modals Overlay (Fundo Escuro) */
.abl-modal-overlay,
.abl-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: fadeInModal 0.3s forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Lightbox Content */
.abl-lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain;
}

.abl-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.2s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

.abl-lightbox-close:hover {
    color: #e2e8f0;
}

/* Formulário Modal */
.abl-form-container {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    border: none;
    position: relative;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: slideUpForm 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUpForm {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.abl-close-form {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #edf2f7;
    border: none;
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.abl-close-form:hover {
    background: #e2e8f0;
    color: #e53e3e;
}

.abl-form-container h4 {
    margin: 0 0 25px 0;
    font-size: 1.4rem;
    color: #2d3748;
    line-height: 1.3;
}

.abl-form-lance {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.abl-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.abl-form-group label {
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.abl-form-group input,
.abl-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    background: #f8fafc;
    font-family: inherit;
    resize: vertical;
}

.abl-form-group input:focus,
.abl-form-group textarea:focus {
    border-color: #0c4b8e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(12, 75, 142, 0.1);
}

.abl-input-currency {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.abl-currency-symbol {
    position: absolute;
    left: 15px;
    color: #718096;
    font-weight: 600;
}

.abl-input-currency input {
    padding-left: 45px !important;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0c4b8e;
    letter-spacing: 1px;
}

.abl-msg-minimo {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 500;
}

.abl-btn-submit {
    background: #2d3748;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
    width: 100%;
}

.abl-btn-submit:hover {
    background: #1a202c;
}

.abl-btn-submit:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.abl-feedback-msg {
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    width: 100%;
}
.abl-feedback-msg.success { background: #c6f6d5; color: #22543d; }
.abl-feedback-msg.error { background: #fed7d7; color: #822727; }

/* Lances Recentes */
.abl-recent-bids {
    flex-grow: 1;
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
}

.abl-recent-bids h4 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
}
.abl-recent-bids h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #e53e3e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(229, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

.abl-bids-list-container {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 5px;
}

.abl-bids-list-container::-webkit-scrollbar { width: 6px; }
.abl-bids-list-container::-webkit-scrollbar-track { background: #edf2f7; border-radius: 4px; }
.abl-bids-list-container::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }

.abl-lances-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.abl-lances-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.abl-lances-list li:last-child { border-bottom: none; }

.abl-lance-nome {
    font-weight: 600;
    color: #4a5568;
}

.abl-lance-valor {
    font-weight: 800;
    color: #0c4b8e;
    background: #e6f0ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 1rem;
}

.abl-no-bids { color: #a0aec0; font-style: italic; font-size: 0.95rem; }

/* Responsividade Aprimorada */
@media (max-width: 768px) {
    .abl-header { padding: 30px 15px; }
    .abl-header h2 { font-size: 2.1rem; }
    .abl-countdown { gap: 10px; }
    .abl-cd-value { font-size: 2rem; }
    
    .abl-grid { grid-template-columns: 1fr; }
    .abl-specs { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .abl-header h2 { font-size: 1.8rem; }
    .abl-card-content { padding: 20px; }
    .abl-cd-value { font-size: 1.5rem; }
    .abl-cd-item { 
        min-width: 65px; 
        padding: 10px 5px; 
    }
    .abl-cd-text { font-size: 0.7rem; }
    .abl-countdown { gap: 5px; }
    .abl-carousel-container { aspect-ratio: 4 / 3; }
    .abl-logo { max-width: 150px; }
    .abl-lightbox-close { top: 10px; right: 15px; }
}
