/* ==========================================================================
   GüncelHaberler CMS
   Public Reklam Alanları
   ========================================================================== */

.gh-ad {
    position: relative;

    width: 100%;
    max-width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 20px auto;

    overflow: hidden;

    text-align: center;
}

.gh-ad::before {
    content: "REKLAM";

    position: absolute;
    top: 4px;
    right: 8px;
    z-index: 2;

    padding: 2px 6px;

    color: #64748b;
    background: rgba(255, 255, 255, 0.88);

    border: 1px solid rgba(148, 163, 184, 0.30);
    border-radius: 999px;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.8px;

    pointer-events: none;
}

.gh-ad a {
    width: 100%;
    max-width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

.gh-ad img {
    width: auto;
    max-width: 100%;
    height: auto;

    display: block;

    border: 0;
    border-radius: 10px;

    object-fit: contain;
}

.gh-ad video {
    width: 100%;
    max-width: 100%;
    height: auto;

    display: block;

    border-radius: 10px;
}

.gh-ad-text {
    width: 100%;
    padding: 18px 22px;

    color: #0f172a;
    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    font-size: 14px;
    line-height: 1.6;
}

/* Header reklamı */

.gh-ad-header-top {
    max-width: 970px;
    min-height: 90px;
}

/* Ana sayfa reklamları */

.gh-ad-homepage-hero-bottom,
.gh-ad-homepage-content-middle {
    max-width: 970px;
}

/* Sidebar reklamları */

.gh-ad-sidebar-top,
.gh-ad-sidebar-middle {
    max-width: 300px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.gh-ad-sidebar-top img,
.gh-ad-sidebar-middle img {
    width: 100%;
}

/* Haber içi reklamlar */

.gh-ad-news-detail-top,
.gh-ad-news-content-middle,
.gh-ad-news-detail-bottom {
    margin-top: 28px;
    margin-bottom: 28px;
}

.gh-ad-news-content-middle {
    max-width: 728px;
}

/* Kategori reklamı */

.gh-ad-category-content {
    max-width: 970px;
}

/* Footer reklamı */

.gh-ad-footer-top {
    max-width: 970px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Mobil sabit reklam */

.gh-ad-mobile-bottom-fixed {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;

    width: 100%;
    max-width: none;
    min-height: 50px;
    margin: 0;
    padding: 4px 40px 4px 4px;

    background: rgba(255, 255, 255, 0.96);

    border-top: 1px solid #e2e8f0;

    box-shadow:
        0 -8px 24px rgba(15, 23, 42, 0.12);

    backdrop-filter: blur(12px);
}

.gh-ad-mobile-bottom-fixed img {
    max-height: 50px;
    border-radius: 6px;
}

.gh-ad-mobile-bottom-fixed::before {
    top: 2px;
    right: 42px;
}

/* Popup reklam */

.gh-ad-popup-ad {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10000;

    width: min(600px, calc(100% - 32px));
    max-width: 600px;
    margin: 0;

    transform: translate(-50%, -50%);

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow:
        0 30px 90px rgba(15, 23, 42, 0.30);
}

.gh-ad-popup-ad img {
    width: 100%;
    border-radius: 18px;
}

/* Reklam kapanış düğmesi için temel sınıf */

.gh-ad-close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: rgba(15, 23, 42, 0.75);

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    font-size: 15px;
    font-weight: 800;
}

/* Hover */

.gh-ad a img {
    transition:
        transform 0.22s ease,
        filter 0.22s ease;
}

.gh-ad a:hover img {
    transform: scale(1.01);
    filter: brightness(1.02);
}

/* Dark tema desteği */

body.dark-theme .gh-ad::before {
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.22);
}

body.dark-theme .gh-ad-text {
    color: #f8fafc;
    background: #111827;
    border-color: #243044;
}

body.dark-theme .gh-ad-mobile-bottom-fixed {
    background: rgba(17, 24, 39, 0.96);
    border-top-color: #243044;
}

body.dark-theme .gh-ad-popup-ad {
    background: #111827;
    border-color: #243044;
}

/* Responsive */

@media (max-width: 1024px) {
    .gh-ad-header-top,
    .gh-ad-homepage-hero-bottom,
    .gh-ad-homepage-content-middle,
    .gh-ad-category-content,
    .gh-ad-footer-top {
        max-width: calc(100% - 24px);
    }
}

@media (max-width: 768px) {
    .gh-ad {
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .gh-ad::before {
        top: 3px;
        right: 5px;

        font-size: 7px;
    }

    .gh-ad img {
        width: 100%;
        border-radius: 8px;
    }

    .gh-ad-header-top {
        min-height: auto;
    }

    .gh-ad-sidebar-top,
    .gh-ad-sidebar-middle {
        max-width: 100%;
    }

    .gh-ad-news-detail-top,
    .gh-ad-news-content-middle,
    .gh-ad-news-detail-bottom {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

@media (min-width: 769px) {
    .gh-ad-mobile-bottom-fixed {
        display: none;
    }
}