/**
 * Stili Pulsante e Modale Anteprima PDF
 */

/* Pulsante Anteprima - Stile elegante coordinato con il sito */
.ma-preview-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #00A19A;
    padding: 16px 24px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    width: 100%;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 161, 154, 0.25);
}

.ma-preview-btn:hover {
    background: #008c86;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 161, 154, 0.35);
}

.ma-preview-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ma-preview-center {
    display: block;
    text-align: center;
    align-items: center;
    gap: 12px;
}

.ma-preview-icon {
    font-size: 1.5em;
}

.ma-preview-label {
    font-weight: 700;
    color: #fff;
    font-size: 1.2em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ma-preview-arrow {
    font-size: 1.5em;
    color: #fff;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.ma-preview-btn:hover .ma-preview-arrow {
    transform: translateX(5px);
}

/* Modale */
.ma-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.ma-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.ma-preview-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    margin: 5% auto;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.ma-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
}

.ma-preview-title {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.ma-preview-close {
    background: none;
    border: none;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ma-preview-close:hover {
    background: #e0e0e0;
    color: #333;
}

.ma-preview-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.ma-preview-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

body.ma-preview-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .ma-preview-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }
    
    .ma-preview-header {
        padding: 15px;
    }
    
    .ma-preview-title {
        font-size: 1em;
    }
}
