﻿/* Side Popup Styles */
.side-popup {
    position: fixed;
    top: 50%;
    right: -420px; /* Start hidden off-screen */
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    z-index: 9999;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    visibility: hidden;
}

.side-popup.show {
    right: 20px;
    opacity: 1;
    visibility: visible;
}

.side-popup.closing {
    right: -420px;
    opacity: 0;
}

.popup-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}



.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

.popup-close i {
    font-size: 14px;
}

.popup-content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.popup-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease;
}

.popup-link:hover {
    transform: scale(1.02);
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.popup-link:hover .popup-image {
    filter: brightness(1.1);
}

/* Popup indicator badge */
.popup-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Click effect */
.popup-link:active {
    transform: scale(0.98);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .side-popup {
        width: 280px;
        height: 280px;
        right: -300px;
    }
    
    .side-popup.show {
        right: 10px;
    }
    
    .side-popup.closing {
        right: -300px;
    }
    
    .popup-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .popup-indicator {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .side-popup {
        width: 320px;
        height: 320px;
        right: -340px;
    }
    
    .side-popup.show {
        right: 15px;
    }
    
    .side-popup.closing {
        right: -340px;
    }
}

/* Loading state */
.popup-image.loading {
    filter: blur(2px);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Entrance animation */
.side-popup.entrance {
    animation: slideInBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInBounce {
    0% {
        right: -420px;
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    70% {
        right: 10px;
        opacity: 1;
        transform: translateY(-50%) scale(1.05);
    }
    100% {
        right: 20px;
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Attention grabber */
.popup-container.attention {
    animation: attention 0.5s ease-in-out;
}

@keyframes attention {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Custom theme support */
.side-popup.theme-gaming {
    filter: hue-rotate(45deg);
}

.side-popup.theme-anime {
    filter: hue-rotate(180deg);
}

.side-popup.theme-dark .popup-container {
    background: #2d3748;
    border-color: #4a5568;
}

.side-popup.theme-dark .popup-close {
    background: rgba(255, 255, 255, 0.2);
}

.side-popup.theme-dark .popup-close:hover {
    background: rgba(255, 0, 0, 0.6);
}
 