/* POPUP SIERPNIOWY - CSS */

.august-popup {
    position: fixed;
    left: -400px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    background: linear-gradient(135deg, #FF6B35 0%, #F18629 50%, #FF8C42 100%);
    border-radius: 0 25px 25px 0;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.4);
    z-index: 1500;
    transition: left 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.august-popup.show {
    left: 0;
}

.august-popup.hide {
    left: -400px;
}

/* Animowany border */
.august-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(255, 255, 255, 0.3) 100%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.popup-content {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 2;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.popup-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.popup-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.3;
}

.popup-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: 500;
}

.popup-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.popup-month {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-style: italic;
}

.popup-urgency {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: white;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-cta {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.popup-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.popup-btn-primary {
    background: white;
    color: #F18629;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.popup-btn-primary:hover {
    background: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4);
}

.popup-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.popup-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Floating decorative elements */
.popup-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    top: 80%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

/* Progress bar dla urgency */
.urgency-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.urgency-progress {
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, #ffeb3b 100%);
    width: 35%;
    border-radius: 2px;
    position: relative;
    animation: pulse-bar 2s ease-in-out infinite;
}

@keyframes pulse-bar {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .august-popup {
        width: 320px;
        left: -340px;
    }
    
    .august-popup.show {
        left: 0;
    }
    
    .popup-content {
        padding: 1.5rem 1rem;
    }
    
    .popup-title {
        font-size: 1.2rem;
    }
    
    .popup-month {
        font-size: 1.5rem;
    }
    
    .popup-cta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .august-popup {
        width: 290px;
        left: -310px;
    }
    
    .popup-content {
        padding: 1.2rem 0.8rem;
    }
}