/* Reklam Popup Stilleri */
.ad-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ad-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.ad-popup-overlay.hiding {
    opacity: 0;
    visibility: hidden;
}

.ad-popup-container {
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ad-popup-overlay.show .ad-popup-container {
    transform: scale(1) translateY(0);
}

.ad-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ad-popup-close:hover {
    background: white;
    transform: scale(1.1);
}

.ad-popup-close i {
    color: #666;
    font-size: 16px;
}

.ad-popup-content {
    position: relative;
}

.ad-popup-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ad-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-popup-text {
    padding: 25px;
    text-align: center;
}

.ad-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    line-height: 1.3;
}

.ad-popup-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.ad-popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ad-popup-button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.ad-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    text-decoration: none;
    color: white;
}

.ad-popup-close-btn {
    background: transparent;
    color: #6b7280;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ad-popup-close-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .ad-popup-container {
        max-width: 95%;
        margin: 20px;
    }
    
    .ad-popup-image {
        height: 150px;
    }
    
    .ad-popup-text {
        padding: 20px;
    }
    
    .ad-popup-title {
        font-size: 1.3rem;
    }
    
    .ad-popup-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .ad-popup-button,
    .ad-popup-close-btn {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
    
    .ad-popup-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }
    
    .ad-popup-close i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ad-popup-overlay {
        padding: 10px;
    }
    
    .ad-popup-container {
        max-width: 100%;
        margin: 0;
        border-radius: 15px;
    }
    
    .ad-popup-image {
        height: 120px;
    }
    
    .ad-popup-text {
        padding: 15px;
    }
    
    .ad-popup-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .ad-popup-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .ad-popup-button,
    .ad-popup-close-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Animasyonlar */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ad-popup-container {
    animation: popupFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Blur efekti için body'yi etkileyen stil */
body.ad-popup-active {
    overflow: hidden;
}

body.ad-popup-active > *:not(.ad-popup-overlay) {
    filter: blur(3px);
    transition: filter 0.3s ease;
}