/* Lorenzon Valorizômetro - Estilos Frontend */

/* Importa Roboto do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* Aplica em todo o plugin */
.lv-container,
.lv-container * {
    font-family: 'Roboto', sans-serif;
}

/* Container Principal */
.lv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Títulos */
.lv-titulo {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

/* ===== TABELA DE LOTES ===== */

.lv-tabela-wrapper {
    margin-bottom: 60px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 30px;
}

/* Tabela Desktop */
.lv-tabela-mobile {
    display: none;
}

.lv-tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.lv-tabela thead {
    background: #2c5f2d;
    color: #fff;
}

.lv-tabela th {
    padding: 7px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.lv-tabela td {
    padding: 7px 15px;  /* 6px vertical = bem compacto */
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
	font-size: 15px;
}

.lv-tabela tbody tr {
    transition: background-color 0.2s;
}

.lv-tabela tbody tr:hover {
    background-color: #f8f9fa;
}

.lv-tabela tbody tr.lv-lote-indisponivel {
    opacity: 0.6;
}

/* Status Badges */
.lv-status-badge {
    display: inline-block;
    padding: 1px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    min-width: 90px;
    text-align: center;
}

.lv-status-disponivel {
    background: #d4edda;
    color: #155724;
}

.lv-status-vendido {
    background: #f8d7da;
    color: #721c24;
}

.lv-status-reservado {
    background: #fff3cd;
    color: #856404;
}

/* Botões */
.lv-btn-calcular {
    background: #2c5f2d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 13px;
    min-width: 180px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lv-btn-calcular:hover {
    background: #1e4620;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 95, 45, 0.3);
}

.lv-btn-indisponivel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #e0e0e0;
    color: #333;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    min-width: 180px;
    height: 35px;
}

/* ===== CALCULADORA ===== */

.lv-calculadora-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 30px;
    scroll-margin-top: 100px;
}

.lv-calculadora-info {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.lv-calculadora-resultados {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.lv-resultado-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.lv-resultado-header h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
	font-weight: 700;
}

.lv-resultado-header p {
    color: #666;
    margin: 5px 0;
}

.lv-valor-inicial {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50 !important;
    margin-top: 15px !important;
}

/* Cards de Resultados */
.lv-resultado-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lv-resultado-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    border: 1px solid #e0e0e0;
}

.lv-resultado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Ícone de valorização no topo */
.lv-resultado-card::before {
    content: "";
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%232c5f2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 7 13.5 15.5 8.5 10.5 2 17'/%3E%3Cpolyline points='16 7 22 7 22 13'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lv-resultado-card h4 {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lv-valor-projetado {
    font-size: 32px;
    font-weight: 700;
    color: #2c5f2d;
    margin-bottom: 15px;
}

/* Divisor */
.lv-resultado-card hr {
    border: none;
    border-top: 1px solid #777;
    margin: 15px 0 20px 0;
}

.lv-lucro {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    margin-top: 0;
    padding-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lv-lucro-positivo {
    color: #28a745;
    font-weight: 700;
    font-size: 20px;
    display: block;
    margin-top: 5px;
}

.lv-resultado-destaque {
    background: linear-gradient(135deg, #2c5f2d 0%, #1e4620 100%);
    color: #fff;
}

.lv-resultado-destaque::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 7 13.5 15.5 8.5 10.5 2 17'/%3E%3Cpolyline points='16 7 22 7 22 13'/%3E%3C/svg%3E");
}

.lv-resultado-destaque h4 {
    color: #fff;
    text-transform: uppercase;
}

.lv-resultado-destaque .lv-valor-projetado {
    color: #fff;
    font-size: 36px;
}

.lv-resultado-destaque hr {
    border-top: 1px solid rgba(255,255,255,0.8);
}

.lv-resultado-destaque .lv-lucro {
    color: rgba(255,255,255,0.8);
}

.lv-resultado-destaque .lv-lucro-positivo {
    color: #90EE90;
    font-size: 22px;
}

/* Observação */
.lv-observacao {
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
}

.lv-observacao p {
    margin: 0;
    color: #856404;
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 768px) {
    /* Esconde tabela desktop */
    .lv-tabela-desktop {
        display: none;
    }

    /* Mostra cards mobile */
    .lv-tabela-mobile {
        display: block;
    }

    .lv-card-lote {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 15px;
        overflow: hidden;
    }

    .lv-card-lote.lv-lote-indisponivel {
        opacity: 0.6;
    }

    .lv-card-header {
        background: #2c5f2d;
        color: #fff;
        padding: 12px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .lv-card-header h3 {
        margin: 0;
        font-size: 16px;
        color: #fff;
    }

    .lv-card-body {
        padding: 12px 15px;
    }

    .lv-card-info {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .lv-card-info:last-child {
        border-bottom: none;
    }

    .lv-label {
        font-weight: 600;
        color: #666;
        font-size: 13px;
    }

    .lv-value {
        font-weight: 700;
        color: #2c3e50;
        font-size: 13px;
    }

    .lv-card-footer {
        padding: 12px 15px;
        background: #f8f9fa;
    }

    .lv-card-footer .lv-btn-calcular,
    .lv-card-footer .lv-btn-indisponivel {
        width: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        font-size: 14px;
    }

    /* Status badges no mobile */
    .lv-card-header .lv-status-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    /* Ajustes na calculadora */
    .lv-titulo {
        font-size: 22px;
    }

    .lv-resultado-cards {
        grid-template-columns: 1fr;
    }

    .lv-valor-projetado {
        font-size: 28px;
    }

    .lv-resultado-destaque .lv-valor-projetado {
        font-size: 32px;
    }

    .lv-tabela-wrapper,
    .lv-calculadora-wrapper {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .lv-container {
        padding: 10px;
    }

    .lv-titulo {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* Ainda menor em telas muito pequenas */
    .lv-card-header h3 {
        font-size: 14px;
    }

    .lv-label,
    .lv-value {
        font-size: 12px;
    }

    .lv-card-footer .lv-btn-calcular,
    .lv-card-footer .lv-btn-indisponivel {
        font-size: 13px;
    }
}