/* ── Smart Automations section ──────────────────────────────────────────── */
.av-automations {
    background: #fff;
}

/* ── Chip row ── */
.av-auto-chips {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.av-auto-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #f8f9fb;
    border: 1px solid #e8e8f0;
    border-radius: 24px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.av-auto-chip:hover {
    border-color: #c81eab;
    box-shadow: 0 2px 8px rgba(200, 30, 171, 0.12);
}

.av-auto-chip.active {
    border-color: #09009f;
    background: linear-gradient(135deg, #eeeeff, #fceeff);
    box-shadow: 0 3px 12px rgba(9, 0, 159, 0.15);
}

.av-auto-chip-n {
    font-size: 0.95rem;
    font-weight: 900;
    background: linear-gradient(135deg, #09009f, #c81eab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.av-auto-chip-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a2e;
}

/* ── Track wrapper (position:relative so buttons overlay the track) ── */
.av-auto-wrap {
    position: relative;
}

/* ── Scroll track ── */
.av-auto-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: 1px solid #e8e8f0;
    border-radius: 16px;
    box-shadow: 0 3px 16px rgba(0,0,0,0.07);
}

.av-auto-track::-webkit-scrollbar { display: none; }

/* ── Prev / Next buttons (same pattern as examples carousel) ── */
.av-auto-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    color: #444;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.av-auto-btn:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.28);
    transform: translateY(-50%) scale(1.1);
}

.av-auto-prev { left:  0; }
.av-auto-next { right: 0; }

/* ── Panel ── */
.av-auto-panel {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.av-auto-visual {
    flex: 0 0 auto;
    background: #1a1a2e;
    padding: 40px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
}

.av-auto-text {
    flex: 1;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.av-auto-feat-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.av-auto-feat-desc {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.65;
    margin-bottom: 16px;
}

/* ── Panel → column at mid-width ── */
@media (max-width: 900px) {
    .av-auto-panel {
        flex-direction: column;
    }

    .av-auto-visual {
        min-width: 0;
        width: 100%;
        padding: 28px 20px;
    }

    .av-auto-text {
        padding: 24px 20px;
    }
}

@media (max-width: 575px) {
    .av-auto-btn { display: none; }

    .av-auto-chip-title { display: none; }

    .av-auto-chip {
        padding: 9px 14px;
    }
}

/* ── Auto Rotate animation ── */
.av-rot-stage {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.av-rot-frame {
    width: 240px;
    aspect-ratio: 16 / 9;
    background: #0d0d1a;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.18);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}

.av-rot-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        #1255a0 0%,
        #3d8ecf 28%,
        #8dcfec 44%,
        #4a9642 44%,
        #2a6021 70%,
        #1a4015 100%
    );
    animation: avRotContent 5.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: center center;
}

@keyframes avRotContent {
    0%, 18%   { transform: rotate(90deg) scale(1.78); }
    34%, 73%  { transform: rotate(0deg) scale(1); }
    89%, 100% { transform: rotate(90deg) scale(1.78); }
}

.av-rot-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    letter-spacing: 0.02em;
}

.av-rot-badge--bad {
    background: rgba(212, 48, 60, 0.92);
    color: #fff;
    animation: avBadgeBad 5.5s infinite;
}

.av-rot-badge--good {
    background: rgba(34, 154, 82, 0.92);
    color: #fff;
    animation: avBadgeGood 5.5s infinite;
}

@keyframes avBadgeBad {
    0%, 12%   { opacity: 1; }
    24%, 84%  { opacity: 0; }
    94%, 100% { opacity: 1; }
}

@keyframes avBadgeGood {
    0%, 28%   { opacity: 0; }
    40%, 68%  { opacity: 1; }
    80%, 100% { opacity: 0; }
}

.av-rot-wand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    color: #e060d0;
    font-size: 1.7rem;
    pointer-events: none;
    animation: avWandShow 5.5s infinite;
    filter: drop-shadow(0 0 10px rgba(200,30,171,0.9));
}

@keyframes avWandShow {
    0%, 15%   { opacity: 0; transform: translate(-50%,-50%) scale(0.6) rotate(-20deg); }
    23%, 30%  { opacity: 1; transform: translate(-50%,-50%) scale(1.25) rotate(12deg); }
    37%, 84%  { opacity: 0; transform: translate(-50%,-50%) scale(0.8); }
    90%, 96%  { opacity: 0.85; transform: translate(-50%,-50%) scale(1.15) rotate(-8deg); }
    100%      { opacity: 0; transform: translate(-50%,-50%) scale(0.6); }
}

/* ── Location Titles animation ── */
.av-loc-stage {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.av-loc-frame {
    width: 240px;
    aspect-ratio: 16 / 9;
    background: #0d0d1a;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.18);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}

.av-loc-scene {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        #1a3a6e 0%,
        #2a5a9e 20%,
        #4a85c8 38%,
        #7ab8e0 48%,
        #4a9642 48%,
        #2d6021 72%,
        #1a4015 100%
    );
}

.av-loc-pin {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    color: #e060d0;
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px rgba(200,30,171,0.9));
    animation: avLocPin 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes avLocPin {
    0%, 5%   { opacity: 0; transform: translateX(-50%) scale(0.5) translateY(8px); }
    15%, 35% { opacity: 1; transform: translateX(-50%) scale(1.1) translateY(0); }
    48%, 100%{ opacity: 0; transform: translateX(-50%) scale(0.9) translateY(-4px); }
}

.av-loc-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(10, 10, 26, 0.78);
    border-left: 3px solid #c81eab;
    padding: 4px 10px 4px 8px;
    border-radius: 0 4px 4px 0;
    backdrop-filter: blur(4px);
    animation: avLocTitle 4s ease-in-out infinite;
    pointer-events: none;
    white-space: nowrap;
}

.av-loc-title i {
    color: #c81eab;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.av-loc-title-text {
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

@keyframes avLocTitle {
    0%, 40%  { opacity: 0; transform: translateY(6px); }
    52%, 88% { opacity: 1; transform: translateY(0); }
    98%, 100%{ opacity: 0; transform: translateY(0); }
}

/* ── Color Correction animation ── */
.av-col-stage {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.av-col-frame {
    width: 240px;
    aspect-ratio: 16 / 9;
    background: #0d0d1a;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.18);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}

.av-col-scene {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        #1a70d8 0%,
        #4fa8f0 28%,
        #f5c842 42%,
        #e8882a 46%,
        #2ea830 46%,
        #1a6a1e 72%,
        #0d4010 100%
    );
    animation: avColScene 5s ease-in-out infinite;
}

@keyframes avColScene {
    0%, 18%   { filter: saturate(0.08) contrast(0.62) brightness(1.5); }
    34%, 72%  { filter: saturate(1.15) contrast(1.08) brightness(1); }
    88%, 100% { filter: saturate(0.08) contrast(0.62) brightness(1.5); }
}

.av-col-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    letter-spacing: 0.02em;
}

.av-col-badge--bad {
    background: rgba(160, 100, 20, 0.92);
    color: #fff;
    animation: avColBadgeBad 5s infinite;
}

.av-col-badge--good {
    background: rgba(34, 154, 82, 0.92);
    color: #fff;
    animation: avColBadgeGood 5s infinite;
}

@keyframes avColBadgeBad {
    0%, 12%   { opacity: 1; }
    26%, 84%  { opacity: 0; }
    94%, 100% { opacity: 1; }
}

@keyframes avColBadgeGood {
    0%, 28%   { opacity: 0; }
    40%, 68%  { opacity: 1; }
    80%, 100% { opacity: 0; }
}

/* ── Smart Clip Filter animation ── */
.av-scf-stage {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.av-scf-frame {
    width: 240px;
    aspect-ratio: 16 / 9;
    background: #0d0d1a;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.18);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}

.av-scf-scene {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        #1a70d8 0%,
        #4fa8f0 30%,
        #8dcfec 44%,
        #2ea830 44%,
        #1a6a1e 72%,
        #0d4010 100%
    );
    animation: avScfScene 5.5s ease-in-out infinite;
}

@keyframes avScfScene {
    0%, 18%   { filter: blur(4px) brightness(0.2) saturate(0.2); }
    34%, 72%  { filter: blur(0px) brightness(1) saturate(1.15); }
    88%, 100% { filter: blur(4px) brightness(0.2) saturate(0.2); }
}

.av-scf-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    letter-spacing: 0.02em;
}

.av-scf-badge--bad {
    background: rgba(180, 40, 40, 0.92);
    color: #fff;
    animation: avScfBadgeBad 5.5s infinite;
}

.av-scf-badge--good {
    background: linear-gradient(90deg, #09009f, #c81eab);
    color: #fff;
    animation: avScfBadgeGood 5.5s infinite;
}

@keyframes avScfBadgeBad {
    0%, 12%   { opacity: 1; }
    26%, 84%  { opacity: 0; }
    94%, 100% { opacity: 1; }
}

@keyframes avScfBadgeGood {
    0%, 28%   { opacity: 0; }
    40%, 68%  { opacity: 1; }
    80%, 100% { opacity: 0; }
}
