*, *::before, *::after {
    box-sizing: border-box;
}

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

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prose {
    line-height: 1.8;
    color: #374151;
}

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

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

.prose p {
    margin-bottom: 1.25rem;
}

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

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

.prose blockquote {
    border-left: 4px solid #0ea5e9;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-style: italic;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
}

.prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.prose code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #0ea5e9;
}

.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.prose a {
    color: #0ea5e9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: #0284c7;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem auto;
    display: block;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

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

.prose th {
    background: #f9fafb;
    font-weight: 600;
}

.prose hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}

#editor:empty::before {
    content: 'Start writing...';
    color: #d1d5db;
}

#editor:focus {
    outline: none;
}

#editor h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

#editor h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
}

#editor blockquote {
    border-left: 4px solid #0ea5e9;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6b7280;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

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

#editor img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

#editor ul, #editor ol {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

#editor li {
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .prose {
        font-size: 0.95rem;
    }
    .prose h2 {
        font-size: 1.3rem;
    }
    .prose h3 {
        font-size: 1.1rem;
    }
}

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

#posts-list article {
    animation: fadeIn 0.3s ease-out;
}

#google-login-modal iframe {
    margin: 0 auto !important;
}
