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

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

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

/* MOBILE FIX */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }
}
@media (max-width: 768px) {

    .forum-wrapper {
        border-radius: 12px;
    }

    .forum-item {
        padding: 14px 12px;
    }

    .forum-header {
        padding: 12px;
    }

}
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .menu {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    .menu a {
        margin-left: 0;
    }
}

.forum-title {
    line-height: 1.4;
    word-break: break-word;
}

/* =========================
   HEADER (glass effect)
========================= */
header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

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

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

.menu a:hover {
    color: #000;
}

/* 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: 30px;
    margin-bottom: 18px;
}

p {
    line-height: 1.8;
    color: #444;
}

/* =========================
   FORUM
========================= */
.forum-wrapper {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 12px 40px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    padding: 20px 18px;
    background: #f7f8fa;
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

/* item */
.forum-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-top: 1px solid #eee;
    transition: all 0.25s ease;
    position: relative;
}

.forum-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: transparent;
    transition: 0.25s;
}

.forum-item:hover {
    background: #f9fbff;
    transform: translateX(6px);
}

.forum-item:hover::before {
    background: #2563eb;
}

/* left */
.forum-title {
    font-size: 15px;
    font-weight: 500;
    color: #222;
    display: inline-block;
    margin-bottom: 4px;
    transition: 0.2s;
}

.forum-title:hover {
    color: #2563eb;
}

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

/* right */
.forum-right {
    text-align: right;
    min-width: 120px;
}

.forum-stat {
    font-size: 13px;
    color: #666;
}

/* =========================
   BUTTON
========================= */
.btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: 0.25s;
}

.btn:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
}

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

/* =========================
   INPUT
========================= */
input, textarea, select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    transition: 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* =========================
   PAGINATION
========================= */
.pagination {
    margin-top: 26px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: 0.2s;
}

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

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

/* =========================
   SKELETON LOADING
========================= */
.skeleton {
    animation: shimmer 1.2s infinite linear;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    border-radius: 6px;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 16px;
    width: 60%;
    margin-bottom: 10px;
}

/* =========================
   ANIMATION
========================= */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}