/* style.css - Mini Wiki SEO PRO (dark, modern, fokus ke readability & SEO) */

:root {
    --bg: #0f172a;
    --bg-light: #111827;
    --surface: #020617;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --accent-strong: #0ea5e9;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --danger: #ef4444;
    --success: #22c55e;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
}

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

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0f172a 0, #020617 52%, #020617 100%);
    color: var(--text);
    min-height: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.4rem;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.86));
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.site-header.admin {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.96));
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.4rem;
}

.brand a {
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #e5e7eb;
}
.brand span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.main-nav a {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
}
.main-nav a:hover {
    color: #f9fafb;
}
.main-nav .welcome {
    font-size: 0.85rem;
    color: var(--muted);
}

/* LAYOUT */

.site-main {
    padding: 2.4rem 0 3rem;
}
/* Thumbnail di beranda */
.article-thumb {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Banner besar di halaman artikel */
.article-banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    margin-bottom: 16px;
    object-fit: cover;
}

/* Artikel terkait bawah artikel */
.related-articles ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 0.5rem;
}

.related-articles a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.related-articles a:hover span {
    text-decoration: underline;
}

.related-thumb {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

/* HERO */

.hero {
    padding: 2.2rem 2rem;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.15), transparent 55%),
        linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: 2rem;
    margin: 0 0 0.6rem;
}
.hero p {
    margin: 0;
    max-width: 650px;
    color: var(--muted);
    font-size: 0.98rem;
}

/* ARTICLE LIST */

.article-list h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.article-card {
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(55, 65, 81, 0.6);
    box-shadow: 0 13px 35px rgba(15, 23, 42, 0.85);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.2s ease;
}
.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
    border-color: rgba(56, 189, 248, 0.5);
}
.article-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
}
.article-card .meta {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    color: var(--muted);
}
.article-card .snippet {
    margin: 0.3rem 0 0.7rem;
    font-size: 0.91rem;
    line-height: 1.6;
    color: #d1d5db;
}

.keyword-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--accent-soft);
    color: var(--accent-strong);
    border-radius: 999px;
    padding: 0.16rem 0.8rem;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.keyword-badge.large {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    padding: 0.22rem 0.9rem;
}

.btn-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* BREADCRUMB */

.breadcrumb {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}
.breadcrumb a {
    color: var(--muted);
}
.breadcrumb a:hover {
    color: #e5e7eb;
}
.breadcrumb span {
    margin-right: 0.3rem;
}

/* ARTICLE DETAIL */

.article-detail {
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.9rem;
    border: 1px solid rgba(75, 85, 99, 0.8);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.9);
}
.article-detail h1 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1.6rem;
}
.article-detail .meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.article-content {
    margin-top: 1rem;
    line-height: 1.8;
    font-size: 0.98rem;
    color: #e5e7eb;
}
.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
}
.article-content p {
    margin-bottom: 0.75rem;
}
.article-content ul,
.article-content ol {
    margin-left: 1.2rem;
    margin-bottom: 0.75rem;
}

/* TOC */

.toc {
    margin-top: 1rem;
    margin-bottom: 1.3rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(75, 85, 99, 0.9);
    font-size: 0.88rem;
}
.toc strong {
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--muted);
}
.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.toc li {
    margin-bottom: 0.25rem;
}
.toc li.lv3 {
    margin-left: 1rem;
    font-size: 0.84rem;
}
.toc a {
    text-decoration: none;
}
.toc a:hover {
    text-decoration: underline;
}

/* TAGS & FAQ */

.article-tags {
    margin-top: 1.4rem;
}
.article-tags h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.tag {
    display: inline-block;
    padding: 0.16rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 0.78rem;
    margin: 0 0.3rem 0.35rem 0;
}

.article-faq {
    margin-top: 1.6rem;
}
.article-faq details {
    background: rgba(15, 23, 42, 0.98);
    border-radius: var(--radius);
    border: 1px solid rgba(75, 85, 99, 0.9);
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.article-faq summary {
    cursor: pointer;
    font-weight: 600;
}
.article-faq p {
    margin: 0.4rem 0 0.2rem;
}

/* TABLE */

.table-wrapper {
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.table th,
.table td {
    padding: 0.55rem 0.55rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.8);
}
.table th {
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.table tr:last-child td {
    border-bottom: none;
}
.table tbody tr:hover {
    background: rgba(15, 23, 42, 0.9);
}
.table .text-right {
    text-align: right;
}

/* FORM */

.form-article {
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.7rem;
    border: 1px solid rgba(75, 85, 99, 0.8);
    box-shadow: var(--shadow-soft);
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.88rem;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 9px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    background: rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
    font-size: 0.9rem;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}
.help-text {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

.form-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.6rem;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(to right, var(--accent), var(--accent-strong));
    color: #0b1120;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:hover {
    transform: translateY(-0.5px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.36);
    opacity: 0.95;
    text-decoration: none;
}
.btn.outline {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}
.btn.outline:hover {
    background: var(--accent-soft);
}
.btn.small {
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
}
.btn.danger {
    background: linear-gradient(to right, #f97373, #ef4444);
    color: #fee2e2;
}
.btn.link {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: #e5e7eb;
}
.btn.full {
    width: 100%;
}

/* ALERTS */

.alert {
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius);
    font-size: 0.86rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.alert.info {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.45);
    color: #bfdbfe;
}
.alert.success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
}
.alert.danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.65);
    color: #fecaca;
}

/* AUTH */

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.auth-wrapper {
    width: 100%;
    max-width: 380px;
    padding: 1.4rem;
}
.auth-card {
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.6rem 1.4rem;
    border: 1px solid rgba(75, 85, 99, 0.85);
    box-shadow: var(--shadow-soft);
}
.auth-card h1 {
    margin-top: 0;
    margin-bottom: 1rem;
}
.auth-card .form-group {
    margin-bottom: 0.9rem;
}
.auth-link {
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: center;
}

/* FOOTER */

.site-footer {
    padding: 1.2rem 0 1.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    margin-top: 1.8rem;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.96));
}
.site-footer .container {
    text-align: center;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .hero {
        padding: 1.6rem 1.3rem;
    }
    .article-detail {
        padding: 1.4rem 1.3rem;
    }
    .site-header .container {
        padding-inline: 1rem;
    }
    .brand a {
        font-size: 1.05rem;
    }
    .main-nav {
        gap: 0.5rem;
    }
    .main-nav a {
        font-size: 0.8rem;
    }
}


/* IMAGE SEO */
.article-thumb {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-banner {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 16px;
}






/* Banner gambar artikel responsif */
.article-banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    margin-bottom: 16px;
    object-fit: cover;
}

/* List artikel terkait di bawah artikel */
.related-articles {
    margin-top: 2rem;
}

.related-articles h2 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
}

.related-articles ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.related-articles a {
    text-decoration: none;
}

.related-articles a:hover {
    text-decoration: underline;
}

