/**
 * TLP Profile Popup - Styles
 * Plugin: TLP Profile Popup v1.0.0
 */

/* ===== OVERLAY ===== */
.tlp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tlp-popup-overlay.tlp-active {
    display: flex;
    opacity: 1;
}

/* ===== MODAL CONTAINER ===== */
.tlp-popup-modal {
    background: #fff;
    border-radius: 12px;
    width: 90vw;
    max-width: 900px;
    height: 85vh;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}
.tlp-popup-overlay.tlp-active .tlp-popup-modal {
    transform: translateY(0) scale(1);
}

/* ===== HEADER BAR ===== */
.tlp-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #2c3e50;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.tlp-popup-header .tlp-user-name {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}
.tlp-popup-header .tlp-popup-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.tlp-popup-header .tlp-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
    line-height: 1.4;
}
.tlp-popup-header .tlp-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
}
.tlp-popup-close {
    background: rgba(255, 255, 255, 0.15) !important;
    font-size: 22px !important;
    line-height: 1;
    padding: 4px 10px !important;
    border-radius: 6px;
}

/* ===== IFRAME ===== */
.tlp-popup-iframe {
    width: 100%;
    height: calc(85vh - 50px);
    border: none;
    display: block;
}

/* ===== LOADING SPINNER ===== */
.tlp-popup-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
    z-index: 2;
    pointer-events: none;
}
.tlp-popup-loading .tlp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #2c3e50;
    border-radius: 50%;
    animation: tlp-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes tlp-spin {
    to {
        transform: rotate(360deg);
    }
}
.tlp-popup-modal.tlp-loaded .tlp-popup-loading {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .tlp-popup-modal {
        width: 98vw;
        height: 92vh;
        max-height: 92vh;
        border-radius: 8px;
    }
    .tlp-popup-iframe {
        height: calc(92vh - 50px);
    }
    .tlp-popup-header .tlp-user-name {
        font-size: 14px;
        max-width: 50%;
    }
    .tlp-popup-header .tlp-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    #tlp-popup-fullpage span.tlp-fullpage-label {
        display: none;
    }
}

/* ===== NASCONDE SCROLL BODY QUANDO POPUP APERTO ===== */
body.tlp-popup-open {
    overflow: hidden !important;
}
