/**
 * Frontend Styles for HimachalCulture Heritage
 */

/* Additional custom styles if needed beyond Tailwind */

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.animate-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.zoom-in {
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-in-from-bottom-5 {
    animation: slideInFromBottom 0.3s ease-out;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Scroll Container */
.hch-filter-scroll-container {
    position: relative;
    overflow: hidden;
}

.hch-filter-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 10px 0;
    margin: 0 -4px;
}

.hch-filter-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.hch-filter-scroll-wrapper {
    cursor: grab;
    scroll-snap-type: x mandatory;
}

.hch-filter-scroll-wrapper:active {
    cursor: grabbing;
}

.hch-filter-scroll-wrapper > div {
    display: inline-flex;
    gap: 12px;
    padding: 0 4px;
}

.hch-filter-scroll-wrapper button {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Scroll Indicators */
.hch-scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(16, 42, 67, 0.9);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hch-scroll-indicator:hover {
    background: rgba(16, 42, 67, 1);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.hch-scroll-indicator:active {
    transform: translateY(-50%) scale(0.95);
}

.hch-filter-scroll-container:hover .hch-scroll-indicator:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.hch-scroll-indicator-left {
    left: 10px;
    background: linear-gradient(to right, rgba(16, 42, 67, 0.95), rgba(16, 42, 67, 0.85));
}

.hch-scroll-indicator-right {
    right: 10px;
    background: linear-gradient(to left, rgba(16, 42, 67, 0.95), rgba(16, 42, 67, 0.85));
}

.hch-scroll-indicator.hidden {
    display: none;
}

/* Touch-friendly scrolling for mobile */
@media (max-width: 768px) {
    .hch-filter-scroll-wrapper {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        scroll-padding: 0 20px;
    }
    
    .hch-scroll-indicator {
        opacity: 0.7;
        pointer-events: all;
        width: 38px;
        height: 38px;
    }
    
    .hch-scroll-indicator-left {
        left: 5px;
    }
    
    .hch-scroll-indicator-right {
        right: 5px;
    }
}

/* Smooth scroll animation */
@keyframes smoothScroll {
    from {
        scroll-behavior: smooth;
    }
}
