/* Wheel-specific styles */
.wheel-hero {
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.wheel-header {
    max-width: 600px;
    margin: 0 auto;
}

.wheel-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.wheel-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.wheel-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.wheel-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.wheel-container {
    padding: 3rem 0;
    background: #f9fafb;
}

.wheel-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.wheel-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

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

.wheel {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(
        #ff6b6b 0deg 72deg,
        #4ecdc4 72deg 144deg,
        #45b7d1 144deg 216deg,
        #96ceb4 216deg 288deg,
        #feca57 288deg 360deg
    );
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 3s cubic-bezier(0.23, 1, 0.32, 1);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.wheel-pointer-fixed {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 25px solid #ef4444;
    z-index: 20;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wheel-segments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 0.5rem;
    box-sizing: border-box;
}

.spin-button {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.spin-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
}

.spin-button:active {
    transform: scale(0.95);
}

.spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spin-text {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.spin-icon {
    font-size: 1.25rem;
}

.result-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-header {
    margin-bottom: 1.5rem;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.result-category {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-content {
    margin-bottom: 2rem;
}

.result-description {
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.result-details {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wheel-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.control-group select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.control-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.challenge-history {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.challenge-history h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border-left: 4px solid #6366f1;
}

.history-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.history-content {
    flex: 1;
}

.history-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.history-category {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.history-time {
    font-size: 0.75rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.no-history {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
}

.related-tools {
    padding: 3rem 0;
    background: white;
}

.related-tools .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-tools .tool-card {
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wheel-title {
        font-size: 2rem;
    }
    
    .wheel-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .wheel-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .wheel {
        width: 250px;
        height: 250px;
    }
    
    .wheel-pointer-fixed {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 20px solid #ef4444;
    }
    
    .wheel-segment {
        font-size: 0.625rem;
    }
    
    .result-card {
        padding: 1.5rem;
    }
    
    .wheel-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .result-actions {
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wheel-hero {
        padding: 2rem 0;
    }
    
    .wheel-title {
        font-size: 1.75rem;
    }
    
    .wheel {
        width: 200px;
        height: 200px;
    }
    
    .wheel-pointer-fixed {
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 16px solid #ef4444;
    }
    
    .wheel-segment {
        font-size: 0.5rem;
        padding: 0.25rem;
    }
    
    .spin-button {
        width: 60px;
        height: 60px;
    }
    
    .spin-text {
        font-size: 0.625rem;
    }
    
    .spin-icon {
        font-size: 1rem;
    }
    
    .result-card {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .result-icon {
        font-size: 2rem;
    }
    
    .result-title {
        font-size: 1.25rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
