/**
 * Cyprus24 Smart Ad & Banner Manager - Frontend Styles
 */

/* General Container */
.c24-ad-container {
    margin: 28px auto;
    text-align: center;
    max-width: 100%;
    clear: both;
    display: block;
    box-sizing: border-box;
    position: relative;
}

/* Slot-specific Spacing */
.c24-ad-slot-in_article_top {
    margin: 24px auto 28px auto;
}

.c24-ad-slot-in_article_mid {
    margin: 30px auto;
}

.c24-ad-slot-in_article_bottom {
    margin: 28px auto 36px auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.c24-ad-slot-header {
    margin: 12px auto 18px auto;
}

.c24-ad-slot-sidebar {
    margin: 18px auto;
}

/* Disclosure Label */
.c24-ad-disclosure {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 6px;
    user-select: none;
    line-height: 1;
}

/* Inner Wrappers */
.c24-ad-inner {
    display: inline-block;
    max-width: 100%;
    position: relative;
    vertical-align: middle;
}

.c24-ad-image-link {
    display: inline-block;
    text-decoration: none;
    border: none;
    outline: none;
    line-height: 0;
    max-width: 100%;
}

.c24-ad-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin: 0 auto;
}

.c24-ad-image-link:hover .c24-ad-img {
    opacity: 0.95;
}

/* Raw Code / Script / AdSense Wrapper */
.c24-ad-code-wrap {
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Device Targeting Helpers */
@media (min-width: 769px) {
    .c24-ad-dev-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .c24-ad-dev-desktop {
        display: none !important;
    }
}

/* Mobile Sticky Bottom Banner */
.c24-mobile-sticky-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999999;
    background: #ffffff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
    border-top: 1px solid #e2e8f0;
    padding: 4px 10px 8px 10px;
    box-sizing: border-box;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.c24-mobile-sticky-banner.c24-sticky-hidden {
    transform: translateY(120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.c24-sticky-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 3px auto;
    padding: 0 2px;
}

.c24-sticky-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    user-select: none;
}

.c24-sticky-close {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 16px;
    line-height: 20px;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.c24-sticky-close:hover,
.c24-sticky-close:active {
    background: #e2e8f0;
    color: #0f172a;
}

.c24-sticky-body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.c24-sticky-body a {
    display: inline-block;
    line-height: 0;
    border: none;
    outline: none;
}

.c24-sticky-img {
    max-width: 100%;
    max-height: 70px;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: contain;
}

/* Hide Mobile Sticky completely on Desktop screens */
@media (min-width: 769px) {
    .c24-mobile-sticky-banner {
        display: none !important;
    }
}

/* Google AdSense Wrappers */
.c24-ad-google-wrap {
    min-height: 60px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}

.c24-ad-google-wrap ins.adsbygoogle {
    margin: 0 auto;
}

.c24-ad-google-sticky {
    width: 100%;
    max-height: 90px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

