/*
Theme Name: Rob the Lemon
Theme URI: 
Author: Rob
Description: A clean, minimalist blog theme for Rob the Lemon. No fluff, just content.
Version: 6.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rob-the-lemon
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --accent-yellow: #F6C21C;
    --brand-green: #2F5D3A;
    --text-primary: #2B2B2B;
    --bg-main: #FAFAF7;
    --text-secondary: #6B7280;
    --bg-surface: #EFE7D8;
    --error: #C2412D;
    
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --content-width: 750px;
    --sidebar-width: 300px;
    --header-height: auto;
    --gap: 2rem;
}

[data-theme="dark"] {
    --accent-yellow: #F6C21C;
    --brand-green: #3F7A52;
    --text-primary: #EDEDED;
    --bg-main: #121212;
    --text-secondary: #9CA3AF;
    --bg-surface: #1F2933;
    --error: #E0523A;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #FAFAF7;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: #FAFAF7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--brand-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-yellow);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--brand-green);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
    margin: 0 0 1.5rem 0;
}

blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background-color: var(--bg-surface);
    border-left: 4px solid var(--accent-yellow);
    font-style: italic;
}

blockquote p:last-child {
    margin-bottom: 0;
}

pre, code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

code {
    background-color: var(--bg-surface);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

pre {
    background-color: var(--bg-surface);
    padding: 1.25rem;
    overflow-x: auto;
    border-radius: 6px;
}

pre code {
    padding: 0;
    background: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--bg-surface);
}

.header-banner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 210px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #FFFFFF;
}

/* Navigation */
.main-navigation {
    background-color: var(--brand-green);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.nav-menu li a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--bg-main);
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    background-color: rgba(0, 0, 0, 0.15);
    color: var(--accent-yellow);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--bg-main);
    cursor: pointer;
    padding: 0.75rem;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.theme-toggle:hover {
    color: var(--accent-yellow);
}

/* Main Content Area */
.site-content {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--gap);
    display: flex;
    gap: var(--gap);
    width: 100%;
}

.content-area {
    flex: 1;
    min-width: 0;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.widget {
    background-color: var(--bg-surface);
    padding: 1.25rem;
    margin-bottom: var(--gap);
    border-radius: 8px;
}

.widget-title {
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-yellow);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    display: block;
}

/* Search Widget */
.search-form {
    display: flex;
}

.search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid transparent;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--bg-main);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--brand-green);
}

.search-submit {
    padding: 0.75rem 1rem;
    background-color: var(--brand-green);
    color: var(--bg-main);
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.search-submit:hover {
    background-color: var(--accent-yellow);
    color: var(--text-primary);
}

/* ==========================================================================
   Posts
   ========================================================================== */

.post {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--bg-surface);
}

.post:last-child {
    border-bottom: none;
}

.post-header {
    margin-bottom: 1.5rem;
}

.post-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: var(--brand-green);
}

.post-title a:hover {
    color: var(--accent-yellow);
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 1rem;
}

.post-thumbnail {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 300px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.post-content {
    margin-bottom: 1.5rem;
}

.post-footer {
    clear: both;
}

.post-content img {
    margin: 1.5rem 0;
    border-radius: 6px;
}

.post-tags {
    margin-top: 1.5rem;
}

.post-tags a {
    display: inline-block;
    background-color: var(--bg-surface);
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.post-tags a:hover {
    background-color: var(--accent-yellow);
    color: var(--text-primary);
}

/* Border after content, before reactions */
.post-content-end {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #E5E0D5;
}

/* ==========================================================================
   Infinite Scroll
   ========================================================================== */

#load-more-trigger {
    height: 1px;
    margin-top: -100px;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-spinner::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--bg-surface);
    border-top-color: var(--brand-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.no-more-posts {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ==========================================================================
   Post Footer (Read More / Comments link)
   ========================================================================== */

.post-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-surface);
    font-size: 0.9rem;
}

.post-footer a {
    font-weight: 500;
}

.post-footer-separator {
    margin: 0 0.75rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--bg-surface);
    font-size: 0.95rem;
}

.comments-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    padding: 1rem 0;
    border-bottom: 1px solid var(--bg-surface);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--brand-green);
    font-size: 0.9rem;
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-reply-link {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Comment Form */
.comment-respond {
    margin-top: 1.5rem;
}

.comment-reply-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--bg-surface);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    background-color: var(--bg-main);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--brand-green);
}

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

.comment-form .submit {
    background-color: var(--brand-green);
    color: var(--bg-main);
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.comment-form .submit:hover {
    background-color: var(--accent-yellow);
    color: var(--text-primary);
}

.comment-notes,
.logged-in-as {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Callout Boxes (for Rob's notes)
   ========================================================================== */

.callout {
    background-color: var(--bg-surface);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--accent-yellow);
}

.callout-title {
    font-weight: 600;
    color: var(--brand-green);
    margin-bottom: 0.5rem;
}

.callout p:last-child {
    margin-bottom: 0;
}

.callout.error {
    border-left-color: var(--error);
}

/* ==========================================================================
   Sensitive Images (blurred with reveal button)
   ========================================================================== */

.sensitive-image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.sensitive-blur {
    filter: blur(25px);
    -webkit-filter: blur(25px);
    transition: filter 0.5s ease;
}

.sensitive-blur img {
    display: block;
    width: 100%;
    height: auto;
}

.sensitive-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(43, 43, 43, 0.4);
    cursor: default;
}

.sensitive-caption {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 80%;
}

.sensitive-reveal {
    margin-top: 0.25rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sensitive-reveal:hover {
    background: #fff;
}

/* Revealed state */
.sensitive-image.revealed .sensitive-blur {
    filter: none;
    -webkit-filter: none;
}

.sensitive-image.revealed .sensitive-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Sensitive image alignment (inherits from WordPress image classes) */
.sensitive-image.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 300px;
}

.sensitive-image.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 300px;
}

.sensitive-image.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .sensitive-image.alignright,
    .sensitive-image.alignleft {
        float: none;
        max-width: 100%;
        margin: 1.5rem 0;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--brand-green);
    color: var(--bg-main);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.site-footer a {
    color: var(--accent-yellow);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    :root {
        --gap: 1.5rem;
    }
    
    .site-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 1;
    }
    
    .content-area {
        order: 0;
    }
    
    .header-banner {
        height: 150px;
    }
    
    .post-thumbnail {
        float: none;
        max-width: 100%;
        margin: 0 0 1rem 0;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .nav-menu li a {
        padding: 0.5rem 1rem;
    }
    
    .post {
        margin-bottom: 3rem;
        padding-bottom: 3rem;
    }
    
    .header-banner {
        height: auto;
        min-height: 80px;
        padding-bottom: 17.5%; /* Roughly maintains aspect ratio of 1200x210 */
    }
    
    .post-footer {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-footer-separator {
        display: none;
    }
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bg-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem;
}

/* Nav Utility Icons */
.nav-utility {
    display: none;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.utility-toggle {
    background: none;
    border: none;
    color: var(--bg-main);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.2s ease;
}

.utility-toggle:hover {
    opacity: 0.8;
}

.utility-dropdown {
    display: none;
    background-color: var(--bg-surface);
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.utility-dropdown.active {
    display: block;
}

.utility-dropdown-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.utility-dropdown-content p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.utility-dropdown-content .search-form {
    display: flex;
}

.utility-dropdown-content .search-field {
    flex: 1;
}

.utility-dropdown .jetpack_subscription_widget,
.utility-dropdown .wp-block-jetpack-subscriptions,
.utility-dropdown form {
    display: flex !important;
    flex-direction: column !important;
}

.utility-dropdown input[type="email"],
.utility-dropdown .wp-block-jetpack-subscriptions__textfield {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid transparent !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-family: inherit !important;
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.75rem !important;
    box-sizing: border-box !important;
}

.utility-dropdown input[type="email"]:focus,
.utility-dropdown .wp-block-jetpack-subscriptions__textfield:focus {
    outline: none !important;
    border-color: var(--brand-green) !important;
}

.utility-dropdown input[type="submit"],
.utility-dropdown button[type="submit"],
.utility-dropdown .wp-block-jetpack-subscriptions__button {
    padding: 0.75rem 1.5rem !important;
    background-color: var(--brand-green) !important;
    color: var(--bg-main) !important;
    border: none !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    width: 100% !important;
}

.utility-dropdown input[type="submit"]:hover,
.utility-dropdown button[type="submit"]:hover,
.utility-dropdown .wp-block-jetpack-subscriptions__button:hover {
    background-color: var(--accent-yellow) !important;
    color: var(--text-primary) !important;
}

@media (max-width: 600px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-utility {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--brand-green);
        flex-direction: column;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-container {
        position: relative;
    }
    
    .main-navigation {
        position: relative;
    }
}

/* ==========================================================================
   Subscription Forms (Jetpack)
   ========================================================================== */

.widget_subscribe p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.widget_subscribe .jetpack_subscription_widget,
.widget_subscribe .wp-block-jetpack-subscriptions,
.widget_subscribe form {
    display: flex !important;
    flex-direction: column !important;
}

.widget_subscribe input[type="email"],
.widget_subscribe .wp-block-jetpack-subscriptions__textfield {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid transparent !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-family: inherit !important;
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.75rem !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.widget_subscribe input[type="email"]:focus,
.widget_subscribe .wp-block-jetpack-subscriptions__textfield:focus {
    outline: none !important;
    border-color: var(--brand-green) !important;
}

.widget_subscribe input[type="submit"],
.widget_subscribe button[type="submit"],
.widget_subscribe .wp-block-jetpack-subscriptions__button {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    background-color: var(--brand-green) !important;
    color: var(--bg-main) !important;
    border: none !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.widget_subscribe input[type="submit"]:hover,
.widget_subscribe button[type="submit"]:hover,
.widget_subscribe .wp-block-jetpack-subscriptions__button:hover {
    background-color: var(--accent-yellow) !important;
    color: var(--text-primary) !important;
}

/* ==========================================================================
   Emoji Reactions
   ========================================================================== */

.post-reactions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.reactions-label {
    font-size: 0.9rem;
    color: #666;
}

.reaction-btn {
    background: transparent;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-radius: 4px;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.reaction-btn:hover {
    transform: scale(1.15);
}

.reaction-btn.active {
    background-color: var(--brand-green);
}

.reaction-btn.active .reaction-count {
    color: #fff;
}

.reaction-emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.reaction-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    margin-left: 4px;
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */

.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid #E5E0D5;
    border-bottom: 1px solid #E5E0D5;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.post-navigation a {
    color: var(--brand-green);
    text-decoration: none;
    font-size: 0.9rem;
}

.post-navigation a:hover {
    color: var(--accent-yellow);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 45%;
}

.post-navigation .nav-next {
    text-align: right;
}

@media (max-width: 600px) {
    .post-navigation .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
        text-align: left;
    }
}

/* Hide Jetpack's auto-injected subscribe blocks inside post content.
   We place our own forms in .post-subscribe, .widget_subscribe, .utility-dropdown. */
.post-content .wp-block-jetpack-subscriptions,
.post-content .jetpack_subscription_widget,
.jetpack-subscribe-overlay,
.jetpack-subscribe-modal {
    display: none !important;
}

/* ==========================================================================
   Post Subscribe (inline)
   ========================================================================== */

.post-subscribe {
    margin-bottom: 1.5rem;
}

.post-subscribe .jetpack_subscription_widget,
.post-subscribe .wp-block-jetpack-subscriptions,
.post-subscribe form {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}

.post-subscribe input[type="email"],
.post-subscribe .wp-block-jetpack-subscriptions__textfield {
    flex: 1 !important;
    min-width: 180px !important;
    max-width: 250px !important;
    padding: 0.5rem 0.75rem !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 0.9rem !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.post-subscribe input[type="email"]:focus,
.post-subscribe .wp-block-jetpack-subscriptions__textfield:focus {
    outline: none !important;
    border-color: var(--brand-green) !important;
}

.post-subscribe input[type="submit"],
.post-subscribe button[type="submit"],
.post-subscribe .wp-block-jetpack-subscriptions__button {
    background-color: var(--brand-green) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.post-subscribe input[type="submit"]:hover,
.post-subscribe button[type="submit"]:hover,
.post-subscribe .wp-block-jetpack-subscriptions__button:hover {
    background-color: var(--accent-yellow) !important;
    color: var(--text-primary) !important;
}

@media (max-width: 600px) {
    .post-subscribe form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .post-subscribe input[type="email"] {
        max-width: 100%;
    }
}

/* ==========================================================================
   Page Headers (Archive, Search, etc.)
   ========================================================================== */

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-surface);
}

.page-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    color: var(--brand-green);
}

.page-title span {
    color: var(--text-primary);
}

.archive-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* ==========================================================================
   Empty States
   ========================================================================== */

.no-posts,
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-posts h2,
.no-results h2 {
    color: var(--brand-green);
    margin-bottom: 0.5rem;
}

.no-posts p,
.no-results p {
    margin-bottom: 1.5rem;
}

.no-comments {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* ==========================================================================
   Post Footer Links
   ========================================================================== */

.read-more-link {
    color: var(--brand-green);
    font-weight: 500;
}

.read-more-link:hover {
    color: var(--accent-yellow);
}

.comments-link {
    color: var(--text-secondary);
}

.comments-link:hover {
    color: var(--brand-green);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--bg-main);
    clip: auto !important;
    clip-path: none;
    color: var(--text-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Merch Page - Growing Soon
   ========================================================================== */

.growing-soon-content {
    text-align: center;
    padding: 3rem 1rem;
}

.growing-soon-message {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem;
    background-color: var(--bg-surface);
    border-radius: 12px;
}

.growing-soon-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    animation: sway 3s ease-in-out infinite;
}

.growing-soon-message h2 {
    margin-top: 0;
    color: var(--brand-green);
}

.growing-soon-message p {
    color: var(--text-secondary);
}

.growing-soon-message p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--brand-green);
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}
