@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Hind+Siliguri:wght@400;500;600&display=swap');

:root {
    --bg: #16161a;
    --card: #1f1f24;
    --card-hover: #262630;
    --text: #eaeaea;
    --muted: #9a9aa5;
    --accent-1: #9a3bda;
    --accent-2: #ff004f;
    --accent-3: #fcb045;
    --success: #61b752;
    --nepal-red: #dc143c;
    --nepal-blue: #003893;
    --radius: 14px;
}

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

body {
    font-family: 'Hind Siliguri', 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

h1, h2, h3, h4, .brand { font-family: 'Poppins', 'Hind Siliguri', sans-serif; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* -------- Top nav -------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(18, 18, 22, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.35rem;
    white-space: nowrap;
}
.brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(255,0,79,.25);
}
.brand .brand-text {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-right { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
    cursor: pointer;
    font-size: 1.1rem;
}
.menu-toggle:hover { background: rgba(255,255,255,.1); }

.site-nav { display: flex; gap: 8px; align-items: center; }

.site-nav a {
    color: var(--muted);
    font-weight: 500;
    font-size: .95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all .25s;
}
.site-nav a:hover, .site-nav a.active { color: #fff; background: rgba(255,255,255,.07); }

.search-form { display: flex; }
.search-form input {
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
    padding: 9px 14px;
    border-radius: 20px 0 0 20px;
    width: 170px;
    font-family: inherit;
}
.search-form button {
    border: none;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    color: #fff;
    padding: 0 16px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* -------- Mobile nav (hamburger controlled) -------- */
@media (max-width: 760px) {
    .menu-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(18,18,22,.98);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(255,255,255,.08);
        padding: 10px 20px 18px;
        gap: 4px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
    }
    .site-nav.open {
        max-height: 300px;
        opacity: 1;
    }
    .site-nav a { padding: 12px 14px; border-radius: 10px; }
    /* search stays visible outside the collapsible menu at all times */
    .search-form input { width: 140px; }
}

/* -------- Layout -------- */
.page-body { padding: 40px 0 80px; }
.layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 36px;
}
@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
}

/* -------- Hero / featured post -------- */
.hero-post {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(160deg, #2a2030, #1a1a20 60%);
    margin-bottom: 36px;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}
.hero-post img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    opacity: .55;
}
.hero-post .hero-content {
    position: relative;
    padding: 40px;
    z-index: 2;
    background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
    width: 100%;
}
.hero-post .eyebrow {
    color: var(--accent-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}
.hero-post h1 { font-size: 2rem; margin-bottom: 12px; }
.hero-post p { color: #d3d3d3; max-width: 60ch; }

/* -------- Post grid / cards -------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.post-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s, background .3s;
    border: 1px solid rgba(255,255,255,0.05);
}
.post-card:hover {
    transform: translateY(-6px);
    background: var(--card-hover);
    box-shadow: 0 16px 30px rgba(0,0,0,.35);
}
.post-card .thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #111;
}
.post-card .thumb-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #221c2a, #1a1a22);
    color: var(--muted);
}
.post-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .cat-badge {
    align-self: flex-start;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(154, 59, 218, .18);
    color: #c98cf0;
}
.post-card h3 { font-size: 1.1rem; line-height: 1.4; }
.post-card p.excerpt { color: var(--muted); font-size: .92rem; flex: 1; }
.post-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    color: var(--muted);
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 10px;
}
.post-card .meta .stat { display: inline-flex; align-items: center; gap: 4px; }
.icon { width: 16px; height: 16px; }

/* -------- Sidebar -------- */
.sidebar .widget {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}
.widget h4 {
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--accent-3);
    margin-bottom: 16px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
    font-size: .8rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,.05);
    color: var(--muted);
    transition: all .25s;
}
.tag-pill:hover { background: linear-gradient(90deg, var(--nepal-red), var(--nepal-blue)); color: #fff; }
.cat-list li { list-style: none; margin-bottom: 10px; display: flex; justify-content: space-between; }
.cat-list a { color: var(--muted); }
.cat-list a:hover { color: var(--text); }
.cat-list .count { color: var(--accent-3); font-size: .8rem; }

/* -------- Single post page -------- */
.single-post {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.single-post .cover { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.single-post .content-area { padding: 40px; }
.single-post .content-area h1 { font-size: 2.1rem; margin-bottom: 14px; }
.single-post .post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 24px; display: flex; gap: 18px; flex-wrap: wrap; }
.single-post .content-area .content { font-size: 1.05rem; }
.single-post .content-area .content p { margin-bottom: 18px; }
.single-post .content-area .content img { max-width: 100%; border-radius: 10px; margin: 20px 0; display: block; }
.single-post .content-area .content h1,
.single-post .content-area .content h2,
.single-post .content-area .content h3 {
    font-family: 'Poppins', 'Hind Siliguri', sans-serif;
    margin: 30px 0 14px;
    line-height: 1.35;
    color: #fff;
}
.single-post .content-area .content h1 { font-size: 1.9rem; }
.single-post .content-area .content h2 { font-size: 1.55rem; }
.single-post .content-area .content h3 { font-size: 1.25rem; }
.single-post .content-area .content ul,
.single-post .content-area .content ol {
    margin: 0 0 18px 26px;
}
.single-post .content-area .content li { margin-bottom: 8px; }
.single-post .content-area .content ul li { list-style: disc; }
.single-post .content-area .content ol li { list-style: decimal; }
.single-post .content-area .content a {
    color: var(--accent-3);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.single-post .content-area .content a:hover { color: var(--accent-2); }
.single-post .content-area .content b,
.single-post .content-area .content strong { color: #fff; font-weight: 700; }
.single-post .content-area .content i,
.single-post .content-area .content em { color: #dcdcdc; }
.single-post .content-area .content blockquote {
    border-left: 4px solid var(--accent-1);
    background: rgba(154,59,218,.07);
    padding: 14px 20px;
    border-radius: 0 10px 10px 0;
    margin: 20px 0;
    color: #d8d8d8;
    font-style: italic;
}
.single-post .content-area .content pre,
.single-post .content-area .content code {
    background: #101014;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: .9em;
}
.single-post .content-area .content code { padding: 2px 6px; }
.single-post .content-area .content pre { padding: 16px; overflow-x: auto; margin: 18px 0; }
.single-post .content-area .content pre code { border: none; padding: 0; background: none; }
.single-post .content-area .content hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,.1);
    margin: 26px 0;
}
.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 30px;
}
.post-gallery-item {
    display: block;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
}
.post-gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s;
}
.post-gallery-item:hover img { transform: scale(1.08); }

.tags-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 24px;
}
.back-link:hover { color: var(--text); }

/* -------- Comments -------- */
.comments-section { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.08); }
.comments-section h3 { margin-bottom: 20px; }
.comment {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}
.comment .avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; flex-shrink: 0;
}
.comment .c-body {
    background: rgba(255,255,255,.03);
    border-radius: 12px;
    padding: 14px 16px;
    flex: 1;
}
.comment .c-name { font-weight: 600; margin-right: 8px; }
.comment .c-time { color: var(--muted); font-size: .78rem; }
.comment .c-text { margin-top: 6px; color: #d8d8d8; font-size: .95rem; }

.comment-form { margin-top: 26px; display: grid; gap: 14px; }
.comment-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .comment-form .two-col { grid-template-columns: 1fr; } }
.comment-form input, .comment-form textarea {
    background: #141418;
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 10px;
    font-family: inherit;
    width: 100%;
}
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus {
    outline: none; border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(154,59,218,.2);
}

/* -------- Buttons -------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .25s;
}
.btn-primary {
    background: linear-gradient(90deg, var(--nepal-red), var(--accent-2), var(--nepal-blue));
    background-size: 200% 100%;
    color: #fff;
}
.btn-primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,0,79,.3); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* -------- Empty / no results -------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: .5; }

/* -------- Pagination -------- */
.pagination { display: flex; gap: 8px; margin-top: 36px; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--card);
    color: var(--muted);
    font-size: .9rem;
}
.pagination a:hover { background: var(--card-hover); color: var(--text); }
.pagination .active { background: linear-gradient(90deg, var(--nepal-red), var(--nepal-blue)); color: #fff; }

/* -------- Standalone Gallery page -------- */
.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.gallery-tile {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    display: block;
}
.gallery-tile img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s;
}
.gallery-tile:hover img { transform: scale(1.08); }
.gallery-tile .caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 10px 14px;
    background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
    color: #fff;
    font-size: .85rem;
    opacity: 0;
    transition: opacity .25s;
}
.gallery-tile:hover .caption { opacity: 1; }

/* -------- Footer -------- */
.site-footer {
    margin-top: 60px;
    background: linear-gradient(180deg, transparent, rgba(154,59,218,.04));
    border-top: 1px solid rgba(255,255,255,.07);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0 28px;
}
@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
.footer-col h4 {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--accent-3);
    margin-bottom: 16px;
}
.footer-col p { color: var(--muted); font-size: .9rem; max-width: 32ch; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; font-size: 1.15rem; }
.footer-brand .brand-mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; flex-shrink: 0;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 20px 0;
    text-align: center;
    color: var(--muted);
    font-size: .82rem;
}

/* -------- Alerts -------- */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: .9rem; }
.alert-success { background: rgba(97,183,82,.15); color: var(--success); border: 1px solid rgba(97,183,82,.3); }
.alert-error { background: rgba(255,0,79,.12); color: #ff6b8a; border: 1px solid rgba(255,0,79,.3); }
