/**
 * iOS-style Wheel Picker
 * Колёсный пикер времени в стиле iOS
 */

.wheel-picker-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    height: 180px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    background: var(--tg-theme-secondary-bg-color, #1c1c1e);
    border-radius: 12px;
    padding: 0 16px;
}

.wheel-picker-column {
    position: relative;
    height: 100%;
    width: 60px;
    overflow: hidden;
}

.wheel-picker-column::before,
.wheel-picker-column::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    z-index: 2;
}

.wheel-picker-column::before {
    top: 0;
    background: linear-gradient(to bottom, 
        var(--tg-theme-secondary-bg-color, #1c1c1e) 0%,
        var(--tg-theme-secondary-bg-color, #1c1c1e) 30%,
        transparent 100%
    );
}

.wheel-picker-column::after {
    bottom: 0;
    background: linear-gradient(to top, 
        var(--tg-theme-secondary-bg-color, #1c1c1e) 0%,
        var(--tg-theme-secondary-bg-color, #1c1c1e) 30%,
        transparent 100%
    );
}

.wheel-picker-scroll {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wheel-picker-scroll::-webkit-scrollbar {
    display: none;
}

.wheel-picker-item {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    color: var(--tg-theme-hint-color, #8e8e93);
    scroll-snap-align: center;
    transition: all 0.15s ease;
    cursor: pointer;
}

.wheel-picker-item.selected {
    color: var(--tg-theme-text-color, #ffffff);
    font-weight: 600;
    font-size: 22px;
}

/* Выделение центральной области */
.wheel-picker-highlight {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    background: var(--tg-theme-bg-color, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    pointer-events: none;
    z-index: 0;
}

/* Разделитель между часами и минутами */
.wheel-picker-separator {
    font-size: 24px;
    font-weight: 600;
    color: var(--tg-theme-text-color, #ffffff);
    margin: 0 2px;
    align-self: center;
    position: relative;
    z-index: 3;
}

/* Paddings для скролла */
.wheel-picker-padding {
    height: 72px;
    scroll-snap-align: none;
}

/* Time range picker (от - до) */
.wheel-picker-range {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wheel-picker-range-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wheel-picker-range-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--tg-theme-text-color);
    min-width: 30px;
    text-align: right;
}

.wheel-picker-range-group {
    flex: 1;
}

/* Компактный режим для range */
.wheel-picker-compact {
    height: 120px;
    padding: 0 8px;
}

.wheel-picker-compact .wheel-picker-column {
    width: 45px;
}

.wheel-picker-compact .wheel-picker-item {
    height: 30px;
    font-size: 16px;
}

.wheel-picker-compact .wheel-picker-item.selected {
    font-size: 18px;
}

.wheel-picker-compact .wheel-picker-padding {
    height: 45px;
}

.wheel-picker-compact .wheel-picker-highlight {
    height: 30px;
}

.wheel-picker-compact .wheel-picker-column::before,
.wheel-picker-compact .wheel-picker-column::after {
    height: 45px;
}

.wheel-picker-compact .wheel-picker-separator {
    font-size: 18px;
    margin: 0;
}

/* Анимация при выборе */
@keyframes wheelPickerPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.wheel-picker-item.just-selected {
    animation: wheelPickerPulse 0.2s ease;
}

/* Haptic feedback визуализация */
.wheel-picker-column.scrolling .wheel-picker-item {
    transition: none;
}

