/* =====================================================
   REDIRECT NOTIFICATION STYLES
   ===================================================== */

.redirect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.redirect-modal {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: slideUp 0.3s ease-out 0.1s forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.countdown-circle {
    width: 80px;
    height: 80px;
    border: 4px solid #4CAF50;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    background: #f8f9fa;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.countdown-number {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    animation: countdownPulse 1s infinite;
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.redirect-title {
    color: #333333;
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.redirect-message {
    color: #666666;
    margin: 0 0 32px 0;
    line-height: 1.6;
    font-size: 16px;
}

.redirect-message strong {
    color: #4CAF50;
    font-weight: 600;
}

.redirect-buttons {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f44336;
    color: white;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.btn-secondary:hover {
    background: #da190b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
}

.redirect-url {
    margin: 0;
    font-size: 14px;
    color: #999999;
    line-height: 1.5;
}

.new-url-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-all;
}

.new-url-link:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .redirect-modal {
        padding: 30px 20px;
        margin: 15px;
    }
    
    .redirect-title {
        font-size: 22px;
    }
    
    .redirect-message {
        font-size: 15px;
    }
    
    .redirect-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .countdown-circle {
        width: 70px;
        height: 70px;
    }
    
    .countdown-number {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .redirect-modal {
        padding: 25px 15px;
        margin: 10px;
    }
    
    .redirect-title {
        font-size: 20px;
    }
    
    .redirect-message {
        font-size: 14px;
    }
    
    .countdown-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .countdown-number {
        font-size: 18px;
    }
}

/* Loading Animation */
.redirect-overlay.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}