/*
==========================================
RE-ENGAGEMENT SYSTEM - CSS
Soutwest Business Club Tourism Platform
==========================================
Styles for floating button and header bar
re-engagement elements
Version: 1.0
Author: AI Assistant
Date: Nov 21, 2025
==========================================
*/

/* FLOATING BUTTON */
.reengagement-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(100px) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.reengagement-floating-btn.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
    animation: bounceIn 0.6s ease;
}

.reengagement-floating-btn.hidden {
    transform: translateY(100px) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

@keyframes bounceIn {
    0% { transform: translateY(100px) scale(0.8); }
    50% { transform: translateY(-10px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

.floating-btn-content {
    background: linear-gradient(135deg, #dc2626, #f97316);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.floating-btn-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.reengagement-floating-btn:hover .floating-btn-content::before {
    left: 100%;
}

.floating-btn-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.floating-btn-text {
    flex: 1;
    line-height: 1.2;
}

.floating-btn-title {
    font-weight: 700;
    font-size: 14px;
    display: block;
    font-family: 'Arial', sans-serif;
}

.floating-btn-subtitle {
    font-size: 11px;
    opacity: 0.9;
    font-family: 'Arial', sans-serif;
}

.floating-btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.floating-btn-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(220, 38, 38, 0.6);
    border-radius: 50px;
    animation: pulseRing 2s infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* HEADER NOTIFICATION BAR */
.reengagement-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9997;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.reengagement-header-bar.show {
    transform: translateY(0);
}

.reengagement-header-bar.hidden {
    transform: translateY(-100%);
}

.header-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.header-bar-icon {
    font-size: 20px;
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.header-bar-text {
    flex: 1;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
}

.header-bar-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.header-bar-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.header-bar-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 15px;
}

.header-bar-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .reengagement-floating-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn-content {
        padding: 12px 16px;
        min-width: 180px;
    }
    
    .floating-btn-title {
        font-size: 13px;
    }
    
    .floating-btn-subtitle {
        font-size: 10px;
    }
    
    .header-bar-content {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .header-bar-text {
        font-size: 12px;
    }
    
    .header-bar-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .header-bar-close {
        width: 22px;
        height: 22px;
        font-size: 14px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .floating-btn-content {
        min-width: 160px;
        padding: 10px 14px;
    }
    
    .header-bar-text {
        font-size: 11px;
    }
    
    .header-bar-text strong {
        display: block;
        margin-bottom: 2px;
    }
}

/* HOVER EFFECTS */
.reengagement-floating-btn:hover {
    transform: translateY(-5px) scale(1.02);
}

.reengagement-floating-btn:hover .floating-btn-content {
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.5);
}

/* ACCESSIBILITY */
.reengagement-floating-btn:focus,
.header-bar-btn:focus,
.header-bar-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* ANIMATIONS */
.reengagement-floating-btn.show .floating-btn-pulse {
    animation-delay: 0.3s;
}

/* Z-INDEX MANAGEMENT */
.reengagement-floating-btn {
    z-index: 9998;
}

.reengagement-header-bar {
    z-index: 9997;
}