/**
 * Najibul Q&A Homepage — App-Like Feed Stylesheet (Enterprise v2.0.0)
 *
 * ⚡ Enterprise-grade homepage feed design
 * ⚡ Scoped to .qa-app-container (zero global pollution)
 * ⚡ App-like UI: header + live clock + CTA + filter tabs + arrow nav + feed
 * ⚡ 5 filter tabs (All / Unanswered / Answered / Trending / Top Voted)
 * ⚡ Q&A card with answer count + views + status badge + difficulty badge
 * ⚡ Compact card layout with stats column
 * ⚡ Load more button + spinner + end message + empty state
 * ⚡ Core Web Vitals friendly (no layout shifts)
 * ⚡ Dark mode aware (blue/cyan accent)
 * ⚡ Reduced motion support
 * ⚡ High contrast mode
 * ⚡ Print styles
 * ⚡ Accessibility: focus-visible states
 * ⚡ Safe typography (no overflow, hyphens)
 * ⚡ Responsive: 3-col → 2-col → 1-col breakpoints
 * ⚡ Blue/Cyan color palette matching Q&A identity
 *
 * ⭐ NEW v2.0.0 — ENTERPRISE UPGRADES:
 * ─────────────────────────────────────────────────────────────
 *   1. 🖥️ DESKTOP LAYOUT FIX (Critical)
 *      • No title overflow on any viewport
 *      • min-width: 0 on all flex/grid children
 *      • word-wrap: break-word + overflow-wrap: anywhere
 *      • Prevents layout thrashing on wide screens
 *      • Tested at 1920 / 1440 / 1024 / 782 / 600 / 480 px
 *
 *   2. ⭐ AUTHOR REPUTATION BADGE
 *      • Trusted / Standard / Restricted / Blocked tiers
 *      • Color-coded inline badge next to author
 *      • Compact size (icon-only on mobile)
 *
 *   3. 🆔 GLOBAL QID BADGE
 *      • Small monospace badge on each card
 *      • Clickable → copy
 *      • Cross-language indicator
 *
 *   4. 📊 SEARCH BOX (App-like)
 *      • Inline search input in header
 *      • Debounced fetch, results replace feed
 *      • Keyboard shortcut: / or Cmd+K to focus
 *
 *   5. 🎯 SORT DROPDOWN (Client-side)
 *      • Sort by: Newest / Trending / Most Answered / Most Viewed
 *      • Persists per-session in localStorage
 *
 *   6. 🔖 SAVE/FEED BOOKMARK (Optional)
 *      • Star toggle on each card
 *      • Local bookmark (sessionStorage)
 *
 *   7. 📱 BETTER MOBILE UX
 *      • Sticky filter tabs at top on mobile
 *      • Swipe-friendly card stats
 *      • Large tap targets (48px minimum)
 *
 *   8. ♿ ACCESSIBILITY
 *      • aria-live for feed updates
 *      • Focus-visible outlines everywhere
 *      • Skip-to-feed link
 *
 *   9. 🎬 SKELETON LOADERS
 *      • Animated placeholder during AJAX load
 *      • Zero layout shift (matches card size)
 *
 *   10. 🖨️ PRINT OPTIMIZATIONS
 *       • Hide interactive controls
 *       • Single-column, expanded details
 *       • Preserves status badges
 *
 * Location: /wp-content/plugins/najibul-post-type/QA/assets/css/qa-homepage.css
 *
 * @package NajibulPT\QA
 * @version 2.0.0
 */

/* ============================================
   ROOT VARIABLES — Scoped to Q&A homepage
   ============================================ */

.qa-app-container {
    /* Brand colors — Blue/Cyan palette */
    --qa-hp-primary: #2563eb;
    --qa-hp-primary-dark: #1d4ed8;
    --qa-hp-primary-light: #dbeafe;
    --qa-hp-primary-pale: #eff6ff;
    --qa-hp-secondary: #0891b2;
    --qa-hp-accent: #8b5cf6;

    /* Status colors */
    --qa-hp-open: #1e40af;
    --qa-hp-open-bg: #dbeafe;
    --qa-hp-answered: #166534;
    --qa-hp-answered-bg: #dcfce7;
    --qa-hp-closed: #475569;
    --qa-hp-closed-bg: #f1f5f9;

    /* Difficulty colors */
    --qa-hp-easy: #16a34a;
    --qa-hp-easy-bg: #dcfce7;
    --qa-hp-easy-text: #166534;
    --qa-hp-medium: #f59e0b;
    --qa-hp-medium-bg: #fef3c7;
    --qa-hp-medium-text: #92400e;
    --qa-hp-hard: #dc2626;
    --qa-hp-hard-bg: #fee2e2;
    --qa-hp-hard-text: #991b1b;

    /* ⭐ Reputation tier colors (v2.0.0) */
    --qa-hp-rep-trusted-bg: #dcfce7;
    --qa-hp-rep-trusted-text: #166534;
    --qa-hp-rep-standard-bg: #fef3c7;
    --qa-hp-rep-standard-text: #92400e;
    --qa-hp-rep-restricted-bg: #ffedd5;
    --qa-hp-rep-restricted-text: #9a3412;
    --qa-hp-rep-blocked-bg: #fee2e2;
    --qa-hp-rep-blocked-text: #991b1b;

    /* Text */
    --qa-hp-text: #0f172a;
    --qa-hp-text-subtle: #1e293b;
    --qa-hp-text-muted: #64748b;
    --qa-hp-text-faint: #94a3b8;

    /* Surfaces */
    --qa-hp-bg: #f5f7fa;
    --qa-hp-card: #ffffff;
    --qa-hp-header-bg: rgba(255, 255, 255, 0.92);
    --qa-hp-nav-bg: rgba(255, 255, 255, 0.8);
    --qa-hp-end-bg: rgba(255, 255, 255, 0.85);
    --qa-hp-border: #e2e8f0;
    --qa-hp-border-soft: #f1f5f9;

    /* Shadows */
    --qa-hp-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --qa-hp-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --qa-hp-shadow-lg: 0 12px 28px -8px rgba(37, 99, 235, 0.15);

    /* Radii */
    --qa-hp-radius-sm: 10px;
    --qa-hp-radius-md: 14px;
    --qa-hp-radius-lg: 16px;
    --qa-hp-radius-pill: 20px;

    /* Motion */
    --qa-hp-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, system-ui, sans-serif;
    background: var(--qa-hp-bg);
    color: var(--qa-hp-text);
    min-height: 100vh;
    box-sizing: border-box;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.qa-app-container *,
.qa-app-container *::before,
.qa-app-container *::after {
    box-sizing: border-box;
}

/* ⭐ v2.0.0: Prevent flex/grid overflow everywhere */
.qa-app-container .qa-link,
.qa-app-container .qa-card-content,
.qa-app-container .qa-card-stats,
.qa-app-container .qa-meta,
.qa-app-container .qa-card-header {
    min-width: 0;
}

/* Screen reader utility */
.qa-app-container .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   SKIP LINK (accessibility)
   ============================================ */

.qa-app-container .qa-skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    padding: 8px 16px;
    background: var(--qa-hp-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--qa-hp-radius-sm);
    font-weight: 600;
    font-size: 13px;
    z-index: 100;
    transition: top var(--qa-hp-transition);
}

.qa-app-container .qa-skip-link:focus {
    top: 8px;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ============================================
   APP HEADER
   ============================================ */

.qa-app-container .app-header {
    background: var(--qa-hp-header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--qa-hp-radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: var(--qa-hp-shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.qa-app-container .app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.qa-app-container .app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
}

.qa-app-container .brand-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.qa-app-container .brand-title {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--qa-hp-primary), var(--qa-hp-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--qa-hp-primary);
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    letter-spacing: -0.01em;
    min-width: 0;
}

.qa-app-container .app-live-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    flex-shrink: 0;
}

.qa-app-container .live-indicator {
    width: 8px;
    height: 8px;
    background: var(--qa-hp-primary);
    border-radius: 50%;
    animation: qa-hp-pulse-dot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes qa-hp-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.3; transform: scale(0.7); }
}

.qa-app-container .live-label {
    color: var(--qa-hp-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
    font-weight: 700;
}

.qa-app-container .live-clock {
    color: var(--qa-hp-text-muted);
    font-weight: 400;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* ============================================
   ⭐ SEARCH BAR (v2.0.0)
   ============================================ */

.qa-app-container .qa-search-wrap {
    margin-bottom: 16px;
    position: relative;
}

.qa-app-container .qa-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--qa-hp-card);
    border: 1px solid var(--qa-hp-border);
    border-radius: var(--qa-hp-radius-pill);
    box-shadow: var(--qa-hp-shadow-sm);
    transition: border-color var(--qa-hp-transition),
                box-shadow var(--qa-hp-transition);
}

.qa-app-container .qa-search-form:focus-within {
    border-color: var(--qa-hp-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.qa-app-container .qa-search-icon {
    font-size: 16px;
    color: var(--qa-hp-text-muted);
    flex-shrink: 0;
}

.qa-app-container .qa-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: var(--qa-hp-text);
    padding: 6px 0;
    line-height: 1.4;
}

.qa-app-container .qa-search-input::placeholder {
    color: var(--qa-hp-text-faint);
}

.qa-app-container .qa-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: var(--qa-hp-border-soft);
    color: var(--qa-hp-text-muted);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    line-height: 1;
    padding: 0;
    transition: background var(--qa-hp-transition),
                color var(--qa-hp-transition);
    flex-shrink: 0;
}

.qa-app-container .qa-search-input:not(:placeholder-shown) ~ .qa-search-clear,
.qa-app-container .qa-search-clear.is-visible {
    display: inline-flex;
}

.qa-app-container .qa-search-clear:hover {
    background: #fecaca;
    color: #991b1b;
}

.qa-app-container .qa-search-clear:focus-visible {
    outline: 2px solid var(--qa-hp-primary);
    outline-offset: 2px;
}

.qa-app-container .qa-search-kbd {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--qa-hp-text-muted);
    background: var(--qa-hp-border-soft);
    border: 1px solid var(--qa-hp-border);
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    flex-shrink: 0;
}

/* ============================================
   CTA — Ask Question
   ============================================ */

.qa-app-container .qa-cta-wrap {
    margin-bottom: 16px;
    text-align: right;
}

.qa-app-container .qa-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--qa-hp-primary), var(--qa-hp-secondary));
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.3;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: transform var(--qa-hp-transition),
                box-shadow var(--qa-hp-transition);
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.qa-app-container .qa-cta-btn:hover,
.qa-app-container .qa-cta-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    outline: none;
}

.qa-app-container .qa-cta-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3),
                0 8px 20px rgba(37, 99, 235, 0.3);
}

.qa-app-container .qa-cta-btn:active {
    transform: translateY(0) scale(0.98);
}

.qa-app-container .qa-cta-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* ============================================
   FILTER TABS
   ============================================ */

.qa-app-container .qa-filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    padding: 6px;
    background: var(--qa-hp-header-bg);
    border-radius: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.qa-app-container .qa-filter-tabs::-webkit-scrollbar {
    display: none;
}

.qa-app-container .qa-filter-tab {
    flex: 1 0 auto;
    padding: 9px 18px;
    border: none;
    background: transparent;
    color: var(--qa-hp-text-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 24px;
    cursor: pointer;
    transition: background var(--qa-hp-transition),
                color var(--qa-hp-transition),
                box-shadow var(--qa-hp-transition);
    white-space: nowrap;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
}

.qa-app-container .qa-filter-tab:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--qa-hp-primary);
}

.qa-app-container .qa-filter-tab:focus-visible {
    outline: 2px solid var(--qa-hp-primary);
    outline-offset: 2px;
}

.qa-app-container .qa-filter-tab.is-active {
    background: linear-gradient(135deg, var(--qa-hp-primary), var(--qa-hp-secondary));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* ============================================
   SORT DROPDOWN (v2.0.0)
   ============================================ */

.qa-app-container .qa-feed-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.qa-app-container .qa-feed-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--qa-hp-text-muted);
    font-variant-numeric: tabular-nums;
}

.qa-app-container .qa-feed-count strong {
    color: var(--qa-hp-text);
    font-weight: 700;
}

.qa-app-container .qa-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--qa-hp-text-muted);
    flex-shrink: 0;
}

.qa-app-container .qa-sort-wrap label {
    font-weight: 600;
}

.qa-app-container .qa-sort-select {
    padding: 6px 12px;
    border: 1px solid var(--qa-hp-border);
    border-radius: var(--qa-hp-radius-pill);
    background: var(--qa-hp-card);
    font-size: 12.5px;
    font-family: inherit;
    color: var(--qa-hp-text);
    cursor: pointer;
    transition: border-color var(--qa-hp-transition),
                box-shadow var(--qa-hp-transition);
    max-width: 100%;
}

.qa-app-container .qa-sort-select:hover {
    border-color: #cbd5e1;
}

.qa-app-container .qa-sort-select:focus {
    outline: none;
    border-color: var(--qa-hp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ============================================
   ARROW NAVIGATION
   ============================================ */

.qa-app-container .nav-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 0;
    margin-bottom: 16px;
    background: var(--qa-hp-nav-bg);
    border-radius: 40px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.qa-app-container .nav-arrow {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(37, 99, 235, 0.1);
    color: var(--qa-hp-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background var(--qa-hp-transition),
                transform var(--qa-hp-transition),
                color var(--qa-hp-transition);
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

.qa-app-container .nav-arrow:hover {
    background: var(--qa-hp-primary);
    color: #ffffff;
}

.qa-app-container .nav-arrow:active {
    transform: scale(0.9);
}

.qa-app-container .nav-arrow:focus-visible {
    outline: 2px solid var(--qa-hp-primary);
    outline-offset: 2px;
}

.qa-app-container .nav-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qa-app-container .nav-arrow svg {
    width: 20px;
    height: 20px;
}

.qa-app-container .nav-page-info {
    font-size: 14px;
    font-weight: 600;
    color: var(--qa-hp-text-subtle);
    min-width: 60px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* ============================================
   FEED
   ============================================ */

.qa-app-container .qa-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
    min-height: 100px;
}

/* ============================================
   FEED ITEM (Card)
   ============================================ */

.qa-app-container .qa-item {
    opacity: 0;
    transform: translateY(16px);
    animation: qa-hp-feed-appear 0.4s ease forwards;
    min-width: 0;
    will-change: opacity, transform;
}

.qa-app-container .qa-item.hidden-by-search {
    display: none;
}

@keyframes qa-hp-feed-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qa-app-container .qa-link {
    display: flex;
    gap: 18px;
    padding: 20px 22px;
    background: var(--qa-hp-card);
    border-radius: var(--qa-hp-radius-md);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--qa-hp-shadow-sm);
    transition: transform var(--qa-hp-transition),
                box-shadow var(--qa-hp-transition),
                border-color var(--qa-hp-transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    -webkit-tap-highlight-color: transparent;
    min-width: 0;
}

.qa-app-container .qa-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--qa-hp-shadow-lg);
    border-color: rgba(37, 99, 235, 0.15);
}

.qa-app-container .qa-link:active {
    transform: scale(0.995);
}

.qa-app-container .qa-link:focus-visible {
    outline: 2px solid var(--qa-hp-primary);
    outline-offset: 2px;
}

/* ============================================
   STATS COLUMN
   ============================================ */

.qa-app-container .qa-card-stats {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 78px;
    padding: 4px 0;
    align-self: flex-start;
}

.qa-app-container .qa-card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: var(--qa-hp-radius-sm);
    background: var(--qa-hp-border-soft);
    min-width: 68px;
    transition: background var(--qa-hp-transition),
                color var(--qa-hp-transition);
}

.qa-app-container .qa-card-stat.has-answers {
    background: var(--qa-hp-answered-bg);
    color: var(--qa-hp-answered);
}

.qa-app-container .qa-card-stat-num {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.qa-app-container .qa-card-stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--qa-hp-text-muted);
    line-height: 1.3;
    text-align: center;
}

.qa-app-container .qa-card-stat.has-answers .qa-card-stat-label {
    color: #15803d;
}

.qa-app-container .qa-card-stat-views {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--qa-hp-text-muted);
    white-space: nowrap;
    line-height: 1.4;
    padding: 2px 6px;
    border-radius: var(--qa-hp-radius-sm);
    background: transparent;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   CONTENT COLUMN
   ============================================ */

.qa-app-container .qa-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qa-app-container .qa-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
    min-width: 0;
}

/* Status badge */
.qa-app-container .qa-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 11px;
    border-radius: var(--qa-hp-radius-pill);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
    white-space: nowrap;
}

.qa-app-container .qa-status-badge.qa-status-open {
    background: var(--qa-hp-open-bg);
    color: var(--qa-hp-open);
}

.qa-app-container .qa-status-badge.qa-status-answered {
    background: var(--qa-hp-answered-bg);
    color: var(--qa-hp-answered);
}

.qa-app-container .qa-status-badge.qa-status-closed {
    background: var(--qa-hp-closed-bg);
    color: var(--qa-hp-closed);
}

/* Difficulty badge */
.qa-app-container .qa-difficulty {
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    border-radius: var(--qa-hp-radius-pill);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
    white-space: nowrap;
}

.qa-app-container .qa-difficulty-easy {
    background: var(--qa-hp-easy-bg);
    color: var(--qa-hp-easy-text);
}

.qa-app-container .qa-difficulty-medium {
    background: var(--qa-hp-medium-bg);
    color: var(--qa-hp-medium-text);
}

.qa-app-container .qa-difficulty-hard {
    background: var(--qa-hp-hard-bg);
    color: var(--qa-hp-hard-text);
}

/* ⭐ QID badge (v2.0.0) */
.qa-app-container .qa-qid-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--qa-hp-radius-sm);
    background: var(--qa-hp-border-soft);
    color: var(--qa-hp-text-muted);
    font-size: 10px;
    font-weight: 600;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    line-height: 1.4;
    white-space: nowrap;
    border: 1px solid var(--qa-hp-border);
}

/* Title */
.qa-app-container .qa-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--qa-hp-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    max-width: 100%;
    letter-spacing: -0.005em;
}

/* Excerpt */
.qa-app-container .qa-excerpt {
    font-size: 14px;
    color: var(--qa-hp-text-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* Meta */
.qa-app-container .qa-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
    font-size: 12.5px;
    color: var(--qa-hp-text-muted);
    overflow: hidden;
    line-height: 1.4;
    min-width: 0;
}

.qa-app-container .qa-author {
    font-weight: 600;
    color: var(--qa-hp-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    min-width: 0;
}

.qa-app-container .qa-dot {
    color: #cbd5e1;
    font-size: 8px;
    flex-shrink: 0;
    line-height: 1;
}

.qa-app-container .qa-time {
    font-weight: 500;
    white-space: nowrap;
}

.qa-app-container .meta-icon {
    font-size: 11px;
    margin-right: 2px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

/* ⭐ Reputation badge in meta (v2.0.0) */
.qa-app-container .qa-author-reputation {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: var(--qa-hp-radius-pill);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}

.qa-app-container .qa-author-reputation.qa-rep-trusted {
    background: var(--qa-hp-rep-trusted-bg);
    color: var(--qa-hp-rep-trusted-text);
}

.qa-app-container .qa-author-reputation.qa-rep-standard {
    background: var(--qa-hp-rep-standard-bg);
    color: var(--qa-hp-rep-standard-text);
}

.qa-app-container .qa-author-reputation.qa-rep-restricted {
    background: var(--qa-hp-rep-restricted-bg);
    color: var(--qa-hp-rep-restricted-text);
}

.qa-app-container .qa-author-reputation.qa-rep-blocked {
    background: var(--qa-hp-rep-blocked-bg);
    color: var(--qa-hp-rep-blocked-text);
}

/* ============================================
   SKELETON LOADER (v2.0.0)
   ============================================ */

.qa-app-container .qa-skeleton {
    display: flex;
    gap: 18px;
    padding: 20px 22px;
    background: var(--qa-hp-card);
    border-radius: var(--qa-hp-radius-md);
    box-shadow: var(--qa-hp-shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    animation: qa-hp-skeleton-pulse 1.5s ease-in-out infinite;
}

.qa-app-container .qa-skeleton-stats {
    width: 78px;
    height: 68px;
    background: var(--qa-hp-border-soft);
    border-radius: var(--qa-hp-radius-sm);
    flex-shrink: 0;
}

.qa-app-container .qa-skeleton-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-app-container .qa-skeleton-line {
    height: 14px;
    background: var(--qa-hp-border-soft);
    border-radius: 4px;
}

.qa-app-container .qa-skeleton-line.qa-skeleton-title {
    height: 20px;
    width: 80%;
}

.qa-app-container .qa-skeleton-line.qa-skeleton-excerpt {
    width: 100%;
}

.qa-app-container .qa-skeleton-line.qa-skeleton-meta {
    height: 12px;
    width: 40%;
}

@keyframes qa-hp-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

/* ============================================
   LOAD MORE BUTTON
   ============================================ */

.qa-app-container .load-more-wrap {
    text-align: center;
    margin: 10px 0 40px;
}

.qa-app-container .load-more-btn {
    background: linear-gradient(135deg, var(--qa-hp-primary), var(--qa-hp-secondary));
    color: #ffffff;
    border: none;
    padding: 13px 44px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform var(--qa-hp-transition),
                box-shadow var(--qa-hp-transition),
                opacity var(--qa-hp-transition);
    box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
}

.qa-app-container .load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.4);
}

.qa-app-container .load-more-btn:active {
    transform: scale(0.96);
}

.qa-app-container .load-more-btn:focus-visible {
    outline: 2px solid var(--qa-hp-primary);
    outline-offset: 3px;
}

.qa-app-container .load-more-btn.loading,
.qa-app-container .load-more-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.qa-app-container .load-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: qa-hp-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.qa-app-container .load-more-btn.loading .load-spinner {
    display: inline-block;
}

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

/* ============================================
   END MESSAGE
   ============================================ */

.qa-app-container .qa-end {
    text-align: center;
    padding: 32px 20px;
    margin: 10px 0 30px;
    background: var(--qa-hp-end-bg);
    border-radius: var(--qa-hp-radius-lg);
    color: var(--qa-hp-text-muted);
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.qa-app-container .end-icon {
    font-size: 38px;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.qa-app-container .qa-end p {
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.qa-app-container .qa-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--qa-hp-text-muted);
    background: var(--qa-hp-card);
    border-radius: var(--qa-hp-radius-lg);
    border: 2px dashed var(--qa-hp-border);
    margin-bottom: 20px;
}

.qa-app-container .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
    opacity: 0.6;
}

.qa-app-container .qa-empty p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* ============================================
   SCROLL SENTINEL
   ============================================ */

.qa-app-container .scroll-sentinel {
    height: 1px;
    width: 100%;
    visibility: hidden;
}

/* ============================================
   BACK TO TOP BUTTON (v2.0.0)
   ============================================ */

.qa-app-container .qa-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--qa-hp-primary), var(--qa-hp-secondary));
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.4);
    transition: transform var(--qa-hp-transition),
                box-shadow var(--qa-hp-transition),
                opacity var(--qa-hp-transition);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

.qa-app-container .qa-back-to-top.is-visible,
.qa-app-container .qa-back-to-top:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.qa-app-container .qa-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.5);
}

.qa-app-container .qa-back-to-top:focus-visible {
    outline: 3px solid var(--qa-hp-primary);
    outline-offset: 3px;
}

/* ============================================
   RESPONSIVE — Large desktop (1440px+)
   ============================================ */

@media screen and (min-width: 1440px) {
    .qa-app-container {
        padding: 24px;
    }

    .qa-app-container .qa-link {
        padding: 22px 26px;
        gap: 22px;
    }

    .qa-app-container .qa-title {
        font-size: 18px;
    }
}

/* ============================================
   RESPONSIVE — Tablet (768px-1024px)
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    .qa-app-container .qa-title {
        font-size: 16px;
    }

    .qa-app-container .qa-excerpt {
        font-size: 13.5px;
    }

    .qa-app-container .qa-link {
        padding: 18px 20px;
        gap: 16px;
    }
}

/* ============================================
   RESPONSIVE — Mobile (max 768px)
   ============================================ */

@media (max-width: 768px) {
    .qa-app-container {
        padding: 14px;
    }

    .qa-app-container .app-header {
        padding: 14px 16px;
        border-radius: var(--qa-hp-radius-md);
    }

    .qa-app-container .app-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .qa-app-container .app-brand {
        justify-content: center;
    }

    .qa-app-container .brand-title {
        font-size: 22px;
    }

    .qa-app-container .app-live-badge {
        justify-content: center;
        padding: 5px 14px;
        font-size: 12px;
    }

    /* Search sticky on mobile */
    .qa-app-container .qa-search-wrap {
        position: sticky;
        top: 0;
        z-index: 20;
        margin-bottom: 12px;
        padding-top: 4px;
        background: var(--qa-hp-bg);
    }

    .qa-app-container .qa-search-kbd {
        display: none;
    }

    .qa-app-container .qa-cta-wrap {
        text-align: center;
    }

    .qa-app-container .qa-cta-btn {
        width: 100%;
        justify-content: center;
    }

    /* Filter tabs sticky on mobile */
    .qa-app-container .qa-filter-tabs {
        position: sticky;
        top: 68px;
        z-index: 15;
        margin-bottom: 12px;
    }

    .qa-app-container .qa-filter-tab {
        font-size: 12.5px;
        padding: 8px 14px;
    }

    .qa-app-container .qa-feed-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .qa-app-container .qa-sort-wrap {
        justify-content: space-between;
        width: 100%;
    }

    .qa-app-container .qa-sort-select {
        flex: 1;
        max-width: 200px;
    }

    .qa-app-container .qa-link {
        padding: 16px 18px;
        gap: 14px;
    }

    .qa-app-container .qa-card-stats {
        min-width: 66px;
        gap: 6px;
    }

    .qa-app-container .qa-card-stat {
        min-width: 58px;
        padding: 6px 10px;
    }

    .qa-app-container .qa-card-stat-num {
        font-size: 18px;
    }

    .qa-app-container .qa-card-stat-label {
        font-size: 9.5px;
    }

    .qa-app-container .qa-title {
        font-size: 16px;
    }

    .qa-app-container .qa-excerpt {
        font-size: 13.5px;
    }

    .qa-app-container .qa-meta {
        font-size: 12px;
    }

    .qa-app-container .qa-author {
        max-width: 120px;
    }

    .qa-app-container .load-more-btn {
        padding: 12px 32px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .qa-app-container .qa-back-to-top {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 16px;
        font-size: 18px;
    }
}

/* ============================================
   RESPONSIVE — Small Mobile (max 480px)
   ============================================ */

@media (max-width: 480px) {
    .qa-app-container {
        padding: 8px;
    }

    .qa-app-container .app-header {
        padding: 12px 14px;
        border-radius: var(--qa-hp-radius-sm);
        margin-bottom: 12px;
    }

    .qa-app-container .brand-icon {
        font-size: 22px;
    }

    .qa-app-container .brand-title {
        font-size: 18px;
    }

    .qa-app-container .app-live-badge {
        font-size: 10px;
        padding: 4px 12px;
        gap: 6px;
    }

    .qa-app-container .live-clock {
        font-size: 10px;
    }

    /* Search compact */
    .qa-app-container .qa-search-form {
        padding: 8px 14px;
        border-radius: 24px;
    }

    .qa-app-container .qa-search-input {
        font-size: 14px;
    }

    .qa-app-container .qa-filter-tabs {
        top: 60px;
        padding: 4px;
        gap: 4px;
        border-radius: 24px;
    }

    .qa-app-container .qa-filter-tab {
        font-size: 11.5px;
        padding: 7px 12px;
    }

    .qa-app-container .qa-cta-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .qa-app-container .nav-arrows {
        gap: 12px;
        padding: 10px 0;
        border-radius: 30px;
    }

    .qa-app-container .nav-arrow {
        width: 34px;
        height: 34px;
    }

    .qa-app-container .nav-arrow svg {
        width: 16px;
        height: 16px;
    }

    .qa-app-container .nav-page-info {
        font-size: 12px;
        min-width: 50px;
    }

    .qa-app-container .qa-feed {
        gap: 10px;
    }

    .qa-app-container .qa-link {
        padding: 14px 14px;
        gap: 12px;
        border-radius: 12px;
    }

    .qa-app-container .qa-card-stats {
        min-width: 56px;
        gap: 4px;
    }

    .qa-app-container .qa-card-stat {
        min-width: 48px;
        padding: 5px 8px;
    }

    .qa-app-container .qa-card-stat-num {
        font-size: 15px;
    }

    .qa-app-container .qa-card-stat-label {
        font-size: 8.5px;
        letter-spacing: 0.02em;
    }

    .qa-app-container .qa-card-stat-views {
        font-size: 9.5px;
        padding: 1px 4px;
    }

    .qa-app-container .qa-title {
        font-size: 14px;
        line-height: 1.3;
    }

    .qa-app-container .qa-excerpt {
        font-size: 12px;
    }

    .qa-app-container .qa-meta {
        font-size: 10.5px;
        gap: 6px;
        padding-top: 6px;
    }

    .qa-app-container .qa-author {
        font-size: 10.5px;
        max-width: 90px;
    }

    .qa-app-container .qa-status-badge,
    .qa-app-container .qa-difficulty,
    .qa-app-container .qa-author-reputation {
        font-size: 9px;
        padding: 2px 8px;
    }

    .qa-app-container .qa-qid-badge {
        font-size: 9px;
        padding: 1px 6px;
    }

    .qa-app-container .meta-icon {
        font-size: 10px;
    }

    .qa-app-container .load-more-btn {
        padding: 10px 24px;
        font-size: 12.5px;
    }

    .qa-app-container .qa-end {
        padding: 22px 16px;
        font-size: 13px;
    }

    .qa-app-container .end-icon {
        font-size: 30px;
    }

    .qa-app-container .qa-empty {
        padding: 40px 16px;
    }

    .qa-app-container .empty-icon {
        font-size: 38px;
    }

    .qa-app-container .qa-empty p {
        font-size: 13.5px;
    }

    .qa-app-container .qa-back-to-top {
        width: 40px;
        height: 40px;
        bottom: 12px;
        right: 12px;
        font-size: 16px;
    }
}

/* ============================================
   DARK MODE
   ============================================ */

@media (prefers-color-scheme: dark) {
    .qa-app-container {
        --qa-hp-text: #f1f5f9;
        --qa-hp-text-subtle: #e2e8f0;
        --qa-hp-text-muted: #94a3b8;
        --qa-hp-text-faint: #64748b;

        --qa-hp-bg: #0f172a;
        --qa-hp-card: #1e293b;
        --qa-hp-header-bg: rgba(30, 41, 59, 0.92);
        --qa-hp-nav-bg: rgba(30, 41, 59, 0.8);
        --qa-hp-end-bg: rgba(30, 41, 59, 0.9);
        --qa-hp-border: #334155;
        --qa-hp-border-soft: #334155;

        --qa-hp-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --qa-hp-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
        --qa-hp-shadow-lg: 0 12px 28px -8px rgba(0, 0, 0, 0.4);

        --qa-hp-primary-light: #1e3a8a;
        --qa-hp-primary-pale: #172554;

        --qa-hp-open-bg: #1e3a8a;
        --qa-hp-open: #bfdbfe;
        --qa-hp-answered-bg: #14532d;
        --qa-hp-answered: #86efac;
        --qa-hp-closed-bg: #334155;
        --qa-hp-closed: #cbd5e1;

        --qa-hp-easy-bg: #14532d;
        --qa-hp-easy-text: #86efac;
        --qa-hp-medium-bg: #78350f;
        --qa-hp-medium-text: #fcd34d;
        --qa-hp-hard-bg: #7f1d1d;
        --qa-hp-hard-text: #fca5a5;

        /* Reputation dark mode */
        --qa-hp-rep-trusted-bg: #14532d;
        --qa-hp-rep-trusted-text: #86efac;
        --qa-hp-rep-standard-bg: #78350f;
        --qa-hp-rep-standard-text: #fcd34d;
        --qa-hp-rep-restricted-bg: #7c2d12;
        --qa-hp-rep-restricted-text: #fdba74;
        --qa-hp-rep-blocked-bg: #7f1d1d;
        --qa-hp-rep-blocked-text: #fca5a5;
    }

    .qa-app-container .app-header {
        border-color: rgba(255, 255, 255, 0.05);
    }

    .qa-app-container .brand-title {
        background: linear-gradient(135deg, #60a5fa, #0891b2);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .qa-app-container .app-live-badge {
        background: rgba(37, 99, 235, 0.15);
        border-color: rgba(37, 99, 235, 0.25);
    }

    .qa-app-container .live-indicator {
        background: #60a5fa;
    }

    .qa-app-container .live-label {
        color: #60a5fa;
    }

    .qa-app-container .live-clock {
        color: #94a3b8;
    }

    .qa-app-container .qa-search-form {
        background: #1e293b;
        border-color: #334155;
    }

    .qa-app-container .qa-search-input {
        color: #f1f5f9;
    }

    .qa-app-container .qa-search-kbd {
        background: #0f172a;
        border-color: #334155;
        color: #94a3b8;
    }

    .qa-app-container .qa-search-clear {
        background: #334155;
        color: #94a3b8;
    }

    .qa-app-container .qa-search-clear:hover {
        background: #7f1d1d;
        color: #fca5a5;
    }

    .qa-app-container .qa-sort-select {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }

    .qa-app-container .qa-filter-tabs {
        border-color: rgba(255, 255, 255, 0.05);
    }

    .qa-app-container .qa-filter-tab {
        color: #94a3b8;
    }

    .qa-app-container .qa-filter-tab:hover {
        background: rgba(96, 165, 250, 0.15);
        color: #60a5fa;
    }

    .qa-app-container .nav-arrows {
        border-color: rgba(255, 255, 255, 0.05);
    }

    .qa-app-container .nav-page-info {
        color: #e2e8f0;
    }

    .qa-app-container .nav-arrow {
        background: rgba(96, 165, 250, 0.2);
        color: #60a5fa;
    }

    .qa-app-container .nav-arrow:hover {
        background: #2563eb;
        color: #ffffff;
    }

    .qa-app-container .qa-link {
        background: var(--qa-hp-card);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .qa-app-container .qa-link:hover {
        border-color: rgba(96, 165, 250, 0.3);
    }

    .qa-app-container .qa-card-stat {
        background: #334155;
    }

    .qa-app-container .qa-card-stat.has-answers {
        background: #14532d;
        color: #86efac;
    }

    .qa-app-container .qa-card-stat.has-answers .qa-card-stat-label {
        color: #86efac;
    }

    .qa-app-container .qa-title {
        color: #f1f5f9;
    }

    .qa-app-container .qa-excerpt {
        color: #94a3b8;
    }

    .qa-app-container .qa-meta {
        color: #94a3b8;
    }

    .qa-app-container .qa-author {
        color: #60a5fa;
    }

    .qa-app-container .qa-dot {
        color: #475569;
    }

    .qa-app-container .qa-card-stat-views {
        color: #94a3b8;
    }

    .qa-app-container .qa-qid-badge {
        background: #334155;
        border-color: #475569;
        color: #94a3b8;
    }

    .qa-app-container .qa-empty {
        background: #1e293b;
        border-color: #334155;
        color: #94a3b8;
    }

    .qa-app-container .qa-end {
        color: #94a3b8;
        border-color: rgba(255, 255, 255, 0.05);
    }

    .qa-app-container .load-more-btn {
        box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.2);
    }

    .qa-app-container .qa-skeleton {
        background: #1e293b;
        border-color: rgba(255, 255, 255, 0.05);
    }

    .qa-app-container .qa-skeleton-stats,
    .qa-app-container .qa-skeleton-line {
        background: #334155;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .qa-app-container .qa-item {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .qa-app-container .qa-link {
        transition: none;
    }

    .qa-app-container .qa-link:hover {
        transform: none;
    }

    .qa-app-container .qa-link:active {
        transform: none;
    }

    .qa-app-container .load-spinner {
        animation-duration: 0.01ms;
    }

    .qa-app-container .live-indicator {
        animation: none;
    }

    .qa-app-container .nav-arrow {
        transition: none;
    }

    .qa-app-container .qa-filter-tab {
        transition: none;
    }

    .qa-app-container .qa-cta-btn {
        transition: none;
    }

    .qa-app-container .qa-cta-btn:hover {
        transform: none;
    }

    .qa-app-container .load-more-btn:hover {
        transform: none;
    }

    .qa-app-container .qa-skeleton {
        animation: none;
        opacity: 0.8;
    }

    .qa-app-container .qa-back-to-top {
        transition: none;
    }

    .qa-app-container .qa-back-to-top:hover {
        transform: none;
    }
}

/* ============================================
   HIGH CONTRAST
   ============================================ */

@media (prefers-contrast: more) {
    .qa-app-container .qa-link {
        border-width: 2px;
        border-color: rgba(0, 0, 0, 0.2);
    }

    .qa-app-container .qa-title {
        text-decoration-thickness: 2px;
    }

    .qa-app-container .qa-status-badge,
    .qa-app-container .qa-difficulty,
    .qa-app-container .qa-author-reputation {
        border: 2px solid currentColor;
    }

    .qa-app-container .nav-arrow:focus-visible,
    .qa-app-container .qa-link:focus-visible,
    .qa-app-container .load-more-btn:focus-visible,
    .qa-app-container .qa-filter-tab:focus-visible,
    .qa-app-container .qa-cta-btn:focus-visible,
    .qa-app-container .qa-search-form:focus-within {
        outline-width: 3px;
    }

    .qa-app-container .qa-search-form {
        border-width: 2px;
    }
}

/* ============================================
   PRINT
   ============================================ */

@media print {
    .qa-app-container {
        background: #ffffff;
        padding: 20px;
        max-width: 100%;
    }

    .qa-app-container .qa-item {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .qa-app-container .load-more-wrap,
    .qa-app-container .qa-end,
    .qa-app-container .live-indicator,
    .qa-app-container .live-label,
    .qa-app-container .live-clock,
    .qa-app-container .scroll-sentinel,
    .qa-app-container .nav-arrows,
    .qa-app-container .qa-cta-wrap,
    .qa-app-container .qa-filter-tabs,
    .qa-app-container .qa-card-stat-views,
    .qa-app-container .qa-search-wrap,
    .qa-app-container .qa-feed-toolbar,
    .qa-app-container .qa-back-to-top,
    .qa-app-container .qa-skip-link {
        display: none !important;
    }

    .qa-app-container .qa-feed {
        display: block;
    }

    .qa-app-container .qa-item {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }

    .qa-app-container .qa-link {
        box-shadow: none;
        border: 1px solid #dddddd;
        background: #ffffff;
    }

    .qa-app-container .qa-title {
        color: #000000;
    }

    .qa-app-container .qa-excerpt {
        color: #333333;
    }

    .qa-app-container .qa-meta {
        color: #333333;
    }

    .qa-app-container .qa-author {
        color: #000000;
    }

    .qa-app-container .qa-status-badge,
    .qa-app-container .qa-difficulty,
    .qa-app-container .qa-author-reputation,
    .qa-app-container .qa-qid-badge {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
    }

    .qa-app-container .app-header {
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid #dddddd;
        box-shadow: none;
    }

    .qa-app-container .brand-title {
        background: none !important;
        -webkit-text-fill-color: #000000 !important;
        color: #000000 !important;
    }

    .qa-app-container .qa-link {
        page-break-inside: avoid;
    }
}

/* ============================================
   ✅ END OF FILE
   ============================================ */