/* ============================================================
   IOL Highlights Slider — Frontend CSS
   Plugin: IOL Highlights by PixelPanther
   ============================================================ */

.iols-highlights-wrap {
    padding: 48px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.iols-highlights-outer {
    width: 100%;
    position: relative;
    padding: 10px 4px 4px 4px;
    margin-top: -10px;
    box-sizing: border-box;
    overflow: hidden;
}

.iols-highlights-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.iols-highlights-slide {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
    margin-right: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
}

.iols-highlights-slide:hover {
    z-index: 10;
}

/* ── Link-Wrapper ── */
.iols-highlights-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.iols-highlights-card-link:hover {
    text-decoration: none;
}

.iols-highlights-card-link:hover .iols-highlights-card {
    border-color: rgba(191, 167, 69, 0.6);
    border-bottom-color: rgba(191, 167, 69, 1);
    transform: translateY(-4px);
}

/* ── Card ── */
.iols-highlights-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(191, 167, 69, 0.25);
    border-bottom: 2px solid rgba(191, 167, 69, 1);
    border-radius: 20px;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
    padding: 0 !important;
}

.iols-highlights-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(ellipse at bottom center, rgba(191, 167, 69,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.iols-highlights-card:hover {
    border-color: rgba(191, 167, 69, 0.6);
    border-bottom-color: rgba(191, 167, 69, 1);
    transform: translateY(-4px);
}

/* ── Bild: harter Theme-Reset damit kein Padding/Margin vom Brooklyn Theme eingreift ── */
.iols-highlights-img {
    display: block;
    width: 100% !important;
    height: 180px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    border: none !important;
    background: none !important;
}

.iols-highlights-img img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: cover !important;
    object-position: center !important;
    filter: none;
    transition: transform 0.5s ease;
}

.iols-highlights-card:hover .iols-highlights-img img {
    transform: scale(1.04);
}

/* ── Body ── */
.iols-highlights-body {
    padding: 20px 22px 22px !important;
    position: relative;
    z-index: 2;
    margin: 0 !important;
}

/* ── Icon ── */
.iols-highlights-icon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.iols-highlights-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(191, 167, 69, 0.1);
    border: 1px solid rgba(191, 167, 69, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.iols-highlights-svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ── Titel: Brooklyn h3 bleibt, nur Farbe ── */
.iols-highlights-card h3 {
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Text: Brooklyn p Styling ── */
.iols-highlights-card p {
    margin: 8px 0 0 !important;
}

/* ── Dots ── */
.iols-highlights-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.iols-highlights-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(191, 167, 69, 0.2);
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
}

.iols-highlights-dot.active {
    background: rgba(191, 167, 69, 1);
    width: 20px;
    border-radius: 3px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .iols-highlights-slide {
        flex: 0 0 100%;
        margin-right: 20px;
    }
}
