/* ================================================
   MANGAKU.xyz — mangaku.css
   Dark Gaming · Elegant · Anti-Mainstream
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Syne:wght@700;800&display=swap');

/* ===== VARIABLES ===== */
:root {
    --red:       #d32f2f;
    --red-dark:  #b71c1c;
    --red-glow:  rgba(211,47,47,0.25);
    --red-soft:  rgba(211,47,47,0.1);
    --bg:        #0d0d0f;
    --bg-card:   #141416;
    --bg-hover:  #1a1a1d;
    --border:    rgba(255,255,255,0.07);
    --border-red:rgba(211,47,47,0.3);
    --text:      #e8e8ea;
    --text-muted:#7a7a8a;
    --text-dim:  #4a4a5a;
    --white:     #ffffff;
    --glass:     rgba(255,255,255,0.03);
    --radius:    12px;
    --radius-sm: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
::selection { background: var(--red); color: #fff; }

/* ================================================
   HEADER
   ================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,13,15,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.header-glow {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.6;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.logo-wrap { display: flex; align-items: center; flex-shrink: 0; }

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* Nav */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.nav-menu a:hover { color: var(--white); background: var(--glass); }

.nav-menu a.nav-cta {
    background: var(--red);
    color: #fff;
    font-weight: 600;
}

.nav-menu a.nav-cta:hover { background: var(--red-dark); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ================================================
   HERO STRIP
   ================================================ */
.hero-strip {
    background: linear-gradient(135deg, #1a0505 0%, #1f0808 50%, #0d0d0f 100%);
    border-bottom: 1px solid var(--border-red);
    padding: 14px 0;
}

.strip-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.strip-badge {
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.strip-inner p {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

.strip-btn {
    background: transparent;
    border: 1px solid var(--border-red);
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 20px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.strip-btn:hover { background: var(--red-soft); }

/* ================================================
   MAIN LAYOUT
   ================================================ */
.main-wrap { padding: 40px 0 60px; }

.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

/* ================================================
   ARTICLE
   ================================================ */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Article Header */
.article-header {
    padding: 32px 36px 0;
}

.article-cats {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.cat-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-soft);
    border: 1px solid var(--border-red);
    padding: 3px 10px;
    border-radius: 4px;
}

.article-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 20px;
}

.article-title em {
    font-style: normal;
    color: var(--red);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.meta-left { display: flex; align-items: center; gap: 10px; }

.meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 28px;
    height: 28px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.meta-sep { color: var(--text-dim); }

.meta-views {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* Featured Image */
.featured-img-wrap {
    margin: 24px 36px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.featured-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-img-wrap:hover .featured-img { transform: scale(1.02); }

.img-caption {
    background: var(--bg);
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* Article Body */
.article-body {
    padding: 0 36px 32px;
}

.article-body p {
    margin-bottom: 18px;
    color: rgba(232,232,234,0.82);
    line-height: 1.8;
}

.article-body strong { color: var(--white); }

.article-body a {
    color: var(--red);
    font-weight: 600;
    border-bottom: 1px dashed var(--border-red);
    transition: border-color 0.2s;
}

.article-body a:hover { border-color: var(--red); }

.article-body h2 {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin: 36px 0 16px;
    padding-left: 16px;
    border-left: 3px solid var(--red);
    line-height: 1.3;
}

.article-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    margin: 24px 0 10px;
}

.article-list {
    list-style: none;
    margin: 16px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-list li {
    padding: 10px 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-muted);
    position: relative;
    padding-left: 36px;
}

.article-list li::before {
    content: '▸';
    position: absolute;
    left: 14px;
    color: var(--red);
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 24px 0;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(211,47,47,0.05) 0%, var(--glass) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
    border-color: var(--border-red);
    background: linear-gradient(135deg, rgba(211,47,47,0.08) 0%, var(--glass) 100%);
}

.fc-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.fc-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 6px;
}

.fc-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Tags */
.tag-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 36px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.tag-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--red);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 20px;
    transition: all 0.2s;
}

.tag:hover { background: var(--red-soft); border-color: var(--border-red); }

/* Share */
.share-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 36px 28px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.share-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.share-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text-muted);
    transition: all 0.2s;
}

.share-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.15); }
.share-btn.fb:hover { background: rgba(24,119,242,0.15); border-color: rgba(24,119,242,0.3); color: #1877f2; }
.share-btn.tw:hover { background: rgba(29,161,242,0.15); border-color: rgba(29,161,242,0.3); color: #1da1f2; }
.share-btn.wa:hover { background: rgba(37,211,102,0.15); border-color: rgba(37,211,102,0.3); color: #25d366; }

/* ================================================
   SIDEBAR
   ================================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 88px;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    overflow: hidden;
}

.widget-highlight {
    background: linear-gradient(135deg, rgba(211,47,47,0.06) 0%, var(--bg-card) 100%);
    border-color: var(--border-red);
}

.widget-title {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

/* Popular list */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popular-list li a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.popular-list li a:hover {
    color: var(--white);
    background: var(--glass);
    border-color: var(--border);
    padding-left: 16px;
}

/* Feature list */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.feature-list li:last-child { border-bottom: none; }

.fl-icon { flex-shrink: 0; }

.widget-cta {
    display: block;
    width: 100%;
    background: var(--red);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.widget-cta:hover {
    background: var(--red-dark);
    box-shadow: 0 0 20px var(--red-glow);
}

/* News list */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-list li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    transition: color 0.2s;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.news-list li a:hover {
    color: var(--white);
    background: var(--glass);
    border-color: var(--border);
}

.news-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--red-soft);
    color: var(--red);
    border: 1px solid var(--border-red);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    position: relative;
    background: #0a0a0c;
    border-top: 1px solid var(--border);
    padding: 60px 0 28px;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.5;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.footer-brand .footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    opacity: 0.85;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 260px;
}

.footer-links-col h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links-col a:hover { color: var(--red); }

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-dim);
}

/* ================================================
   BACK TO TOP
   ================================================ */
.back-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px var(--red-glow);
    z-index: 50;
}

.back-top.show { opacity: 1; pointer-events: all; }
.back-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    .main-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0; right: 0;
        background: rgba(13,13,15,0.98);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
    }

    .nav-menu.open { display: block; }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .nav-menu a { width: 100%; }

    .hamburger { display: flex; }

    .article-header { padding: 24px 20px 0; }
    .featured-img-wrap { margin: 20px; }
    .article-body { padding: 0 20px 24px; }
    .tag-section { padding: 20px; }
    .share-section { padding: 16px 20px 24px; }
    .featured-img { height: 220px; }

    .strip-inner { flex-direction: column; align-items: flex-start; gap: 10px; }

    .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .article-title { font-size: 20px; }
    .article-meta { flex-direction: column; align-items: flex-start; }
    .feature-card { flex-direction: column; gap: 10px; }
}
