/* ==========================================================
  
   ========================================================== */

/* ---- Wrapper ---- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Fraunces:ital,wght@0,300;0,600;1,300&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

.ads-wrap {
    font-family: 'DM Sans',sans-serif;
    background: #0a0f1e;
    padding: 48px 32px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

    /* Glow background */
    .ads-wrap::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(36,77,168,.18), transparent), radial-gradient(ellipse 50% 60% at 80% 50%, rgba(124,58,237,.12), transparent);
        pointer-events: none;
    }

/* Grid layout */
.ads-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

/* Left panel — info + CTA */
.ads-left {
}

.ads-eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-top: -200px;
    gap: 7px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #4db8ff;
    background: rgba(77,184,255,.1);
    border: 1px solid rgba(77,184,255,.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

    .ads-eyebrow::before {
        
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #4db8ff;
        animation: adBlink 2s ease-in-out infinite;
    }

.ads-carousel-nav{
 margin-top: 15px;
}



@keyframes adBlink {
    0%,100% {
        opacity: .4;
        transform: scale(.8)
    }

    50% {
        opacity: 1;
        transform: scale(1.2)
    }
}

.ads-title {
    font-family: 'Fraunces',serif;
    font-size: 28px;
    font-weight: 300;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
}

    .ads-title em {
        font-style: italic;
        color: #4db8ff;
    }

.ad-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
    color: rgba(200,215,240,.7);
}

    .ad-badge::before {
        content: '▸';
        color: #4db8ff;
        font-size: 10px;
    }

.ads-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg,#244da8,#2d5fc4);
    color: #fff;
    font-size: 13px;
    font-weight: 250;
    padding: 11px 22px;
    border-radius: 40px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s;
    box-shadow: 0 4px 20px rgba(36,77,168,.4);
}

    .ads-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 28px rgba(36,77,168,.55);
    }

    .ads-cta svg {
        width: 14px;
        height: 14px;
        transition: transform .25s;
    }

    .ads-cta:hover svg {
        transform: translateX(3px);
    }

/* Right — ad card */
.ads-right {
    position: relative;
}

.ad-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

/* Ad media area */
.ad-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #0d1528;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


#adParticles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none; /* important */
}

.ad-media-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ad-media-content img,
    .ad-media-content video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Placeholder when no ad */
.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(200,215,240,.3);
    font-size: 13px;
    z-index:3;
}

    .ad-placeholder svg {
        width: 36px;
        height: 36px;
        opacity: .3;
    }

/* Progress bar */
.ad-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,.08);
}

.ad-progress-fill {
    height: 100%;
    background: linear-gradient(90deg,#4db8ff,#a855f7);
    width: 0;
    transition: width linear;
}

.styled-canvas-area {
    position: relative;
    min-height: 300px; /* Sau înălțimea dorită de tine */
    background: #060d1f;
    overflow: hidden;
}
.ad-media-container {
    position: absolute;
    inset: 0; /* Ocupă tot spațiul */
    display: block !important;
    z-index: 1;
}
.ad-media-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer del card */
.ad-footer {
    padding: 16px 18px;
}

.ad-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ad-text {
}

.ad-ftitle {
    font-family: 'Fraunces',serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
}

.ad-fdesc {
    font-size: 12px;
    font-weight: 300;
    color: rgba(200,215,240,.6);
    line-height: 1.5;
}

.ad-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #4db8ff;
    background: rgba(77,184,255,.1);
    border: 1px solid rgba(77,184,255,.25);
    padding: 7px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all .3s;
    white-space: nowrap;
    cursor: pointer;
}

    .ad-link-btn:hover {
        background: rgba(77,184,255,.2);
        transform: translateY(-1px);
    }

    .ad-link-btn svg {
        width: 11px;
        height: 11px;
    }

    .ad-link-btn.hidden {
        opacity: 0;
        pointer-events: none;
    }

/* Carousel dots + nav */
.ad-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ad-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ad-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    transition: all .3s;
    cursor: pointer;
}

    .ad-dot.active {
        background: #4db8ff;
        width: 18px;
        border-radius: 3px;
    }

.ad-arrows {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.ad-arr {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s;
}

    .ad-arr:hover {
        background: rgba(255,255,255,.14);
    }

    .ad-arr svg {
        width: 13px;
        height: 13px;
        color: rgba(255,255,255,.7);
    }

/* Type badge */
.ad-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 12px;
}

    .ad-type-badge.image {
        background: rgba(36,77,168,.7);
        color: #7eb3ff;
    }

    .ad-type-badge.video {
        background: rgba(190,24,93,.7);
        color: #fca5c8;
    }

    .ad-type-badge.link {
        background: rgba(15,122,85,.7);
        color: #6ee7b7;
    }

/* Status bar */
.ads-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.ast {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 400;
    color: rgba(200,215,240,.4);
}

.ast-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity .5s ease, transform .6s ease;
}
    .ad-img.active {
        opacity: 1;
        transform: scale(1);
    }


@media(max-width:700px) {
    .ads-grid {
        grid-template-columns: 1fr;
    }
}