﻿/* Container Principal */
.ads-section-wrapper {
    padding: 80px 0;
    display: flex;
    justify-content: center;
    height: 750px;
    background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
}

/* Hero Canvas */
#adHeroCanvas {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    background: radial-gradient(circle at center, #000 0%, #111 100%);
}

/* Overlay cu blur subtil */
.ads-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    
    z-index: 10;
  
    padding: 15px;
}

/* Carusel */
.ad-carousel-container {
    position: relative;
    width: 100%;
    max-width: 95%;
    
}

/* Slide */
.ad-slide {
    position: absolute;
   
    inset: 0;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.8s ease-in-out, transform 0.6s ease-in-out;
}

    .ad-slide.active {
        opacity: 1;
        visibility: visible;
        display: flex; /* AICI facem cardul pe 2 coloane */
        justify-content: center;
        align-items: center;
    }

/* Card modern */
.minimal-ad-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* coloana 1 stânga, coloana 2 dreapta */
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 25px;
    padding: 25px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(25px);
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.15);
}



/* Coloana stângă: media */
.ad-media {
    flex: 1.2;
    margin-right: auto;
}


    .minimal-ad-card:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    }



/* Info */
.ad-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: auto; /* împinge textul spre dreapta */
}


    .ad-info h4 {
        margin: 0;
        color: #fff;
        font-size: 1.8rem;
        font-weight: 700;
        text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    }

    .ad-info p {
        color: rgba(255,255,255,0.7);
        margin-top: 8px;
        font-size: 1rem;
    }



/* Slide activ */
.ad-slide.active {
    opacity: 1;
    visibility: visible;
    display: block; /* AICI facem cardul pe 2 coloane */
    justify-content: center;
    align-items: center;
}




    /* Media */
    .ad-media img,
    .ad-media video {
        width: 100%;
        height: 100%;
        border-radius: 5px;
        object-fit: cover;
        box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    }

/* Coloana dreaptă: text + buton */
.ad-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: auto;
}

    .ad-info h4 {
        color: #fff;
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .ad-info p {
        color: rgba(255,255,255,0.7);
    }

/* Buton din card */
.btn-ad {
    padding: 12px 28px;
    background: linear-gradient(135deg,#00aaff,#0088cc);
    color: #fff;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
    transition: 0.3s ease;
}

    .btn-ad:hover {
        transform: scale(1.08);
    }

/* Canvas Animation */
#adCanvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#adCanvasContainer {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

    #adCanvasContainer img,
    #adCanvasContainer video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Dots */
.ad-dots {
    position: absolute;
   
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.ad-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .ad-dot.active {
        background: #00aaff;
        transform: scale(1.3);
    }



  
/* Buton principal */
.btn-main-ads {
    position: absolute;
    top: 25px;
    right: 30px;
    padding: 12px 26px;
    background-color: #ffd700;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    z-index: 20;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

    .btn-main-ads:hover {
        transform: scale(1.05);
        background: #f2c94c;
        color: #080258;
    }

/* Text sub buton */
.ad-text-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 18px 22px;
    border-radius: 18px;
    backdrop-filter: blur(14px);
    overflow: hidden;
    max-height: 120px;
}

.ad-text-main {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

#adTitle {
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#adDescription {
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* maxim 2 rânduri */
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
}

    .ad-text-box h3 {
        color: #fff;
        font-size: 1.6rem;
        margin: 0;
        font-weight: 700;
        text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    }

    .ad-text-box p {
        color: rgba(255,255,255,0.75);
        margin-top: 8px;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    

/* Responsive */
@media (max-width: 768px) {
    #adHeroCanvas {
        height: 360px;
        width: 92%;
    }

    .minimal-ad-card {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .ad-media img,
    .ad-media video {
        width: 100%;
        height: 250px;
    }

    .ad-info h4 {
        font-size: 1.4rem;
    }

    .ad-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .ad-media img,
    .ad-media video {
        width: 200px;
        height: 200px;
    }

    .minimal-ad-card {
        padding: 12px;
        gap: 10px;
    }
}
