/**
 * Mobile-friendly date picker with wheel selection
 * For Tavilan.pro palm reading app
 */

.mobile-date-picker-wrapper {
    position: relative;
    width: 100%;
}

.mobile-date-picker-container {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out forwards;
}

.wheel-container {
    flex: 1;
    margin: 0 0.25rem;
}

.wheel-wrapper {
    position: relative;
    height: 10rem;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: rgba(31, 41, 55, 0.5);
}

.wheel {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
    
    /* Gradient mask for fading top and bottom items */
    mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.wheel::-webkit-scrollbar {
    display: none;
}

.wheel-item {
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    scroll-snap-align: center;
    font-size: 1.125rem;
    color: rgba(209, 213, 219, 0.8);
    transition: all 0.2s ease;
}

/* Style for the selected item */
.wheel-item:hover {
    color: white;
}

/* Selection indicator */
.selection-indicator {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    pointer-events: none;
    background-color: rgba(139, 92, 246, 0.05);
}

/* Zodiac info section */
.zodiac-info {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: rgba(31, 41, 55, 0.5);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .wheel-item {
        font-size: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .wheel-wrapper {
        background-color: rgba(17, 24, 39, 0.7);
    }
    
    .selection-indicator {
        border-color: rgba(139, 92, 246, 0.4);
        background-color: rgba(139, 92, 246, 0.1);
    }
}
