:root {
    --ata-purple: #6A2CF5;
}

.ata-walkthrough {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    user-select: none;
    -webkit-user-select: none;
}

.ata-image-container {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: transparent;
}

.ata-walkthrough.ata-started .ata-image-container {
    background: #000;
}

.ata-main-image-bg,
.ata-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center center;
}



.ata-highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.4s ease;
}

.ata-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--ata-purple);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.ata-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    background: #59595988;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ata-pulse 2s linear infinite;
}

@keyframes ata-pulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

.ata-text-box {
    position: absolute;
    width: max-content;
    min-width: 250px;
    max-width: min(450px, 80vw);
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    /* border-radius: 12px; */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 9;
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1), top 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
    font-size: 15px;
    color: #333;
    opacity: 0;
    pointer-events: auto;
}

.ata-text-box.ata-fade-in {
    animation: ata-fade-in 0.4s 0.3s forwards;
}

.ata-text-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
}

.ata-btn-back,
.ata-btn-next {
    height: 40px !important;
}

/* .ata-btn-back,
.ata-btn-next {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--ata-purple);
    color: white;
}

.ata-btn-back:hover,
.ata-btn-next:hover {
    background: #5a1fd5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(106, 44, 245, 0.3);
}

.ata-btn-back {
    background: #e5e7eb;
    color: #374151;
}

.ata-btn-back:hover {
    background: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
} */

@keyframes ata-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ata-walkthrough.ata-intro-active .ata-marker,
.ata-walkthrough.ata-intro-active .ata-navigation,
.ata-walkthrough.ata-intro-active .ata-fullscreen-btn {
    opacity: 0 !important;
    pointer-events: none !important;
}

.ata-walkthrough.ata-intro-active .ata-text-box {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Continue Overlay (mobile only) */
.ata-continue-overlay {
    display: none;
}

@media (max-width: 779px) {
    .ata-continue-overlay.active {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 20;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .ata-continue-overlay.active.visible {
        opacity: 1;
    }
}

.ata-image-container:has(.ata-continue-overlay.active) .ata-marker,
.ata-image-container:has(.ata-continue-overlay.active) .ata-text-box,
.ata-image-container:has(.ata-continue-overlay.active) .ata-fullscreen-btn,
.ata-image-container:has(.ata-continue-overlay.active) .ata-cta-overlay {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Intro Overlay */
.ata-intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.ata-intro-trigger {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    background-color: #fff;
}

@media (min-width: 780px) {
    .ata-intro-trigger {
        width: 310px;
    }
}

.ata-intro-overlay:hover .ata-intro-trigger {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25) !important;
}

.ata-intro-play-btn {
    background: linear-gradient(117deg, #6A2CF5 0%, #1A0C42 90.31%);
    flex-shrink: 0;
}

.ata-intro-play-icon {
    position: relative;
    left: 2px;
}

.ata-navigation {
    position: absolute;
    bottom: 0;
    transition: opacity 0.4s ease;
    left: 0;
    width: 100%;
    height: 6px;
    display: flex;
    gap: 0;
    z-index: 20;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    padding: 0;
    margin: 0;
}

.ata-nav-dot {
    flex: 1;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.ata-nav-dot:last-child {
    border-right: none;
}

.ata-nav-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: none;
}

.ata-nav-dot.active {
    background: var(--ata-purple);
    transform: none;
}

.ata-nav-dot.active::after {
    display: none;
}

@media (max-width: 768px) {
    .ata-navigation {
        height: 8px;
    }
}

/* Fullscreen Button */
.ata-fullscreen-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 35;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ata-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.ata-fullscreen-icon {
    transition: opacity 0.2s ease;
}

.ata-maximize-icon {
    opacity: 1;
}

.ata-minimize-icon {
    opacity: 0;
    position: absolute;
}

.ata-walkthrough.ata-fullscreen .ata-maximize-icon {
    opacity: 0;
}

.ata-walkthrough.ata-fullscreen .ata-minimize-icon {
    opacity: 1;
}

@media (max-width: 768px) {
    .ata-fullscreen-btn {
        width: 32px;
        height: 32px;
        bottom: 14px;
        left: 10px;
    }
}

/* Fullscreen Mode */
.ata-walkthrough.ata-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: #000;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ata-walkthrough.ata-fullscreen .ata-image-container {
    position: relative;
    padding-bottom: 0 !important;
    overflow: hidden;
    border-radius: 0 !important;
}

/* Marker, textbox, highlight, navigation can overflow in fullscreen */
.ata-walkthrough.ata-fullscreen .ata-marker,
.ata-walkthrough.ata-fullscreen .ata-text-box,
.ata-walkthrough.ata-fullscreen .ata-highlight-overlay,
.ata-walkthrough.ata-fullscreen .ata-navigation,
.ata-walkthrough.ata-fullscreen .ata-fullscreen-btn,
.ata-walkthrough.ata-fullscreen .ata-cta-overlay {
    position: fixed;
}

/* Textbox in fullscreen can overflow */
.ata-walkthrough.ata-fullscreen .ata-text-box {
    max-width: min(450px, 90vw);
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 30;
}

/* Mobile fullscreen: navigation + textbox pinned to bottom of screen, below image */
@media (max-width: 779px) {
    .walkthrough-trigger-1 {
        height: 100%;
        width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        background-color: rgba(255, 255, 255, 0.5) !important;
        justify-content: center;
    }

    .walkthrough-trigger-1 .block-60 {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
    }

    .walkthrough-trigger-1 .ata-intro-play-btn {
        width: 48px !important;
        height: 48px !important;
    }

    .walkthrough-trigger-1 .ata-intro-play-btn .icon {
        width: 16px !important;
        height: 16px !important;
        left: 2px !important;
    }
}

@media (max-width: 779px) {
    .ata-walkthrough.ata-fullscreen .ata-navigation {
        left: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        width: 100% !important;
    }

    .ata-walkthrough.ata-fullscreen .ata-text-box {
        left: 0 !important;
        right: 0;
        bottom: 8px !important; /* above navigation (8px height on mobile) */
        top: auto !important;
        width: 100%;
        max-width: 100% !important;
        transform: none !important;
        max-height: calc((100vh - var(--ata-container-height, 60vh)) / 2 - 8px);
        overflow-y: auto;
        border-radius: 0;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    }

    .ata-walkthrough.ata-fullscreen .ata-fullscreen-btn {
        left: auto !important;
        bottom: auto !important;
        right: 12px !important;
        top: 12px !important;
        background: #6A2CF5 !important;
    }
}

/* ESC hint */
.ata-walkthrough.ata-fullscreen::after {
    content: 'Press ESC to exit fullscreen';
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 13px;
    border-radius: 4px;
    z-index: 1000000;
    opacity: 0;
    animation: fadeInOut 3s ease;
    pointer-events: none;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .ata-text-box {
        min-width: 200px;
        max-width: min(500px, 90vw);
        font-size: 14px;
        padding: 14px 16px;
        line-height: 1.4;
    }
    
    .ata-marker {
        width: 20px;
        height: 20px;
    }
    
    .ata-marker::before {
        width: 20px;
        height: 20px;
    }
    
    .ata-text-buttons {
        margin-top: 10px;
        gap: 6px;
    }
    
    .ata-btn-back,
    .ata-btn-next {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* CTA Slide Styles */
.ata-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    z-index: 15;
    transition: opacity 0.4s ease;
    opacity: 0;
    pointer-events: all;
}

.ata-cta-overlay.blur-enabled {
    backdrop-filter: blur(6px);
}

.ata-cta-overlay[style*="display: none"] {
    pointer-events: none;
}

.ata-cta-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    animation: ctaFadeIn 0.6s ease forwards;
}

@keyframes ctaFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ata-cta-content .ata-cta-title {
    font-size: 32px;
    font-weight: 400;
    color: #000000;
    line-height: 1.2;
}

.ata-cta-content .ata-cta-description {
    font-size: 18px;
    color: #000000;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* .ata-cta-button {
    display: inline-block;
    padding: 18px 48px;
    background: var(--ata-purple);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(106, 44, 245, 0.5);
}

.ata-cta-button:hover {
    background: #5a1fd5;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(106, 44, 245, 0.6);
    color: white;
} */

@media (max-width: 768px) {
    .ata-cta-content {
        padding: 30px 15px;
    }

    .ata-cta-content .ata-cta-title {
        font-size: 21px;
        margin-bottom: 8px !important;
    }

    .ata-cta-content .ata-cta-description {
        font-size: 12px;
        margin-bottom: 16px;
    }
    
    /* .ata-cta-button {
        padding: 14px 32px;
        font-size: 16px;
    } */
}