/* Custom Animations and Styles */

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(200, 155, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(200, 155, 60, 0.8), 0 0 60px rgba(196, 30, 140, 0.4);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Scrollbar styling */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom scrollbar for main content */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a0f30;
}

::-webkit-scrollbar-thumb {
    background: #4a2f7a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c89b3c;
}

/* Smooth transitions */
* {
    transition: border-color 0.2s ease;
}

/* Category buttons hover effect */
.category-btn {
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(200, 155, 60, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.category-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Details/Summary styling */
details summary::-webkit-details-marker {
    display: none;
}

/* Prose styling for readability */
.prose {
    color: #e5e7eb;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: #c89b3c;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.prose p {
    margin-bottom: 1.25em;
    line-height: 1.7;
}

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

.prose li {
    margin-bottom: 0.5em;
}

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

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

.prose strong {
    color: #c89b3c;
    font-weight: 700;
}

.prose code {
    background: #2d1b4e;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

.prose th,
.prose td {
    border: 1px solid #4a2f7a;
    padding: 0.75em;
    text-align: left;
}

.prose th {
    background: #2d1b4e;
    color: #c89b3c;
    font-weight: bold;
}

/* CSS Pattern Background Alternative */
body {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(196, 30, 140, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(11, 197, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(200, 155, 60, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .animate-float {
        animation: none;
    }
}
