/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Responsive container sizing */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 550px) {
    .container {
        padding: 10px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .tweet-card {
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .tweet-card {
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
    }
}



/* Pledge Now Button */
.pledge-now-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 8px;
}

/* Keep button within content boundaries on large screens */
@media (min-width: 1240px) {
    .pledge-now-banner {
        right: calc((100vw - 1200px) / 2 + 20px);
    }
}

.pledge-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(15px);
}

.pledge-now-btn:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    color: #764ba2;
}

.pledge-icon {
    font-size: 16px;
}



/* Mobile Optimization */
@media (max-width: 768px) {
    .pledge-now-banner {
        top: 15px;
        right: 15px;
        padding: 8px;
    }
    
    .pledge-now-btn {
        padding: 12px 22px;
        font-size: 13px;
        gap: 6px;
        border-radius: 20px;
    }
    
    .pledge-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pledge-now-banner {
        top: 10px;
        right: 10px;
        padding: 6px;
    }
    
    .pledge-now-btn {
        padding: 10px 20px;
        font-size: 12px;
        gap: 5px;
        border-radius: 18px;
    }
    
    .pledge-icon {
        font-size: 13px;
    }
}

/* AI Explainer Styles */
.ai-explainer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ai-explainer-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}



.ai-text h3 {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffd700;
}

.ai-text p {
    margin: 0;
    line-height: 1.7;
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Mobile optimizations for AI explainer */
@media (max-width: 768px) {
    .ai-explainer {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .ai-explainer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .ai-text h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
        text-align: left;
    }
    
    .ai-text p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .ai-explainer {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .ai-text h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .ai-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.profile-handle {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.profile-bio {
    font-size: 14px;
    color: #888;
    max-width: 300px;
}

.stats-section {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Controls Styles */
.controls {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Status Info */
.status-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.status-info .status-item:last-child {
    margin-left: auto;
    text-align: right;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    min-width: 0;
    flex: 1;
}

.status-item i {
    color: #667eea;
    font-size: 16px;
}

.status-item span {
    color: #333;
}

.status-item span span {
    font-weight: 600;
    color: #667eea;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e1e5e9;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

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

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

/* Loading More State */
.loading-more {
    text-align: center;
    padding: 40px 20px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin: 20px 0;
}

.loading-more .loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    margin: 0 auto 15px;
}

.loading-more p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Tweets Container */
.tweets-container {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

/* Tweet Card */
.tweet-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.tweet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tweet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tweet-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tweet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tweet-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tweet-author-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.tweet-author-handle {
    color: #666;
    font-size: 14px;
}

.tweet-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 14px;
}

.tweet-content {
    margin-bottom: 20px;
}

.tweet-text {
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    margin-bottom: 15px;
    max-width: 100%;
}

/* Repost Indicator */
.repost-indicator {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(29, 161, 242, 0.1);
    border-radius: 8px;
    border-left: 3px solid #1da1f2;
}

.repost-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1da1f2;
}

.repost-header i {
    font-size: 12px;
}

.repost-text {
    font-weight: 500;
}

.repost-author {
    color: #666;
    font-weight: 500;
}

.repost-time {
    color: #999;
    font-size: 12px;
}

/* Mobile optimizations for repost indicator */
@media (max-width: 768px) {
    .repost-indicator {
        padding: 6px 10px;
        margin-bottom: 10px;
    }
    
    .repost-header {
        font-size: 13px;
        gap: 6px;
    }
    
    .repost-time {
        font-size: 11px;
    }
}

/* Media Gallery */
.tweet-media {
    margin: 15px 0;
}

.media-gallery {
    display: grid;
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
}

.media-gallery.single {
    grid-template-columns: 1fr;
}

.media-gallery.double {
    grid-template-columns: 1fr 1fr;
}

.media-gallery.triple {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.media-gallery.quad {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.media-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: scale(1.02);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-overlay i {
    color: white;
    font-size: 24px;
}

/* Embedded Tweet functionality removed */

/* Reply Context */
.reply-context {
    margin: 10px 0;
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.reply-to {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.reply-to i {
    color: #667eea;
}

.reply-to-user {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.reply-to-user:hover {
    text-decoration: underline;
}

/* Context Analysis */
.context-analysis {
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.context-analysis-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1da1f2;
}

.context-analysis-content {
    font-size: 13px;
    line-height: 1.4;
    color: #ffffff;
}

.analysis-summary {
    margin-bottom: 8px;
    color: #ffffff;
}

.analysis-details {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.analysis-details span {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.severity.high {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.severity.medium {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.severity.low {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.confidence.high {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.confidence.medium {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.confidence.low {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
}

.tweet-actions {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tweet-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.tweet-action:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* Embed button styles removed */

.tweet-engagement {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.engagement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.engagement-item i {
    font-size: 16px;
}

.engagement-item:first-child {
    color: #e74c3c;
}

.engagement-item:nth-child(2) {
    color: #27ae60;
}

.engagement-item:nth-child(3) {
    color: #3498db;
}

/* Top Navigation */
.top-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
}

.nav-logo-icon {
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
}

/* Pledge Button Styling */
.nav-link.pledge-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.nav-link.pledge-btn:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: #1a1a1a;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.load-more-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state p {
    font-size: 16px;
    opacity: 0.8;
}

/* Modal for Media View */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    top: 50%;
    transform: translateY(-50%);
}

.modal img,
.modal video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover {
    color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .status-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-section {
        justify-content: center;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 15px;
    }
    
    .search-box {
        max-width: none;
        width: 100%;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 15px 10px 40px;
    }
    
    .search-icon {
        font-size: 14px;
        left: 12px;
    }
    
    .filter-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 8px;
        min-width: 60px;
        text-align: center;
    }
    
    .tweet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tweet-engagement {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .tweet-actions {
        flex-direction: column;
    }
    
    .media-gallery.double,
    .media-gallery.triple,
    .media-gallery.quad {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }
    
    .profile-image {
        width: 60px;
        height: 60px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .stats-section {
        gap: 15px;
    }
    
    .stat {
        padding: 10px 15px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .tweet-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .tweet-header {
        margin-bottom: 12px;
    }
    
    .tweet-avatar {
        width: 40px;
        height: 40px;
    }
    
    .tweet-author-name {
        font-size: 14px;
    }
    
    .tweet-author-handle {
        font-size: 12px;
    }
    
    .tweet-date {
        font-size: 12px;
    }
    
    .tweet-text {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .tweet-content {
        margin-bottom: 15px;
    }
    
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    /* Mobile optimizations for controls on small screens */
    .controls {
        padding: 12px;
        gap: 12px;
    }
    
    .search-input {
        font-size: 13px;
        padding: 8px 12px 8px 35px;
        border-radius: 10px;
    }
    
    .search-icon {
        font-size: 13px;
        left: 10px;
    }
    
    .filter-buttons {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 6px;
        min-width: 50px;
    }
}

/* Small mobile optimization */
@media (max-width: 550px) {
    .tweet-card {
        padding: 14px;
        border-radius: 11px;
        margin-bottom: 12px;
    }
    
    .tweet-header {
        margin-bottom: 10px;
    }
    
    .tweet-avatar {
        width: 38px;
        height: 38px;
    }
    
    .tweet-author-name {
        font-size: 13px;
    }
    
    .tweet-author-handle {
        font-size: 11px;
    }
    
    .tweet-date {
        font-size: 11px;
    }
    
    .tweet-text {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .tweet-content {
        margin-bottom: 10px;
    }
    
    /* Compact header on small mobile */
    .header {
        padding: 20px;
        margin-bottom: 25px;
        border-radius: 18px;
    }
    
    .profile-image {
        width: 60px;
        height: 60px;
        border: 3px solid #fff;
    }
    
    .profile-name {
        font-size: 18px;
    }
    
    .profile-handle {
        font-size: 13px;
    }
    
    .profile-bio {
        font-size: 12px;
        max-width: 250px;
    }
    
    .stat {
        padding: 10px 15px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

/* Extra small mobile optimization */
@media (max-width: 480px) {
    .tweet-card {
        padding: 12px;
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .tweet-header {
        margin-bottom: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tweet-author {
        gap: 8px;
    }
    
    .tweet-avatar {
        width: 36px;
        height: 36px;
    }
    
    .tweet-author-name {
        font-size: 13px;
    }
    
    .tweet-author-handle {
        font-size: 11px;
    }
    
    .tweet-date {
        font-size: 11px;
        margin-top: 4px;
    }
    
    .tweet-text {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 10px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .tweet-content {
        margin-bottom: 12px;
    }
    
    .controls {
        padding: 10px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filter-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .filter-btn {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 45px;
    }
    
    /* Compact header on mobile */
    .header {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 15px;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .profile-section {
        gap: 12px;
    }
    
    .profile-image {
        width: 50px;
        height: 50px;
        border: 2px solid #fff;
    }
    
    .profile-name {
        font-size: 16px;
    }
    
    .profile-handle {
        font-size: 12px;
    }
    
    .profile-bio {
        font-size: 11px;
        max-width: 200px;
    }
    
    .stats-section {
        gap: 15px;
    }
    
    .stat {
        padding: 8px 12px;
        border-radius: 8px;
    }
    
    .stat-number {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

/* AI Analysis Styles */
.ai-analysis {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

/* Transphobia Warning */
.transphobia-warning {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-left: 4px solid #d63031;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.warning-icon {
    font-size: 18px;
}

.warning-title {
    flex: 1;
    font-size: 14px;
}

.severity-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.severity-high {
    background: #d63031;
    color: white;
}

.severity-medium {
    background: #fdcb6e;
    color: #2d3436;
}

.severity-low {
    background: #74b9ff;
    color: white;
}

.warning-details {
    padding: 15px;
    font-size: 13px;
    line-height: 1.5;
}

.warning-details .confidence {
    margin-bottom: 10px;
    font-weight: 600;
    opacity: 0.9;
}

.warning-details .concerns ul {
    margin: 8px 0;
    padding-left: 20px;
}

.warning-details .concerns li {
    margin-bottom: 4px;
}

.warning-details .explanation {
    margin: 12px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-style: italic;
}

/* Recommendations section removed */

.warning-details .media-analysis {
    margin: 12px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
}

/* Media Analysis Sections */
.media-overall {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.media-individual {
    margin-bottom: 12px;
}

.media-individual ul {
    margin: 8px 0;
    padding-left: 20px;
}

.media-individual li {
    margin-bottom: 6px;
    font-size: 11px;
}

.media-concerns {
    margin-bottom: 12px;
}

.media-concerns ul {
    margin: 8px 0;
    padding-left: 20px;
}

.media-concerns li {
    margin-bottom: 4px;
    font-size: 11px;
}

.media-recommendations {
    margin-bottom: 12px;
}

.media-recommendations ul {
    margin: 8px 0;
    padding-left: 20px;
}

.media-recommendations li {
    margin-bottom: 4px;
    font-size: 11px;
}

.media-harmful {
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-weight: 600;
}

.warning-details .article-analysis {
    margin: 12px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    border-left: 3px solid #74b9ff;
}

.warning-details .combined-analysis {
    margin: 12px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    border-left: 3px solid #fdcb6e;
}

.warning-details .articles-count,
.warning-details .images-count {
    margin: 8px 0;
    font-size: 11px;
    opacity: 0.9;
    font-weight: 600;
}

.warning-details .linked-articles {
    margin: 12px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    border-left: 3px solid #00b894;
}

.warning-details .linked-articles ul {
    margin: 8px 0;
    padding-left: 20px;
}

.warning-details .linked-articles li {
    margin: 4px 0;
}

.warning-details .linked-articles a {
    color: #74b9ff;
    text-decoration: none;
}

.warning-details .linked-articles a:hover {
    text-decoration: underline;
}

.analysis-meta {
    margin-top: 12px;
    font-size: 11px;
    opacity: 0.8;
    text-align: right;
}

/* Safe Analysis */
.safe-analysis {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    border-left: 4px solid #00b894;
}

.safe-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.safe-icon {
    font-size: 18px;
}

.safe-title {
    flex: 1;
    font-size: 14px;
}

.confidence-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.safe-details {
    padding: 15px;
    font-size: 13px;
    line-height: 1.5;
}

.safe-details .explanation {
    margin-bottom: 12px;
}

.safe-details .media-analysis {
    margin: 12px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
}

.safe-details .article-analysis {
    margin: 12px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    border-left: 3px solid #74b9ff;
}

.safe-details .combined-analysis {
    margin: 12px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    border-left: 3px solid #fdcb6e;
}

.safe-details .articles-count {
    margin: 8px 0;
    font-size: 11px;
    opacity: 0.9;
    font-weight: 600;
}

/* No Analysis */
.no-analysis {
    background: linear-gradient(135deg, #636e72, #2d3436);
    color: white;
    border-left: 4px solid #636e72;
}

.no-analysis-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.no-analysis-icon {
    font-size: 18px;
}

.no-analysis-title {
    flex: 1;
    font-size: 14px;
}

.no-analysis-details {
    padding: 15px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Responsive AI Analysis */
@media (max-width: 768px) {
    .warning-header,
    .safe-header,
    .no-analysis-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .warning-title,
    .safe-title,
    .no-analysis-title {
        font-size: 13px;
    }
    
    .warning-details,
    .safe-details,
    .no-analysis-details {
        padding: 12px;
        font-size: 12px;
    }
    
    .severity-badge,
    .confidence-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}
