/* ====================================
   Blog Rafie.id - Clean Minimal Styles
   ==================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

::-webkit-scrollbar-track {
    background: #09090b;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

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

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

/* Article Content */
.article-content {
    line-height: 1.8;
    color: #a1a1aa;
    font-size: 1rem;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fafafa;
    margin: 2rem 0 0.75rem;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e4e4e7;
    margin: 1.5rem 0 0.5rem;
}

.article-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e4e4e7;
    margin: 1.25rem 0 0.5rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content a {
    color: #818cf8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: #a5b4fc;
}

.article-content ul,
.article-content ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.4rem;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content blockquote {
    border-left: 3px solid #3f3f46;
    background: #18181b;
    padding: 0.75rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #a1a1aa;
}

.article-content pre {
    background: #18181b;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid #27272a;
    font-size: 0.875rem;
}

.article-content code {
    background: #18181b;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    color: #818cf8;
    font-size: 0.9em;
}

.article-content pre code {
    background: none;
    padding: 0;
}

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

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
}

.article-content th,
.article-content td {
    padding: 0.6rem 0.75rem;
    border: 1px solid #27272a;
    text-align: left;
    font-size: 0.875rem;
}

.article-content th {
    background: #18181b;
    font-weight: 600;
    color: #e4e4e7;
}

/* Post Card */
.post-card {
    transition: border-color 0.2s;
}

.post-card:hover {
    border-color: #3f3f46;
}

/* Share Button */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: #18181b;
    color: #a1a1aa;
    border: 1px solid #27272a;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #27272a;
    color: #fafafa;
}

/* Admin Sidebar */
.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.375rem;
    color: #71717a;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    background: #18181b;
    color: #e4e4e7;
}

.admin-sidebar-link.active {
    color: #818cf8;
}

/* Summernote Dark */
.note-editor.note-frame {
    border: 1px solid #27272a !important;
    border-radius: 0.5rem !important;
    overflow: hidden;
}

.note-editor .note-toolbar {
    background: #18181b !important;
    border-bottom: 1px solid #27272a !important;
}

.note-editor .note-editing-area .note-editable {
    background: #09090b !important;
    color: #e4e4e7 !important;
    min-height: 300px;
}

.note-editor .note-statusbar {
    background: #18181b !important;
    border-top: 1px solid #27272a !important;
}

.note-btn {
    background: #27272a !important;
    color: #e4e4e7 !important;
    border: 1px solid #3f3f46 !important;
}

.note-btn:hover {
    background: #3f3f46 !important;
}

/* Toast */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 360px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: #059669;
}

.toast-error {
    background: #dc2626;
}

.toast-info {
    background: #4f46e5;
}

/* Pagination clean */
.pagination-link {
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    transition: all 0.2s;
}