/* ABOUTME: Creative/Gradient theme for pixelbubble.com
   ABOUTME: Dark bg, purple gradients, glass-morphism cards, Sora headings */

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

:root {
    --accent: #a855f7;
    --accent-blue: #6366f1;
    --accent-hover: #c084fc;
    --gradient: linear-gradient(135deg, #a855f7, #6366f1);
    --gradient-subtle: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(99,102,241,0.15));
    --bg: #0a0a0a;
    --bg-glass: rgba(255,255,255,0.04);
    --bg-glass-hover: rgba(255,255,255,0.07);
    --border-glass: rgba(255,255,255,0.08);
    --text: #f0f0f0;
    --text-muted: rgba(240,240,240,0.55);
    --heading-font: 'Sora', sans-serif;
    --body-font: 'Inter', sans-serif;
    --container: 1200px;
    --narrow: 740px;
    --radius: 16px;
    --radius-sm: 10px;
}

* { 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.25; font-weight: 600; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.2rem; }

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

/* Header — transparent, overlays hero */
.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.4rem;
    font-weight: 700;
    color: #fff;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.site-nav { display: flex; gap: 1.8rem; align-items: center; }
.site-nav a { color: rgba(255,255,255,0.6); font-size: 0.92rem; font-weight: 400; }
.site-nav a:hover { color: #fff; }
.subscribe-btn {
    background: var(--gradient) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 0.5rem 1.3rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.subscribe-btn:hover { opacity: 0.9; color: #fff !important; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: #fff; cursor: pointer; }

/* Gradient Hero */
.hero-gradient {
    padding: 10rem 0 6rem;
    text-align: center;
    background: linear-gradient(160deg, #a855f7 0%, #6366f1 40%, #0a0a0a 80%);
    position: relative;
}
.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-gradient-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}
.hero-gradient-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -0.02em;
}
.hero-gradient-sub {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(168,85,247,0.3); }
.btn-lg { padding: 1rem 2.4rem; font-size: 1.1rem; }
.btn-glow { box-shadow: 0 4px 20px rgba(168,85,247,0.25); }
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text);
}
.btn-outline:hover { background: var(--bg-glass-hover); color: #fff; box-shadow: none; }

/* Latest Posts */
.latest-posts { padding: 4rem 0; }
.latest-posts h2 { margin-bottom: 2rem; }

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Glass-morphism cards with gradient borders */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(168,85,247,0.3);
    transform: translateY(-4px);
}

.card-img-wrap {
    display: block;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(99,102,241,0.2));
}
.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: transform 0.4s;
}
.post-card:hover img { transform: scale(1.04); }

/* Placeholder for cards without images */
.post-card .post-card-body:first-child {
    border-radius: var(--radius);
}
.post-card:not(:has(.card-img-wrap)) .post-card-body::before {
    content: '';
    display: block;
    height: 200px;
    margin: -1.2rem -1.4rem 1.2rem;
    background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(99,102,241,0.15));
    border-radius: var(--radius) var(--radius) 0 0;
}

.post-card-body { padding: 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}
.post-card h3 { margin: 0.4rem 0; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent-hover); }
.post-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card time { font-size: 0.82rem; color: var(--text-muted); margin-top: auto; }

.section-more { text-align: center; margin-top: 2.5rem; }

/* Single Post — dark bg, bright accents */
.post-single { padding: 2rem 0 4rem; }
.post-header { margin-bottom: 2rem; text-align: center; }
.post-header h1 { margin: 0.5rem 0 1rem; font-size: 2.4rem; }
.post-meta { color: var(--text-muted); font-size: 0.88rem; display: flex; gap: 1.5rem; justify-content: center; }
.post-hero-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }

.post-content { font-size: 1.05rem; max-width: 800px; margin: 0 auto; line-height: 1.8; }
.post-content h2 { margin: 2.5rem 0 1rem; }
.post-content h3 { margin: 1.5rem 0 0.75rem; }
.post-content p { margin-bottom: 1.2rem; }
.post-content img { border-radius: var(--radius-sm); 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 a { color: var(--accent-hover); text-decoration: underline; text-decoration-color: rgba(192,132,252,0.3); text-underline-offset: 3px; }
.post-content a:hover { text-decoration-color: var(--accent-hover); }
.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}
.post-content pre {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-cta {
    background: var(--gradient-subtle);
    border: 1px solid rgba(168,85,247,0.2);
    padding: 2.5rem;
    border-radius: var(--radius);
    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-glass);
    border: 1px solid var(--border-glass);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

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

/* Footer */
.site-footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-glass);
    margin-top: 2rem;
    background: rgba(255,255,255,0.02);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.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-links a:hover { color: var(--accent); }
.footer-subscribe p { color: var(--text-muted); margin: 0.5rem 0 1rem; }
.footer-bottom { border-top: 1px solid var(--border-glass); padding-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.88rem; }

/* Modal — glass-morphism */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 1000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.modal-content {
    background: rgba(20,20,20,0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 2.5rem;
    border-radius: var(--radius);
    max-width: 440px;
    width: 90%;
    position: relative;
}
.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 var(--border-glass);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: rgba(255,255,255,0.04);
    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; border-radius: var(--radius-sm); }
.pagination .active a { background: var(--gradient); color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .site-nav { display: none; }
    .site-nav.open { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,10,10,0.97); align-items: center; justify-content: center; gap: 1.5rem; z-index: 200; }
    .site-nav.open a { font-size: 1.2rem; color: var(--text); }
    .mobile-menu-btn { display: block; z-index: 300; }
    .hero-gradient { padding: 8rem 0 4rem; }
    .hero-gradient-content h1 { font-size: 2rem; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Comments */

.comments-section h3 { margin-bottom: 1.5rem; }











.comments-section { margin: 3rem 0 2rem; }
.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; min-width: 0; }
.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; }
.comment-form { margin-top: 2rem; padding-top: 2rem; border-top: 2px solid rgba(128,128,128,0.15); }
.comment-form h4 { margin-bottom: 1rem; }
.comment-form .form-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.comment-form input[type="text"], .comment-form input[type="email"] { flex: 1; padding: 0.7rem 1rem; border: 1px solid rgba(128,128,128,0.3); border-radius: 6px; font-size: 0.95rem; background: inherit; color: inherit; }
.comment-form textarea { width: 100%; padding: 0.7rem 1rem; border: 1px solid rgba(128,128,128,0.3); border-radius: 6px; font-size: 0.95rem; resize: vertical; margin-bottom: 1rem; background: inherit; color: inherit; box-sizing: border-box; }
.comment-form .btn { cursor: pointer; }
.comment-form .form-note { font-size: 0.85rem; color: var(--accent, #0984e3); margin-top: 0.5rem; }

.post-card { position: relative; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.stretched-link::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; content: ""; }
.post-card a { position: relative; z-index: 2; }
.stretched-link { text-decoration: none; color: inherit; }
