/**
 * Februar-Aktion Popup Styles
 * Mandy Mazur EMS Training
 */

#februar-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#februar-popup.show {
    display: flex;
    opacity: 1;
}

.popup-container {
    background: white;
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
    animation: slideUp 0.5s ease;
}

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

.popup-header {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.popup-badge {
    background: white;
    color: #8B5CF6;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-header h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.popup-header .subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

#popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-content {
    padding: 30px;
}

.popup-price {
    text-align: center;
    margin-bottom: 25px;
}

.price-old {
    font-size: 18px;
    color: #9CA3AF;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.price-new {
    font-size: 42px;
    font-weight: bold;
    color: #8B5CF6;
    line-height: 1;
    margin-bottom: 5px;
}

.price-period {
    font-size: 14px;
    color: #6B7280;
}

.popup-benefits {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

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

.popup-benefits li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #1F2937;
    font-size: 15px;
}

.popup-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
    font-size: 18px;
}

.popup-savings {
    background: linear-gradient(135deg, #FEF3C7 0%, #FCD34D 100%);
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 25px;
}

.popup-savings p {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #92400E;
}

.popup-countdown {
    background: #F3F4F6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.popup-countdown h3 {
    text-align: center;
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#popup-countdown {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.countdown-item {
    text-align: center;
    flex: 1;
}

.countdown-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #8B5CF6;
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-top: 5px;
}

.popup-places {
    margin-bottom: 25px;
}

.places-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #6B7280;
}

.places-remaining {
    font-weight: 700;
    color: #8B5CF6;
    font-size: 16px;
}

.places-progress {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.places-progress-fill {
    height: 100%;
    background: #8B5CF6;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.popup-cta {
    width: 100%;
    background: #8B5CF6;
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-cta:hover {
    background: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.popup-cta:active {
    transform: translateY(0);
}

.popup-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #E5E7EB;
}

.popup-footer p {
    margin: 0;
    font-size: 12px;
    color: #9CA3AF;
}

@media (max-width: 768px) {
    .popup-container {
        border-radius: 15px;
        max-height: 95vh;
    }

    .popup-header {
        padding: 25px 20px;
    }

    .popup-header h2 {
        font-size: 24px;
    }

    .popup-content {
        padding: 20px;
    }

    .price-new {
        font-size: 36px;
    }

    .countdown-number {
        font-size: 24px;
    }

    .popup-benefits li {
        font-size: 14px;
    }

    .popup-cta {
        font-size: 16px;
        padding: 16px 25px;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.places-remaining.low {
    animation: pulse 2s infinite;
    color: #EF4444;
}
