/**
 * Paris Tourism Manager - Shortlinks & QR Frontend Styles
 */

/* === Bloc Partage === */
.evp-share-block {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.evp-share-block h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

.evp-share-url {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.evp-short-url-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    color: #0073aa;
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    flex: 1 1 auto;
    min-width: 200px;
}

.evp-copy-btn,
.evp-qr-btn {
    cursor: pointer;
}

.evp-copy-feedback {
    font-size: 0.9em;
    margin-top: 10px;
    min-height: 20px;
}

.evp-copy-feedback.success {
    color: #46b450;
    font-weight: bold;
}

.evp-copy-feedback.error {
    color: #dc3232;
}

/* === Modal QR === */
.evp-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evp-qr-modal[hidden] {
    display: none;
}

.evp-qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.evp-qr-dialog {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.evp-qr-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 5px 10px;
}

.evp-qr-close:hover,
.evp-qr-close:focus {
    color: #000;
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.evp-qr-dialog h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #333;
}

.evp-qr-image {
    display: block;
    margin: 0 auto 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.evp-qr-url-display {
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: #0073aa;
    margin: 15px 0;
    word-break: break-all;
}

.evp-qr-download {
    display: inline-block;
    margin-top: 10px;
}

/* Lock body scroll quand modal ouvert */
body.evp-modal-open {
    overflow: hidden;
}

/* === Responsive === */
@media (max-width: 600px) {
    .evp-share-url {
        flex-direction: column;
        align-items: stretch;
    }

    .evp-short-url-text {
        min-width: auto;
        text-align: center;
    }

    .evp-qr-dialog {
        padding: 20px;
        width: 95%;
    }
}
