/* Wheel Picker specific styles */

.wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel-container canvas {
    max-width: 100%;
    height: auto;
}

.wheel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    overflow: hidden; /* Taşan içeriği gizle */
}

/* Öğe içindeki metin için stil */
.wheel-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px; /* Sağ tarafta boşluk bırak */
}

.dark .wheel-item {
    background-color: #374151;
}

.wheel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wheel-item .remove-btn {
    color: #ef4444;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    margin-left: 10px; /* Kaldırma butonu ile metin arasında boşluk ekle */
    padding: 5px; /* Butonun tıklanabilir alanını genişlet */
    display: flex; /* Flex kullanarak içeriği merkezle */
    align-items: center;
    justify-content: center;
    min-width: 24px; /* Minimum genişlik belirle */
}

.wheel-item .remove-btn:hover {
    opacity: 1;
}

.result-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.dark .result-item {
    background-color: #374151;
}

.result-item:nth-child(odd) {
    background-color: #f9fafb;
}

.dark .result-item:nth-child(odd) {
    background-color: #4b5563;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spin-animation {
    animation: spin 0.5s linear infinite;
}

.highlight-result {
    animation: highlight 1s ease;
}

@keyframes highlight {
    0% {
        background-color: #93c5fd;
        transform: scale(1);
    }
    50% {
        background-color: #60a5fa;
        transform: scale(1.05);
    }
    100% {
        background-color: white;
        transform: scale(1);
    }
}

.dark .highlight-result {
    animation: highlightDark 1.5s ease;
}

@keyframes highlightDark {
    0% {
        background-color: #1e40af;
        transform: scale(1);
    }
    50% {
        background-color: #3b82f6;
        transform: scale(1.05);
    }
    100% {
        background-color: #374151;
        transform: scale(1);
    }
}

/* Sonuç metni animasyonu */
.result-text-animation {
    animation: resultTextAnimation 1s ease;
}

@keyframes resultTextAnimation {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(5px) scale(1.1);
    }
    70% {
        transform: translateY(-3px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Çark seçildiğinde gösterilecek vurgu efekti */
.wheel-selected {
    animation: wheelSelectedPulse 0.8s ease;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
}

@keyframes wheelSelectedPulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    25% {
        transform: scale(1.03);
        filter: brightness(1.1);
    }
    50% {
        transform: scale(1.06);
        filter: brightness(1.2);
    }
    75% {
        transform: scale(1.03);
        filter: brightness(1.1);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Çark dönüş animasyonu için ek stil */
.wheel-container {
    position: relative;
    perspective: 1000px;
}

.wheel-container::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-right: 60px solid #750c0c;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 5px rgba(159, 10, 10, 0.5));
    z-index: 10;
}

.wheel-container canvas {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
    display: block; /* Önemli: Inline yerine block olarak göster */
    margin: 0 auto; /* Merkeze hizala */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wheel-container canvas {
        max-width: 320px;
        max-height: 320px;
    }
}

/* Daha küçük ekranlar için */
@media (max-width: 480px) {
    .wheel-container canvas {
        max-width: 280px;
        max-height: 280px;
    }
}
