/* ===================================
   GLÜCKSRAD - Wheel of Fortune
   Professional & Accurate
   =================================== */

/* Modal Overlay */
.wheel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wheel-modal.active {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.wheel-content {
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.5s ease;
}

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

/* Close Button */
.wheel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wheel-close:hover {
    background: rgba(233, 69, 96, 0.1);
    color: #e94560;
    transform: rotate(90deg);
}

/* Wheel Header */
.wheel-header {
    text-align: center;
    margin-bottom: 32px;
}

.wheel-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.wheel-subtitle {
    color: #757575;
    font-size: 1rem;
}

/* Wheel Container */
.wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 32px auto;
    max-width: 100%;
}

/* Pointer/Arrow */
.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #d4af37;
    z-index: 100;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Canvas */
#wheelCanvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Center Spin Button */
.wheel-spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f4e8c1);
    border: 5px solid white;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
    text-transform: uppercase;
}

.wheel-spin-btn:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.7);
}

.wheel-spin-btn:active:not(:disabled) {
    transform: translate(-50%, -50%) scale(0.95);
}

.wheel-spin-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Result Display */
.wheel-result {
    text-align: center;
    min-height: 120px;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.05), rgba(212, 175, 55, 0.05));
    margin-top: 24px;
}

.wheel-result.hidden {
    display: none;
}

.wheel-result-emoji {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.wheel-result-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 12px;
}

.wheel-result-text {
    color: #757575;
    margin-bottom: 24px;
    font-size: 1rem;
}

.wheel-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 600px) {
    .wheel-content {
        padding: 32px 24px;
    }

    .wheel-container {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .wheel-title {
        font-size: 1.5rem;
    }

    .wheel-spin-btn {
        width: 80px;
        height: 80px;
        font-size: 14px;
    }

    .wheel-result-emoji {
        font-size: 48px;
    }

    .wheel-result-title {
        font-size: 1.5rem;
    }
}
