/* ===== BASE ===== */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #f5f7fb;
    color: #1a1a1a;
    margin: 0;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 760px;
    margin: auto;
    padding: 24px;
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #eee;
    z-index: 99;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-weight: 600;
    font-size: 18px;
}

.menu a {
    margin-left: 20px;
    font-size: 14px;
    color: #666;
    position: relative;
}

/* underline animation */
.menu a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #111;
    transition: 0.3s;
}

.menu a:hover::after {
    width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 34px; margin-bottom: 10px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }

p {
    font-size: 17px;
    line-height: 1.9;
    color: #444;
}

.meta {
    font-size: 13px;
    color: #888;
}

/* ===== CARD (POST LIST) ===== */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: 0.25s;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* ===== BUTTON ===== */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.btn:active {
    transform: scale(0.96);
}

/* ===== INPUT ===== */
input, textarea, select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    font-size: 14px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #111;
}

/* ===== POST CONTENT ===== */
.post-content {
    margin-top: 20px;
}

.post-content p {
    margin-bottom: 18px;
}

.post-content img {
    width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

/* ===== PAGINATION ===== */
.pagination a {
    padding: 6px 12px;
    margin-right: 6px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.pagination a.active {
    background: #111;
    color: #fff;
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f0f0f;
        color: #eee;
    }

    .card {
        background: #1a1a1a;
        border-color: #333;
    }

    header {
        background: rgba(20,20,20,0.7);
    }

    input, textarea {
        background: #1a1a1a;
        color: #eee;
        border-color: #333;
    }
}

.menu a.active {
    font-weight: 600;
    color: #000;
}