/* =============================================
   ULTIMATE AD MANAGER - FRONTEND STYLES
   Stilizimi bazë për reklamat në faqe
   ============================================= */

/**
 * 1. KONTAINERI KRYESOR I REKLAMAVE
 */
.ultimate-ad-container {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ultimate-ad-container:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/**
 * 2. STILIZIMI PËR REKLAMAT ME IMAZH
 */
.ultimate-ad-banner {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.ultimate-ad-banner-link {
    display: block;
    text-align: center;
    position: relative;
}

.ultimate-ad-banner-link:hover {
    opacity: 0.9;
}

/**
 * 3. REKLAMAT NË WIDGETE
 */
.widget .ultimate-ad-widget {
    padding: 10px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.widget .ultimate-ad-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

/**
 * 4. ANIMACIONET DHE EFEKTET
 */
.ultimate-ad-fadein {
    animation: adFadeIn 0.5s ease-in;
}

@keyframes adFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ultimate-ad-slide {
    animation: adSlideIn 0.7s ease-out;
}

@keyframes adSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/**
 * 5. REKLAMAT RESPONSIVE
 */
@media (max-width: 768px) {
    .ultimate-ad-container {
        padding: 10px;
        margin: 15px 0;
    }
    
    .ultimate-ad-banner {
        max-width: 100%;
    }
    
    .widget .ultimate-ad-widget {
        padding: 8px;
    }
}

/**
 * 6. STILIZIM SPECIAL PËR TIPET E REKLAMAVE
 */
/* HTML Ads */
.ultimate-ad-html-content {
    padding: 10px;
    background: #fff;
    border-radius: 4px;
}

/* Script Ads */
.ultimate-ad-script-container {
    text-align: center;
    padding: 15px;
}

/**
 * 7. ETIKETAT E STATUSIT
 */
.ultimate-ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 3px;
    background: #3498db;
    color: white;
    font-weight: bold;
}

.ultimate-ad-label.sponsored {
    background: #e74c3c;
}

.ultimate-ad-label.promo {
    background: #2ecc71;
}

/**
 * 8. BUTONAT E VEÇANTË (P.SH. PËR MBYLLJE)
 */
.ultimate-ad-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.ultimate-ad-close:hover {
    background: rgba(0,0,0,0.5);
}

/**
 * 9. STILIZIM I VEÇANTË PËR POZICIONET
 */
/* Header Ads */
.header-ad-container {
    width: 100%;
    background: #f0f0f0;
    padding: 10px 0;
    text-align: center;
}

/* Sidebar Ads */
.sidebar-ad-container {
    margin-bottom: 30px;
}

/* Footer Ads */
.footer-ad-container {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer-ad-container .ultimate-ad-banner {
    border-color: #34495e;
}

/**
 * 10. STILIZIM PËR TRACKING E KLIKIMEVE
 */
.ultimate-ad-tracked {
    position: relative;
}

.ultimate-ad-tracked:after {
    content: "Ad";
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 9px;
    color: rgba(0,0,0,0.3);
}
/* Stilizime shtesë për theme të ndryshme */
/* Light Theme */
.ultimate-ad-widget.light-theme {
    background: #ffffff;
    color: #333333;
}

/* Dark Theme */
.ultimate-ad-widget.dark-theme {
    background: #2d2d2d;
    color: #eeeeee;
    border-color: #444444;
}

/* Theme me ngjyra */
.ultimate-ad-widget.blue-theme {
    background: #f0f8ff;
    border-color: #3498db;
}

.ultimate-ad-widget.green-theme {
    background: #f0fff4;
    border-color: #2ecc71;
}

/* Stilizime speciale për lloje të ndryshme reklamash */
.special-offer {
    border: 2px dashed #f39c12;
    background: #fffaf0;
}

.hot-deal {
    border: 2px solid #e74c3c;
    background: #fff0f0;
}

.new-product {
    border: 2px solid #3498db;
    background: #f0f8ff;
}
/* Efekte hover për reklamat me imazh */
.ad-banner-image {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ad-banner-image:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Efekte hover për butonin e mbylljes */
.ad-close-button {
    transition: background-color 0.2s ease;
}

/* Efekte hover për linkun e reklamës */
.ad-click-tracking {
    transition: box-shadow 0.3s ease;
    display: inline-block;
}

.ad-click-tracking:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Reklama në header */
.ad-position-header {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: linear-gradient(to right, #f8f9fa, #ffffff, #f8f9fa);
    border-bottom: 1px solid #e1e1e1;
}

/* Reklama në sidebar */
.ad-position-sidebar {
    background: #ffffff;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
}

/* Reklama në footer */
.ad-position-footer {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

.ad-position-footer .ad-label {
    background: rgba(255, 255, 255, 0.2);
}
/* Reklama HTML - stilizim bazë */
.ad-html-content {
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    line-height: 1.6;
}

.ad-html-content a {
    color: #3498db;
    text-decoration: none;
}

.ad-html-content a:hover {
    text-decoration: underline;
}

/* Reklama Script - stilizim bazë */
.ad-script-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}
@media (max-width: 768px) {
    /* Rregullime për shfaqje në mobile */
    .ultimate-ad-banner {
        margin: 10px auto;
        max-width: 100%;
    }
    
    /* Butoni i mbylljes më i madh për mobile */
    .ad-close-button {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    /* Header ads në mobile */
    .ad-position-header {
        padding: 8px 0;
    }
    
    /* Sidebar ads në mobile */
    .ad-position-sidebar {
        margin: 10px 0;
        padding: 10px;
    }
}
/* Animacion fade-in kur ngarkohet reklama */
@keyframes fadeInAd {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ultimate-ad-banner {
    animation: fadeInAd 0.5s ease-out;
}

/* Animacion kur mbyll reklamën */
@keyframes fadeOutAd {
    from { opacity: 1; max-height: 500px; }
    to { opacity: 0; max-height: 0; padding: 0; margin: 0; }
}

.ultimate-ad-banner.ad-closed {
    animation: fadeOutAd 0.3s ease-in forwards;
    overflow: hidden;
}

/* Stilizime të ndryshme për etiketa */
.ad-label.sponsored {
    background: #3498db;
}

.ad-label.promo {
    background: #2ecc71;
}

.ad-label.hot {
    background: #e74c3c;
}

.ad-label.new {
    background: #f39c12;
}

/* Etiketa në këndin e poshtëm */
.ad-label.bottom-right {
    top: auto;
    bottom: 8px;
    right: 8px;
}

/* Etiketa me ikonë */
.ad-label.with-icon {
    padding-left: 25px;
    position: relative;
}

.ad-label.with-icon::before {
    content: "🢂";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}