/**
 * Scroll Indicator Styles
 * Bounce-animated chevron that appears at the bottom-center of the viewport
 */

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    cursor: pointer;

    /* Visual styling */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Background */
    background: rgba(255, 255, 255, 0.98);
    border: 3px solid #fa7268;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* Animation */
    animation: bounce 2s ease-in-out infinite;

    /* Smooth transitions */
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Visible state (when fading in) */
.scroll-indicator.visible {
    opacity: 1;
}

/* SVG icon styling */
.scroll-indicator svg {
    color: #fa7268;
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

/* Hover state */
.scroll-indicator:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

    border-color: #fa7268;
}

.scroll-indicator:hover svg {
    transform: translateY(3px);
}

/* Focus state for accessibility */
.scroll-indicator:focus {
    outline: 2px solid #fa7268;
    outline-offset: 2px;
}

/* Hidden state (when fading out) */
.scroll-indicator.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
        width: 60px;
        height: 60px;
    }

    .scroll-indicator svg {
        width: 30px;
        height: 30px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .scroll-indicator {
        animation: none;
    }

    .scroll-indicator:hover svg {
        transform: none;
    }
}
