/* Custom Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}
* {
    -webkit-tap-highlight-color: transparent;
}

/* Toast Styles */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    animation: slideUp 0.3s ease-out;
}

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

/* Monkey Typing Animation */
.monkey-anim {
    display: inline-block;
    font-size: 1.5rem;
    animation: monkeyBounce 0.6s infinite alternate ease-in-out;
    filter: drop-shadow(0 0 8px rgba(147, 51, 234, 0.5));
}

@keyframes monkeyBounce {
    from { transform: translateY(0) scale(1) rotate(-5deg); }
    to { transform: translateY(-8px) scale(1.1) rotate(5deg); }
}

.typing-dots {
    display: inline-flex;
    gap: 2px;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: dotPulse 1.5s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Logo Styling */
header img {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

header img:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Splash Intro Animation */
#logo-wrapper {
    transition: all 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

.logo-initial {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(5) !important;
    z-index: 9999 !important;
    margin: 0 !important;
    opacity: 1 !important;
}

.logo-initial img {
    box-shadow: 0 0 50px rgba(147, 51, 234, 0.5) !important;
}

.logo-initial::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.content-fade {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s ease-out;
}

.content-visible {
    opacity: 1;
    transform: translateY(0);
}

#splash-overlay {
    position: fixed;
    inset: 0;
    background: #0f172a;
    z-index: 900;
    transition: opacity 1s ease-in-out;
}

/* Markdown Styling */
.prose {
    color: #e2e8f0;
}

.prose p {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

.prose ul, .prose ol {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
    padding-left: 1.5em;
}

.prose li {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.prose strong {
    font-weight: 600;
    color: #ffffff;
}

.prose em {
    font-style: italic;
}

.prose h1, .prose h2, .prose h3 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.prose h1 {
    font-size: 1.5em;
}

.prose h2 {
    font-size: 1.25em;
}

.prose h3 {
    font-size: 1.1em;
}

.prose a {
    color: #a78bfa;
    text-decoration: underline;
}

.prose a:hover {
    color: #c4b5fd;
}

.prose code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: monospace;
}

.prose pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-top: 1em;
    margin-bottom: 1em;
}

.prose pre code {
    background: transparent;
    padding: 0;
}

.prose blockquote {
    border-left: 4px solid rgba(147, 51, 234, 0.5);
    padding-left: 1rem;
    margin-left: 0;
    margin-top: 1em;
    margin-bottom: 1em;
    font-style: italic;
    color: #cbd5e1;
}

