:root {
    --bg-color: #050507;
    --bg-elevated: #111115;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-red: #ff1f3a;
    --accent-red-glow: rgba(255, 31, 58, 0.6);
    --accent-purple: #7a1fff;
    --accent-purple-glow: rgba(122, 31, 255, 0.4);
    --glass-bg: rgba(20, 20, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

a { color: inherit; }

/* Cursor glow */
#cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-purple-glow) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: opacity 0.3s;
    opacity: 0.5;
}

@media (prefers-reduced-motion: reduce), (hover: none) {
    #cursor-glow { display: none; }
}

/* Header */
.gh-head {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 50px;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(5,5,7,0.9), transparent);
    backdrop-filter: blur(5px);
}

.gh-head-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.jjk-logo, .jjk-footer-logo {
    font-family: 'Syncopate', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
}

.jjk-logo .jujutsu, .jjk-footer-logo .jujutsu { color: var(--text-main); }
.jjk-logo .kaisen, .jjk-footer-logo .kaisen { color: var(--accent-red); }

.jjk-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.jjk-nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

.jjk-nav a:hover {
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-red-glow);
}

/* Hero (home) */
.jjk-hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Fallback do hero: pintado antes do canvas subir, e o que fica valendo se
   o JS não rodar. Sem animação de propósito — a antiga `slowZoom` animava
   `transform`, e animação vence style inline no cascade: era ela que anulava
   em silêncio o parallax que o theme.js tentava aplicar. Hoje todo o
   movimento do hero vive dentro do canvas (assets/js/domain.js). */
.jjk-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -3;
}

/* Canvas da Expansão de Domínio. Fica ENTRE o fallback e o overlay. */
.jjk-hero-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    display: block;
}

.jjk-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 50%, rgba(5,5,7,0.6) 100%);
    z-index: -1;
}

.jjk-hero-content { max-width: 800px; padding: 0 20px; z-index: 1; }

.glitch {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 0px var(--accent-red), -2px -2px 0px var(--accent-purple);
}

.jjk-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 40px;
}

.jjk-btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--accent-red), #b00020);
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.jjk-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-red-glow);
}

/* Layout helpers */
.jjk-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.jjk-main { padding: 80px 0 100px; }

.card-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
}

.jjk-empty-state { text-align: center; max-width: 600px; margin: 0 auto; }
.jjk-empty-state h2 { font-family: 'Syncopate', sans-serif; color: var(--accent-purple); margin-bottom: 15px; }
.jjk-empty-state p { color: var(--text-muted); }

/* Post feed / cards */
.post-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: #111115;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px rgba(255, 31, 58, 0.15);
}

.post-card-image-link { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-card-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.post-card:hover .post-card-image { transform: scale(1.05); }

.post-card-content { padding: 25px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-content-link { text-decoration: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.post-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-card-primary-tag, .jjk-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(122, 31, 255, 0.2);
    color: var(--accent-purple);
    text-decoration: none;
}

.post-card-featured { color: var(--accent-red); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }

.post-card-title { font-size: 1.3rem; color: #fff; }
.post-card-excerpt { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.post-card-meta {
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
}

/* Single post */
.jjk-article-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: 100px 20px 60px;
    overflow: hidden;
}

.jjk-article-hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: -2;
}

.jjk-article-hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--bg-color) 10%, rgba(5,5,7,0.3) 100%);
    z-index: -1;
}

.jjk-article-hero-content { max-width: 900px; margin: 0 auto; width: 100%; }

.jjk-article-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    margin: 15px 0;
    color: #fff;
}

.jjk-article-byline { color: var(--text-muted); font-size: 0.9rem; }

.jjk-article-body { max-width: 800px; padding-top: 60px; padding-bottom: 40px; }

.gh-content { font-size: 1.05rem; color: #dcdcdc; }
.gh-content h2, .gh-content h3, .gh-content h4 {
    font-family: 'Syncopate', sans-serif;
    color: var(--accent-purple);
    margin: 40px 0 15px;
    line-height: 1.3;
}
.gh-content h2 { font-size: 1.5rem; }
.gh-content h3 { font-size: 1.2rem; }
.gh-content p { margin-bottom: 20px; }
.gh-content ul, .gh-content ol { margin: 0 0 20px 25px; }
.gh-content li { margin-bottom: 8px; }
.gh-content strong { color: #fff; }
.gh-content a { color: var(--accent-red); text-decoration: underline; }
.gh-content img { max-width: 100%; border-radius: 10px; margin: 20px 0; }
.gh-content blockquote {
    border-left: 3px solid var(--accent-red);
    padding: 10px 20px;
    margin: 20px 0;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(255,255,255,0.03);
}
.gh-content code {
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.gh-content pre {
    background: #0a0a0d;
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Larguras especiais de imagem do editor Ghost (Koenig) */
.gh-content .kg-width-wide { margin-left: calc(50% - 50vw + 1px); margin-right: calc(50% - 50vw + 1px); max-width: none; width: 100vw; }
.gh-content .kg-width-full { margin-left: calc(50% - 50vw + 1px); margin-right: calc(50% - 50vw + 1px); max-width: none; width: 100vw; border-radius: 0; }

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

.jjk-more { padding: 80px 0; background: #020203; }
.section-title {
    text-align: center;
    font-family: 'Syncopate', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #fff;
}

/* Pagination */
.pagination { text-align: center; margin-top: 60px; color: var(--text-muted); }
.pagination a {
    color: var(--text-main);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
}
.pagination a:hover { border-color: var(--accent-red); color: var(--accent-red); }

/* Footer */
.jjk-footer {
    background: #020203;
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}
.jjk-footer-logo { justify-content: center; display: inline-flex; margin-bottom: 15px; }
.jjk-footer p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.disclaimer { font-size: 0.8rem; opacity: 0.5; max-width: 600px; margin: 0 auto; }

@media (max-width: 768px) {
    .gh-head { padding: 15px 20px; }
    .gh-head-inner { flex-direction: column; gap: 15px; }
    .jjk-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
}
