/**
 * Slide-in Popup Styles
 * 
 * @package YourTheme/Popup
 * @version 1.0.0
 */

.slide-in-popup {
    position: fixed;
    top: 50%;
    right: -420px;
    transform: translateY(-50%);
    width: 400px;
    background: linear-gradient(135deg, #2d1b69 0%, #1a0f3d 100%);
    color: white;
    transition: right 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999999;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 15px 0 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.slide-in-popup.active {
    right: 0;
}

.popup-content {
    padding: 30px 25px;
    position: relative;
}

.popup-content h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.popup-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.popup-cta-button {
    background-color: white;
    color: #2d1b69;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.popup-cta-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #2d1b69;
    text-decoration: none;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.popup-tab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #2d1b69 0%, #1a0f3d 100%);
    color: white;
    padding: 20px 12px;
    cursor: pointer;
    border-radius: 8px 0 0 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s ease;
    z-index: 999998;
    box-shadow: -3px 0 15px rgba(0, 0, 0, 0.3);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.popup-tab:hover {
    background: linear-gradient(135deg, #3d2b79 0%, #2a1f4d 100%);
    transform: translateY(-50%) translateX(-3px);
}

.popup-tab.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(50px);
}

.popup-tab.pulse {
    animation: pulseTab 2s infinite;
}

@keyframes pulseTab {
    0% { box-shadow: -3px 0 15px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: -5px 0 25px rgba(45, 27, 105, 0.6); }
    100% { box-shadow: -3px 0 15px rgba(0, 0, 0, 0.3); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .slide-in-popup {
        width: 90vw;
        right: -90vw;
        top: auto;
        bottom: 0;
        transform: none;
        border-radius: 15px 15px 0 0;
    }
    
    .popup-tab {
        bottom: 20px;
        top: auto;
        transform: none;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        padding: 12px 20px;
        border-radius: 25px 0 0 25px;
        min-height: auto;
    }
    
    .popup-tab.hidden {
        transform: translateY(50px);
    }
    
    .popup-content {
        padding: 25px 20px;
    }
    
    .popup-content h3 {
        font-size: 16px;
    }
    
    .popup-content p {
        font-size: 13px;
    }
}
