/* ABOUTME: Playful tech blog theme for photoshopmonkey.com */
/* ABOUTME: Fun, approachable layout with badges and masonry grid */

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

:root { --accent: #0984e3; --accent-hover: #0873cc; --bg: #f8f9fa; --card: #fff; --text: #2d3436; --text-muted: #636e72; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; font-size: 17px; }
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.25; }
a { color: var(--accent); text-decoration: none; } a:hover { opacity: 0.85; }
img { max-width: 100%; height: auto; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* Header - clean white bar with pill nav */
.site-header { background: #fff; padding: 0.8rem 0; box-shadow: 0 1px 3px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.site-logo::before { content: "🐒"; font-size: 1.3rem; }
.site-nav { display: flex; gap: 0.5rem; align-items: center; }
.site-nav a { color: var(--text-muted); font-size: 0.9rem; padding: 0.4rem 1rem; border-radius: 20px; transition: all 0.2s; }
.site-nav a:hover { background: var(--bg); color: var(--accent); }
.subscribe-btn { background: var(--accent) !important; color: #fff !important; }
.subscribe-btn:hover { background: var(--accent-hover) !important; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Hero - featured post card */
.hero { padding: 3rem 0 2rem; }
.hero h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.hero-sub { color: var(--text-muted); margin-bottom: 1.5rem; }
.featured-post { background: var(--card); border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.featured-post img { width: 100%; height: 100%; object-fit: cover; }
.featured-post-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }

.btn { display: inline-block; background: var(--accent); color: #fff; padding: 0.7rem 1.8rem; border-radius: 12px; font-weight: 500; border: none; cursor: pointer; font-size: 0.95rem; transition: all 0.2s; font-family: 'Space Grotesk', sans-serif; }
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }

/* Posts - masonry-ish grid */
.latest-posts, .post-list { padding: 2rem 0 4rem; }
.latest-posts h2 { margin-bottom: 1.5rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* Cards */
.post-card { background: var(--card); border-radius: 16px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.post-card:first-child { grid-column: span 2; }
.post-card:first-child img { height: 300px; }
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 1.2rem 1.5rem; }
.post-category { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; background: var(--accent); padding: 0.2rem 0.6rem; border-radius: 6px; font-weight: 600; }
.post-card h3 { margin: 0.5rem 0; font-size: 1.15rem; } .post-card h3 a { color: var(--text); } .post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--text-muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card time { font-size: 0.8rem; color: var(--text-muted); }

/* Single post */
.post-single { padding: 2rem 0 4rem; }
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 2.4rem; margin: 0.5rem 0 1rem; }
.post-meta { color: var(--text-muted); font-size: 0.9rem; display: flex; gap: 1.5rem; }
.post-hero-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 16px; margin-bottom: 2rem; }
.post-content { max-width: 740px; font-size: 1.05rem; }
.post-content h2 { margin: 2rem 0 1rem; } .post-content h3 { margin: 1.5rem 0 0.75rem; }
.post-content p { margin-bottom: 1.2rem; } .post-content img { border-radius: 12px; margin: 1.5rem 0; }
.post-content ul, .post-content ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote { background: #e8f4fd; border-left: 4px solid var(--accent); padding: 1rem 1.5rem; margin: 1.5rem 0; border-radius: 0 12px 12px 0; }
.post-content code { background: #f0f0f0; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
.post-cta { background: #e8f4fd; padding: 2rem; border-radius: 16px; text-align: center; margin: 3rem 0 2rem; }
.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; }
.tag { background: var(--bg); padding: 0.3rem 0.8rem; border-radius: 8px; font-size: 0.85rem; color: var(--text-muted); }

.page-header { padding: 3rem 0 1rem; }
.cta-banner { background: var(--accent); color: #fff; padding: 4rem 0; text-align: center; border-radius: 24px; margin: 0 1.5rem; }
.cta-banner h2 { color: #fff; margin-bottom: 0.5rem; } .cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.cta-banner .btn { background: #fff; color: var(--accent); }

.site-footer { padding: 3rem 0 2rem; background: #fff; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; max-width: 1140px; margin-left: auto; margin-right: auto; padding: 0 1.5rem; }
.footer-about p { color: var(--text-muted); margin-top: 0.5rem; }
.footer-links a { display: block; color: var(--text-muted); margin-top: 0.5rem; }
.footer-subscribe p { color: var(--text-muted); margin: 0.5rem 0 1rem; }
.footer-bottom { border-top: 1px solid #eee; padding-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; max-width: 1140px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-content { background: #fff; padding: 2.5rem; border-radius: 20px; max-width: 420px; width: 90%; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.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 #e0e0e0; border-radius: 12px; font-size: 1rem; }
.modal-fine-print { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }
.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 2rem 0; }
.pagination li { list-style: none; } .pagination .active a { background: var(--accent); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; }

@media (max-width: 768px) {
    .site-nav { display: none; } .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem; }
    .mobile-menu-btn { display: block; } .post-grid { grid-template-columns: 1fr; }
    .post-card:first-child { grid-column: span 1; } .featured-post { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* 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; }
