/**
 * Expert Travel Agent - Premium Features CSS
 * Unlocked features: Preloader, Scroll to Top, Breadcrumbs, Sticky Header
 */

/* ============================================================
   PRELOADER
   ============================================================ */
#eta-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#eta-preloader.eta-loaded {
    opacity: 0;
    visibility: hidden;
}

/* Spinner style */
.eta-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-width: 4px;
    border-radius: 50%;
    animation: eta-spin 0.8s linear infinite;
}

@keyframes eta-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Bouncing dots style */
.eta-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.eta-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    animation: eta-bounce 0.6s infinite alternate;
}

.eta-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.eta-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes eta-bounce {
    to {
        transform: translateY(-16px);
        opacity: 0.5;
    }
}

/* Progress bar style */
.eta-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    animation: eta-progress 1.5s ease-in-out forwards;
}

@keyframes eta-progress {
    0% {
        width: 0;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
#eta-scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--eta-primary-color, #01ABFF);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#eta-scroll-to-top.eta-visible {
    opacity: 1;
    visibility: visible;
}

#eta-scroll-to-top:hover {
    background-color: var(--eta-secondary-color, #194D7A);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#eta-scroll-to-top .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    color: #fff;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.eta-breadcrumbs {
    padding: 12px 20px;
    background-color: #f8f9fa;
    font-size: 14px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.eta-breadcrumbs a {
    color: var(--eta-primary-color, #01ABFF);
    text-decoration: none;
}

.eta-breadcrumbs a:hover {
    color: var(--eta-secondary-color, #194D7A);
    text-decoration: underline;
}

.eta-separator {
    margin: 0 8px;
    color: #999;
}

/* ============================================================
   STICKY HEADER ENHANCEMENTS
   ============================================================ */
.wp-block-template-part header.eta-sticky-active,
header.wp-block-template-part.eta-sticky-active {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}
