/* ABOUTME: Cinematic Editorial theme for pixel-monkey.com
   ABOUTME: Dark bg, orange accents, full-bleed images with text overlays, editorial layout */

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

:root {
    --accent: #d35400;
    --accent-hover: #e67e22;
    --bg: #1a1a1a;
    --bg-dark: #111;
    --text: #ececec;
    --text-muted: rgba(236,236,236,0.6);
    --heading-font: 'Bitter', serif;
    --body-font: 'Source Sans 3', sans-serif;
    --container: 1100px;
    --container-wide: 1400px;
    --narrow: 720px;
    --radius: 0;
}

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

body {
    font-family: var(--body-font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--heading-font); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.8rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 1.5rem; }

/* Header — minimal: logo + hamburger */
.site-header {
    padding: 1.2rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-logo {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.site-nav { display: none; }
.site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17,17,17,0.97);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 200;
}
.site-nav a {
    color: var(--text);
    font-size: 1.5rem;
    font-family: var(--heading-font);
    font-weight: 600;
}
.site-nav a:hover { color: var(--accent); }
.subscribe-btn {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem !important;
}
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    z-index: 300;
}

/* Full-screen hero */
.hero-fullscreen {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}
.hero-fullscreen-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.hero-fullscreen-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-fullscreen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 4rem;
}
.hero-fullscreen-content {
    max-width: 700px;
}
.hero-fullscreen-content .post-category { margin-bottom: 0.5rem; display: inline-block; }
.hero-fullscreen-content h1 { color: #fff; margin-bottom: 1rem; font-size: 3rem; }
.hero-fullscreen-content p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-fullscreen-content time { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* Editorial Grid — alternating large/small with text overlays */
.editorial-grid {
    padding: 2rem 0 4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.editorial-card {
    position: relative;
    overflow: hidden;
}
.editorial-card a {
    display: block;
    position: relative;
    text-decoration: none;
}
.editorial-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.editorial-card:hover img { transform: scale(1.03); }
.editorial-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}
.editorial-card-overlay h2,
.editorial-card-overlay h3 { color: #fff; margin: 0.3rem 0; }
.editorial-card-overlay time { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

.editorial-card-large {
    grid-column: span 2;
}
.editorial-card-large img { height: 500px; }
.editorial-card-small img { height: 350px; }

/* Post Category badge */
.post-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
    font-family: var(--body-font);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }

/* Single Post — full-width hero image */
.post-single { }
.post-hero-fullwidth {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}
.post-hero-fullwidth img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.post-hero-overlay h1 { color: #fff; margin: 0.5rem 0 1rem; }
.post-hero-overlay .post-category { margin-bottom: 0.3rem; display: inline-block; }
.post-meta { color: rgba(255,255,255,0.55); font-size: 0.9rem; display: flex; gap: 1.5rem; }

.post-content {
    font-size: 1.1rem;
    padding: 3rem 0;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}
.post-content h2 { margin: 2.5rem 0 1rem; }
.post-content h3 { margin: 2rem 0 0.75rem; }
.post-content p { margin-bottom: 1.4rem; }
.post-content img {
    margin: 2rem -10vw;
    width: calc(100% + 20vw);
    max-width: calc(100% + 20vw);
    height: auto;
}
.post-content ul, .post-content ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.2rem;
}

.post-cta {
    background: var(--bg-dark);
    padding: 2.5rem;
    text-align: center;
    margin: 2rem 0;
    border-top: 3px solid var(--accent);
}
.post-cta h3 { margin-bottom: 0.5rem; }
.post-cta p { color: var(--text-muted); margin-bottom: 1rem; }

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; padding-bottom: 3rem; }
.tag { background: rgba(255,255,255,0.05); padding: 0.4rem 1rem; font-size: 0.85rem; color: var(--text-muted); }

/* Page Header */
.page-header { padding: 6rem 0 2rem; }

/* List section */
.post-list { padding: 0; }

/* Footer — minimal cinematic */
.site-footer { padding: 3rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 0; background: var(--bg-dark); }
.footer-minimal { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.footer-brand p { color: var(--text-muted); margin-top: 0.5rem; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.modal-content { background: var(--bg-dark); padding: 2.5rem; border-radius: 0; max-width: 440px; width: 90%; position: relative; border-top: 3px solid var(--accent); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.modal-content h2 { margin-bottom: 0.5rem; }
.modal-content > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.modal-content form { display: flex; flex-direction: column; gap: 0.75rem; }
.modal-content input { padding: 0.75rem 1rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 0; font-size: 1rem; background: var(--bg); color: var(--text); }
.modal-content input:focus { outline: none; border-color: var(--accent); }
.modal-fine-print { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 2rem 0; }
.pagination li { list-style: none; }
.pagination a, .pagination .active a { padding: 0.5rem 1rem; }
.pagination .active a { background: var(--accent); color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .hero-fullscreen { height: 70vh; }
    .hero-fullscreen-overlay { padding: 2rem; }
    .hero-fullscreen-content h1 { font-size: 2rem; }
    .editorial-grid { grid-template-columns: 1fr; }
    .editorial-card-large { grid-column: span 1; }
    .editorial-card-large img { height: 350px; }
    .editorial-card-small img { height: 280px; }
    .post-hero-fullwidth { height: 45vh; }
    .post-content img { margin: 1.5rem 0; width: 100%; max-width: 100%; }
    .footer-minimal { flex-direction: column; gap: 1.5rem; }
    .footer-nav { flex-wrap: wrap; }
}

/* Comments */
.comments-section { margin: 3rem 0 2rem; max-width: 740px; }
.comments-section h3 { margin-bottom: 1.5rem; }
.comment { display: flex; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(128,128,128,0.15); }
.comment-author { background: rgba(128,128,128,0.05); padding: 1rem; border-radius: 12px; margin: -0.5rem; padding-bottom: 1rem; border-bottom: none; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.comment-meta strong { font-size: 0.95rem; }
.comment-meta time { font-size: 0.8rem; color: rgba(128,128,128,0.7); }
.comment-site { font-size: 0.8rem; opacity: 0.6; }
.author-badge { background: var(--accent, #0984e3); color: #fff; font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 10px; font-weight: 600; }
.comment p { font-size: 0.95rem; line-height: 1.6; margin: 0; }
