/* Main Theme Styles */

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prose styles for articles */
.prose {
    color: #475569;
    line-height: 1.75;
}

.prose h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.prose p {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.75;
}

.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

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

.prose li {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

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

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

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

.prose blockquote {
    border-left: 4px solid #ea580c;
    padding-left: 1rem;
    font-style: italic;
    color: #64748b;
}

.prose code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.nav-links a, .nav-links span {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.nav-links a {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.nav-links a:hover {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
}

.nav-links .current {
    background: #f97316;
    color: #fff;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Focus states */
button:focus, a:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* WordPress admin bar adjustment */
body.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

/* Mobile Menu Styles - Critical */
#mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    overflow-y: auto !important;
    opacity: 1 !important;
}

#mobile-menu * {
    opacity: 1 !important;
}

#mobile-menu.active {
    display: block !important;
}

#mobile-menu.hidden {
    display: none !important;
}

#mobile-menu > div {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100% !important;
    padding: 1.5rem !important;
    background: #ffffff !important;
}

#mobile-menu nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
}

#mobile-menu nav a {
    display: block !important;
    padding: 0.75rem 1rem !important;
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    background: transparent !important;
}

#mobile-menu nav a:hover {
    background-color: #f1f5f9 !important;
}

#mobile-menu .mt-auto {
    margin-top: auto !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

#mobile-menu .mt-auto button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    border: none !important;
}
