:root {
    --header-height: 72px;

    --bg: #f6f7f9;
    --white: #ffffff;
    --dark: #111111;
    --muted: #6b7280;
    --border: #e5e7eb;
    --radius: 12px;

    --sk-base: #e9edf3;
    --sk-highlight: #f6f7fb;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--dark);
    line-height: 1.65;
    padding-top: var(--header-height);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    height: 100%;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.menu-btn {
    display: none;
    font-size: 22px;
    cursor: pointer;
    user-select: none;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
}

nav a {
    margin-left: 20px;
    font-weight: 500;
    color: #333;
}

/* MOBILE NAV */
@media (max-width: 768px) {
    .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        padding: 16px 18px;
        display: none;
    }

    nav.show {
        display: block;
    }

    nav a {
        display: block;
        margin: 12px 0;
    }
}

/* ================= HERO ================= */
.hero {
    background: #111111;
    color: #ffffff;
}

.hero-inner {
    max-width: 1200px;
    margin: auto;
    padding: 80px 18px;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 14px;
    word-break: break-word;
}

.hero p {
    max-width: 560px;
    color: #d1d5db;
    word-break: break-word;
}

.hero-btn {
    display: inline-block;
    margin-top: 26px;
    padding: 12px 24px;
    background: #ffffff;
    color: #000000;
    border-radius: 10px;
    font-weight: 700;
}

/* ================= MAIN ================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 36px 18px;
}

/* SEARCH */
.search-box input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 16px;
    outline: none;
}

.search-box input:focus {
    border-color: #cbd5e1;
}

/* ================= POSTS GRID ================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* ================= POST CARD ================= */
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease;
    min-width: 0;
}

.post-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.post-thumb {
    aspect-ratio: 16/9;
    background: #e5e7eb;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 14px;
    min-width: 0;
}

.post-title {
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ================= PRO SKELETON (SHIMMER) ================= */
.sk-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--white);
    overflow: hidden;
    min-width: 0;
}

.sk-thumb {
    aspect-ratio: 16/9;
    background: var(--sk-base);
    position: relative;
    overflow: hidden;
}

.sk-body {
    padding: 14px;
}

.sk-line {
    height: 12px;
    background: var(--sk-base);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.sk-line:first-child {
    margin-top: 0;
}

.sk-w-80 {
    width: 80%;
}

.sk-w-60 {
    width: 60%;
}

.sk-thumb::after,
.sk-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--sk-highlight), transparent);
    animation: shimmer 1.2s infinite;
    opacity: .9;
}

@keyframes shimmer {
    0% {
        left: -60%;
    }

    100% {
        left: 120%;
    }
}

/* ================= LOAD MORE ================= */
.load-more-wrap {
    text-align: center;
    margin: 42px 0;
}

.load-more-btn {
    width: 100%;
    padding: 14px 30px;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 650;
}

.load-more-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ================= EMPTY STATE ================= */
.empty {
    text-align: center;
    color: var(--muted);
    margin: 40px 0;
    white-space: pre-line;
}

/* ================= CTA ================= */
.cta {
    background: #111111;
    color: #ffffff;
    text-align: center;
    padding: 70px 18px;
}

.cta h2 {
    font-size: 28px;
    margin-bottom: 10px;
    word-break: break-word;
}

.cta p {
    color: #d1d5db;
    word-break: break-word;
}

/* ================= FOOTER ================= */
footer {
    background: #0d0d0d;
    border-top: 1px solid #222222;
    color: #9ca3af;
    padding: 22px;
    text-align: center;
}