/* VitrineUDI - Classificados CSS */

.vu-anunciar-page {
    background: #0A1628;
    color: #F8FAFC;
    min-height: 80vh;
    padding: 60px 20px;
}

.vu-anunciar-page .vu-container {
    max-width: 900px;
    margin: 0 auto;
}

.vu-page-header { text-align: center; margin-bottom: 40px; }
.vu-page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 10px;
    background: linear-gradient(135deg, #F39200, #FFB627);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.vu-page-header p { color: #94A3B8; }

/* Progress */
.vu-form-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.vu-progress-step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 2; }
.vu-progress-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: #1A2F4E; border: 2px solid #1A2F4E;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #64748B; transition: all 0.3s;
}
.vu-progress-step.active .vu-progress-num {
    background: linear-gradient(135deg, #F39200, #FFB627);
    border-color: #F39200; color: #0A1628;
    box-shadow: 0 0 20px rgba(243,146,0,0.4);
}
.vu-progress-step.done .vu-progress-num {
    background: #22c55e; border-color: #22c55e; color: #fff;
}
.vu-progress-label { font-size: 0.85rem; color: #94A3B8; }
.vu-progress-step.active .vu-progress-label { color: #F39200; font-weight: 600; }
.vu-progress-line { flex: 1; height: 2px; background: #1A2F4E; margin: 0 -10px; margin-bottom: 30px; }

/* Form */
.vu-form-anuncio {
    background: #112240;
    border: 1px solid rgba(243,146,0,0.15);
    border-radius: 20px;
    padding: 40px;
}

.vu-form-step { display: none; animation: vuFadeIn 0.4s ease; }
.vu-form-step.active { display: block; }
@keyframes vuFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.vu-step-title { font-size: 1.5rem; margin-bottom: 8px; color: #F8FAFC; }
.vu-step-desc { color: #94A3B8; margin-bottom: 24px; }

.vu-form-group { margin-bottom: 20px; }
.vu-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vu-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #F8FAFC;
    font-size: 0.95rem;
}

.vu-input {
    width: 100%;
    background: #0A1628;
    border: 1.5px solid rgba(243,146,0,0.2);
    color: #F8FAFC;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}
.vu-input:focus {
    outline: none;
    border-color: #F39200;
    box-shadow: 0 0 0 3px rgba(243,146,0,0.15);
}
.vu-textarea { resize: vertical; min-height: 120px; }

.vu-help { display: block; color: #64748B; font-size: 0.82rem; margin-top: 6px; }

.vu-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; color: #F8FAFC; }
.vu-checkbox input { width: 20px; height: 20px; accent-color: #F39200; }

/* Categoria selector */
.vu-cat-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.vu-cat-option { cursor: pointer; }
.vu-cat-option input { display: none; }
.vu-cat-card-form {
    background: #0A1628;
    border: 2px solid rgba(243,146,0,0.15);
    border-radius: 14px;
    padding: 20px 12px;
    text-align: center;
    transition: all 0.3s;
}
.vu-cat-option:hover .vu-cat-card-form { border-color: #F39200; transform: translateY(-2px); }
.vu-cat-option input:checked + .vu-cat-card-form {
    background: linear-gradient(135deg, rgba(243,146,0,0.15), rgba(255,182,39,0.05));
    border-color: #F39200;
    box-shadow: 0 8px 24px rgba(243,146,0,0.2);
}
.vu-cat-icon-lg { font-size: 2.2rem; margin-bottom: 8px; }
.vu-cat-nome-form { font-weight: 600; font-size: 0.9rem; }

/* Upload */
.vu-upload-area {
    background: rgba(243,146,0,0.05);
    border: 2px dashed rgba(243,146,0,0.4);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.vu-upload-area:hover, .vu-upload-area.dragging {
    background: rgba(243,146,0,0.1);
    border-color: #F39200;
}
.vu-upload-icon { font-size: 3rem; margin-bottom: 12px; }
.vu-upload-text { font-size: 1.05rem; margin-bottom: 6px; }
.vu-upload-info { font-size: 0.85rem; color: #94A3B8; }

.vu-fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.vu-foto-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #0A1628;
    border: 1px solid rgba(243,146,0,0.2);
}
.vu-foto-item img { width: 100%; height: 100%; object-fit: cover; }
.vu-foto-remove {
    position: absolute; top: 6px; right: 6px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(239,68,68,0.9); color: #fff;
    border: none; cursor: pointer; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.vu-foto-destaque-badge {
    position: absolute; bottom: 6px; left: 6px;
    background: #F39200; color: #0A1628;
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 700;
}
.vu-foto-uploading {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: #F39200; font-size: 0.85rem;
}

/* Botões */
.vu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.3s;
}
.vu-btn-primary {
    background: linear-gradient(135deg, #F39200, #FFB627);
    color: #0A1628;
}
.vu-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(243,146,0,0.4); }
.vu-btn-ghost {
    background: transparent;
    color: #F8FAFC;
    border: 2px solid rgba(255,255,255,0.15);
}
.vu-btn-ghost:hover { border-color: #F39200; }
.vu-btn-lg { padding: 16px 36px; font-size: 1.1rem; }

.vu-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(243,146,0,0.1);
}
.vu-form-actions .vu-btn-primary { margin-left: auto; }

/* Resumo */
.vu-resumo {
    background: #0A1628;
    border: 1px solid rgba(243,146,0,0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}
.vu-resumo h3 { color: #F39200; margin-bottom: 14px; }
.vu-resumo-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vu-resumo-item:last-child { border-bottom: none; }
.vu-resumo-label { color: #94A3B8; }
.vu-resumo-value { font-weight: 600; }

/* Login required */
.vu-login-required {
    background: #0A1628;
    padding: 80px 20px;
    text-align: center;
}
.vu-login-box {
    max-width: 500px;
    margin: 0 auto;
    background: #112240;
    padding: 50px 30px;
    border-radius: 20px;
    border: 1px solid rgba(243,146,0,0.2);
}
.vu-login-icon { font-size: 4rem; margin-bottom: 20px; }
.vu-login-box h2 { color: #F8FAFC; margin-bottom: 12px; }
.vu-login-box p { color: #94A3B8; margin-bottom: 24px; }
.vu-login-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Loading */
.vu-loading {
    position: fixed; inset: 0;
    background: rgba(10,22,40,0.95);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 20px; z-index: 9999;
    backdrop-filter: blur(10px);
}
.vu-spinner {
    width: 60px; height: 60px;
    border: 4px solid rgba(243,146,0,0.2);
    border-top-color: #F39200;
    border-radius: 50%;
    animation: vuSpin 1s linear infinite;
}
@keyframes vuSpin { to { transform: rotate(360deg); } }

/* Toast */
.vu-toast {
    position: fixed;
    top: 20px; right: 20px;
    padding: 16px 24px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    animation: vuSlideIn 0.3s ease;
}
.vu-toast-success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.vu-toast-error { background: linear-gradient(135deg, #ef4444, #dc2626); }
@keyframes vuSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* Responsivo */
@media (max-width: 768px) {
    .vu-form-anuncio { padding: 24px 18px; }
    .vu-form-row { grid-template-columns: 1fr; }
    .vu-progress-label { display: none; }
    .vu-cat-selector { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .vu-cat-card-form { padding: 14px 8px; }
    .vu-cat-icon-lg { font-size: 1.8rem; }
    .vu-cat-nome-form { font-size: 0.8rem; }
}