/**
 * CSS Guest Mode - Popup limite d'essais
 */

/* ==========================================================================
   POPUP LIMITE D'ESSAIS
   ========================================================================== */

.tpt-limit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tpt-limit-overlay.show {
    opacity: 1;
}

.tpt-limit-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 999999;
    max-width: 480px;
    width: 90%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tpt-limit-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tpt-limit-content {
    padding: 50px 40px 40px;
    text-align: center;
    position: relative;
}

.tpt-limit-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 40px;
    font-weight: 300;
    line-height: 28px;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

.tpt-limit-close:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
}

.tpt-limit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    animation: subtleFloat 4s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

.tpt-limit-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 12px rgba(66, 153, 225, 0.3));
}

.tpt-limit-title {
    display: none;
}

.tpt-limit-text {
    font-size: 19px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.6;
    margin: 0 0 35px;
}

.tpt-limit-btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.tpt-limit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}

/* ==========================================================================
   TOOLTIP INVITATION - Positionné sous le bouton
   ========================================================================== */

.tpt-tooltip-invite {
    position: absolute;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(66, 153, 225, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    top: 125%;
    pointer-events: none;
    transition: all 0.3s ease;
    max-width: 340px;
    z-index: 100;
}

/* Flèche vers le haut */
.tpt-tooltip-invite::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 10%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-bottom-color: #4299e1;
}

.tpt-tooltip-invite.show {
    opacity: 1;
    pointer-events: auto;
}

.tpt-tooltip-text {
    flex: 1;
    line-height: 1.5;
}

.tpt-tooltip-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    cursor: pointer;
    font-size: 32px;
    font-weight: 300;
    line-height: 24px;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.tpt-tooltip-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Le conteneur du bouton doit être en position relative */
.tpt-lesson-btn {
    position: relative;
}

/* Responsive */
@media (max-width: 767px) {
    .tpt-tooltip-invite {
        font-size: 12px;
        padding: 10px 14px;
        top: 260%;
    }
}