/* Pop-up Reklam Sistemi CSS */

/* Global reset for popup elements */
.popup-ad-container *,
.popup-ad-container *::before,
.popup-ad-container *::after {
    box-sizing: border-box;
}

.popup-ad-image,
.popup-ad-img {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
}

/* Pop-up Reklam Container */
.popup-ad-container {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: popupSlideIn 0.4s ease-out;
    box-sizing: border-box;
}

.popup-ad-content {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.popup-ad-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-ad-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease;
    border-radius: 0;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    box-sizing: border-box !important;
    z-index: 1;
}

.popup-ad-image:hover .popup-ad-img {
    transform: scale(1.02);
}

/* Pop-up reklamda ürün fotoğrafının tam kaplaması için ek stiller */
.popup-ad-image {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.popup-ad-img {
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
}

/* Pop-up reklamda ürün fotoğrafı yüklenemediğinde placeholder */
.popup-ad-img[src*="placeholder"] {
    object-fit: contain;
    background: #f8f9fa;
}

.popup-ad-info {
    padding: 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.popup-ad-prices {
    margin-bottom: 20px;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-bottom: 5px;
}

.price-discounted {
    color: #e74c3c;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.price-normal {
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.popup-ad-btn {
    background: transparent;
    color: #333;
    border: 2px solid #333;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-ad-btn:hover {
    transform: translateY(-2px);
    background: #333;
    color: white;
    box-shadow: 0 8px 20px rgba(51, 51, 51, 0.3);
}

/* Pop-up Tetikleyici Buton */
.popup-trigger-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-trigger-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.popup-trigger-btn i {
    font-size: 18px;
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes popupSlideOut {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
}

/* Eski popup-container stilleri kaldırıldı - yeni popup-ad-container kullanılıyor */

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Eski popup stilleri kaldırıldı - yeni popup reklam formatı kullanılıyor */

.popup-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.popup-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-ad-container {
        width: 95%;
        max-width: 400px;
    }
    
    .popup-ad-image {
        height: 280px;
    }
    
    .popup-ad-info {
        padding: 15px;
    }
    
    .popup-ad-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .price-discounted,
    .price-normal {
        font-size: 20px;
    }
}
