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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
}

.header {
    background-color: #fff;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.header-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.header-subtitle {
    font-size: 14px;
    color: #666;
}

.filter-container {
    display: flex;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-button {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-button:hover {
    background-color: #e0e0e0;
}

.filter-button.active {
    background-color: #007ACC;
    color: white;
}

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

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007ACC;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.feeds-container {
    padding: 20px;
}

.feed-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid transparent;
}

.feed-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feed-item.tabnews {
    border-left-color: #007ACC;
}

.feed-item.orbita {
    border-left-color: #FF6B35;
}

.feed-item.hackernews {
    border-left-color: #FF6600;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.feed-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.feed-badge.tabnews {
    background-color: #007ACC;
}

.feed-badge.orbita {
    background-color: #FF6B35;
}

.feed-badge.hackernews {
    background-color: #FF6600;
}

.feed-date {
    font-size: 12px;
    color: #999;
}

.feed-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.feed-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.retry-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007ACC;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.retry-button:hover {
    background-color: #005a99;
}

.hidden {
    display: none !important;
}

/* Responsividade */
@media (max-width: 600px) {
    .container {
        margin: 0;
    }
    
    .header {
        padding: 15px;
    }
    
    .header-title {
        font-size: 24px;
    }
    
    .filter-container {
        padding: 10px 15px;
    }
    
    .feeds-container {
        padding: 15px;
    }
    
    .feed-item {
        padding: 15px;
    }
    
    .feed-title {
        font-size: 16px;
    }
    
    .feed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

