/* Ads-Pro Frontend Styles */

/* Header Banner */
#adspro_header {
    text-align: center;
    margin: 10px auto;
    max-width: 100%;
    display: none;
}

#adspro_header .adspro_banner {
    display: inline-block;
    margin: 5px;
    position: relative;
    width: 600px;
    height: 60px;
    max-width: 100%;
}

#adspro_header .adspro_banner img {
    width: 600px;
    height: 60px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#adspro_header .adspro_close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff0000;
    color: #fff;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
    z-index: 10;
}

/* Footer Banner (Catfish) - Fixed bottom */
#adspro_footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 10px 0;
    display: none;
}

#adspro_footer .adspro_footer_wrapper {
    max-width: 728px;
    margin: 0 auto;
    position: relative;
    padding: 10px;
}

#adspro_footer .adspro_banner {
    display: inline-block;
    margin: 5px;
    position: relative;
    width: 600px;
    height: 60px;
    max-width: 100%;
}

#adspro_footer .adspro_banner img {
    width: 600px;
    height: 60px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#adspro_footer .adspro_close {
    position: absolute;
    top: -30px;
    right: 0;
    background: #ff0000;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    z-index: 10;
}

/* Popup Banner */
#adspro_popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 400px;
    background: #fff;
    z-index: 99999;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    display: none;
}

#adspro_popup .adspro_popup_content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

#adspro_popup .adspro_banner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#adspro_popup .adspro_banner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#adspro_popup .adspro_close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff0000;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    z-index: 10;
}

#adspro_popup_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    display: none;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Header Banner - Mobile */
    #adspro_header {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    #adspro_header > div {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
    }
    
    #adspro_header img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 60px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* Footer Banner - Mobile */
    #catfishs {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    #catfishs > div {
        width: 100% !important;
        max-width: 100% !important;
        padding: 5px !important;
    }
    
    #catfishs img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 60px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* Footer Banner (new style) - Mobile */
    #adspro_footer {
        width: 100% !important;
        padding: 5px 0 !important;
    }
    
    #adspro_footer .adspro_footer_wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 5px !important;
    }
    
    #adspro_footer .adspro_banner {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    #adspro_footer .adspro_banner img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 60px !important;
        object-fit: contain !important;
    }
    
    /* Popup - Mobile */
    #mp-mb-preload {
        width: 90% !important;
        max-width: 320px !important;
        height: auto !important;
        max-height: 80vh !important;
    }
    
    #mp-mb-preload > div {
        width: 100% !important;
        height: auto !important;
    }
    
    #mp-mb-preload img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 70vh !important;
        object-fit: contain !important;
        display: block !important;
    }
    
    #adspro_popup {
        width: 90% !important;
        max-width: 280px !important;
        height: auto !important;
        max-height: 80vh !important;
    }
    
    /* Adv Banner - Mobile */
    .adspro_adv {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
    }
    
    .adspro_adv_banner {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    .adspro_adv_banner img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 60px !important;
        object-fit: contain !important;
    }
}

@media (max-width: 480px) {
    /* Header Banner - Small Mobile */
    #adspro_header img {
        max-height: 50px !important;
    }
    
    /* Footer Banner - Small Mobile */
    #catfishs img {
        max-height: 50px !important;
    }
    
    #adspro_footer .adspro_banner img {
        max-height: 50px !important;
    }
    
    /* Popup - Small Mobile */
    #mp-mb-preload {
        width: 95% !important;
        max-width: 280px !important;
    }
    
    #adspro_popup {
        width: 95% !important;
        max-width: 250px !important;
    }
    
    /* Adv Banner - Small Mobile */
    .adspro_adv_banner img {
        max-height: 50px !important;
    }
}

/* Hide desktop/mobile classes */
.hidedesktop {
    display: none;
}

.hidemobile {
    display: block;
}

@media (max-width: 768px) {
    .hidedesktop {
        display: block;
    }
    
    .hidemobile {
        display: none;
    }
}

