/* =============================================
   Ad Rotator – Stílusok
   ============================================= */

/* Skeleton betöltés */
@keyframes adSkeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Alap konténer */
.ad-rotator {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    user-select: none;
}

/* HIRDETÉS label */
.ad-label {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #999;
    z-index: 10;
    background: rgba(255,255,255,.85);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* Slides */
.ad-slides-wrap {
    position: relative;
}

.ad-slide {
    transition: opacity .5s ease;
}

.ad-slide.leaving {
    opacity: 0;
}

/* ── BANNER layout ─────────────────────────── */
.ad-layout-banner .ad-link-banner {
    display: block;
}

.ad-layout-banner .ad-link-banner img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.ad-layout-banner .ad-banner-placeholder {
    background: linear-gradient(135deg, #1a3c5e, #2d6a9f);
    color: white;
    padding: 24px 16px;
    border-radius: 8px;
    text-align: center;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-layout-banner .ad-banner-placeholder p {
    margin: 6px 0 0;
    font-size: .85rem;
    opacity: .85;
}

/* ── CARD layout ───────────────────────────── */
.ad-layout-card .ad-link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.ad-layout-card .ad-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.ad-layout-card .ad-card-img-wrap img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.ad-layout-card .ad-card-img-placeholder {
    height: 80px;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.ad-layout-card .ad-card-body {
    padding: 12px 14px;
}

.ad-layout-card .ad-card-title {
    font-weight: 700;
    font-size: .9rem;
    color: #1f2933;
    margin-bottom: 4px;
}

.ad-layout-card .ad-card-desc {
    font-size: .8rem;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ad-layout-card .ad-card-cta {
    font-size: .8rem;
    font-weight: 600;
    color: #e67e22;
}

/* ── INLINE layout ─────────────────────────── */
.ad-layout-inline .ad-link-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: white;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: background .2s;
}

.ad-layout-inline .ad-link-inline:hover {
    background: #f8f9fa;
}

.ad-layout-inline .ad-link-inline img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.ad-layout-inline .ad-inline-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ad-layout-inline .ad-inline-text strong {
    font-size: .88rem;
    color: #1f2933;
}

.ad-layout-inline .ad-inline-text span {
    font-size: .78rem;
    color: #6b7280;
}

/* ── Navigációs pontok ─────────────────────── */
.ad-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 4px;
}

.ad-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: background .3s, transform .2s;
}

.ad-dot.active {
    background: #e67e22;
    transform: scale(1.3);
}

/* ── Nyilak ────────────────────────────────── */
.ad-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,.45);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px; height: 30px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.ad-arrow:hover       { background: rgba(0,0,0,.7); }
.ad-arrow-prev        { left: 8px; }
.ad-arrow-next        { right: 8px; }

/* ── Progress bar ──────────────────────────── */
.ad-progress {
    height: 3px;
    background: #e5e7eb;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

@keyframes adProgressRun {
    from { width: 0%; }
    to   { width: 100%; }
}

.ad-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e67e22, #f39c12);
    animation: adProgressRun linear forwards;
    border-radius: 0 0 10px 10px;
}
