/* ======================================================
   BASE – SAFE, NON-INTRUSIVE
   (nu intră în conflict cu tema)
====================================================== */

.native-ads {
    width: 100%;
    margin: 20px 0;
}

.native-ad {
    position: relative;
    background: #fff;
    overflow: hidden;
}

.native-ad a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* TITLE – base (poate fi suprascris per preset) */
.native-ad-title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #111;
}

/* CLICK BADGE – base */
.native-ad-clicks {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    font-weight: 600;
    line-height: 1;
}






/* ======================================================
   PRESET: UNDER ARTICLE
   MODERN EDITORIAL / PREMIUM
====================================================== */

#native-ads-under_article {
    width: 100%;
    margin: 24px 0;
}

#native-ads-under_article .native-ads-under-article {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

/* Desktop: 3 columns */
@media (min-width: 768px) {
    #native-ads-under_article .native-ads-under-article {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================
   CARD
========================= */
#native-ads-under_article .native-ad {
    position: relative;
    background: #ffffff;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
    border-bottom: 1px solid #e5e7eb;
}



/* =========================
   IMAGE
========================= */
#native-ads-under_article .native-ad img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}

/* =========================
   LEFT BADGE – INFO
========================= */
#native-ads-under_article .native-ad::before {
content: "INFORMAȚII";
    position: absolute;
    top: 8px;
    left: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 17;
    background: #1F5CFF;
}

/* =========================
   RIGHT BADGE – CLICKS
========================= */
#native-ads-under_article .native-ad-clicks {
    position: absolute;
    top: 10px;
    right: 10px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: rgba(0,0,0,.75);
    color: #fff;

    padding: 5px 10px 5px 8px;
    font-size: 12px;
    font-weight: 700;

    border-radius: 10px;
    z-index: 5;

    backdrop-filter: blur(4px);
}

/* flame icon */
#native-ads-under_article .native-ad-clicks::before {
    content: "";
    width: 14px;
    height: 14px;

    background-image: url("https://s.w.org/images/core/emoji/17.0.2/svg/1f525.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    display: inline-block;
}


/* =========================
   TITLE
========================= */
#native-ads-under_article .native-ad-title {
    margin: 6px 10px 12px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.2px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}




/* ======================================================
   PRESET: IN ARTICLE
   COMPACT LIST / INLINE
====================================================== */

#native-ads-in-article {
    width: 100%;
    margin: 16px 0;
}

#native-ads-in-article .native-ads-in-article {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* CARD */
#native-ads-in-article .native-ad {
    padding: 7px;
    border-radius: 8px;
    background: #ffffff;
    transition: background .15s ease;
}

#native-ads-in-article .native-ad:hover {
    background: #f9fafb;
}

/* LINK LAYOUT */
#native-ads-in-article .native-ad a {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* IMAGE */
#native-ads-in-article .native-ad img {
    width: 88px;
    height: 88px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

/* TITLE */
#native-ads-in-article .native-ad-title {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    color: #111827;
    margin: 0;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* CLICK BADGE – SUBTLE */
#native-ads-in-article .native-ad-clicks {
    position: absolute;
    bottom: 8px;
    right: 8px;

    background: #e5e7eb;
    color: #374151;

    padding: 3px 7px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
}


/* ======================================================
   PRESET: SPECIAL
   PROMO / DARK STYLE
====================================================== */

#native-ads-special {
    width: 100%;
    margin: 24px 0;
}

#native-ads-special .native-ads-special {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #0f172a;
    border-radius: 12px;
}

/* CARD */
#native-ads-special .native-ad {
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

#native-ads-special .native-ad:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

/* IMAGE */
#native-ads-special .native-ad img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* TITLE */
#native-ads-special .native-ad-title {
    margin: 12px 14px 16px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    color: #f9fafb;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* CLICK BADGE – PROMO */
#native-ads-special .native-ad-clicks {
    position: absolute;
    top: 10px;
    right: 10px;

    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #ffffff;

    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
}



/* ======================================================
   PRESET: FLOATING ADS
   FINAL / CLEAN
====================================================== */

.native-ads-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;

    width: 300px;
    max-width: calc(100vw - 40px);

    z-index: 9999;

    display: flex;
    flex-direction: column;
}

/* =========================
   CARD
========================= */
.native-ads-floating .native-ad {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0,0,0,.28);
    animation: namFloatIn .35s ease;
}

/* =========================
   LINK STRUCTURE
========================= */
.native-ads-floating .native-ad a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* =========================
   IMAGE
========================= */
.native-ads-floating .native-ad img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}

/* =========================
   TITLE
========================= */
.native-ads-floating .native-ad-title {
    margin: 12px 12px 14px;
    padding-right: 52px; /* rezervat pentru badge */

    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   CLICK BADGE (🔥 + COUNT)
========================= */
.native-ads-floating .native-ad-clicks {
    position: absolute;
    bottom: 14px;
    right: 12px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: rgba(17,24,39,.85);
    color: #ffffff;

    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    border-radius: 10px;
    z-index: 3;
    pointer-events: none;
}

/* flame icon */
.native-ads-floating .native-ad-clicks::before {
    content: "";
    width: 14px;
    height: 14px;

    background-image: url("https://s.w.org/images/core/emoji/17.0.2/svg/1f525.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* =========================
   HOVER (SUBTLE)
========================= */
.native-ads-floating .native-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 55px rgba(0,0,0,.35);
}

/* =========================
   ANIMATION
========================= */
@keyframes namFloatIn {
    from {
        transform: translateY(24px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .native-ads-floating {
        bottom: 12px;
        right: 12px;
        width: 260px;
    }

    .native-ads-floating .native-ad img {
        height: 120px;
    }

    .native-ads-floating .native-ad-title {
        font-size: 14px;
    }
}




/* ======================================================
   PRESET: TEST2
   EXPERIMENTAL / A-B STYLE
====================================================== */

.native-ads-test2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

/* CARD */
.native-ads-test2 .native-ad {
    background: linear-gradient(180deg, #ffffff, #f9fafb);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.native-ads-test2 .native-ad:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

/* IMAGE */
.native-ads-test2 .native-ad img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* TITLE */
.native-ads-test2 .native-ad-title {
    margin: 14px 14px 18px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* BADGE – accent test */
.native-ads-test2 .native-ad-clicks {
    top: 10px;
    right: 10px;
    background: #111827;
    color: #ffffff;
    padding: 5px 9px;
    font-size: 12px;
    border-radius: 999px;
}
