/* modals.css - Sistema unificado de modais e popups */

/* ============================================ */
/* CONFIRM MODAL */
/* ============================================ */
.confirm-modal .confirm-content {
    max-width: 320px;
    text-align: center;
    padding: 28px 24px;
}

.confirm-icon {
    width: 64px;
    height: 64px;
    background: #fff3e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.confirm-icon i {
    font-size: 32px;
    color: var(--warning);
}

.confirm-modal h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.confirm-modal p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-buttons button {
    flex: 1;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-buttons .btn-secondary {
    background: #f0f0f0;
    color: var(--dark);
    border: none;
}

.confirm-buttons .btn-secondary:hover {
    background: #e0e0e0;
}

.confirm-buttons .btn-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.confirm-buttons .btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* ============================================ */
/* SUCCESS POPUP */
/* ============================================ */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
}

.success-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.success-popup-content {
    position: relative;
    background: white;
    border-radius: 28px;
    max-width: 340px;
    width: 90%;
    padding: 28px 24px;
    text-align: center;
    animation: successPopupSlideUp 0.3s ease;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
}

@keyframes successPopupSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-popup-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-popup-icon i {
    font-size: 32px;
    color: white;
}

.success-popup-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.success-popup-content p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
}

.success-popup-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-popup-buttons button {
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.success-popup-buttons .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.success-popup-buttons .btn-secondary {
    background: #f0f0f0;
    color: var(--dark);
    border: none;
}

.success-popup-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(145, 0, 133, 0.3);
}

/* ============================================ */
/* IMAGE PREVIEW MODAL */
/* ============================================ */
.image-preview-modal {
    z-index: 5000;
}

.image-preview-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.image-preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.image-preview-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    cursor: zoom-in;
}

.image-preview-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.image-preview-controls button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-controls button:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.image-preview-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.image-preview-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-close:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

/* ============================================ */
/* SHARE MODAL */
/* ============================================ */
.share-modal .modal-content {
    max-width: 400px;
    padding: 24px;
    text-align: center;
}

.share-modal h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-link-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 40px;
    padding: 4px 4px 4px 16px;
    margin: 20px 0;
}

.share-link-container input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 12px;
    padding: 12px 0;
    outline: none;
}

.share-link-container button {
    background: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.share-link-container button:hover {
    background: var(--primary-dark);
}

.share-social-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.share-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 24px;
}

.share-social-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-social-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.share-social-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-social-btn:hover {
    transform: translateY(-3px);
    scale: 1.05;
}

/* ============================================ */
/* FILTERS MODAL */
/* ============================================ */
.filters-modal .modal-content {
    max-width: 500px;
    padding: 0;
    overflow: hidden;
}

.filters-modal-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.filters-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--dark);
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary);
}

.price-range {
    display: flex;
    gap: 12px;
}

.price-range input {
    flex: 1;
}

.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input {
    width: auto;
    margin: 0;
}

.filters-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    background: white;
}

.filters-modal-footer button {
    flex: 1;
    padding: 12px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

/* ============================================ */
/* VENDOR ONBOARDING POPUP */
/* ============================================ */
.onboarding-popup .modal-content {
    max-width: 380px;
    padding: 24px;
    text-align: center;
}

.onboarding-steps {
    margin: 24px 0;
    text-align: left;
}

.onboarding-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.onboarding-step-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.onboarding-step-info {
    flex: 1;
}

.onboarding-step-info strong {
    display: block;
    font-size: 14px;
}

.onboarding-step-info span {
    font-size: 11px;
    color: var(--gray);
}

/* ============================================ */
/* RATING POPUP */
/* ============================================ */
.rating-popup .modal-content {
    max-width: 360px;
    text-align: center;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.rating-star {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-star:hover,
.rating-star.active {
    color: #ffc107;
    transform: scale(1.1);
}

/* ============================================ */
/* DRAWER SIDEBAR (Chat e Notificações) */
/* ============================================ */
.drawer-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: white;
    z-index: 3000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
}

.drawer-sidebar.open {
    right: 0;
}

.drawer-sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-sidebar-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-sidebar-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.drawer-sidebar-body {
    flex: 1;
    overflow-y: auto;
}

/* ============================================ */
/* MEDIA QUERIES */
/* ============================================ */
@media (max-width: 480px) {
    .confirm-buttons,
    .success-popup-buttons {
        flex-direction: column;
    }
    
    .confirm-buttons button,
    .success-popup-buttons button {
        width: 100%;
    }
    
    .price-range {
        flex-direction: column;
        gap: 8px;
    }
    
    .share-social-buttons {
        gap: 12px;
    }
    
    .share-social-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}