/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 40;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

/* Parallax Background Animation */
@keyframes parallax-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.parallax-bg::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    border-radius: 50%;
    top: 10%;
    right: 10%;
    filter: blur(80px);
    animation: parallax-float 8s ease-in-out infinite;
}

.parallax-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    filter: blur(100px);
    animation: parallax-float 10s ease-in-out infinite reverse;
}

/* Particle Effect */
@keyframes particle-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

/* Table Responsive Wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Prose Styling for Markdown Content */
.prose {
    color: #374151;
    line-height: 1.7;
}

.prose h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.6em;
    margin-bottom: 0.8em;
    line-height: 1.4;
}

.prose h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 1.4em;
    margin-bottom: 0.6em;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    font-size: 1.125rem;
    color: #4b5563;
}

.prose a {
    color: #4f46e5;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #6366f1;
}

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

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

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 0.375em;
    color: #4b5563;
}

.prose li::marker {
    color: #6366f1;
}

.prose blockquote {
    font-style: italic;
    border-left: 0.25rem solid #6366f1;
    padding-left: 1.5em;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    color: #6b7280;
    background: #f9fafb;
    padding-top: 1em;
    padding-bottom: 1em;
    border-radius: 0.375rem;
}

.prose table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.prose thead {
    background: #4f46e5;
    color: white;
}

.prose th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prose td {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
}

.prose tbody tr:hover {
    background: #f9fafb;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-top: 2em;
    margin-bottom: 2em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prose code {
    background: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #db2777;
    font-family: monospace;
}

.prose pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1.5em;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.875em;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .prose {
        font-size: 1rem;
    }
    
    .prose h2 {
        font-size: 1.75rem;
    }
    
    .prose h3 {
        font-size: 1.375rem;
    }
    
    .prose h4 {
        font-size: 1.125rem;
    }
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
