/* ============================================
   Annoying Parrot - Main Stylesheet
   Inspired by BoredPanda vintage blog style
   ============================================ */

:root {
    --primary: #c0392b;
    --primary-dark: #96281b;
    --secondary: #2c3e50;
    --accent: #e67e22;
    --bg: #f5f0eb;
    --bg-card: #ffffff;
    --text: #2c3e50;
    --text-muted: #7f8c8d;
    --border: #ddd5c8;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Serif Pro', Georgia, serif;
    --font-ui: 'Inter', -apple-system, sans-serif;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
    --radius: 4px;
    --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.25;
    color: var(--secondary);
}

/* ============ HEADER ============ */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "logo   search  hamburger"
        "nav    nav     nav";
    align-items: center;
    gap: 8px 16px;
}

.site-logo     { grid-area: logo; }
.header-search { grid-area: search; justify-self: end; }
.hamburger     { grid-area: hamburger; }
.main-nav      { grid-area: nav; }

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-logo img {
    height: 44px;
    width: auto;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    display: none;
}

@media (min-width: 480px) {
    .site-logo-text { display: block; }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid var(--border);
    padding-top: 8px;
}

.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border-radius: var(--radius);
    white-space: nowrap;
    color: var(--secondary);
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary);
    color: #fff;
}

.header-search {
    flex-shrink: 0;
}

.search-form {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg);
}

.search-form input {
    border: none;
    background: transparent;
    padding: 6px 12px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    width: 140px;
    outline: none;
    color: var(--text);
}

.search-form button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-form button svg {
    display: block;
}

.search-form button:hover { background: var(--primary-dark); }

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

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

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .main-nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px 20px;
        border-bottom: 3px solid var(--primary);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        gap: 2px;
        z-index: 999;
        justify-content: flex-start;
    }
    .main-nav.open { display: flex; }
    .main-nav a { width: 100%; padding: 10px 12px; font-size: 0.9rem; }
    .header-search { display: none; }
}

/* ============ HERO BANNER ============ */
.hero-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a252f 100%);
    color: #fff;
    padding: 40px 16px;
    text-align: center;
}

.hero-banner h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: #fff;
    margin-bottom: 10px;
}

.hero-banner p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ MAIN LAYOUT ============ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    padding: 32px 0;
}

@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    .sidebar { order: 2; }
}

/* ============ POST GRID ============ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.posts-grid.two-col {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

/* ============ POST CARD ============ */
.post-card {
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.post-card-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #2c3e50;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card-image .thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.thumbnail-overlay-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    font-style: italic;
}

.category-badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 2px;
    color: #fff;
    background: var(--primary);
    margin-bottom: 8px;
}

.post-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--secondary);
    transition: color 0.2s;
}

.post-card:hover .post-card-title { color: var(--primary); }

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.post-card-meta .views::before { content: ''; }
.post-card-meta .comments::before { content: ''; }

.read-more-btn {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
    transition: gap 0.2s;
}

.read-more-btn::after { content: ' →'; }

/* ============ FEATURED POST ============ */
.featured-post {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    min-height: 320px;
}

.featured-post .post-card-image {
    aspect-ratio: unset;
    height: 100%;
    min-height: 280px;
}

.featured-post .post-card-body {
    padding: 28px;
    justify-content: center;
}

.featured-post .post-card-title {
    font-size: 1.5rem;
}

.featured-post .post-card-excerpt {
    -webkit-line-clamp: 5;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    .featured-post .post-card-image {
        aspect-ratio: 1/1;
        height: auto;
    }
}

/* ============ SECTION HEADING ============ */
.section-heading {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-heading a {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============ SINGLE POST ============ */
.single-post-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 32px 0 0;
}

.single-post-header .container { max-width: 820px; }

.post-category-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.single-post-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--secondary);
}

.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.post-featured-image {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
    margin: 0 auto 32px;
    display: block;
}

.single-post-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 16px;
}

.post-body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
}

.post-body p { margin-bottom: 1.4em; }
.post-body h2 { font-size: 1.5rem; margin: 1.8em 0 0.6em; }
.post-body h3 { font-size: 1.25rem; margin: 1.5em 0 0.5em; }

.post-body img {
    border-radius: 4px;
    margin: 24px auto;
    max-width: 100%;
    box-shadow: var(--shadow);
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: rgba(192,57,43,0.06);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: var(--text-muted);
}

/* ============ INLINE POST IMAGE ============ */
.inline-image-wrap {
    text-align: center;
    margin: 28px 0;
}

.inline-image-wrap img {
    border-radius: 6px;
    box-shadow: var(--shadow);
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

.inline-image-wrap figcaption {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

/* ============ SHARE BAR ============ */
.share-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-bar-label {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    color: #fff;
    transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.85; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.copy { background: var(--secondary); }

/* ============ COMMENTS ============ */
.comments-section {
    margin-top: 40px;
    border-top: 3px solid var(--primary);
    padding-top: 32px;
}

.comments-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--secondary);
}

.comment-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 32px;
}

.comment-form h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; }

.comment-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-username {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
}

.comment-date {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.comment-vote-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--text-muted);
    font-family: var(--font-ui);
    transition: background 0.15s, color 0.15s;
}
.comment-vote-btn:hover { background: var(--bg-alt, #f5f5f5); }
.comment-vote-btn.active.like-btn    { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; }
.comment-vote-btn.active.dislike-btn { background: #fdecea; border-color: #e53935; color: #c62828; }

.comment-reply-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.82rem;
    font-family: var(--font-ui);
    font-weight: 600;
    cursor: pointer;
    padding: 3px 6px;
}
.comment-reply-btn:hover { text-decoration: underline; }

.comment-replies {
    margin-top: 10px;
    margin-left: 24px;
    border-left: 3px solid var(--border);
    padding-left: 14px;
}
.comment-replies .comment-item {
    margin-bottom: 10px;
}

.inline-reply-form {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-alt, #f9f9f9);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.inline-reply-header {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.inline-reply-cancel {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.82rem;
    font-family: var(--font-ui);
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}
.inline-reply-cancel:hover { text-decoration: underline; }
.inline-reply-form input,
.inline-reply-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    background: var(--bg-card);
    color: var(--text);
    box-sizing: border-box;
}
.inline-reply-form textarea { resize: vertical; }

.comment-alert {
    padding: 12px 16px;
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    margin-bottom: 16px;
    display: none;
}

.comment-alert.show { display: block; }
.comment-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.comment-alert.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.comment-alert.warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ============ SIDEBAR ============ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

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

.widget-title {
    background: var(--secondary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 12px 16px;
    letter-spacing: 0.02em;
}

.widget-body { padding: 16px; }

.widget-post-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.widget-post-item:last-child { border-bottom: none; padding-bottom: 0; }

.widget-post-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    background: var(--bg);
}

.widget-post-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    line-height: 1.3;
    color: var(--secondary);
    transition: color 0.2s;
}

.widget-post-item:hover .widget-post-title { color: var(--primary); }

.widget-post-date {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Category list widget */
.category-list { list-style: none; }
.category-list li {
    border-bottom: 1px solid var(--border);
}
.category-list li:last-child { border-bottom: none; }
.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s;
}
.category-list a:hover { color: var(--primary); }
.category-list .count {
    background: var(--bg);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    transition: all 0.2s;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

/* ============ FOOTER ============ */
.site-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid > .footer-brand,
    .footer-grid > div:nth-child(2) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}

.footer-brand img { height: 48px; margin-bottom: 12px; }

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 14px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    flex-wrap: wrap;
    gap: 8px;
}

/* ============ HIDE COOKIE-SCRIPT FLOATING BADGE ============ */
#cookiescript_badge,
#cookiescript_badgeimage,
.cookiescript_badge { display: none !important; }

/* ============ NO POSTS ============ */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-family: var(--font-ui);
}

.no-posts h2 { margin-bottom: 8px; }

/* ============ LOADING ============ */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ UTILITY ============ */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ============ STATIC PAGES ============ */
.static-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 16px;
}

.static-page h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.static-page .last-updated {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.static-page h2 {
    font-size: 1.3rem;
    margin: 2em 0 0.5em;
    color: var(--primary);
}

.static-page p { margin-bottom: 1em; }
.static-page ul, .static-page ol {
    margin: 0.8em 0 1em 1.5em;
}
.static-page li { margin-bottom: 6px; }

/* ============ SEARCH PAGE ============ */
.search-header {
    background: var(--bg-card);
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.search-header h1 { font-size: 1.6rem; }
.search-header span { color: var(--primary); }

/* ============ CATEGORY PAGE ============ */
.category-header {
    padding: 32px 0;
    border-bottom: 3px solid var(--primary);
    margin-bottom: 32px;
}

.category-header h1 { font-size: 2rem; }
.category-header p { color: var(--text-muted); margin-top: 8px; }

/* Responsive tweaks */
@media (max-width: 480px) {
    .post-card-body { padding: 12px; }
    .single-post-content { padding: 20px 12px; }
    .comment-form { padding: 16px; }
    body { font-size: 16px; }
}

/* ============ MOBILE OPTIMIZATION ============ */
@media (max-width: 768px) {
    .single-post-title { font-size: 1.5rem !important; line-height: 1.25; }
    .post-meta-bar { gap: 10px; font-size: 0.75rem; }
    .post-body { font-size: 1rem; line-height: 1.7; }
    .post-body h2 { font-size: 1.25rem; margin: 1.4em 0 0.4em; }
    .post-body h3 { font-size: 1.1rem; margin: 1.2em 0 0.4em; }
    .post-body blockquote { padding: 10px 14px; font-size: 0.95rem; }
    .single-post-header { padding: 20px 0 0; }
    .post-featured-image { max-width: 360px; }
    .inline-image-wrap img { max-height: 280px; border-radius: 4px; }
    .share-bar { padding: 14px; gap: 8px; }
    .share-btn { padding: 7px 12px; font-size: 0.78rem; }
    .comments-heading { font-size: 1.2rem; }
    .section-heading { font-size: 1.3rem; }
    .container { padding: 0 14px; }
    .post-card-title { font-size: 1rem; }
    .featured-post .post-card-title { font-size: 1.2rem; }
    .featured-post .post-card-body { padding: 18px; }
    .widget-title { font-size: 0.9rem; padding: 10px 14px; }
    .widget-body { padding: 14px; }
    .widget-post-thumb { width: 56px; height: 42px; }
    .widget-post-title { font-size: 0.85rem; }
    .hero-banner { padding: 28px 16px; }
    .hero-banner h1 { font-size: 1.6rem; }
    .hero-banner p { font-size: 0.95rem; }
}

/* Article body bold/italic styling */
.post-body strong { color: var(--secondary); font-weight: 700; }
.post-body em { color: var(--text); font-style: italic; }
.post-body h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 6px;
    margin-top: 2em;
    margin-bottom: 0.6em;
}
.post-body h3 {
    font-family: var(--font-heading);
    color: var(--secondary);
    margin-top: 1.6em;
    margin-bottom: 0.4em;
}
.post-body ul, .post-body ol {
    margin: 1.2em 0 1.2em 1.6em;
}
.post-body li {
    margin-bottom: 0.5em;
}
.post-body blockquote {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.5;
    padding: 16px 24px;
    border-left: 5px solid var(--primary);
    background: rgba(192,57,43,0.04);
    margin: 1.8em 0;
    color: var(--secondary);
    border-radius: 0 6px 6px 0;
}
/* Removed quote marks - Qwen already adds them in content */

/* ============ TAGS ============ */
.post-tags {
    margin: 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-chip {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
}
.tag-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============ CONTINUE READING ============ */
.continue-reading {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    padding: 20px 24px;
    margin: 36px 0;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.continue-reading:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
}
.continue-reading-label {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}
.continue-reading-content {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    align-items: center;
}
.continue-reading-content img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}
.continue-reading-content h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--secondary);
    margin: 0 0 6px 0;
}
.continue-reading-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 8px 0;
}
.continue-reading-arrow {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
@media (max-width: 600px) {
    .continue-reading { padding: 16px; }
    .continue-reading-content { grid-template-columns: 70px 1fr; gap: 12px; }
    .continue-reading-content img { width: 70px; height: 70px; }
    .continue-reading-content h3 { font-size: 0.95rem; }
    .continue-reading-content p { font-size: 0.78rem; }
}

/* ============ HIGHLIGHTS BOX ============ */
.highlights-box {
    background: #f5f0eb;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px 28px;
    margin: 0 0 32px 0;
}
.highlights-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--secondary);
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.highlights-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.highlights-box li {
    position: relative;
    padding: 8px 0 8px 24px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--text);
}
.highlights-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 1px;
}

/* ============ POLL BOX ============ */
.poll-box {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 36px 0;
    overflow: hidden;
}
.poll-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.poll-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(192,57,43,0.12);
    color: var(--primary);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}
.poll-label {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
}
.poll-question {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.35;
    color: var(--secondary);
    padding: 20px 24px 16px 24px;
    margin: 0;
}
.poll-options {
    padding: 0 24px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.poll-option {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
    overflow: hidden;
}
.poll-option:not(.voted):hover {
    border-color: var(--primary);
    background: rgba(192,57,43,0.04);
}
.poll-option::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #c0c0b8;
    border-radius: 50%;
    transition: all 0.2s;
}
.poll-option.voted {
    cursor: default;
}
.poll-option.user-choice::before {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px #fff;
}
.poll-option-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(192,57,43,0.12);
    transition: width 0.6s ease-out;
    z-index: 0;
}
.poll-option.user-choice .poll-option-fill {
    background: rgba(192,57,43,0.22);
}
.poll-option-text {
    position: relative;
    z-index: 1;
    flex: 1;
}
.poll-option-percent {
    position: relative;
    z-index: 1;
    margin-left: 12px;
    font-weight: 700;
    color: var(--primary);
}
.poll-total {
    padding: 0 24px 18px 24px;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .highlights-box { padding: 18px 20px; margin-bottom: 24px; }
    .highlights-title { font-size: 1.2rem; }
    .highlights-box li { font-size: 0.92rem; padding-left: 22px; }
    .poll-question { font-size: 1.15rem; padding: 16px 18px 12px; }
    .poll-options { padding: 0 18px 14px; }
    .poll-option { font-size: 0.88rem; padding: 12px 14px 12px 40px; }
    .poll-header { padding: 14px 18px; }
}
