/*
Theme Name: AST Mega Man
Theme URI: https://anandastoon.com
Author: Anandastoon
Author URI: https://anandastoon.com
Description: Mega Man Wordpress Theme made by Anandastoon.
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.0
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astmegaman
*/
@font-face {
    font-family: "baumans";
    font-display: swap;
    src: url("aset/fon/baumans.woff2") format('woff2');
}
@font-face {
    font-family: "nova";
    font-display: swap;
    src: url("aset/fon/nova.woff2") format('woff2');
}
@font-face {
    font-family: "exo";
    font-display: swap;
    src: url("aset/fon/exo.woff2") format('woff2');
}
@font-face {
    font-family: "exo";
    font-weight: bold;
    font-display: swap;
    src: url("aset/fon/exo-b.woff2") format('woff2');
}
@font-face {
    font-family: "exo";
    font-weight: bold;
    font-style: italic;
    font-display: swap;
    src: url("aset/fon/exo-bi.woff2") format('woff2');
}
@font-face {
    font-family: "exo";
    font-style: italic;
    font-display: swap;
    src: url("aset/fon/exo-i.woff2") format('woff2');
}

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

body, h1, h2, h3, p, ul, ol, figure {
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #01017c;
    --color-secondary: #0001cb;
    --teks: #f1f1f1;
    --bg: #01017c;
    --color-white: #ffffff;
    --aksen: #02efee;
    --fon-judul: "baumans", serif;
    --fon-utama: "exo", sans-serif;
}

body {
    font-family: var(--fon-utama);
    background-color: var(--bg);
    color: var(--teks);
    line-height: 1.6;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Memastikan footer selalu di bawah jika konten sedikit */
}

.site-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Area Konten Utama */
.content-area {
    flex: 1;
    min-width: 0; /* Mencegah elemen flex pecah oleh konten besar */
    background: var(--color-white);
    padding: 30px;
}

/* Area Sidebar */
.widget-area {
    flex: 0 0 300px;
    padding-left: 30px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* Kelas Otomatis dari post_class() */
.hentry {
    margin-bottom: 40px;
}

.sticky {
    border: 2px solid var(--color-primary); /* Menyorot artikel yang dipin */
    background-color: #fff9e6;
}

.post-edit-link {
    display: inline-block;
    margin-top: 10px;
    color: #d54e21; /* Link edit untuk admin */
}

/* Kelas untuk Gambar & Media dari Gutenberg/Classic Editor */
.aligncenter {
    display: block;
    margin: 20px auto;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 100%;
    padding: 5px;
    text-align: center;
}

.wp-caption-text {
    font-size: 0.85em;
    color: #666;
    margin: 5px 0 0;
}

/* Komentar */
.comment-list {
    list-style: none;
    margin: 20px 0;
}

.comment-body {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--color-primary);
}

.comment-reply-link {
    font-weight: bold;
    font-size: 0.9em;
}

/* Pagination / Navigasi */
.nav-links {
    display: flex;
    gap: 10px;
    margin: 30px 0;
}

.page-numbers {
    padding: 8px 12px;
    background: var(--color-white);
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--color-text);
}

.page-numbers.current {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Responsif untuk Layar HP */
@media (max-width: 768px) {
    .site-content {
        flex-direction: column;
    }
    .widget-area {
        flex: 1;
        padding-left: 0;
        margin-top: 30px;
    }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}