/**
 * TripDust Package Builder - UX Enhancements
 * Micro-interactions and UI effects
 * Note: Social proof styles are now in the centralized social-proof module
 */

/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    --tdpb-primary: #1e3a5f;
    --tdpb-accent: #f59e0b;
    --tdpb-white: #ffffff;
    --tdpb-gray-100: #f7fafc;
    --tdpb-spacing-sm: 8px;
    --tdpb-spacing: 12px;
    --tdpb-spacing-lg: 16px;
    --tdpb-radius: 8px;
    --tdpb-radius-full: 50%;
    --tdpb-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ========================================
   MICRO-INTERACTIONS
   ======================================== */

/* Hover Effects */
.tdpb-hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tdpb-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--tdpb-shadow-lg);
}

/* Click Ripple Effect */
.tdpb-ripple {
    position: relative;
    overflow: hidden;
}

.tdpb-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: var(--tdpb-radius-full);
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.tdpb-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .tdpb-hover-lift,
    .tdpb-ripple::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   MOBILE/TOUCH DEVICE OPTIMIZATIONS
   ======================================== */

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .tdpb-hover-lift:hover {
        transform: none;
        box-shadow: none;
    }

    .tdpb-ripple:active::after {
        width: 150px;
        height: 150px;
    }
}

/* Ensure touch targets are large enough */
@media (max-width: 767px) {
    .tdpb-ripple {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Active states for touch feedback */
@media (hover: none) {
    .tdpb-hover-lift:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}
