/*
 * Kampanya Pop-up CSS
 * Modern, premium ve etkileyici tasarım
 */

/* Pop-up Overlay */
.campaign-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.campaign-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Pop-up Container */
.campaign-popup {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    border-radius: 20px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: scale(0.7) translateY(40px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.campaign-popup-overlay.active .campaign-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Animated Background Decoration */
.campaign-popup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 40%);
    animation: rotateGlow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Floating Particles */
.popup-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.popup-particles::before,
.popup-particles::after {
    content: '✨';
    position: absolute;
    font-size: 1.5rem;
    animation: floatParticle 6s ease-in-out infinite;
}

.popup-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.popup-particles::after {
    top: 60%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Pop-up Content */
.popup-content {
    position: relative;
    padding: 1.5rem 1.25rem;
    z-index: 1;
}

/* Header */
.popup-header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #1e293b;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.popup-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.popup-header h2 span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Packages Grid */
.popup-packages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.popup-package {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.6rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.popup-package:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.popup-package.featured {
    border-color: #f59e0b;
    background: rgba(251, 191, 36, 0.15);
}

.popup-package.featured::before {
    content: '🔥';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1rem;
}

.package-emoji {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    display: block;
}

.package-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
    display: block;
}

.package-price {
    color: white;
    font-size: 1rem;
    font-weight: 800;
    display: block;
}

.package-note {
    color: #34d399;
    font-size: 0.6rem;
    font-weight: 600;
    margin-top: 0.15rem;
    display: block;
}

/* Expiry Notice */
.popup-expiry {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    text-align: center;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.popup-expiry i {
    color: #fbbf24;
    font-size: 0.85rem;
}

.popup-expiry span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
}

.popup-expiry strong {
    color: #fbbf24;
}

/* CTA Button */
.popup-cta {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.35);
    position: relative;
    overflow: hidden;
}

.popup-cta::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 ease;
}

.popup-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.45);
}

.popup-cta:hover::before {
    left: 100%;
}

.popup-cta i {
    margin-right: 0.5rem;
}

/* Contact Info */
.popup-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.popup-contact a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popup-contact a:hover {
    color: white;
}

.popup-contact a i {
    font-size: 0.85rem;
}

.popup-contact .whatsapp-link {
    color: #25d366;
}

.popup-contact .whatsapp-link:hover {
    color: #2eec6d;
}

/* Responsive Design */
@media (max-width: 576px) {
    .campaign-popup {
        max-width: 100%;
        margin: 0 0.5rem;
        border-radius: 20px;
    }

    .popup-content {
        padding: 2rem 1.25rem;
    }

    .popup-header h2 {
        font-size: 1.4rem;
    }

    .popup-packages {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .popup-package {
        padding: 0.75rem 0.5rem;
    }

    .package-price {
        font-size: 1rem;
    }

    .popup-contact {
        flex-direction: column;
        gap: 0.75rem;
    }

    .popup-cta {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Animation for content elements */
.popup-content>* {
    animation: fadeInUp 0.5s ease-out backwards;
}

.popup-header {
    animation-delay: 0.1s;
}

.popup-packages {
    animation-delay: 0.2s;
}

.popup-expiry {
    animation-delay: 0.3s;
}

.popup-cta {
    animation-delay: 0.4s;
}

.popup-contact {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}