/* Şêwaza Reklaman li ser Malperê (Public Styles) */

.kurd-ad-wrapper {
    margin: 20px auto;
    text-align: center;
    position: relative;
    clear: both;
    box-sizing: border-box;
    width: 100%;
}

.kurd-ad-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-family: inherit;
}

.kurd-ad-content-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
}

/* Wêneya Bersivdar û Zîrek (Auto-Fit Responsive) */
.kurd-ad-image,
.kurd-auto-fit-img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, opacity 0.2s ease;
    object-fit: contain;
}

.kurd-ad-link {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
}

.kurd-ad-link:hover .kurd-ad-image {
    opacity: 0.95;
    transform: scale(1.005);
}

/* Koda Xwerû */
.kurd-ad-custom-code {
    max-width: 100%;
    overflow-x: auto;
    text-align: center;
}

/* Header Banner */
.kurd-header-top-ad {
    margin: 10px auto !important;
}

/* Sidebar Widget Ad */
.kurd-sidebar-ad-widget {
    margin-bottom: 25px !important;
}

/* Bersivdarî li gorî amûran (Device Targeting) */
@media (max-width: 768px) {
    .kurd-dev-desktop {
        display: none !important;
    }
    .kurd-ad-wrapper {
        margin: 15px auto;
    }
}

@media (min-width: 769px) {
    .kurd-dev-mobile {
        display: none !important;
    }
}

/* Floating Sticky Bars */
.kurd-floating-bar {
    position: fixed;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    padding: 10px 15px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s ease;
}

.kurd-floating-bottom {
    bottom: 0;
}

.kurd-floating-top {
    top: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.kurd-float-close,
.kurd-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: #e2e8f0;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #475569;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.kurd-float-close:hover,
.kurd-popup-close:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Pop-up Modal */
.kurd-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kurd-popup-container {
    background: #ffffff;
    padding: 30px 20px 20px 20px;
    border-radius: 12px;
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: kurdPopIn 0.3s ease-out;
}

@keyframes kurdPopIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =====================================================================
   Overlay Banner — smart_auto (hemû rûpelên malperê)
   position:fixed  →  CSS seçicî nagere, li ser her rûpelekê dixebite
   ================================================================== */
.kurd-overlay-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(3px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kurd-overlay-inner {
    background: #ffffff;
    padding: 36px 24px 24px 24px;
    border-radius: 14px;
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    animation: kurdPopIn 0.3s ease-out;
}

.kurd-overlay-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: #e2e8f0;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #475569;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.kurd-overlay-close:hover {
    background: #ef4444;
    color: #ffffff;
}
