/* ========================================
   POPUP NOTIFICATIONS STYLES
   ======================================== */

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
    padding: 1rem;
}

.popup-overlay.hidden {
    display: none;
}

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

/* Popup Container */
.popup-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    color: #64748b;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
    color: #1e293b;
}

/* Strava Popup Specific */
.strava-popup-header {
    background: linear-gradient(135deg, #FC4C02 0%, #E34402 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.strava-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.strava-icon svg {
    width: 50px;
    height: 50px;
}

.strava-popup-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.strava-popup-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Payment Popup Specific */
.payment-popup-header {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    padding: 1rem;
    text-align: center;
    position: relative;
}

.payment-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 2rem;
}

.payment-popup-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-popup-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Popup Body */
.popup-body {
    padding: 2rem;
}

.popup-message {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: center;
}

.popup-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.popup-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.05) 0%, rgba(3, 105, 161, 0.05) 100%);
    border-radius: 10px;
}

.popup-feature-icon {
    color: #0891b2;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.popup-feature-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Popup Actions */
.popup-actions {
    display: flex;
    gap: 1rem;
    padding: 0 2rem 2rem 2rem;
}

.popup-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #0891b2 0%, #0369a1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.popup-btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
}

.popup-btn-strava {
    background: linear-gradient(135deg, #FC4C02 0%, #E34402 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(252, 76, 2, 0.3);
}

.popup-btn-strava:hover {
    background: linear-gradient(135deg, #E34402 0%, #D13C02 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 76, 2, 0.4);
}

.popup-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.popup-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Info Box */
.popup-info-box {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(3, 105, 161, 0.1) 100%);
    border-left: 4px solid #0891b2;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.popup-info-text {
    font-size: 0.875rem;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-info-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Contact Box */
.popup-contact-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    border-left: 4px solid #10b981;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.popup-contact-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-contact-header i {
    font-size: 1rem;
}

.popup-contact-content {
    color: #047857;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Style the HTML content inside contact box */
.popup-contact-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 0.75rem 0;
}

.popup-contact-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-contact-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-contact-content li:last-child {
    border-bottom: none;
}

.popup-contact-content li::before {
    content: '📞';
    font-size: 1rem;
    flex-shrink: 0;
}

.popup-contact-content strong {
    color: #065f46;
    font-weight: 600;
    min-width: 120px;
}

.popup-contact-content a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.popup-contact-content a:hover {
    color: #059669;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 576px) {
    .popup-container {
        margin: 1rem;
        border-radius: 16px;
    }
    
    .strava-popup-header,
    .payment-popup-header {
        padding: 1.5rem;
    }
    
    .strava-icon,
    .payment-icon {
        width: 64px;
        height: 64px;
    }
    
    .strava-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .payment-icon {
        font-size: 2.5rem;
    }
    
    .strava-popup-title,
    .payment-popup-title {
        font-size: 1.5rem;
    }
    
    .strava-popup-subtitle,
    .payment-popup-subtitle {
        font-size: 0.9rem;
    }
    
    .popup-body {
        padding: 1.5rem;
    }
    
    .popup-actions {
        flex-direction: column;
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .popup-btn {
        width: 100%;
    }
}

/* Animation for multiple popups */
.popup-stacked {
    animation: slideUpStacked 0.4s ease-out;
}

@keyframes slideUpStacked {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}