body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
}

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

.modal {
    animation: fadeIn 0.2s ease-out;
}

.prose {
    max-width: 100%;
    color: #374151;
}

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

.prose a:hover {
    color: #4338ca;
}

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

.prose pre {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'Menlo', 'Monaco', monospace;
}

.prose code {
    font-family: 'Menlo', 'Monaco', monospace;
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.prose blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    margin-left: 0;
    color: #6b7280;
    font-style: italic;
}

.prose ul, .prose ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

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

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

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    font-weight: 600;
    margin: 0.5rem 0;
}

.comment-section {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
}

.carousel {
    position: relative;
    touch-action: pan-x;
}

.carousel-inner {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    transition: scroll-left 0.3s ease-out;
}

.carousel-inner::-webkit-scrollbar {
    height: 6px;
}

.carousel-inner::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.carousel-inner::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.carousel-item {
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: start;
    transition: transform 0.3s ease-out;
}

.carousel-prev, .carousel-next {
    transition: opacity 0.2s, transform 0.2s;
}

.carousel-prev:hover, .carousel-next:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background-color: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.carousel-dot.bg-indigo-600 {
    background-color: #4f46e5;
}

trix-editor {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-height: 100px;
    background: white;
    font-size: 0.9rem;
}

trix-toolbar {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
}

trix-toolbar .trix-button {
    color: #6b7280;
    transition: color 0.2s;
}

trix-toolbar .trix-button:hover {
    color: #4f46e5;
}