* {
    font-family: 'Inter', system-ui, sans-serif;
}

.dark-mode-transition * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
}

.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(75, 85, 99, 0.2);
}

.wave-divider {
    fill: #f9fafb;
}

.dark .wave-divider {
    fill: #111827;
}

.profile-img-wrapper {
    position: relative;
    overflow: hidden;
}

.profile-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.card-hover:hover .profile-img-wrapper::before {
    left: 100%;
}

.badge-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Prose Fixes for Tailwind CDN - Better Readability */
.prose {
    line-height: 1.8;
}

.prose p {
    color: rgb(55 65 81);
    margin-bottom: 1.25rem; /* Space antar paragraf */
    line-height: 1.75; /* Line height lebih lega */
}

.dark .prose p {
    color: rgb(209 213 219);
}

.prose ul, .prose ol {
    margin-left: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: rgb(55 65 81);
}

.dark .prose ul, .dark .prose ol {
    color: rgb(209 213 219);
}

.prose li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgb(55 65 81);
    line-height: 1.75;
}

.dark .prose li {
    color: rgb(209 213 219);
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose img {
    margin: 2rem auto; /* Lebih banyak space untuk gambar */
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.prose h1, .prose h2, .prose h3, 
.prose h4, .prose h5, .prose h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.prose h1 {
    font-size: 2.25rem;
    margin-top: 0;
}

.prose h2 {
    font-size: 1.875rem;
}

.prose h3 {
    font-size: 1.5rem;
}

.prose strong {
    font-weight: 700;
    color: rgb(17 24 39);
}

.dark .prose strong {
    color: white;
}

.prose a {
    color: rgb(5 150 105);
    text-decoration: underline;
}

.dark .prose a {
    color: rgb(52 211 153);
}

.dark .prose h1, .dark .prose h2, .dark .prose h3,
.dark .prose h4, .dark .prose h5, .dark .prose h6 {
    color: white;
}

.prose blockquote {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid rgb(16 185 129);
    font-style: italic;
    color: rgb(55 65 81);
}

.dark .prose blockquote {
    color: rgb(209 213 219);
}

.prose code {
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background-color: rgb(243 244 246);
    color: rgb(5 150 105);
    font-size: 0.875em;
}

.dark .prose code {
    background-color: rgb(31 41 55);
    color: rgb(52 211 153);
}

.prose pre {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgb(243 244 246);
    overflow-x: auto;
}

.dark .prose pre {
    background-color: rgb(17 24 39);
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Spacing untuk elemen lainnya */
.prose hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-color: rgb(229 231 235);
}

.dark .prose hr {
    border-color: rgb(55 65 81);
}

.prose table {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose th, .prose td {
    padding: 0.75rem;
}

.prose img {
    /* Pastikan tidak pernah melebihi container */
    max-width: 100% !important;
    
    /* Height mengikuti aspek ratio asli */
    height: auto !important;
    
    /* Center gambar */
    display: block;
    margin-left: auto;
    margin-right: auto;
    
    /* Spacing */
    margin-top: 2rem;
    margin-bottom: 2rem;
    
    /* Visual enhancement */
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Smooth loading */
    object-fit: cover;
}

/* Override inline width/height dari editor */
.prose img[width],
.prose img[height] {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Desktop: limit maksimal agar tidak terlalu lebar */
@media (min-width: 768px) {
    .prose img {
        max-width: min(800px, 100%);
    }
}

@media (min-width: 1024px) {
    .prose img {
        max-width: min(900px, 100%);
    }
}

/* Small images (jika ada class dari editor) */
.prose .size-small,
.prose .align-left,
.prose .align-right {
    max-width: 50%;
}

.prose .align-left {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.prose .align-right {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose .align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Clear floats after images */
.prose::after {
    content: "";
    display: table;
    clear: both;
}

/* Lazy loading placeholder */
.prose img[loading="lazy"] {
    background-color: rgb(243 244 246);
}

.dark .prose img[loading="lazy"] {
    background-color: rgb(31 41 55);
}

/* Lightbox/zoom effect on hover (optional) */
.prose img {
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prose img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
.dark .glass {
    background: rgba(17, 24, 39, 0.95);
}