/* https://python-code.ir/banner/style.css */
#sticky-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 10000;
    padding: 15px;
    animation: bannerSlideIn 0.5s ease-out;
    transition: transform 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#sticky-banner.banner-hidden {
    transform: translateX(-100%);
}

.banner-close {
    position: absolute;
    top: 5px;
    right: -5px;
    font-size: 20px;
    background-color: #e41f27;
    color: #f5f5f5;
    padding: 6px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    line-height: 1;
    z-index: 10001;
    transition: all 0.2s;
}

.banner-close:hover {
    background-color: #c51920;
    transform: scale(1.1);
}

.banner-link {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
}

.banner-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s;
}

.banner-link:hover img {
    transform: scale(1.02);
}

@keyframes bannerSlideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* رسپانسیو */
@media (max-width: 1200px) {
    #sticky-banner {
        width: 280px;
        bottom: 15px;
        left: 15px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    #sticky-banner {
        width: 240px;
        bottom: 10px;
        left: 10px;
        padding: 10px;
    }
    
    .banner-close {
        top: 0;
        right: -10px;
        font-size: 18px;
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    #sticky-banner {
        width: 200px;
        bottom: 5px;
        left: 5px;
        padding: 8px;
    }
    
    .banner-close {
        top: -5px;
        right: -15px;
        font-size: 16px;
        width: 20px;
        height: 20px;
    }
}