* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Nunito', sans-serif;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(252, 211, 77, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.3);
}

.reel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.reel-label {
    font-size: 14px;
    font-weight: 600;
    color: #7C3AED;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slot-reel {
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    border: 3px solid #8B5CF6;
    border-radius: 12px;
    padding: 12px;
    width: 200px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slot-item {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    padding: 8px;
    transition: all 0.3s ease;
    color: #6B7280;
}

.slot-item.selected {
    font-size: 22px;
    color: #7C3AED;
    font-weight: 800;
    transform: scale(1.1);
}

.slot-item.spinning {
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.generate-button {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    font-size: 24px;
    font-weight: 800;
    padding: 20px 40px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.generate-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6);
}

.generate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    animation: none;
}

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

.idea-card {
    animation: slideIn 0.5s ease;
}

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

.btn-secondary {
    background: white;
    color: #7C3AED;
    border: 2px solid #8B5CF6;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #8B5CF6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.history-item {
    background: linear-gradient(135deg, #F9FAFB, #F3F4F6);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #8B5CF6;
}

.history-item:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.lightbulb {
    display: inline-block;
    animation: rotate 3s linear infinite;
}

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

@media (max-width: 768px) {
    .slot-reel {
        width: 150px;
        height: 120px;
    }
    
    .slot-item {
        font-size: 14px;
    }
    
    .slot-item.selected {
        font-size: 16px;
    }
    
    .generate-button {
        font-size: 18px;
        padding: 16px 32px;
    }
}