:root {
    --primary-color: #5b21b6;
    --secondary-color: #e11d48;
    --accent-color: #14b8a6;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
}

iframe {
    margin: 0 auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #5b21b6 0%, #9333ea 45%, #ec4899 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.navbar-scroll {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    padding-top: 0.75rem;
    z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    display: block;
}

.nav-dropdown-inner {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.nav-dropdown-inner a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

.nav-dropdown-inner a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fda4af;
}

#mobile-menu.mobile-menu-open {
    display: flex !important;
}

#mobile-menu {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #0f172a;
    z-index: 55;
    flex-direction: column;
    padding: 5rem 1.25rem 1.25rem;
    overflow-y: auto;
    display: none;
}

/* Article body typography */
.prose-article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: #1f2937;
}

.prose-article h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: #374151;
}

.prose-article p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #374151;
}

.prose-article ul,
.prose-article ol {
    margin: 0.75rem 0 1.25rem 1.25rem;
    color: #374151;
}

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

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

.prose-article li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

#article-header {
    background-size: cover;
    background-position: center;
}

/* Subpages: clear fixed header (use !important so Tailwind py-* cannot override) */
.page-offset {
    padding-top: 7rem !important;
}
