/* ============================
   SON - Stripped Out News
   ============================ */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #222;
    --text-primary: #ffffff;
    --text-secondary: #aaa;
    --text-muted: #666;
    --accent-left: #4a9eff;
    --accent-right: #ff4a4a;
    --accent-neutral: #ffd700;
    --border-color: #333;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    touch-action: pan-y;
}

/* Themed scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* ============================
   STRIPPED CLOCK
   ============================ */

.stripped-clock {
    width: 100%;
    background: transparent;
    padding: 16px 20px;
    text-align: center;
    margin-top: 200px;
    /* Account for fixed header with 200px logo */
    animation: fadeInDown 0.6s var(--ease-out-expo);
}

.clock-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.clock-time {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

.last-updated {
    text-align: center;
    padding: 4px 20px 12px;
    animation: fadeInDown 0.6s var(--ease-out-expo);
}

.last-updated .clock-label {
    margin-bottom: 2px;
}

.last-updated .clock-time {
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

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

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buy Me a Coffee button */
.bmac-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffd700, #e6b800);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.25);
}

.bmac-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

@media (max-width: 600px) {
    .bmac-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .bmac-label {
        display: none;
    }
}

.logo {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 8px;
    color: #ffffff;
    line-height: 0;
    margin: 0;
}

.logo-img {
    height: 200px;
    width: auto;
    filter: invert(1);
    display: block;
    margin: -40px auto -40px auto;
}

@media (max-width: 768px) {
    .logo-img {
        height: 140px;
        margin: -28px auto -28px auto;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 100px;
        margin: -16px auto -16px auto;
    }
}

.tagline {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
}

/* ============================
   MAIN CONTAINER
   ============================ */

.app-main {
    min-height: 100vh;
    padding: 20px 20px 100px;
    margin-top: 200px;
    /* Offset for fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-neutral);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.story-counter {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================
   CARD CONTAINER
   ============================ */

.card-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 520px;
    margin-bottom: 40px;
}

.story-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 30px;
    display: flex;
    flex-direction: column;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    /* Allow vertical scrolling */
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
    /* Enable vertical scrolling */
    overflow-x: hidden;
}

.story-card:active {
    cursor: grabbing;
}

.story-card.swiping {
    transition: none;
}

.story-card.swipe-left {
    transform: translateX(-120%) rotate(-15deg);
    opacity: 0;
}

.story-card.swipe-right {
    transform: translateX(120%) rotate(15deg);
    opacity: 0;
}

/* Card Header */
.mega-thread-banner {
    background: linear-gradient(135deg, rgba(255, 74, 74, 0.15) 0%, rgba(74, 158, 255, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulseMega 2.5s infinite alternate;
}

@keyframes pulseMega {
    0% {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    100% {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }
}

.card-header {
    margin-bottom: 24px;
}

.card-topic {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-neutral);
    margin-bottom: 16px;
}

.card-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-primary);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.badge-left {
    color: var(--accent-left);
    border: 1px solid var(--accent-left);
}

.badge-right {
    color: var(--accent-right);
    border: 1px solid var(--accent-right);
}

.badge-neutral {
    color: var(--accent-neutral);
    border: 1px solid var(--accent-neutral);
}

/* Card Content */
.card-headline {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.card-facts {
    margin-bottom: 0;
}

.facts-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.fact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.fact-bullet {
    color: var(--accent-neutral);
    flex-shrink: 0;
}

.card-article {
    margin-top: 24px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid var(--border-color);
}

.article-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.article-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.article-text:last-child {
    margin-bottom: 0;
}

.card-snippet {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
    flex-grow: 1;
    overflow-y: auto;
}

.source-tone {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    border-left: 3px solid var(--border-color);
}


/* Card Footer */
.card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.sources-list {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.sources-list strong {
    color: var(--text-secondary);
}

.read-more-btn {
    width: 100%;
    padding: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.read-more-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

/* Hide Deep Dive button - accessed by clicking headlines */
#cardViewBtn {
    display: none;
}

.story-counter {
    display: none;
    /* Hidden per user request */
}

.swipe-hint-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ============================
   SWIPE INDICATORS
   ============================ */

.swipe-indicators {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
}

.swipe-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.swipe-hint.active {
    opacity: 1;
}

.left-hint {
    color: var(--accent-left);
}

.right-hint {
    color: var(--accent-right);
}

.swipe-hint .arrow {
    font-size: 20px;
}

.swipe-hint .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================
   CONTROLS
   ============================ */

.controls {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.control-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.control-btn:hover:not(:disabled) {
    background: var(--bg-card);
    border-color: var(--text-muted);
    transform: scale(1.05);
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.control-btn.primary {
    background: var(--accent-neutral);
    border-color: var(--accent-neutral);
    color: var(--bg-primary);
}

.control-btn.primary:hover:not(:disabled) {
    background: #ffed4e;
}

/* ============================
   FOOTER
   ============================ */

.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, var(--bg-primary) 60%, transparent);
    border-top: none;
    text-align: center;
    pointer-events: none;
}

.footer-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 480px) {
    .app-main {
        margin-top: 100px;
        padding: 20px 16px 80px;
    }

    /* Fix #1: Compact clock on mobile — show more headlines above the fold */
    .stripped-clock {
        margin-top: 100px;
        padding: 8px 16px;
    }

    .clock-time {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .clock-label {
        font-size: 9px;
        margin-bottom: 2px;
    }

    .clock-meta {
        font-size: 10px;
        margin-top: 4px;
    }

    .story-card {
        padding: 24px;
    }

    .card-headline {
        font-size: 20px;
    }

    .controls {
        gap: 12px;
    }

    .control-btn {
        width: 52px;
        height: 52px;
    }

    .view-toggle {
        margin-bottom: 16px;
    }

    .filter-section {
        padding: 0 12px 8px;
    }

    .headline-title {
        font-size: 16px;
    }

    .app-footer {
        padding: 12px 16px;
        margin-bottom: 0;
    }

    /* Fix #3: Smaller tabs to fit on mobile */
    .view-toggle {
        gap: 2px;
        padding: 4px;
        justify-content: space-between;
        width: 100%;
    }

    .toggle-btn {
        padding: 6px 6px;
        font-size: 10px;
        letter-spacing: 0px;
        flex: 1;
        text-align: center;
    }

    /* Fix #4: Full-screen card view on mobile */
    .card-view {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-width: 100%;
        z-index: 5000;
        background: var(--bg-primary);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 16px;
        padding-top: 56px;
    }

    .card-container {
        max-width: 100%;
        height: auto;
        min-height: 0;
    }

    .story-card {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px;
        overflow-y: visible;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Swipe indicator: blue line on left */
    .story-card::before {
        content: '';
        position: absolute;
        top: 20px;
        bottom: 20px;
        left: 0;
        width: 3px;
        border-radius: 3px;
        background: linear-gradient(to bottom, transparent, #3b82f6, transparent);
        opacity: 0.5;
        animation: edgePulse 3s ease-in-out infinite;
    }

    /* Swipe indicator: red line on right */
    .story-card::after {
        content: '';
        position: absolute;
        top: 20px;
        bottom: 20px;
        right: 0;
        width: 3px;
        border-radius: 3px;
        background: linear-gradient(to bottom, transparent, #ef4444, transparent);
        opacity: 0.5;
        animation: edgePulse 3s ease-in-out infinite 1.5s;
    }

    .card-headline {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .swipe-indicators,
    .left-hint,
    .right-hint {
        display: none !important;
    }

    /* Fix #5: Stack filter modal buttons vertically */
    .modal-footer {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
        padding: 14px 20px;
        text-align: center;
    }

    /* Fix #6: Fix footer overlap with scroll-to-top */
    .scroll-to-top {
        bottom: 70px;
    }

    /* Fix #7: Improve framing view spacing */
    .framing-item {
        padding: 14px 16px;
    }

    .framing-headline {
        font-size: 16px;
    }

    .framing-snippet {
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .card-container {
        max-width: 500px;
        height: 600px;
    }

    .swipe-indicators {
        max-width: 500px;
    }
}

/* ============================
   VIEW TOGGLE
   ============================ */

.view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 12px;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for a cleaner look */
    scrollbar-width: none;
    /* Firefox */
}

.view-toggle::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.toggle-btn {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.toggle-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.toggle-btn:hover:not(.active) {
    color: var(--text-secondary);
}

/* ============================
   HEADLINES FEED VIEW
   ============================ */

.headlines-feed {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.headline-item {
    background: transparent;
    padding: 16px 24px;
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 20%, rgba(255, 255, 255, 0.06) 80%, transparent 100%) 1;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(12px);
    animation: staggerFadeIn 0.5s var(--ease-out-expo) forwards;
}

.headline-item:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 28px;
}

.headline-item:last-child {
    border-bottom: none;
    border-image: none;
}

.headline-topic {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-neutral);
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.headline-mega-badge {
    background: linear-gradient(135deg, rgba(255, 74, 74, 0.15) 0%, rgba(74, 158, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    animation: pulseMega 2.5s infinite alternate;
}

.headline-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.reading-time {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.headline-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    flex-shrink: 0;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    /* Fix #2: 44px minimum touch targets */
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.headline-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
}

.headline-preview {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Topic Search Bar */
.topic-search-bar {
    margin: 0 0 20px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.topic-search-bar:focus-within,
.topic-search-bar.active {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}

.search-icon {
    font-size: 16px;
    opacity: 0.5;
}

.topic-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

.topic-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.search-clear-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    line-height: 1;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.search-result-count {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

/* Search keyword highlighting */
.search-highlight {
    background: rgba(255, 215, 0, 0.25);
    color: var(--accent-neutral);
    padding: 1px 3px;
    border-radius: 3px;
    font-style: normal;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.search-submit-btn {
    background: var(--accent-neutral);
    border: none;
    color: var(--bg-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    line-height: 1;
    min-width: 36px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.search-submit-btn:hover {
    background: #e6c200;
    transform: scale(1.05);
}

/* Search Loading State */
.search-loading {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.3s ease;
}

.search-loading-icon {
    font-size: 48px;
    animation: searchPulse 1.5s ease-in-out infinite;
}

.search-loading-title {
    font-size: 20px;
    color: var(--text-primary);
    margin: 16px 0 8px;
    font-weight: 600;
}

.search-loading-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.search-loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.search-loading-progress {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--accent-neutral), #e6c200);
    border-radius: 3px;
    animation: searchProgress 2s ease-in-out infinite;
}

.search-loading-hint {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.5;
}

@keyframes searchPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes searchProgress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

/* Search Result */
.search-result-container {
    animation: fadeIn 0.4s ease;
}

.search-back-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s ease;
    margin-bottom: 16px;
}

.search-back-btn:hover {
    border-color: var(--accent-neutral);
    color: var(--accent-neutral);
}

.search-cached-badge,
.search-fresh-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
    margin-left: 8px;
}

.search-cached-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.search-fresh-badge {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-neutral);
}

.search-result-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.search-result-head.opinion-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.opinion-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent-color);
}

.author-name {
    display: inline-block;
}

.author-avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-color);
}

.author-avatar-initial {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #ff7300);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.opinion-date {
    color: var(--text-secondary);
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.search-source-count {
    font-size: 11px;
    color: var(--text-muted);
}

.search-result-headline {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Search Framing Buttons */
.search-framing-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.framing-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    min-height: 48px;
}

.framing-btn:active {
    transform: scale(0.98);
}

.framing-btn.progressive-btn {
    border-left: 3px solid #60a5fa;
}

.framing-btn.progressive-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

.framing-btn.conservative-btn {
    border-left: 3px solid #f87171;
}

.framing-btn.conservative-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.framing-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 10px 16px;
    border-radius: 10px;
}

.progressive-title {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.conservative-title {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.headline-sources {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-primary);
    border-radius: 4px;
}

.source-badge.left {
    color: var(--accent-left);
}

.source-badge.right {
    color: var(--accent-right);
}

/* Card View Container */
.card-view {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Framing List View */
.framing-list {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.framing-item {
    background: transparent;
    padding: 16px 24px;
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.framing-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 28px;
}

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

.framing-source {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-primary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.framing-source.progressive {
    color: var(--accent-left);
}

.framing-source.conservative {
    color: var(--accent-right);
}

.framing-headline {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 8px 0;
}

.framing-snippet {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 8px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================
   LOADING INDICATOR
   ============================ */

.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-indicator p {
    color: #ffffff;
    margin: 0;
    font-size: 16px;
}

/* ============================
   ERROR STATE
   ============================ */

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    max-width: 500px;
    margin: 100px auto;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.error-state h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.error-state p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.retry-btn {
    padding: 12px 32px;
    background: var(--accent-neutral);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.retry-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

/* ============================
   SKELETON LOADING
   ============================ */

.feed-skeleton {
    width: 100%;
}

.skeleton-item {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 20px 24px;
    height: 80px;
}

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

    100% {
        background-position: 200% 0;
    }
}

/* Vary skeleton heights for more realistic look */
.skeleton-item:nth-child(1) {
    height: 90px;
}

.skeleton-item:nth-child(2) {
    height: 75px;
}

.skeleton-item:nth-child(3) {
    height: 85px;
}

.skeleton-item:nth-child(4) {
    height: 80px;
}

.skeleton-item:nth-child(5) {
    height: 95px;
}

/* ============================
   SOCIAL SHARING
   ============================ */

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    border-color: var(--text-muted);
}

.share-twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: white;
}

.share-reddit:hover {
    background: #FF4500;
    border-color: #FF4500;
    color: white;
}

.share-copy:hover {
    background: var(--accent-neutral);
    border-color: var(--accent-neutral);
    color: var(--bg-primary);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-neutral);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 10000;
}

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

/* ============================
   CATEGORY FILTER CHIPS
   ============================ */

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 0 20px;
}

.category-chip {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.category-chip:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-1px);
}

.category-chip.active {
    background: var(--accent-neutral);
    border-color: var(--accent-neutral);
    color: var(--bg-primary);
}

@media (max-width: 480px) {
    .category-filter {
        gap: 6px;
    }

    .category-chip {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* ============================
   MOBILE TOUCH TARGETS
   ============================ */

/* Ensure all interactive elements meet minimum 44x44px touch target */
@media (max-width: 768px) {
    .share-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .category-chip {
        min-height: 44px;
        padding: 10px 16px;
    }

    .toggle-btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    /* Larger touch targets for read later buttons */
    .headline-item button {
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 24px !important;
    }
}

/* ============================
   FEED SWIPE HINTS
   ============================ */

.headline-item {
    overflow: hidden;
}

.swipe-hint-left,
.swipe-hint-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
    z-index: 1;
    font-family: 'Inter', sans-serif;
}

.swipe-hint-left {
    left: -110px;
    justify-content: flex-end;
    padding-right: 12px;
    color: var(--accent-right, #ef4444);
}

.swipe-hint-right {
    right: -110px;
    justify-content: flex-start;
    padding-left: 12px;
    color: var(--accent-left, #3b82f6);
}

/* ============================
   SWIPE FLASH OVERLAY
   ============================ */

.swipe-flash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-in;
}

.swipe-flash.active {
    opacity: 1;
}

.swipe-flash.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

/* ============================
   SOURCE PROGRESS INDICATOR
   ============================ */

.source-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-dot.active {
    background: var(--accent-neutral);
    transform: scale(1.5);
    box-shadow: 0 0 8px var(--accent-neutral);
}

.progress-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

/* ============================
   SCROLL TO TOP BUTTON
   ============================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-neutral);
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.scroll-to-top:hover {
    background: #c5a959;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* ============================
   FEEDBACK FLOATING BUTTON
   ============================ */

.feedback-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 1px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-fab:hover {
    transform: translateY(-4px);
    border-color: var(--accent-neutral);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
}

.feedback-fab:active {
    transform: translateY(-2px);
}

/* ============================
   FEEDBACK MODAL
   ============================ */

.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.feedback-modal-content {
    background: var(--bg-card, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: feedbackSlideIn 0.3s ease;
}

@keyframes feedbackSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted, #666);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.feedback-close:hover {
    color: var(--text-primary, #fff);
}

.feedback-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 4px 0;
}

.feedback-modal-sub {
    font-size: 13px;
    color: var(--text-secondary, #999);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.feedback-select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
    appearance: none;
    cursor: pointer;
}

.feedback-select option {
    background: #1a1a1a;
    color: #fff;
}

.feedback-textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.feedback-textarea::placeholder {
    color: var(--text-muted, #555);
}

.feedback-textarea:focus,
.feedback-select:focus {
    outline: none;
    border-color: var(--accent-neutral, #ffd700);
}

.feedback-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-char-count {
    font-size: 12px;
    color: var(--text-muted, #555);
}

.feedback-submit-btn {
    padding: 10px 28px;
    background: var(--accent-neutral, #ffd700);
    color: var(--bg-primary, #000);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-submit-btn:hover {
    background: #ffed4e;
    transform: translateY(-1px);
}

.feedback-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Report link on story cards */
.report-story-link {
    font-size: 11px;
    color: var(--text-muted, #555);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    text-decoration: none;
    margin-left: auto;
}

.report-story-link:hover {
    opacity: 1;
    color: var(--accent-neutral, #ffd700);
}

@media (max-width: 768px) {
    .feedback-fab {
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .feedback-modal-content {
        max-width: 100%;
    }
}

/* ============================
   SMOOTH CARD ANIMATIONS
   ============================ */

.card-container {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-container.transitioning {
    opacity: 0.7;
}

.card {
    animation: slideInCard 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.headline-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}

.headline-item:active {
    transform: scale(0.99);
}

/* Staggered fade-in for feed items */
@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header fade-in */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Save button styles */
.save-btn {
    transition: all 0.2s var(--ease-out-expo);
}

.save-btn:hover {
    transform: scale(1.2);
}

.save-btn:active {
    transform: scale(0.9);
}

/* Filter button pulse when active */
.filter-btn.active {
    animation: subtlePulse 2s ease-in-out infinite;
}

@keyframes subtlePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.12);
    }
}

@keyframes edgePulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* View transition */
.view-fade-enter {
    opacity: 0;
    transform: translateY(8px);
}

.view-fade-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

/* Card flip animation for source switching */
.card.flipping {
    animation: flipCard 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes flipCard {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }

    50% {
        transform: rotateY(90deg);
        opacity: 0.5;
    }

    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .progress-dot {
        width: 6px;
        height: 6px;
    }

    .source-progress {
        gap: 6px;
        margin: 12px 0;
    }
}

/* ============================
   PULL TO REFRESH INDICATOR
   ============================ */

.pull-to-refresh-indicator {
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

/* ============================
   ENHANCED EMPTY STATES
   ============================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-message {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.empty-state-btn {
    padding: 12px 24px;
    background: var(--accent-neutral);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.empty-state-btn:hover {
    background: #c5a959;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.empty-state-btn:active {
    transform: translateY(0);
}

/* ============================
   CATEGORY-BASED GRADIENTS
   ============================ */

/* Subtle gradient overlays for different categories */
.gradient-politics {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 58, 138, 0.05) 100%);
}

.gradient-technology {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(76, 29, 149, 0.05) 100%);
}

.gradient-economy {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(21, 128, 61, 0.05) 100%);
}

.gradient-health {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(157, 23, 77, 0.05) 100%);
}

.gradient-climate {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.gradient-world {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(194, 65, 12, 0.05) 100%);
}

.gradient-justice {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(153, 27, 27, 0.05) 100%);
}

.gradient-science {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(21, 94, 117, 0.05) 100%);
}

.gradient-default {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .empty-state {
        padding: 40px 20px;
    }

    .empty-state-icon {
        font-size: 48px;
    }

    .empty-state-title {
        font-size: 20px;
    }

    .empty-state-message {
        font-size: 14px;
    }
}

/* Filter Modal */
.filter-section {
    padding: 0 16px 12px 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.filter-btn .filter-icon {
    font-size: 13px;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.25);
    color: var(--accent-neutral);
}

.filter-btn .filter-label-short {
    display: none;
}

@media (max-width: 480px) {
    .filter-btn .filter-label {
        display: none;
    }

    .filter-btn .filter-label-short {
        display: inline;
        margin-left: 2px;
    }

    .filter-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000 !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.open .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-family: 'Merriweather', Georgia, serif;
    color: #ffffff;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 12px 16px;
    overflow-y: auto;
}

.filter-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 6px 4px;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease;
}

.filter-checkbox:hover {
    background: rgba(255, 255, 255, 0.08);
}

.filter-checkbox.selected {
    background: rgba(255, 215, 0, 0.08);
}

.filter-checkbox input {
    margin-right: 8px;
    accent-color: var(--accent-neutral);
    width: 14px;
    height: 14px;
}

.filter-label {
    flex: 1;
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.modal-btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    flex: 1;
    transition: opacity 0.2s;
    min-height: 44px;
}

.modal-btn:active {
    opacity: 0.8;
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-btn.primary {
    background: var(--accent-neutral);
    color: var(--bg-primary);
}

/* Fix #3: Card view close button */
.card-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5001;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.card-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .card-close-btn {
        display: flex;
        position: fixed;
        top: 12px;
        right: 12px;
    }

    /* Increase filter checkbox tap targets */
    .filter-checkbox {
        padding: 10px 8px;
        min-height: 44px;
    }

    .filter-checkbox input {
        width: 18px;
        height: 18px;
    }
}

/* Smart Install Banner */
.install-banner {
    position: fixed;
    bottom: 70px;
    left: 12px;
    right: 12px;
    z-index: 9998;
    transform: translateY(120%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.install-banner.visible {
    transform: translateY(0);
}

.install-banner-content {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.install-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.install-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.install-banner-text strong {
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.install-banner-text span {
    color: var(--text-muted);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.install-banner-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    flex-shrink: 0;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.install-banner-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.install-banner-action {
    background: var(--accent-neutral);
    border: none;
    color: var(--bg-primary);
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 36px;
    transition: all 0.15s ease;
}

.install-banner-action:hover {
    background: #e6c200;
    transform: scale(1.02);
}

/* Slide to Install */
.install-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.install-slider-track {
    flex: 1;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.install-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.3));
    border-radius: 24px;
}

.install-slider-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 42px;
    height: 42px;
    background: var(--accent-neutral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: grab;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    touch-action: none;
    user-select: none;
}

.install-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.install-slider-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: sliderShimmer 2.5s ease-in-out infinite;
}

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

    100% {
        background-position: 200% 0;
    }
}

.install-slider-hint {
    color: var(--text-muted);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    margin: 6px 0 0;
    text-align: center;
    line-height: 1.4;
}

/* First-Time Tutorial */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tutorial-overlay.visible {
    opacity: 1;
}

.tutorial-container {
    width: 100%;
    max-width: 380px;
    padding: 40px 28px;
    text-align: center;
    position: relative;
}

.tutorial-skip {
    position: absolute;
    top: 0;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.2s ease;
}

.tutorial-skip:hover {
    color: var(--text-primary);
}

.tutorial-slides {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.tutorial-slide.active {
    display: flex;
    animation: tutorialFadeIn 0.3s ease;
}

@keyframes tutorialFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 8px;
    animation: tutorialIconPulse 2s ease-in-out infinite;
}

@keyframes tutorialIconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.tutorial-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.tutorial-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    max-width: 320px;
}

.tutorial-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 32px 0 24px;
}

.tutorial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.tutorial-dot.active {
    background: var(--accent-neutral);
    width: 24px;
    border-radius: 4px;
}

.tutorial-next-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 48px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.tutorial-next-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.tutorial-next-btn.final {
    background: var(--accent-neutral);
    color: var(--bg-primary);
    border-color: var(--accent-neutral);
    font-weight: 700;
}

.tutorial-next-btn.final:hover {
    background: #e6c200;
    border-color: #e6c200;
}

/* ============================
   CURATED FEEDS
   ============================ */

.curated-feed-view {
    padding: 0 16px 20px;
}

.curated-sub-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.curated-tab {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.curated-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.curated-tab.active {
    background: rgba(99, 179, 237, 0.15);
    border-color: rgba(99, 179, 237, 0.3);
    color: #63b3ed;
}

.curated-tab[data-source="liberty"].active {
    background: rgba(245, 101, 101, 0.15);
    border-color: rgba(245, 101, 101, 0.3);
    color: #f56565;
}

.curated-section {
    margin-bottom: 24px;
}

.curated-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.curated-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.curated-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.curated-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.curated-item-rank {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 24px;
    text-align: center;
    opacity: 0.5;
}

.curated-item-main {
    flex: 1;
    min-width: 0;
}

.curated-item-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.curated-item-source {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}

.curated-link-arrow {
    font-size: 16px;
    color: var(--text-muted);
    opacity: 0.4;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.curated-item:hover .curated-link-arrow {
    opacity: 0.8;
}

/* Reddit-specific styles */
.reddit-item {
    flex-wrap: wrap;
}

.reddit-stats {
    display: flex;
    gap: 10px;
    font-size: 12px;
    flex-shrink: 0;
}

.reddit-upvotes {
    color: #ff6b35;
    font-weight: 600;
}

.reddit-comments {
    color: #63b3ed;
    font-weight: 600;
}

/* Loading & error states */
.curated-loading,
.curated-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.curated-loading .loading-spinner {
    margin: 0 auto 16px;
}

.curated-error .retry-btn {
    margin-top: 12px;
}

.curated-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
}

/* =========================================
   HOE'S MAD (OPINIONS)
   ========================================= */

@keyframes pulseGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.opinions-feed-view {
    padding: 10px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.opinions-welcome-banner {
    position: relative;
    background: linear-gradient(120deg, rgba(255, 69, 0, 0.15) 0%, rgba(200, 30, 0, 0.05) 50%, rgba(255, 100, 0, 0.15) 100%);
    background-size: 200% 200%;
    animation: pulseGradient 6s ease infinite;
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 69, 0, 0.08);
}

/* Glassmorphism subtle overlay */
.opinions-welcome-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
}

.opinions-welcome-banner>* {
    position: relative;
    z-index: 1;
}

.opinions-welcome-banner h3 {
    color: #FF5A1F;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(255, 69, 0, 0.3);
}

.opinions-welcome-banner p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.opinion-card {
    background-color: var(--bg-surface);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    animation: slideUpFadeIn 0.5s ease backwards;
    overflow: hidden;
    /* Added to contain the new full-width header image */
}

.opinion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(255, 69, 0, 0.1);
    border-color: var(--accent-light);
}

.opinion-card-header-image {
    width: calc(100% + 40px);
    /* Counteract card padding */
    margin: -20px -20px 20px -20px;
    max-height: 400px;
    object-fit: contain;
    background-color: #000;
    border-bottom: 1px solid var(--border-color);
}

.opinion-modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.opinion-modal-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.opinion-modal-author .author-avatar-img,
.opinion-modal-author .author-avatar-initial {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.opinion-modal-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.opinion-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.opinion-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FF5A1F;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.opinion-type-badge {
    font-size: 0.7rem;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2), rgba(255, 120, 0, 0.1));
    border: 1px solid rgba(255, 69, 0, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    color: #FF8C00;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.opinion-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.35;
    color: var(--text-primary);
}

.opinion-summary {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal for Internal Opinions */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: flex-end;
    /* Slide up from bottom on mobile */
    z-index: 99999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay[style*="display: flex"] {
    opacity: 1;
    visibility: visible;
}

.opinion-modal-content {
    background-color: var(--bg-surface);
    margin: 5% auto;
    padding: 0;
    /* Changed to 0 to allow edge-to-edge header image */
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 32px rgba(255, 69, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4);

    /* Animation applied when modal is shown */
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.opinion-modal-inner {
    padding: 36px 30px;
    overflow-y: auto;
    flex: 1;
}

.opinion-modal-header-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background-color: #000;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
        /* Center on desktop */
    }

    .opinion-modal-content {
        border-radius: 20px;
    }
}

.opinion-modal-close {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 100;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 1.5rem;
}

.opinion-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.1);
}

.opinion-modal-content h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1.25;
    padding-right: 40px;
    color: var(--text-primary);
}

.opinion-author-label {
    color: #FF5A1F;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    letter-spacing: 0.5px;
}

.opinion-body-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.opinion-body-text p {
    margin-bottom: 1.6em;
}

.opinion-body-text p:last-child {
    margin-bottom: 0;
}

.opinion-body-text ul {
    margin: 0 0 1.6em 0;
    padding-left: 1.5em;
    list-style-type: disc;
}

.opinion-body-text ul:last-child {
    margin-bottom: 0;
}

.opinion-body-text li {
    margin-bottom: 0.5em;
    color: var(--text-secondary);
}