/* Custom CSS for Bucket Wars Landing Page */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Canvas container styling */
.canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Glow effects */
.glow-primary {
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.3);
}

.glow-accent {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(-45deg, #ffffff, #7c5cff, #22d3ee, #34d399);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

/* Pulse animation for glow */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* FAQ accordion animations */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    transition: all 0.2s ease;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 1.5rem;
}

/* Button hover effects */
.btn-hover-scale {
    transition: transform 0.2s ease;
}

.btn-hover-scale:hover {
    transform: scale(1.05);
}

/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #7c5cff;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #7c5cff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b46ff;
}

/* Code block styling */
pre {
    position: relative;
}

pre code {
    font-family: 'ui-monospace', 'SFMono-Regular', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    line-height: 1.6;
}

/* Toast notification styles */
#toast {
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#toast.show {
    transform: translateX(0);
}

/* Canvas ball styles */
.ball {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ball-a {
    background: linear-gradient(135deg, #7c5cff, #6b46ff);
}

.ball-b {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
}

/* Bucket styles */
.bucket {
    position: absolute;
    bottom: 0;
    border-radius: 0 0 8px 8px;
    transition: all 0.45s ease;
}

.bucket-a {
    background: linear-gradient(to top, #7c5cff, #6b46ff);
    border: 2px solid #7c5cff;
}

.bucket-b {
    background: linear-gradient(to top, #22d3ee, #06b6d4);
    border: 2px solid #22d3ee;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .canvas-container canvas {
        width: 100% !important;
        height: 300px !important;
    }
    
    .gradient-text {
        font-size: 2.5rem;
    }
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Ball drop animation */
@keyframes ballDrop {
    0% {
        transform: translateY(-20px) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
}

.ball-drop {
    animation: ballDrop 2.2s ease-out forwards;
}

/* Bucket fill animation */
@keyframes bucketFill {
    from {
        height: 0%;
    }
    to {
        height: var(--fill-height);
    }
}

.bucket-fill {
    animation: bucketFill 0.45s ease-out;
}
