/**
 * Frontend styles for Jassn Floating Ad Bars
 * Version: 1.0.0
 */

/* Jassn Floating Ads Container */
.jassn-ad {
    position: fixed;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99999;
    text-align: center;
    padding: 5px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-ad {
    top: 0;
    animation: slideDown 0.5s ease forwards;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.bottom-ad {
    bottom: 0;
    animation: slideUp 0.5s ease forwards;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Shortcode ads */
.jassn-ad-shortcode {
    position: relative;
    text-align: center;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 5px 0;
}

/* Close Button */
.close-btn, .close-btn-shortcode {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 22px;
    color: #333;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    padding: 0 6px;
    border-radius: 50%;
    line-height: 28px;
    width: 28px;
    height: 28px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 100000;
    border: 1px solid rgba(0,0,0,0.1);
}

.close-btn:hover, .close-btn-shortcode:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-btn-shortcode {
    top: 10px;
    transform: none;
}

.close-btn-shortcode:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes slideDown {
    from { 
        transform: translateY(-100%); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes slideUp {
    from { 
        transform: translateY(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* Hidden state */
.jassn-ad-hidden {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .jassn-ad {
        padding: 3px 0;
    }
    
    .close-btn {
        right: 5px;
        font-size: 18px;
        line-height: 24px;
        width: 24px;
        height: 24px;
        padding: 0 4px;
    }
    
    .close-btn-shortcode {
        font-size: 18px;
        line-height: 24px;
        width: 24px;
        height: 24px;
        padding: 0 4px;
        right: 5px;
        top: 5px;
    }
}