/* Base styles and CSS reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme variables */
    --primary-bg: #ffffff;
    --secondary-bg: #f8f8f8;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e1e1e1;
    --accent-color: #132257;
    --hover-bg: #f0f0f0;
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary-bg: #121212;
    --secondary-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #2d2d2d;
    --accent-color: #4d7eff;
    --hover-bg: #2a2a2a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Layout */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 72px;
    background-color: var(--primary-bg);
    border-right: 1px solid var(--border-color);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
}

.main-content {
    margin-left: 72px;
    max-width: 800px;
    padding: 2rem;
    margin: 0 auto;
    margin-left: calc(72px + 2rem);
}

/* Navigation */
.nav-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.nav-item.active {
    color: var(--accent-color);
    background-color: var(--hover-bg);
}

/* Fix link colors in nav */
.nav-item a {
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header */
.header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header h1::before {
    content: "⚽";
    font-size: 2rem;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Feed Views */
.feed-view {
    display: none;
}

.feed-view.active {
    display: block;
}

/* Feed Items */
.feed-container {
    padding: 1rem 0;
}

/* Base feed item styles */
.feed-item {
    position: relative;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: var(--primary-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.feed-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feed-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background: var(--primary-bg);
    padding: 0.5rem;
    border-radius: 8px;
}

.source-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feed-meta {
    flex-grow: 1;
}

.source-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.meta-line {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timestamp {
    font-size: 0.875rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1rem;
}

.timestamp::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
}

.feed-content {
    padding-left: calc(40px + 1rem); /* Avatar width + margin */
}

/* News article with image */
.feed-item .feed-content {
    padding-left: calc(40px + 1rem);
}

.feed-item .feed-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feed-item .feed-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Image styles */
.feed-item .feed-image {
    margin: 1rem 0;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--secondary-bg);
}

.feed-item .feed-image img {
    width: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.feed-actions {
    display: flex;
    gap: 1rem;
}

.feed-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.feed-link:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--primary-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.source-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.source-toggle {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.source-toggle:hover {
    transform: translateX(4px);
}

.source-toggle label {
    flex-grow: 1;
    margin-left: 1rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Loading States */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--secondary-bg);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.feed-status {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive Design */
@media (min-width: 1200px) {
    .main-content {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    body {
        background: var(--secondary-bg);
    }

    /* Main content adjustments */
    .main-content {
        margin: 0;
        padding: 0;
        padding-bottom: 70px;
        max-width: 100%;
        background: var(--secondary-bg);
    }

    /* Header improvements */
    .header {
        position: sticky;
        top: 0;
        z-index: 90;
        background: var(--primary-bg);
        padding: 1rem;
        margin: 0;
        border-bottom: 1px solid var(--border-color);
        transition: transform 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .header h1 {
        font-size: 1.25rem;
        margin: 0;
    }

    .header h1::before {
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }

    .header-subtitle {
        display: none;
    }

    /* Feed items enhancement */
    .feed-container {
        padding: 0.5rem;
        background: var(--secondary-bg);
    }

    .feed-item {
        border-radius: 12px;
        margin-bottom: 0.75rem;
        padding: 1rem;
        border: none;
        background: var(--primary-bg);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .feed-item:hover {
        transform: none;
    }

    .feed-header {
        padding: 0;
        margin-bottom: 0.75rem;
    }

    .source-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .feed-content {
        padding-left: calc(36px + 0.75rem);
    }

    .feed-title {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .feed-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    /* Bottom navigation improvements */
    .sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        height: 56px;
        width: 100%;
        background: var(--primary-bg);
        border-top: 1px solid var(--border-color);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0;
        z-index: 100;
        transition: transform 0.3s ease, opacity 0.3s ease;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    }

    .sidebar.hidden {
        transform: translateY(100%);
        opacity: 0;
    }

    .nav-items {
        flex-direction: row;
        width: 100%;
        margin: 0;
        padding: 0 1.5rem;
        justify-content: space-between;
        gap: 0;
    }

    .nav-item {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        position: relative;
    }

    .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--accent-color);
    }

    .logo {
        display: none;
    }

    /* Social tabs enhancement */
    .social-tabs {
        position: sticky;
        top: 56px;
        background: var(--primary-bg);
        z-index: 89;
        margin: 0;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        gap: 1rem;
    }

    .social-tab {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    /* Settings modal improvements */
    .modal-content {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 90vh;
        width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    }

    .modal-header {
        padding: 1rem;
    }

    /* Pull to refresh indicator */
    .feed-container::before {
        content: '↓ Pull to refresh';
        display: block;
        text-align: center;
        padding: 1rem;
        color: var(--text-secondary);
        font-size: 0.9rem;
        opacity: 0;
        transform: translateY(-100%);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .feed-container.pulling::before {
        opacity: 1;
        transform: translateY(0);
    }

    /* Loading spinner enhancement */
    .loading-spinner {
        padding: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 60px;
    }

    .main-content {
        margin-left: 60px;
    }

    .feed-item {
        padding: 1rem;
    }

    .source-avatar {
        width: 32px;
        height: 32px;
    }

    .feed-embed {
        margin: -1rem -1rem 1rem -1rem;
    }

    .feed-item.has-image .feed-image {
        margin: 1rem -1rem 1rem -1rem;
    }
}

/* Settings Modal Styles */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.settings-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.setting-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.setting-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.theme-toggle-wrapper {
    display: flex;
    gap: 0.5rem;
}

.theme-option {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--primary-bg);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.theme-option:hover {
    background: var(--hover-bg);
}

.theme-option.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.source-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.source-toggle {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--secondary-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.source-toggle:hover {
    transform: translateX(4px);
}

.source-toggle input[type="checkbox"] {
    margin-right: 1rem;
}

.source-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
}

.source-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
}

/* Media Feed Styles */
.feed-embed {
    margin: -2rem -2rem 1.5rem -2rem;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.feed-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px 12px 0 0;
}

/* Update feed item styles for embedded content */
.feed-item.has-embed {
    padding-top: 0;
}

/* Update feed link for media items */
[data-view="media"] .feed-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: opacity 0.2s ease;
}

[data-view="media"] .feed-link:hover {
    opacity: 0.9;
    text-decoration: none;
}

[data-view="media"] .feed-link i {
    font-size: 1.1em;
}

/* Dark theme adjustments */
[data-theme="dark"] .feed-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .feed-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Social Media Tabs */
.social-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.social-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: var(--secondary-bg);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.social-tab:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.social-tab.active {
    background: var(--accent-color);
    color: white;
}

/* Platform specific colors */
.social-tab[data-platform="twitter"] i {
    color: #1DA1F2;
}

.social-tab[data-platform="reddit"] i {
    color: #FF4500;
}

.social-tab.active i {
    color: white;
}

/* Feed item platform styles */
.feed-item.twitter-item .source-avatar {
    background-color: #1DA1F2;
}

.feed-item.reddit-item .source-avatar {
    background-color: #FF4500;
}

.feed-item.twitter-item .feed-link {
    color: #1DA1F2;
}

.feed-item.reddit-item .feed-link {
    color: #FF4500;
}

/* Remove purple accent color */
.social-tab.active {
    background: var(--accent-color);
    color: white !important;
}

.social-tab.active i {
    color: white !important;
}

/* Social Feed Items */
.feed-item.social-item {
    padding: 1.5rem;
}

.feed-item.social-item .feed-content {
    padding-left: 0;
}

.social-platform-icon {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-left: auto;
}

/* Reddit specific styles */
.feed-item.reddit-item {
    padding: 1.5rem;
    min-height: 200px;  /* Minimum height for posts */
}

.feed-item.reddit-item .feed-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feed-item.reddit-item .feed-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feed-item.reddit-item .feed-content {
    padding-left: 0;
}

/* Reddit image styles with minimum dimensions */
.feed-item.reddit-item .feed-image {
    margin: 1rem 0;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.feed-item.reddit-item .feed-image img {
    width: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

/* Video styles with minimum size */
.feed-item.reddit-item .feed-video {
    margin: 1rem 0;
    background: #000;
    min-width: 300px;
    min-height: 200px;
}

.feed-item.reddit-item .feed-video video {
    width: 100%;
    height: auto;
    min-height: 200px;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .feed-item.reddit-item .feed-image,
    .feed-item.reddit-item .feed-image img,
    .feed-item.reddit-item .feed-video {
        min-width: 250px;
        min-height: 150px;
    }
}

/* Twitter specific styles */
.feed-item.twitter-item {
    background: var(--primary-bg);
}

.feed-item.twitter-item .source-avatar {
    background-color: #1DA1F2;
    font-size: 1.2rem;
}

.feed-item.twitter-item .source-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feed-item.twitter-item .source-name i {
    color: #1DA1F2;
    font-size: 1rem;
}

/* Update social tab styles */
.social-tab i.fab.fa-twitter {
    color: #1DA1F2;
}

.social-tab.active i.fab.fa-twitter {
    color: white;
}

/* Update feed link styles for Twitter */
.feed-item.twitter-item .feed-link:hover {
    color: #1a8cd8;
}

/* Add Twitter context styles */
.twitter-context {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.twitter-context i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Update feed description for Twitter */
.feed-item.twitter-item .feed-description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0.5rem 0 1rem 0;
}

/* Update Twitter author styles */
.twitter-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.twitter-name {
    font-weight: 600;
    color: var(--text-primary);
}

.twitter-handle, .twitter-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.twitter-handle::before {
    content: "{";
}

.twitter-handle::after {
    content: "}";
}

.twitter-date::before {
    content: "{";
}

.twitter-date::after {
    content: "}";
}

/* Hide the regular timestamp for Twitter items */
.feed-item.twitter-item .timestamp {
    display: none;
}

/* Update the description styling */
.feed-item.twitter-item .feed-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

/* Clean Twitter Styles */
.tweet-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.tweet-author {
    font-weight: 600;
    color: var(--text-primary);
}

.tweet-handle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tweet-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feed-item.twitter-item {
    padding: 1rem;
}

.feed-item.twitter-item .feed-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

/* Hide unnecessary elements for tweets */
.feed-item.twitter-item .feed-title,
.feed-item.twitter-item .timestamp {
    display: none;
}

/* Remove any existing size constraints */
.feed-item.social-item .feed-image {
    margin: 1rem 0;
}

.feed-item.social-item .feed-image img {
    max-width: 100%;
    height: auto;
}

/* Video container styles */
.feed-item.reddit-item .feed-video {
    margin: 1rem 0;
    background: #000;
}

.feed-item.reddit-item .feed-video video {
    width: 100%;
    height: auto;
}

/* Remove all previous social/Reddit image styles */

/* Simple image styles that preserve original dimensions */
.feed-item.social-item .feed-image,
.feed-item.reddit-item .feed-image {
    margin: 1rem 0;
}

.feed-item.social-item .feed-image img,
.feed-item.reddit-item .feed-image img {
    width: auto;         /* Allow natural width */
    max-width: 100%;     /* Just prevent overflow */
    height: auto;        /* Maintain aspect ratio */
    display: block;      /* Remove any extra spacing */
}

/* Video styles */
.feed-item.reddit-item .feed-video {
    margin: 1rem 0;
    background: #000;
}

.feed-item.reddit-item .feed-video video {
    max-width: 100%;
    height: auto;
}

/* Search Styles */
.search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#search-input {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--primary-bg);
    color: var(--text-primary);
}

#search-button {
    padding: 0 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#search-button:hover {
    opacity: 0.9;
}

.search-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.search-status {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }

    #search-button {
        padding: 1rem;
    }

    .search-filters {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Quote/embed styles */
.feed-item.has-image blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--border-color);
    color: var(--text-secondary);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .feed-item.has-image {
        padding: 1rem;
    }
    
    .feed-item.has-image .feed-image {
        margin: 1rem 0;
    }
    
    .feed-item.has-image .feed-title {
        font-size: 1.3rem;
    }
}

/* Update image container styles */
.feed-content .feed-image {
    margin: 1rem -2rem;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-bg);
}

.feed-content .feed-image img {
    width: auto;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Reddit-specific image styles */
.feed-item.reddit-item .feed-image {
    margin: 1rem 0;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.feed-item.reddit-item .feed-image img {
    width: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.feed-item.reddit-item .feed-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .feed-content .feed-image,
    .feed-item.reddit-item .feed-image {
        margin: 1rem 0;
        max-height: 250px;
    }

    .feed-content .feed-image img,
    .feed-item.reddit-item .feed-image img {
        max-height: 250px;
    }
} 