/*
 Theme Name:   BuddyX Child - Enhanced News
 Theme URI:    https://developer.wordpress.org/themes/advanced-topics/child-themes/
 Description:  BuddyX Child Theme - Warm Editorial Design
 Author:       Site Admin
 Template:     buddyx
 Version:      2.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  buddyx-child
*/

/* ==========================================================================
   HELLO MIDDLETON - WARM EDITORIAL DESIGN SYSTEM
   "Your Neighborhood Front Porch"
   ========================================================================== */

/* ---------------------------------------------------------------------
   1. Design Tokens - The Foundation
   --------------------------------------------------------------------- */

:root {
    /* === TYPOGRAPHY === */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

    /* === WARM NEUTRAL PALETTE === */
    --hm-bg: #FDFCFA;              /* Warm paper white */
    --hm-bg-elevated: #FFFFFF;
    --hm-bg-subtle: #F7F5F2;
    --hm-bg-muted: #EFEDEA;

    /* === TEXT HIERARCHY === */
    --hm-text: #1C1917;            /* Warm black */
    --hm-text-secondary: #57534E;
    --hm-text-muted: #A8A29E;
    --hm-text-inverse: #FDFCFA;

    /* === SIGNATURE COLORS === */
    --hm-primary: #B45309;         /* Warm amber/rust */
    --hm-primary-hover: #92400E;
    --hm-primary-light: #FEF3C7;
    --hm-accent: #0F766E;          /* Teal - trust */
    --hm-accent-hover: #115E59;
    --hm-accent-light: #CCFBF1;

    /* === SEMANTIC COLORS === */
    --hm-success: #15803D;
    --hm-success-light: #DCFCE7;
    --hm-warning: #CA8A04;
    --hm-warning-light: #FEF9C3;
    --hm-danger: #DC2626;
    --hm-danger-light: #FEE2E2;

    /* === BORDERS === */
    --hm-border: #E7E5E4;
    --hm-border-strong: #D6D3D1;
    --hm-border-focus: var(--hm-primary);

    /* === LAYERED SHADOWS === */
    --shadow-xs: 0 1px 2px rgba(28, 25, 23, 0.05);
    --shadow-sm:
        0 1px 2px rgba(28, 25, 23, 0.04),
        0 2px 4px rgba(28, 25, 23, 0.04);
    --shadow-md:
        0 2px 4px rgba(28, 25, 23, 0.02),
        0 4px 8px rgba(28, 25, 23, 0.04),
        0 8px 16px rgba(28, 25, 23, 0.04);
    --shadow-lg:
        0 4px 8px rgba(28, 25, 23, 0.02),
        0 8px 16px rgba(28, 25, 23, 0.04),
        0 16px 32px rgba(28, 25, 23, 0.06);
    --shadow-xl:
        0 8px 16px rgba(28, 25, 23, 0.02),
        0 16px 32px rgba(28, 25, 23, 0.04),
        0 32px 64px rgba(28, 25, 23, 0.08);
    --shadow-glow: 0 0 0 3px rgba(180, 83, 9, 0.15);
    --shadow-glow-accent: 0 0 0 3px rgba(15, 118, 110, 0.15);

    /* === SPACING (8px grid) === */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* === RADIUS === */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* === MOTION === */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;

    /* === LEGACY COMPATIBILITY (maps old vars to new) === */
    --mn-primary: var(--hm-accent);
    --mn-primary-light: var(--hm-accent-light);
    --mn-primary-dark: var(--hm-accent-hover);
    --mn-accent: var(--hm-primary);
    --mn-accent-light: var(--hm-primary-light);
    --mn-accent-dark: var(--hm-primary-hover);
    --mn-bg-primary: var(--hm-bg);
    --mn-bg-card: var(--hm-bg-elevated);
    --mn-text-primary: var(--hm-text);
    --mn-text-secondary: var(--hm-text-secondary);
    --mn-text-muted: var(--hm-text-muted);
    --mn-border: var(--hm-border);
    --mn-border-dark: var(--hm-border-strong);
}

/* ---------------------------------------------------------------------
   2. Global Styles & Typography
   --------------------------------------------------------------------- */

body,
.site,
#page {
    background: var(--hm-bg) !important;
    font-family: var(--font-body) !important;
    color: var(--hm-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hm-master-layout {
    background: var(--hm-bg) !important;
}

/* Headlines - Editorial serif */
h1, h2, h3, h4, h5, h6,
.entry-title,
.widget-title {
    font-family: var(--font-display) !important;
    font-weight: 600;
    color: var(--hm-text);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* Body text refinements */
p, li, td, th {
    font-family: var(--font-body);
    color: var(--hm-text-secondary);
    line-height: 1.7;
}

/* Links - warm amber underline */
a {
    color: var(--hm-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--hm-primary-hover);
}

/* Selection */
::selection {
    background: var(--hm-primary-light);
    color: var(--hm-primary-hover);
}

/* Focus states - accessibility */
:focus-visible {
    outline: 2px solid var(--hm-primary);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   3. Card System - Elevated, Warm, Interactive
   --------------------------------------------------------------------- */

/* Base Card Styling */
.hm-master-layout .rss_item,
.feedzy-rss .rss_item,
.pulse-items .activity-item,
.hm-master-layout .activity-item {
    background: var(--hm-bg-elevated) !important;
    border: 1px solid var(--hm-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    transition:
        transform var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out),
        border-color var(--duration-normal) var(--ease-out) !important;
}

/* Card Hover - Lift and Glow */
.hm-master-layout .rss_item:hover,
.feedzy-rss .rss_item:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--hm-border-strong) !important;
}

.pulse-items .activity-item:hover,
.hm-master-layout .activity-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--hm-border-strong) !important;
}

/* Card Focus State */
.hm-master-layout .rss_item:focus-within,
.feedzy-rss .rss_item:focus-within,
.pulse-items .activity-item:focus-within {
    box-shadow: var(--shadow-md), var(--shadow-glow) !important;
    border-color: var(--hm-primary) !important;
}

/* Subtle top accent line on cards */
.hm-master-layout .rss_item::before,
.feedzy-rss .rss_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hm-primary), var(--hm-accent));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.hm-master-layout .rss_item:hover::before,
.feedzy-rss .rss_item:hover::before {
    opacity: 1;
}

/* Ensure cards have relative positioning for pseudo-element */
.hm-master-layout .rss_item,
.feedzy-rss .rss_item {
    position: relative;
    overflow: hidden;
}

/* ---------------------------------------------------------------------
   4. Section Headers - Clean Editorial Style
   --------------------------------------------------------------------- */

/* Section header base */
.hm-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--hm-border);
}

.hm-section-title {
    font-family: var(--font-display) !important;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hm-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hm-section-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hm-primary) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: gap var(--duration-fast) var(--ease-out);
}

.hm-section-link:hover {
    gap: var(--space-2);
    color: var(--hm-primary-hover) !important;
}

.hm-section-link::after {
    content: '→';
    transition: transform var(--duration-fast) var(--ease-out);
}

.hm-section-link:hover::after {
    transform: translateX(2px);
}

/* Column headers - simplified */
.hm-column::before {
    color: var(--hm-accent) !important;
    border-bottom: 2px solid var(--hm-accent) !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.hm-column-main::before {
    color: var(--hm-primary) !important;
    border-bottom: 2px solid var(--hm-primary) !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Remove the old top borders on cards */
.hm-column .rss_item {
    border-top: none !important;
}

.hm-column-main .activity-item {
    border-top: none !important;
}

/* Live pulse indicator */
@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.hm-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    color: var(--hm-success);
    font-weight: 600;
}

.hm-live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--hm-success);
    border-radius: 50%;
    animation: pulse-live 2s ease-in-out infinite;
}

/* ---------------------------------------------------------------------
   5. Content Typography
   --------------------------------------------------------------------- */

/* Card Titles - Editorial feel */
.hm-master-layout .rss_item .title a,
.hm-master-layout .rss_item .rss_content_wrap .title a,
.feedzy-rss .rss_item .title a {
    font-family: var(--font-display) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: var(--hm-text) !important;
    text-decoration: none !important;
    transition: color var(--duration-fast) var(--ease-out) !important;
}

.hm-master-layout .rss_item .title a:hover,
.feedzy-rss .rss_item .title a:hover {
    color: var(--hm-primary) !important;
}

/* Descriptions - Clean and readable */
.hm-master-layout .rss_item .rss_content .description,
.hm-master-layout .rss_item .description,
.feedzy-rss .rss_item .description {
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    color: var(--hm-text-secondary) !important;
}

/* Meta text - Subtle and refined */
.hm-master-layout .rss_item .rss_content small,
.feedzy-rss .rss_item small,
.pulse-items .pulse-time {
    font-family: var(--font-mono) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: var(--hm-text-muted) !important;
    letter-spacing: 0.01em !important;
}

/* Pulse/Activity content */
.pulse-items .pulse-content p {
    font-family: var(--font-body) !important;
    color: var(--hm-text-secondary) !important;
    line-height: 1.6 !important;
}

.pulse-items .pulse-header strong {
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    color: var(--hm-text) !important;
}

/* ---------------------------------------------------------------------
   6. Links & Accents
   --------------------------------------------------------------------- */

.hm-master-layout a:not(.title a):not(.rss_image a) {
    color: var(--mn-primary) !important;
}

.hm-master-layout a:hover {
    color: var(--mn-primary-dark) !important;
}

.news-view-all {
    color: var(--mn-primary) !important;
}

/* Pulse icons background */
.pulse-icons:not(:empty) {
    background: #fef3c7 !important;
    color: var(--mn-accent-dark) !important;
}

/* ---------------------------------------------------------------------
   7. Pulse Header Divider
   --------------------------------------------------------------------- */

.pulse-items .pulse-header {
    border-bottom-color: var(--mn-border) !important;
}

/* ---------------------------------------------------------------------
   8. FEEDZY RSS IMAGE SIZING (Critical - prevents squished images)
   --------------------------------------------------------------------- */

/* RSS Image Container */
.hm-master-layout .rss_image,
.feedzy-rss .rss_image {
    width: 100% !important;
    height: 250px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* RSS Image - proper aspect ratio with cover */
.hm-master-layout .rss_image img,
.hm-master-layout .rss_item .rss_image span,
.feedzy-rss .rss_image img,
.feedzy-rss .rss_item .rss_image span {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Feedzy uses background-image spans sometimes */
.hm-master-layout .rss_item .rss_image a,
.feedzy-rss .rss_item .rss_image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.hm-master-layout .rss_item .rss_image a span,
.feedzy-rss .rss_item .rss_image a span {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
}

/* ---------------------------------------------------------------------
   9. Image Hover Zoom
   --------------------------------------------------------------------- */

.hm-master-layout .rss_image img,
.hm-master-layout .rss_image span,
.pulse-items .pulse-media img {
    transition: transform 0.4s ease !important;
}

.hm-master-layout .rss_item:hover .rss_image img,
.hm-master-layout .rss_item:hover .rss_image span,
.pulse-items .activity-item:hover .pulse-media img {
    transform: scale(1.05);
}

/* ---------------------------------------------------------------------
   10. Loading Animation
   --------------------------------------------------------------------- */

.feedzy-lazy.loading {
    min-height: 200px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------------------------------------------------------------------
   11. News Section Header Shortcode
   --------------------------------------------------------------------- */

.news-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--mn-primary);
}

.news-section-title {
    font-family: "Sometype Mono", monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
    color: var(--mn-primary);
}

.news-view-all:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------------
   12. Desktop Card Alignment (Left & Right RSS columns)
   --------------------------------------------------------------------- */

@media (min-width: 992px) {
    /* Fixed height cards for consistent alignment */
    .hm-column .rss_item {
        height: 420px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* Image container stays fixed */
    .hm-column .rss_item .rss_image {
        flex-shrink: 0 !important;
    }

    /* Content area fills remaining space */
    .hm-column .rss_item .rss_content_wrap {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* Limit title to 2 lines */
    .hm-column .rss_item .rss_content_wrap .title,
    .hm-column .rss_item .title {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.4 !important;
    }

    /* Limit description to 3 lines */
    .hm-column .rss_item .rss_content .description,
    .hm-column .rss_item .description {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        flex: 1 !important;
    }

    /* Meta info stays at bottom */
    .hm-column .rss_item .rss_content small {
        margin-top: auto !important;
    }
}

/* ---------------------------------------------------------------------
   13. Fix text cutoff at rounded corners
   --------------------------------------------------------------------- */

.hm-column .rss_item .rss_content_wrap,
.hm-column .rss_item .rss_content {
    padding-bottom: 24px !important;
}

/* ---------------------------------------------------------------------
   14. Print Styles
   --------------------------------------------------------------------- */

@media print {
    .hm-master-layout .activity-item, 
    .hm-master-layout .rss_item,
    .pulse-items .activity-item {
        box-shadow: none !important;
        transform: none !important;
    }
}

/* =========================================================================
   WEATHER CARD - Warm, Elegant, Informative
   ========================================================================= */

.weather-bar {
    background: var(--hm-bg-elevated);
    border: 1px solid var(--hm-border);
    color: var(--hm-text);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--duration-normal) var(--ease-out);
}

.weather-bar:hover {
    box-shadow: var(--shadow-md);
}

.weather-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-5);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.weather-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.weather-temp {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hm-text);
}

.weather-desc {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--hm-text-secondary);
    text-transform: capitalize;
}

.weather-details {
    display: flex;
    gap: var(--space-4);
    padding: 0 var(--space-4);
    border-left: 1px solid var(--hm-border);
    border-right: 1px solid var(--hm-border);
}

.weather-humidity,
.weather-wind {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--hm-text-muted);
    font-weight: 500;
}

.weather-location {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hm-primary);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.weather-location::before {
    content: '📍';
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .weather-bar-inner {
        gap: var(--space-3);
    }
    .weather-details {
        border: none;
        padding: 0;
        width: 100%;
        justify-content: center;
    }
    .weather-location {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .weather-bar {
        padding: var(--space-3) var(--space-4);
    }
    .weather-temp {
        font-size: 1.75rem;
    }
    .weather-icon {
        font-size: 2rem;
    }
}

/* =========================================================================
   ANONYMOUS TIP LINE - Government Document Style
   ========================================================================= */

.hm-gov-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    background: #fffef5;
    border: 2px solid #1e3a5f;
    border-radius: 2px;
    box-shadow: 
        0 0 0 4px #fffef5,
        0 0 0 6px #1e3a5f,
        8px 8px 0 rgba(30, 58, 95, 0.15);
    font-family: "Courier New", Courier, monospace;
    position: relative;
    overflow: hidden;
}

/* Subtle paper texture effect */
.hm-gov-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 24px,
            rgba(0,0,0,0.02) 24px,
            rgba(0,0,0,0.02) 25px
        );
    pointer-events: none;
    z-index: 0;
}

.hm-gov-form > * {
    position: relative;
    z-index: 1;
}

/* Header */
.hm-gov-form-header {
    background: linear-gradient(180deg, #1e3a5f 0%, #2d4a6f 100%);
    color: #fff;
    padding: 20px 25px;
    margin-bottom: 0;
    border-bottom: 4px solid #c9a227;
    text-align: center;
}

.hm-gov-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255,255,255,0.3);
}

.hm-gov-eagle {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hm-gov-badge {
    background: #c9a227;
    color: #1e3a5f;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.15em;
    border-radius: 2px;
    font-family: "Sometype Mono", monospace;
}

.hm-gov-barcode {
    font-family: "Libre Barcode 39", monospace;
    font-size: 28px;
    letter-spacing: -2px;
    opacity: 0.7;
}

.hm-gov-form-header strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hm-gov-subtitle {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.85;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 500px;
    margin: 0 auto 12px;
}

.hm-gov-microprint {
    display: block;
    font-size: 7px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-top: 10px;
}

/* Form fields */
.hm-gov-form .hm-field {
    padding: 15px 25px;
    border-bottom: 1px dashed #ccc;
}

.hm-gov-form .hm-field:last-of-type {
    border-bottom: none;
}

.hm-gov-form .hm-field label {
    display: block;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.hm-gov-form input[type="text"],
.hm-gov-form input[type="email"],
.hm-gov-form textarea,
.hm-gov-form select {
    width: 100%;
    padding: 12px 15px;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    border: 2px solid #d4d4d4;
    border-radius: 0;
    background: #fff;
    transition: all 0.2s ease;
}

.hm-gov-form input:focus,
.hm-gov-form textarea:focus,
.hm-gov-form select:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.hm-gov-form textarea {
    min-height: 120px;
    resize: vertical;
}

.hm-gov-form select {
    cursor: pointer;
}

/* Submit button */
.hm-gov-form input[type="submit"] {
    display: block;
    width: calc(100% - 50px);
    margin: 25px auto;
    padding: 16px 30px;
    background: linear-gradient(180deg, #c9a227 0%, #b8941f 100%);
    color: #1e3a5f;
    border: none;
    font-family: "Sometype Mono", monospace;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.hm-gov-form input[type="submit"]:hover {
    background: linear-gradient(180deg, #d4ac2d 0%, #c9a227 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 162, 39, 0.4);
}

/* Small text footer */
.hm-gov-form .small-text {
    text-align: center;
    font-size: 10px;
    color: #666;
    padding: 15px 25px;
    background: #f5f5f0;
    border-top: 1px solid #ddd;
    margin: 0;
}

/* =========================================================================
   SUBMIT NEWS - Newsroom Intake Style
   ========================================================================= */

.hm-newsroom-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(30, 64, 175, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.hm-newsroom-header {
    background: linear-gradient(135deg, var(--mn-primary, #1e40af) 0%, var(--mn-primary-dark, #1e3a8a) 100%);
    color: #fff;
    padding: 25px 30px;
    position: relative;
    overflow: hidden;
}

.hm-newsroom-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hm-newsroom-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.hm-newsroom-tag {
    background: var(--mn-accent, #f59e0b);
    color: #000;
    padding: 5px 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    border-radius: 20px;
    font-family: "Sometype Mono", monospace;
}

.hm-newsroom-edition {
    font-size: 12px;
    opacity: 0.8;
    font-family: "Sometype Mono", monospace;
    letter-spacing: 0.05em;
}

.hm-newsroom-header strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hm-newsroom-subtitle {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Form body */
.hm-newsroom-form > br {
    display: none;
}

.hm-newsroom-form > *:not(.hm-newsroom-header):not(.small-text):not(input[type="submit"]):not(.wpcf7-response-output) {
    padding: 0 30px;
}

/* Field labels */
.hm-newsroom-form br + br {
    display: block;
    content: "";
    margin: 20px 0;
}

/* Input styling */
.hm-newsroom-form input[type="text"],
.hm-newsroom-form input[type="email"],
.hm-newsroom-form textarea,
.hm-newsroom-form select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    transition: all 0.2s ease;
    margin-top: 6px;
    margin-bottom: 20px;
}

.hm-newsroom-form input:focus,
.hm-newsroom-form textarea:focus,
.hm-newsroom-form select:focus {
    outline: none;
    border-color: var(--mn-primary, #1e40af);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.hm-newsroom-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Radio buttons */
.hm-newsroom-form .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.hm-newsroom-form .wpcf7-list-item {
    margin: 0 !important;
}

.hm-newsroom-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.hm-newsroom-form .wpcf7-list-item label:hover {
    border-color: var(--mn-primary, #1e40af);
    background: #eff6ff;
}

.hm-newsroom-form .wpcf7-list-item input:checked + span {
    color: var(--mn-primary, #1e40af);
    font-weight: 600;
}

/* Checkbox */
.hm-newsroom-form .wpcf7-checkbox {
    margin: 20px 0;
}

.hm-newsroom-form .wpcf7-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #fef3c7;
    border: 2px solid var(--mn-accent, #f59e0b);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
}

/* Submit button */
.hm-newsroom-form input[type="submit"] {
    display: block;
    width: calc(100% - 60px);
    margin: 25px 30px 30px;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--mn-primary, #1e40af) 0%, var(--mn-primary-dark, #1e3a8a) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.hm-newsroom-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

/* File upload */
.hm-newsroom-form input[type="file"],
.hm-gov-form input[type="file"] {
    padding: 12px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 6px;
    margin-bottom: 20px;
}

.hm-newsroom-form input[type="file"]:hover,
.hm-gov-form input[type="file"]:hover {
    border-color: var(--mn-primary, #1e40af);
    background: #eff6ff;
}

/* Small text footer */
.hm-newsroom-form .small-text {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    padding: 20px 30px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    margin: 0;
}

/* =========================================================================
   SHARED FORM RESPONSIVE STYLES
   ========================================================================= */

@media (max-width: 640px) {
    .hm-gov-form,
    .hm-newsroom-form {
        margin: 0 15px;
        border-radius: 8px;
    }
    
    .hm-gov-form-header,
    .hm-newsroom-header {
        padding: 20px;
    }
    
    .hm-gov-header-top {
        flex-direction: column;
        gap: 10px;
    }
    
    .hm-gov-barcode {
        display: none;
    }
    
    .hm-gov-form .hm-field,
    .hm-newsroom-form > *:not(.hm-newsroom-header):not(.small-text) {
        padding: 12px 20px;
    }
    
    .hm-newsroom-form input[type="submit"] {
        width: calc(100% - 40px);
        margin: 20px 20px 25px;
    }
    
    .hm-newsroom-form .wpcf7-radio {
        flex-direction: column;
    }
}

/* =========================================================================
   UPCOMING EVENTS STRIP
   ========================================================================= */

.events-strip {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--mn-border, #e2e8f0);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Header */
.events-strip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--mn-accent, #f59e0b) 0%, var(--mn-accent-dark, #d97706) 100%);
    color: #000;
}

.events-strip-icon {
    font-size: 20px;
}

.events-strip-title {
    font-family: "Sometype Mono", monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.events-strip-view-all {
    margin-left: auto;
    font-family: "Sometype Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    color: #000 !important;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.events-strip-view-all:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Events container - horizontal scroll */
.events-strip-items {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--mn-accent, #f59e0b) #f1f5f9;
}

.events-strip-items::-webkit-scrollbar {
    height: 6px;
}

.events-strip-items::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.events-strip-items::-webkit-scrollbar-thumb {
    background: var(--mn-accent, #f59e0b);
    border-radius: 3px;
}

/* Individual event item */
.events-strip-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    min-width: 280px;
    max-width: 320px;
    border-right: 1px solid var(--mn-border, #e2e8f0);
    text-decoration: none !important;
    color: inherit !important;
    scroll-snap-align: start;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.events-strip-item:last-child {
    border-right: none;
}

.events-strip-item:hover {
    background: #fffbeb;
}

/* Date badge */
.events-strip-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--mn-primary, #1e40af) 0%, var(--mn-primary-dark, #1e3a8a) 100%);
    color: #fff;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.25);
}

.events-strip-month {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.events-strip-day {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    margin-top: 2px;
}

/* Event info */
.events-strip-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.events-strip-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--mn-text-primary, #0f172a);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.events-strip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: var(--mn-text-muted, #64748b);
}

.events-strip-time,
.events-strip-venue {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.events-strip-venue {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty state */
.events-strip--empty {
    text-align: center;
}

.events-strip--empty .events-strip-header {
    justify-content: center;
}

.events-strip-message {
    padding: 30px 20px;
    color: var(--mn-text-muted, #64748b);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .events-strip-item {
        min-width: 250px;
        padding: 14px 16px;
    }
    
    .events-strip-date {
        width: 50px;
        height: 50px;
    }
    
    .events-strip-day {
        font-size: 20px;
    }
    
    .events-strip-header {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .events-strip-view-all {
        display: none;
    }
}

/* ==========================================================================
   CLASSIFIEDS RULES PAGE
   Compact 3-column split view
   ========================================================================== */

.rules-wrapper {
    --rules-primary: #1e40af;
    --rules-primary-dark: #1e3a8a;
    --rules-accent: #f59e0b;
    --rules-accent-light: #fef3c7;
    --rules-bg: #ffffff;
    --rules-panel: #f8fafc;
    --rules-text: #0f172a;
    --rules-muted: #475569;
    --rules-border: #e2e8f0;
    --rules-success: #10b981;
    --rules-danger: #ef4444;

    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Compact header */
.rules-header {
    background: linear-gradient(135deg, var(--rules-primary) 0%, var(--rules-primary-dark) 100%);
    color: #fff;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.rules-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rules-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.rules-badge {
    background: var(--rules-accent);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rules-header-links {
    display: flex;
    gap: 10px;
}

.rules-header-links a {
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.rules-header-links a:hover {
    background: rgba(255,255,255,0.25);
}

/* Main body - wide split */
.rules-body {
    background: var(--rules-bg);
    border: 1px solid var(--rules-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

/* 3-column grid for maximum width usage */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    font-size: 14px;
    line-height: 1.6;
}

/* Section styling */
.rules-section {
    background: var(--rules-panel);
    border: 1px solid var(--rules-border);
    border-radius: 10px;
    padding: 16px 18px;
    border-left: 4px solid var(--rules-border);
}

.rules-section.allowed { border-left-color: var(--rules-success); }
.rules-section.forbidden { border-left-color: var(--rules-danger); }
.rules-section.posting { border-left-color: var(--rules-primary); }
.rules-section.conduct { border-left-color: var(--rules-accent); }
.rules-section.safety { border-left-color: #8b5cf6; }
.rules-section.moderation { border-left-color: #6366f1; }

.rules-section h2 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--rules-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rules-section h2 .icon {
    font-size: 16px;
}

/* Compact lists */
.rules-section ul,
.rules-section ol {
    margin: 0;
    padding-left: 18px;
    color: var(--rules-muted);
}

.rules-section li {
    margin: 0 0 6px;
    font-size: 13px;
}

.rules-section li:last-child {
    margin-bottom: 0;
}

.rules-section li strong {
    color: var(--rules-text);
}

/* Highlight text */
.rules-section .hl {
    background: var(--rules-accent-light);
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
    color: var(--rules-text);
    font-size: 12px;
}

/* Footer - inline */
.rules-footer {
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--rules-panel) 0%, #fff 100%);
    border: 1px solid var(--rules-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.rules-footer-text {
    font-size: 14px;
    color: var(--rules-muted);
}

.rules-footer-text strong {
    color: var(--rules-text);
}

.rules-footer-links {
    display: flex;
    gap: 10px;
}

.rules-footer-links a {
    padding: 8px 16px;
    background: var(--rules-primary);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.rules-footer-links a:hover {
    background: var(--rules-primary-dark);
    transform: translateY(-1px);
}

.rules-footer-links a.secondary {
    background: var(--rules-panel);
    color: var(--rules-primary) !important;
    border: 1px solid var(--rules-border);
}

.rules-footer-links a.secondary:hover {
    background: #fff;
}

/* Tablet - 2 columns */
@media (max-width: 1100px) {
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - single column */
@media (max-width: 700px) {
    .rules-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }

    .rules-header {
        flex-direction: column;
        text-align: center;
        padding: 18px 20px;
    }

    .rules-header-left {
        flex-direction: column;
        gap: 10px;
    }

    .rules-header h1 {
        font-size: 20px;
    }

    .rules-header-links {
        width: 100%;
        justify-content: center;
    }

    .rules-body {
        padding: 18px;
    }

    .rules-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rules-footer {
        flex-direction: column;
        text-align: center;
    }

    .rules-footer-links {
        width: 100%;
        flex-direction: column;
    }

    .rules-footer-links a {
        text-align: center;
    }
}

/* ==========================================================================
   REPORT AD FORM
   Red/warning themed form for reporting classifieds violations
   ========================================================================== */

.hm-report-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Header */
.hm-report-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    padding: 24px 28px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    margin-bottom: 0;
}

.hm-report-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.hm-report-header strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.hm-report-subtitle {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

/* Form body */
.hm-report-form .wpcf7-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(185, 28, 28, 0.1);
}

/* Fields - reusing .hm-field from other forms */
.hm-report-form .hm-field {
    margin-bottom: 20px;
}

.hm-report-form .hm-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 6px;
}

.hm-report-form .hm-field input[type="text"],
.hm-report-form .hm-field input[type="email"],
.hm-report-form .hm-field input[type="url"],
.hm-report-form .hm-field textarea,
.hm-report-form .hm-field select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.hm-report-form .hm-field input:focus,
.hm-report-form .hm-field textarea:focus,
.hm-report-form .hm-field select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background: #fff;
}

.hm-report-form .hm-field textarea {
    min-height: 120px;
    resize: vertical;
}

.hm-report-form .hm-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Field hints */
.hm-report-form .hm-field-hint {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* File upload */
.hm-report-form .hm-field input[type="file"] {
    padding: 10px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}

.hm-report-form .hm-field input[type="file"]:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

/* Submit button */
.hm-report-form input[type="submit"] {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 10px;
}

.hm-report-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.3);
}

.hm-report-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Note at bottom */
.hm-report-note {
    margin-top: 20px;
    padding: 14px 16px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    text-align: center;
}

.hm-report-note a {
    color: #b45309;
    text-decoration: underline;
}

.hm-report-note a:hover {
    color: #92400e;
}

/* Success/error messages */
.hm-report-form .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 14px 16px !important;
    border-radius: 8px !important;
    font-size: 14px;
}

.hm-report-form .wpcf7-mail-sent-ok {
    background: #d1fae5 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
}

.hm-report-form .wpcf7-validation-errors,
.hm-report-form .wpcf7-acceptance-missing {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
}

/* Validation error on fields */
.hm-report-form .wpcf7-not-valid {
    border-color: #ef4444 !important;
}

.hm-report-form .wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

/* Spinner */
.hm-report-form .wpcf7-spinner {
    margin: 10px auto;
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .hm-report-header {
        padding: 20px;
    }
    
    .hm-report-header strong {
        font-size: 18px;
    }
    
    .hm-report-form .wpcf7-form {
        padding: 20px;
    }
}

/* ==========================================================================
   REPORT AD LINK (on single classified ads)
   ========================================================================== */

.advert-report-link {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.advert-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.advert-report-btn:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c !important;
}

.advert-report-icon {
    font-size: 14px;
}

.advert-report-hint {
    font-size: 12px;
    color: #6b7280;
}

.advert-report-hint a {
    color: #6b7280;
    text-decoration: underline;
}

.advert-report-hint a:hover {
    color: #374151;
}

/* Mobile */
@media (max-width: 480px) {
    .advert-report-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ==========================================================================
   COMMUNITY PULSE IMPROVEMENTS
   ========================================================================== */

/* Pulse item footer with time and view link */
.pulse-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--mn-border, #e5e7eb);
}

.pulse-time {
    font-size: 12px;
    color: var(--mn-text-muted, #64748b);
}

.pulse-view-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--mn-primary, #1e40af) !important;
    text-decoration: none !important;
}

.pulse-view-link:hover {
    color: var(--mn-primary-dark, #1e3a8a) !important;
    text-decoration: underline !important;
}

/* Author link */
.pulse-author {
    color: inherit !important;
    text-decoration: none !important;
}

.pulse-author:hover {
    color: var(--mn-primary, #1e40af) !important;
}

/* Pulse text - allow more content */
.pulse-text {
    margin: 10px 0;
    line-height: 1.5;
    color: var(--mn-text-secondary, #475569);
}

/* Media improvements */
.pulse-media {
    margin: 12px 0;
}

.pulse-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.pulse-media-photo {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.pulse-media-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.pulse-media-photo:hover img {
    transform: scale(1.02);
}

.pulse-media-video {
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
}

.pulse-media-video video {
    max-width: 100%;
    border-radius: 8px;
}

/* Avatar link */
.pulse-avatar a {
    display: block;
}

/* Empty state */
.pulse-empty {
    text-align: center;
    padding: 30px;
    color: var(--mn-text-muted, #64748b);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .pulse-photos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pulse-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ==========================================================================
   Fix duplicate spam buttons in BuddyPress activity
   ========================================================================== */

/* Hide duplicate spam buttons - keep only the first one */
.activity-meta .spam-activity ~ .spam-activity,
.activity-state-buttons .spam-activity ~ .spam-activity,
.acomment-options .spam-activity-comment ~ .spam-activity-comment,
.generic-button.spam-activity ~ .generic-button.spam-activity {
    display: none !important;
}

/* ==========================================================================
   Live Cams Page Styles
   ========================================================================== */

/* Page wrapper */
.lc-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Header */
.lc-header {
  margin-bottom: 24px;
}

.lc-title {
  font: 700 32px/1.2 system-ui, -apple-system, sans-serif;
  color: var(--mn-text-primary, #0f172a);
  margin: 0 0 8px;
}

.lc-subtitle {
  font: 400 15px/1.5 system-ui, -apple-system, sans-serif;
  color: var(--mn-text-muted, #64748b);
  margin: 0;
}

/* Controls bar */
.lc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--mn-bg-card, #ffffff);
  border: 1px solid var(--mn-border, #e2e8f0);
  border-radius: 12px;
}

.lc-search {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  padding: 10px 14px;
  border: 1px solid var(--mn-border, #e2e8f0);
  border-radius: 8px;
  font: 400 14px system-ui;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lc-search:focus {
  outline: none;
  border-color: var(--mn-primary-light, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.lc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--mn-border, #e2e8f0);
  background: var(--mn-bg-card, #ffffff);
  border-radius: 8px;
  font: 500 13px system-ui;
  color: var(--mn-text-primary, #0f172a);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lc-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.lc-btn.active {
  background: var(--mn-primary, #1e40af);
  color: white;
  border-color: var(--mn-primary, #1e40af);
}

.lc-btn-primary {
  background: var(--mn-primary, #1e40af);
  color: white;
  border-color: var(--mn-primary, #1e40af);
}

.lc-btn-primary:hover {
  background: var(--mn-primary-light, #3b82f6);
  border-color: var(--mn-primary-light, #3b82f6);
}

.lc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

/* Grid */
.lc-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .lc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .lc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Cards */
.lc-card {
  background: var(--mn-bg-card, #ffffff);
  border: 1px solid var(--mn-border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

.lc-card.hidden {
  display: none;
}

.lc-card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--mn-border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lc-card-title {
  font: 600 15px/1.3 system-ui, -apple-system, sans-serif;
  color: var(--mn-text-primary, #0f172a);
  margin: 0;
}

.lc-card-location {
  font: 500 11px system-ui;
  color: var(--mn-primary, #1e40af);
  background: rgba(30, 64, 175, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* YouTube lazy container */
.lc-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f0f0f;
  cursor: pointer;
}

.lc-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.lc-video-wrap:hover .lc-thumb {
  transform: scale(1.03);
}

.lc-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lc-video-wrap:hover .lc-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.lc-play-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #e11d48;
  margin-left: 4px;
}

.lc-live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #dc2626;
  color: white;
  font: 700 11px system-ui;
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lc-live-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: lc-pulse 1.5s infinite;
}

@keyframes lc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Embedded iframe */
.lc-iframe-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f0f0f;
}

.lc-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Card actions */
.lc-card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--mn-border, #e2e8f0);
  background: #fafbfc;
}

.lc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid var(--mn-border, #e2e8f0);
  background: white;
  border-radius: 6px;
  font: 500 12px system-ui;
  color: var(--mn-text-muted, #64748b);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.lc-action-btn:hover {
  background: var(--mn-primary, #1e40af);
  color: white;
  border-color: var(--mn-primary, #1e40af);
}

.lc-action-btn svg {
  width: 14px;
  height: 14px;
}

/* Modal */
.lc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lc-modal.open {
  display: flex;
}

.lc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.lc-modal-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  background: var(--mn-bg-card, #ffffff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: lc-modal-in 0.25s ease;
}

@keyframes lc-modal-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--mn-border, #e2e8f0);
}

.lc-modal-title {
  font: 600 16px system-ui;
  color: var(--mn-text-primary, #0f172a);
  margin: 0;
}

.lc-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mn-border, #e2e8f0);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  color: var(--mn-text-muted, #64748b);
  transition: all 0.15s ease;
}

.lc-modal-close:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #dc2626;
}

.lc-modal-body {
  background: #000;
}

.lc-modal-body iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Toast notification */
.lc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font: 500 14px system-ui;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 100000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lc-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* No results */
.lc-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--mn-text-muted, #64748b);
}

.lc-no-results svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.lc-no-results h3 {
  font: 600 18px system-ui;
  color: var(--mn-text-primary, #0f172a);
  margin: 0 0 8px;
}

.lc-no-results p {
  margin: 0;
  font-size: 14px;
}

/* Count badge */
.lc-count {
  background: var(--mn-primary, #1e40af);
  color: white;
  font: 600 11px system-ui;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .lc-controls {
    flex-direction: column;
  }
  
  .lc-search {
    max-width: 100%;
  }
  
  .lc-filters {
    margin-left: 0;
    width: 100%;
  }
  
  .lc-card-actions {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Community Guidelines Page Styles
   ========================================================================== */

.community-guidelines {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.guidelines-intro {
  font-size: 17px;
  color: var(--mn-text-muted, #64748b);
  margin-bottom: 32px;
  line-height: 1.6;
}

.community-guidelines h2 {
  font: 700 24px/1.3 system-ui, -apple-system, sans-serif;
  color: var(--mn-text-primary, #0f172a);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--mn-primary, #1e40af);
}

.community-guidelines h3 {
  font: 600 18px system-ui;
  color: var(--mn-text-primary, #0f172a);
  margin: 24px 0 12px;
}

/* Trust earning table */
.trust-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.trust-table th,
.trust-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--mn-border, #e2e8f0);
}

.trust-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--mn-text-primary, #0f172a);
}

.trust-table td:nth-child(2) {
  color: #16a34a;
  font-weight: 600;
}

/* Rank cards */
.rank-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.rank-card {
  background: var(--mn-bg-card, #ffffff);
  border: 1px solid var(--mn-border, #e2e8f0);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0,0,0,0.1);
}

.rank-card h4 {
  font: 700 18px system-ui;
  margin: 0 0 4px;
}

.rank-card .rank-range {
  font: 500 12px system-ui;
  color: var(--mn-text-muted, #64748b);
  margin: 0 0 12px;
}

.rank-card ul {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 14px;
}

.rank-card li {
  margin-bottom: 4px;
}

.rank-card .rank-tip {
  font-size: 13px;
  color: var(--mn-text-muted, #64748b);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--mn-border, #e2e8f0);
  font-style: italic;
}

/* Rank card colors */
.rank-newcomer { border-left: 4px solid #94a3b8; }
.rank-newcomer h4 { color: #64748b; }

.rank-member { border-left: 4px solid #3b82f6; }
.rank-member h4 { color: #2563eb; }

.rank-trusted { border-left: 4px solid #8b5cf6; }
.rank-trusted h4 { color: #7c3aed; }

.rank-veteran { border-left: 4px solid #f59e0b; }
.rank-veteran h4 { color: #d97706; }

/* Rules list */
.rules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.rule {
  background: var(--mn-bg-card, #ffffff);
  border-radius: 12px;
  padding: 20px;
}

.rule h4 {
  font: 600 16px system-ui;
  margin: 0 0 12px;
}

.rule ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.rule-do {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.rule-do h4 {
  color: #16a34a;
}

.rule-dont {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.rule-dont h4 {
  color: #dc2626;
}

.guidelines-footer {
  margin-top: 40px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  text-align: center;
  color: var(--mn-text-muted, #64748b);
  font-size: 14px;
}

/* Moderator callout on guidelines page */
.moderator-callout {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}

.moderator-callout h4 {
  font: 700 20px system-ui;
  color: var(--mn-primary, #1e40af);
  margin: 0 0 12px;
}

.moderator-callout > p {
  margin: 0 0 16px;
  color: var(--mn-text-primary, #0f172a);
}

.mod-apply-btn {
  display: inline-block;
  background: var(--mn-primary, #1e40af);
  color: white !important;
  padding: 12px 28px;
  border-radius: 8px;
  font: 600 15px system-ui;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mod-apply-btn:hover {
  background: var(--mn-primary-light, #3b82f6);
  transform: translateY(-2px);
}

.mod-email {
  font-size: 14px;
  color: var(--mn-text-muted, #64748b) !important;
  margin-top: 12px !important;
}

.mod-rank-note {
  font-size: 13px;
  color: var(--mn-text-muted, #64748b) !important;
  margin-top: 8px !important;
  font-style: italic;
}

/* Moderator application page styles */
.mod-application {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.mod-intro {
  font-size: 17px;
  color: var(--mn-text-muted, #64748b);
  margin-bottom: 24px;
  line-height: 1.6;
}

.mod-application h2 {
  font: 700 22px system-ui;
  color: var(--mn-text-primary, #0f172a);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--mn-primary, #1e40af);
}

.mod-application ul {
  margin: 0 0 16px;
  padding-left: 24px;
  line-height: 1.8;
}

.mod-application .wpcf7 {
  background: #f8fafc;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--mn-border, #e2e8f0);
}

.mod-application .wpcf7 label {
  display: block;
  font: 600 14px system-ui;
  color: var(--mn-text-primary, #0f172a);
  margin-bottom: 20px;
}

.mod-application .wpcf7 input[type="text"],
.mod-application .wpcf7 input[type="email"],
.mod-application .wpcf7 textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid var(--mn-border, #e2e8f0);
  border-radius: 8px;
  font: 400 14px system-ui;
}

.mod-application .wpcf7 textarea {
  min-height: 100px;
  resize: vertical;
}

.mod-application .wpcf7 input[type="submit"] {
  background: var(--mn-primary, #1e40af);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font: 600 15px system-ui;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mod-application .wpcf7 input[type="submit"]:hover {
  background: var(--mn-primary-light, #3b82f6);
}

.mod-alternative {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--mn-text-muted, #64748b);
}

/* ==========================================================================
   Pinned Posts Styles
   ========================================================================== */

/* Pin button in activity stream */
.hm-pin-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  margin-left: 8px;
  border: 1px solid var(--mn-border, #e2e8f0);
  background: white;
  border-radius: 6px;
  font: 500 12px system-ui;
  color: var(--mn-text-muted, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
}

.hm-pin-btn:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

.hm-pin-btn.hm-pinned {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

.hm-pin-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.hm-pin-btn .pin-icon {
  font-size: 14px;
}

.hm-pin-feedback {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  background: #10b981;
  color: white;
  border-radius: 4px;
  font: 500 11px system-ui;
  animation: hmFadeIn 0.2s ease;
}

@keyframes hmFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pinned post indicator in activity feed */
.activity-item.hm-is-pinned {
  border-left: 4px solid #f59e0b !important;
  background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%) !important;
}

.activity-item.hm-is-pinned::before {
  content: "📌 Pinned";
  display: inline-block;
  position: absolute;
  top: 8px;
  right: 12px;
  background: #f59e0b;
  color: white;
  font: 700 10px system-ui;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Pinned posts in community pulse */
.pulse-items .activity-item.pulse-pinned {
  border: 2px solid #f59e0b !important;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%) !important;
  position: relative;
}

.pulse-items .activity-item.pulse-pinned::after {
  content: "📌 PINNED";
  position: absolute;
  top: -10px;
  left: 16px;
  background: #f59e0b;
  color: white;
  font: 700 10px system-ui;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Homepage Enhancement Widgets - Phase 1
   ========================================================================== */

/* --------------------------------------------------------------------------
   Community Stats Bar
   -------------------------------------------------------------------------- */
.hm-stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border-radius: 12px;
  margin-bottom: 24px;
}

.hm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  min-width: 130px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hm-stat:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.25);
}

.hm-stat-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.hm-stat-number {
  font: 700 28px system-ui;
  color: white;
  line-height: 1;
}

.hm-stat-label {
  font: 500 12px system-ui;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .hm-stats-bar {
    gap: 8px;
    padding: 16px 12px;
  }
  .hm-stat {
    padding: 12px 16px;
    min-width: calc(50% - 8px);
  }
  .hm-stat-number {
    font-size: 24px;
  }
}

/* --------------------------------------------------------------------------
   Quick Actions - Horizontal Pill Bar
   -------------------------------------------------------------------------- */
.hm-quick-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--hm-bg-elevated);
  border: 1px solid var(--hm-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.hm-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--hm-bg-subtle);
  border: 1px solid var(--hm-border);
  border-radius: var(--radius-full);
  text-decoration: none !important;
  color: var(--hm-text) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.hm-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hm-action-btn:active {
  transform: translateY(0);
}

/* Action-specific hover colors */
.hm-action-post:hover {
  border-color: var(--hm-accent);
  background: var(--hm-accent-light);
  color: var(--hm-accent-hover) !important;
}
.hm-action-ad:hover {
  border-color: var(--hm-primary);
  background: var(--hm-primary-light);
  color: var(--hm-primary-hover) !important;
}
.hm-action-event:hover {
  border-color: var(--hm-success);
  background: var(--hm-success-light);
  color: var(--hm-success) !important;
}
.hm-action-forum:hover {
  border-color: var(--hm-accent);
  background: var(--hm-accent-light);
  color: var(--hm-accent-hover) !important;
}
.hm-action-lost:hover {
  border-color: var(--hm-danger);
  background: var(--hm-danger-light);
  color: var(--hm-danger) !important;
}
.hm-action-storm:hover {
  border-color: #7C3AED;
  background: #EDE9FE;
  color: #5B21B6 !important;
}
.hm-action-chat:hover {
  border-color: var(--hm-success);
  background: var(--hm-success-light);
  color: var(--hm-success) !important;
}
.hm-action-biz:hover {
  border-color: #7C3AED;
  background: #EDE9FE;
  color: #5B21B6 !important;
}
.hm-action-join:hover {
  border-color: #DB2777;
  background: #FCE7F3;
  color: #9D174D !important;
}

.hm-action-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.hm-action-text {
  white-space: nowrap;
}

/* Mobile - horizontal scroll */
@media (max-width: 700px) {
  .hm-quick-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: var(--space-3) var(--space-4);
    gap: var(--space-2);
  }
  .hm-quick-actions::-webkit-scrollbar {
    display: none;
  }
  .hm-action-btn {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-3);
    font-size: 0.8rem;
  }
  .hm-action-icon {
    font-size: 1.1rem;
  }
}

/* --------------------------------------------------------------------------
   Recent Classifieds Strip
   -------------------------------------------------------------------------- */
.hm-classifieds-strip {
  background: var(--mn-bg-card, #ffffff);
  border: 1px solid var(--mn-border, #e2e8f0);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.hm-strip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mn-border, #e2e8f0);
}

.hm-strip-icon {
  font-size: 24px;
}

.hm-strip-title {
  font: 700 18px system-ui;
  color: var(--mn-text-primary, #0f172a);
  flex: 1;
}

.hm-strip-link {
  font: 600 13px system-ui;
  color: var(--mn-primary, #1e40af) !important;
  text-decoration: none !important;
  padding: 6px 12px;
  background: rgba(30, 64, 175, 0.08);
  border-radius: 6px;
  transition: background 0.2s ease;
}

.hm-strip-link:hover {
  background: rgba(30, 64, 175, 0.15);
}

.hm-strip-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--mn-text-muted, #64748b);
}

.hm-strip-empty a {
  color: var(--mn-primary, #1e40af);
  font-weight: 600;
}

.hm-classifieds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.hm-classified-card {
  display: block;
  background: #f8fafc;
  border: 1px solid var(--mn-border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hm-classified-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.12);
}

.hm-classified-img {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: #f1f5f9;
}

.hm-classified-info {
  padding: 12px;
}

.hm-classified-title {
  font: 600 14px/1.3 system-ui;
  color: var(--mn-text-primary, #0f172a);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-classified-price {
  font: 700 15px system-ui;
  color: #16a34a;
}

.hm-classified-price.hm-price-contact {
  color: var(--mn-text-muted, #64748b);
  font-weight: 500;
}

@media (max-width: 600px) {
  .hm-classifieds-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hm-classified-img {
    height: 100px;
  }
  .hm-classified-info {
    padding: 10px;
  }
  .hm-classified-title {
    font-size: 13px;
  }
}
.hm-action-forum:hover { border-color: #0ea5e9; background: #f0f9ff; }
.hm-action-lost:hover { border-color: #e74c3c; background: #fef2f2; }
.hm-action-storm:hover { border-color: #8e44ad; background: #f5f3ff; }
.hm-action-chat:hover { border-color: #22c55e; background: #f0fdf4; }

/* --------------------------------------------------------------------------
   Community Stats Footer - Warm, Conversational
   -------------------------------------------------------------------------- */
.hm-stats-mini {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--hm-bg-elevated);
  border: 1px solid var(--hm-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--hm-text-secondary);
  box-shadow: var(--shadow-sm);
}

.hm-stat-mini {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  white-space: nowrap;
}

.hm-stat-mini strong {
  color: var(--hm-text);
  font-weight: 700;
}

/* Add subtle dividers between stats */
.hm-stat-mini:not(:last-child)::after {
  content: '·';
  margin-left: var(--space-3);
  color: var(--hm-border-strong);
}

@media (max-width: 600px) {
  .hm-stats-mini {
    gap: var(--space-2) var(--space-3);
    padding: var(--space-3) var(--space-4);
    font-size: 0.8rem;
  }
  .hm-stat-mini:not(:last-child)::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Column Alignment & Headers
   -------------------------------------------------------------------------- */

/* Ensure all columns in master layout align at top */
.hm-master-layout {
  align-items: flex-start !important;
}

/* Add section headers to columns */
.hm-column,
.hm-column-main {
  position: relative;
}

.hm-column::before,
.hm-column-main::before {
  content: "";
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.hm-column::before {
  content: "📰 OFFICIAL NEWS";
  color: var(--mn-primary);
  border-bottom: 2px solid var(--mn-primary);
}

.hm-column-main::before {
  content: "💬 COMMUNITY TALK";
  color: var(--mn-accent-dark);
  border-bottom: 2px solid var(--mn-accent);
}

/* Make pulse-items container fill the column properly */
.hm-column-main .pulse-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Match activity item styling to RSS items */
.hm-column-main .activity-item,
.pulse-items .activity-item {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 0;
}

/* Desktop: Match card heights between columns */
@media (min-width: 992px) {
  .hm-column-main .activity-item {
    min-height: 180px;
  }

  /* Ensure columns have same internal structure */
  .hm-column,
  .hm-column-main {
    display: flex;
    flex-direction: column;
  }

  .hm-column > .feedzy-rss,
  .hm-column-main > .pulse-items {
    flex: 1;
  }
}

/* ==========================================================================
   EVENTS LIST - Clean Editorial Style
   ========================================================================== */

.events-list {
  background: var(--hm-bg-elevated);
  border: 1px solid var(--hm-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.events-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--hm-bg-subtle);
  border-bottom: 1px solid var(--hm-border);
}

.events-list-icon {
  font-size: 1.25rem;
}

.events-list-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--hm-text);
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.events-list-view-all {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hm-primary) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--duration-fast) var(--ease-out);
}

.events-list-view-all:hover {
  gap: var(--space-2);
  color: var(--hm-primary-hover) !important;
}

.events-list-view-all::after {
  content: '→';
  transition: transform var(--duration-fast) var(--ease-out);
}

.events-list-view-all:hover::after {
  transform: translateX(2px);
}

.events-list-items {
  display: flex;
  flex-direction: column;
}

.events-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--hm-border);
  text-decoration: none !important;
  color: inherit !important;
  transition:
    background var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.events-list-item:last-child {
  border-bottom: none;
}

.events-list-item:hover {
  background: var(--hm-primary-light);
}

.events-list-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--hm-primary);
  color: var(--hm-text-inverse);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.events-list-month {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.events-list-day {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

/* Time badge for today's events */
.events-list-time-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: var(--space-2) var(--space-3);
  background: var(--hm-accent);
  color: var(--hm-text-inverse);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.events-list-time-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.events-list-venue-text {
  font-size: 12px;
  color: var(--mn-text-muted, #64748b);
}

.events-list-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.events-list-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--mn-text-primary, #0f172a);
  line-height: 1.3;
}

.events-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--mn-text-muted, #64748b);
}

.events-list-time,
.events-list-venue {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.events-list--empty .events-list-header {
  justify-content: center;
}

.events-list-message {
  padding: 30px 20px;
  text-align: center;
  color: var(--mn-text-muted, #64748b);
}

/* ==========================================================================
   CLASSIFIEDS LIST - Clean Editorial Style
   ========================================================================== */

.hm-classifieds-scroll {
  background: var(--hm-bg-elevated);
  border: 1px solid var(--hm-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.hm-classifieds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--hm-bg-subtle);
  border-bottom: 1px solid var(--hm-border);
}

.hm-classifieds-icon {
  font-size: 1.25rem;
}

.hm-classifieds-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--hm-text);
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hm-classifieds-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hm-primary) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--duration-fast) var(--ease-out);
}

.hm-classifieds-link:hover {
  gap: var(--space-2);
  color: var(--hm-primary-hover) !important;
}

.hm-classifieds-link::after {
  content: '→';
  transition: transform var(--duration-fast) var(--ease-out);
}

.hm-classifieds-link:hover::after {
  transform: translateX(2px);
}

.hm-classifieds-items {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hm-primary) var(--hm-bg-subtle);
}

.hm-classifieds-items::-webkit-scrollbar {
  width: 6px;
}

.hm-classifieds-items::-webkit-scrollbar-track {
  background: var(--hm-bg-subtle);
}

.hm-classifieds-items::-webkit-scrollbar-thumb {
  background: var(--hm-primary);
  border-radius: 3px;
}

/* List item with thumbnail */
.hm-classifieds-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--hm-border);
  text-decoration: none !important;
  transition:
    background var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.hm-classifieds-item:last-child {
  border-bottom: none;
}

.hm-classifieds-item:hover {
  background: var(--hm-primary-light);
}

.hm-classifieds-item-thumb {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  background-color: var(--hm-bg-subtle);
  border: 1px solid var(--hm-border);
  transition: transform var(--duration-fast) var(--ease-out);
}

.hm-classifieds-item:hover .hm-classifieds-item-thumb {
  transform: scale(1.05);
}

.hm-classifieds-item-info {
  flex: 1;
  min-width: 0;
}

.hm-classifieds-item-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hm-text);
  line-height: 1.35;
  margin: 0 0 var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-classifieds-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--hm-text-muted);
}

.hm-classifieds-item-price {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  background: var(--hm-primary);
  color: var(--hm-text-inverse);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.hm-classifieds-item-price.hm-price-free {
  background: var(--hm-success);
}

.hm-classifieds-category {
  background: var(--hm-bg-muted);
  color: var(--hm-text-secondary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 500;
}

.hm-classifieds-location {
  font-size: 11px;
}

.hm-classifieds-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--mn-text-muted, #64748b);
}

.hm-classifieds-empty a {
  color: #8b5cf6;
  font-weight: 600;
}

/* Legacy card styles (keep for backwards compatibility) */
.hm-classifieds-card {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  max-width: 180px;
  border-right: 1px solid var(--mn-border, #e2e8f0);
  text-decoration: none !important;
  scroll-snap-align: start;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.hm-classifieds-card:hover {
  background: #f5f3ff;
}

.hm-classifieds-img {
  height: 100px;
  background-size: cover;
  background-position: center;
  background-color: #f1f5f9;
}

.hm-classifieds-info {
  padding: 12px;
}

.hm-classifieds-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--mn-text-primary, #0f172a);
  line-height: 1.3;
  margin: 0 0 6px;
}

.hm-classifieds-price {
  font-size: 14px;
  font-weight: 700;
  color: #16a34a;
}

/* ==========================================================================
   EVENTS + CLASSIFIEDS SIDE BY SIDE LAYOUT
   ========================================================================== */

.hm-events-classifieds-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  align-items: stretch !important;
}

/* Force Elementor inner containers to be 50% width */
.hm-events-classifieds-row > .elementor-element,
.hm-events-classifieds-row > .e-con {
  flex: 1 1 50% !important;
  max-width: 50% !important;
  width: 50% !important;
}

/* Make both panels match height */
.hm-events-classifieds-row .events-list,
.hm-events-classifieds-row .hm-classifieds-scroll {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hm-events-classifieds-row .events-list-items,
.hm-events-classifieds-row .hm-classifieds-items {
  flex: 1;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
}

/* Change classifieds to vertical scroll to match events */
.hm-events-classifieds-row .hm-classifieds-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: hidden;
  padding: 0 10px 10px 10px;
}

.hm-events-classifieds-row .hm-classifieds-card {
  min-width: unset;
  width: 100%;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hm-events-classifieds-row {
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }

  .hm-events-classifieds-row > .elementor-element,
  .hm-events-classifieds-row > .e-con {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   PHASE 2: MICRO-INTERACTIONS & POLISH
   ========================================================================== */

/* --------------------------------------------------------------------------
   Staggered Page Load Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply staggered animations to homepage sections */
.weather-bar {
  animation: fadeInUp 0.5s var(--ease-out) both;
}

.hm-quick-actions {
  animation: fadeInUp 0.5s var(--ease-out) 0.1s both;
}

.hm-events-classifieds-row {
  animation: fadeInUp 0.5s var(--ease-out) 0.2s both;
}

.hm-master-layout {
  animation: fadeInUp 0.5s var(--ease-out) 0.3s both;
}

.hm-stats-mini {
  animation: fadeIn 0.5s var(--ease-out) 0.4s both;
}

/* Stagger items within lists */
.events-list-item {
  animation: slideInRight 0.4s var(--ease-out) both;
}

.events-list-item:nth-child(1) { animation-delay: 0.05s; }
.events-list-item:nth-child(2) { animation-delay: 0.1s; }
.events-list-item:nth-child(3) { animation-delay: 0.15s; }
.events-list-item:nth-child(4) { animation-delay: 0.2s; }
.events-list-item:nth-child(5) { animation-delay: 0.25s; }

.hm-classifieds-item {
  animation: slideInRight 0.4s var(--ease-out) both;
}

.hm-classifieds-item:nth-child(1) { animation-delay: 0.05s; }
.hm-classifieds-item:nth-child(2) { animation-delay: 0.1s; }
.hm-classifieds-item:nth-child(3) { animation-delay: 0.15s; }
.hm-classifieds-item:nth-child(4) { animation-delay: 0.2s; }
.hm-classifieds-item:nth-child(5) { animation-delay: 0.25s; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Enhanced Image Hover Effects
   -------------------------------------------------------------------------- */

/* RSS feed images */
.hm-master-layout .rss_image,
.feedzy-rss .rss_image {
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.hm-master-layout .rss_image img,
.hm-master-layout .rss_image span,
.feedzy-rss .rss_image img,
.feedzy-rss .rss_image span {
  transition: transform 0.5s var(--ease-out), filter 0.3s var(--ease-out) !important;
}

.hm-master-layout .rss_item:hover .rss_image img,
.hm-master-layout .rss_item:hover .rss_image span,
.feedzy-rss .rss_item:hover .rss_image img,
.feedzy-rss .rss_item:hover .rss_image span {
  transform: scale(1.08) !important;
}

/* Subtle overlay on image hover */
.hm-master-layout .rss_image::after,
.feedzy-rss .rss_image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(28, 25, 23, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}

.hm-master-layout .rss_item:hover .rss_image::after,
.feedzy-rss .rss_item:hover .rss_image::after {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Button & Link Micro-interactions
   -------------------------------------------------------------------------- */

/* Animated underline for links */
.hm-section-link,
.events-list-view-all,
.hm-classifieds-link {
  position: relative;
}

.hm-section-link::before,
.events-list-view-all::before,
.hm-classifieds-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s var(--ease-out);
}

.hm-section-link:hover::before,
.events-list-view-all:hover::before,
.hm-classifieds-link:hover::before {
  width: 100%;
}

/* Quick action button press effect */
.hm-action-btn:active {
  transform: scale(0.97) !important;
}

/* --------------------------------------------------------------------------
   Card Content Refinements
   -------------------------------------------------------------------------- */

/* Better spacing in RSS cards */
.hm-master-layout .rss_item .rss_content_wrap,
.feedzy-rss .rss_item .rss_content_wrap {
  padding: var(--space-4) !important;
}

.hm-master-layout .rss_item .rss_content,
.feedzy-rss .rss_item .rss_content {
  padding: 0 !important;
}

/* Title link hover underline */
.hm-master-layout .rss_item .title a,
.feedzy-rss .rss_item .title a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: 
    color var(--duration-fast) var(--ease-out),
    text-decoration-color var(--duration-fast) var(--ease-out) !important;
}

.hm-master-layout .rss_item .title a:hover,
.feedzy-rss .rss_item .title a:hover {
  text-decoration-color: var(--hm-primary) !important;
}

/* Meta info styling */
.hm-master-layout .rss_item small,
.feedzy-rss .rss_item small {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3) !important;
  padding-top: var(--space-3) !important;
  border-top: 1px solid var(--hm-border) !important;
}

/* Source badge styling */
.feedzy-rss .rss_item .rss_source {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--hm-bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--hm-text-muted);
}

/* --------------------------------------------------------------------------
   Activity/Pulse Card Refinements
   -------------------------------------------------------------------------- */

.pulse-items .activity-item {
  padding: var(--space-4) !important;
  border-radius: var(--radius-lg) !important;
}

.pulse-items .pulse-header {
  margin-bottom: var(--space-3) !important;
  padding-bottom: var(--space-3) !important;
  border-bottom: 1px solid var(--hm-border) !important;
}

.pulse-items .pulse-content {
  font-size: 0.9rem;
  line-height: 1.6;
}

.pulse-items .pulse-media {
  margin-top: var(--space-3);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pulse-items .pulse-media img {
  transition: transform 0.4s var(--ease-out);
}

.pulse-items .activity-item:hover .pulse-media img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   Empty State Styling
   -------------------------------------------------------------------------- */

.events-list-message,
.hm-classifieds-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-5);
  text-align: center;
  color: var(--hm-text-muted);
}

.events-list-message::before,
.hm-classifieds-empty::before {
  content: '📭';
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
  opacity: 0.5;
}

.events-list-message a,
.hm-classifieds-empty a {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: var(--hm-primary);
  color: var(--hm-text-inverse) !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: 
    background var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.events-list-message a:hover,
.hm-classifieds-empty a:hover {
  background: var(--hm-primary-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Scrollbar Styling (Webkit)
   -------------------------------------------------------------------------- */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--hm-bg-subtle);
}

::-webkit-scrollbar-thumb {
  background: var(--hm-border-strong);
  border-radius: 5px;
  border: 2px solid var(--hm-bg-subtle);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--hm-text-muted);
}

/* --------------------------------------------------------------------------
   Mobile Touch Improvements
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  /* Larger touch targets */
  .hm-action-btn {
    min-height: 44px;
  }
  
  .events-list-item,
  .hm-classifieds-item {
    min-height: 60px;
  }
  
  /* Remove hover effects on touch devices */
  @media (hover: none) {
    .hm-master-layout .rss_item:hover,
    .feedzy-rss .rss_item:hover {
      transform: none !important;
    }
    
    .hm-action-btn:hover {
      transform: none !important;
      box-shadow: none !important;
    }
  }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */

@media print {
  .weather-bar,
  .hm-quick-actions,
  .hm-stats-mini {
    display: none !important;
  }
  
  .hm-master-layout .rss_item,
  .events-list-item,
  .hm-classifieds-item {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
  
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Subtle Background Texture (Optional - adds warmth)
   -------------------------------------------------------------------------- */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  z-index: -1;
}

/* ==========================================================================
   PHASE 3: ADVANCED EFFECTS & FINAL POLISH
   ========================================================================== */

/* --------------------------------------------------------------------------
   Scroll-Triggered Reveal Animations
   -------------------------------------------------------------------------- */

/* Elements that will be revealed on scroll */
.hm-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.hm-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.hm-reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: 
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.hm-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.hm-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.hm-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.hm-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.hm-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   Header & Navigation Refinements
   -------------------------------------------------------------------------- */

/* Site header - sticky with blur */
.site-header,
#masthead {
  background: rgba(253, 252, 250, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hm-border) !important;
  transition: 
    background 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled,
#masthead.scrolled {
  box-shadow: var(--shadow-md);
}

/* Navigation links */
.main-navigation a,
.primary-menu a,
.navbar-nav a {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  color: var(--hm-text) !important;
  text-decoration: none !important;
  padding: var(--space-2) var(--space-3) !important;
  border-radius: var(--radius-md);
  transition: 
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out) !important;
}

.main-navigation a:hover,
.primary-menu a:hover,
.navbar-nav a:hover {
  color: var(--hm-primary) !important;
  background: var(--hm-primary-light) !important;
}

/* Active nav item */
.main-navigation .current-menu-item > a,
.primary-menu .current-menu-item > a {
  color: var(--hm-primary) !important;
  background: var(--hm-primary-light) !important;
}

/* --------------------------------------------------------------------------
   Form Styling Overhaul
   -------------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  padding: var(--space-3) var(--space-4) !important;
  background: var(--hm-bg-elevated) !important;
  border: 1px solid var(--hm-border) !important;
  border-radius: var(--radius-md) !important;
  color: var(--hm-text) !important;
  transition: 
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--hm-primary) !important;
  box-shadow: var(--shadow-glow) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--hm-text-muted) !important;
}

/* Labels */
label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--hm-text);
  margin-bottom: var(--space-2);
  display: block;
}

/* --------------------------------------------------------------------------
   Button System
   -------------------------------------------------------------------------- */

button,
.button,
input[type="submit"],
input[type="button"],
.btn,
.wp-block-button__link {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: var(--space-3) var(--space-5) !important;
  background: var(--hm-primary) !important;
  color: var(--hm-text-inverse) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer !important;
  transition: 
    background var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out) !important;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover,
.wp-block-button__link:hover {
  background: var(--hm-primary-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
}

button:active,
.button:active,
input[type="submit"]:active,
.btn:active {
  transform: translateY(0) !important;
}

/* Secondary button style */
.button-secondary,
.btn-secondary,
.btn-outline {
  background: transparent !important;
  color: var(--hm-primary) !important;
  border: 2px solid var(--hm-primary) !important;
}

.button-secondary:hover,
.btn-secondary:hover,
.btn-outline:hover {
  background: var(--hm-primary) !important;
  color: var(--hm-text-inverse) !important;
}

/* --------------------------------------------------------------------------
   Badge & Tag System
   -------------------------------------------------------------------------- */

.hm-badge,
.tag,
.category-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--hm-bg-subtle);
  color: var(--hm-text-secondary);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: 
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.hm-badge:hover,
.tag:hover {
  background: var(--hm-primary-light);
  color: var(--hm-primary);
}

/* Badge variants */
.hm-badge--primary {
  background: var(--hm-primary);
  color: var(--hm-text-inverse);
}

.hm-badge--success {
  background: var(--hm-success-light);
  color: var(--hm-success);
}

.hm-badge--warning {
  background: var(--hm-warning-light);
  color: var(--hm-warning);
}

.hm-badge--danger {
  background: var(--hm-danger-light);
  color: var(--hm-danger);
}

/* --------------------------------------------------------------------------
   Tooltip System
   -------------------------------------------------------------------------- */

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: var(--space-2) var(--space-3);
  background: var(--hm-text);
  color: var(--hm-text-inverse);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transition: 
    opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  pointer-events: none;
  z-index: 1000;
}

[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--hm-text);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-fast) var(--ease-out);
  z-index: 1000;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   Loading Skeleton Improvements
   -------------------------------------------------------------------------- */

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton,
.loading-placeholder {
  background: linear-gradient(
    90deg,
    var(--hm-bg-subtle) 25%,
    var(--hm-bg-muted) 50%,
    var(--hm-bg-subtle) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-2);
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-image {
  height: 200px;
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   Avatar & User Elements
   -------------------------------------------------------------------------- */

.avatar,
.user-avatar,
.bp-avatar img {
  border-radius: var(--radius-full) !important;
  border: 2px solid var(--hm-bg-elevated) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: 
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out) !important;
}

.avatar:hover,
.user-avatar:hover,
.bp-avatar img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md) !important;
}

/* Online indicator */
.user-online::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--hm-success);
  border: 2px solid var(--hm-bg-elevated);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Notification & Alert Styling
   -------------------------------------------------------------------------- */

.notice,
.alert,
.message,
.bp-feedback {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid;
  animation: fadeInUp 0.3s var(--ease-out);
}

.notice--success,
.alert-success,
.bp-feedback.success {
  background: var(--hm-success-light);
  border-color: var(--hm-success);
  color: var(--hm-success);
}

.notice--warning,
.alert-warning,
.bp-feedback.warning {
  background: var(--hm-warning-light);
  border-color: var(--hm-warning);
  color: var(--hm-warning);
}

.notice--error,
.alert-danger,
.bp-feedback.error {
  background: var(--hm-danger-light);
  border-color: var(--hm-danger);
  color: var(--hm-danger);
}

.notice--info,
.alert-info,
.bp-feedback.info {
  background: var(--hm-accent-light);
  border-color: var(--hm-accent);
  color: var(--hm-accent);
}

/* --------------------------------------------------------------------------
   Modal & Overlay Styling
   -------------------------------------------------------------------------- */

.modal-overlay,
.popup-overlay {
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(4px);
}

.modal,
.popup {
  background: var(--hm-bg-elevated);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 0.3s var(--ease-out);
}

.modal-header,
.popup-header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--hm-border);
}

.modal-header h2,
.popup-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hm-text);
  margin: 0;
}

.modal-body,
.popup-body {
  padding: var(--space-5);
}

.modal-footer,
.popup-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--hm-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   Footer Styling
   -------------------------------------------------------------------------- */

.site-footer,
#colophon {
  background: var(--hm-text) !important;
  color: var(--hm-text-inverse) !important;
  padding: var(--space-7) 0 !important;
  margin-top: var(--space-8);
}

.site-footer a {
  color: var(--hm-primary-light) !important;
}

.site-footer a:hover {
  color: var(--hm-primary) !important;
  text-decoration: underline;
}

.site-footer h3,
.site-footer h4 {
  font-family: var(--font-display);
  color: var(--hm-text-inverse) !important;
  margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   Floating Action Button (Optional)
   -------------------------------------------------------------------------- */

.hm-fab {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 56px;
  height: 56px;
  background: var(--hm-primary);
  color: var(--hm-text-inverse);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: 
    transform var(--duration-fast) var(--ease-spring),
    box-shadow var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
  z-index: 1000;
}

.hm-fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
  background: var(--hm-primary-hover);
}

.hm-fab:active {
  transform: scale(0.95);
}

/* Hide FAB on small screens */
@media (max-width: 768px) {
  .hm-fab {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Final Typography Polish
   -------------------------------------------------------------------------- */

/* Blockquotes */
blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--hm-text-secondary);
  padding: var(--space-5);
  margin: var(--space-5) 0;
  border-left: 4px solid var(--hm-primary);
  background: var(--hm-bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  color: var(--hm-text-muted);
}

/* Code blocks */
code,
pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--hm-bg-subtle);
  border-radius: var(--radius-sm);
}

code {
  padding: 0.15em 0.4em;
  color: var(--hm-primary);
}

pre {
  padding: var(--space-4);
  overflow-x: auto;
  border: 1px solid var(--hm-border);
}

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

/* Horizontal rules */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--hm-border-strong),
    transparent
  );
  margin: var(--space-6) 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

th {
  font-weight: 600;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--hm-bg-subtle);
  border-bottom: 2px solid var(--hm-border-strong);
}

td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--hm-border);
}

tr:hover td {
  background: var(--hm-bg-subtle);
}
