/* Base Styles */
:root {
    --primary-color: #000000; /* Black header */
    --secondary-color: #ff0000; /* Red for AI */
    --text-color: #f0f0f0; /* Off-white text */
    --background-color: #000000; /* Black background */
    --white: #f0f0f0; /* Off-white for text */
    --max-width: 1440px; /* Increased from 1200px (20% bigger) */
    --light-gray: #333333;
    --medium-gray: #444444;
    --dark-gray: #666666;
    --header-bg: #111111; /* Changed to article title background color */
    --article-bg: transparent; /* Removed background from article titles */
}

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

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px; /* Increased from 20px (20% bigger) */
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--white);
}

/* Header */
header {
    background-color: var(--header-bg);
    padding: 20px 0; /* Rolled back from 7px to original padding */
    color: var(--white);
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-title a {
    color: var(--white);
    font-size: 4rem; /* Rolled back from 7rem to original size */
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: -2px; /* Rolled back from -7px to original spacing */
}

.site-title .huge {
    color: var(--white);
}

.site-title .ai {
    color: var(--secondary-color);
}

.site-title .news {
    color: var(--white);
}

/* Main Content */
main {
    padding: 48px 0; /* Increased from 40px (20% bigger) */
    background-color: var(--background-color);
}

/* Articles List */
.articles-section {
    margin-top: 36px; /* Increased from 30px (20% bigger) */
}

.articles-section h2,
.sources-section h2 {
    margin-bottom: 24px; /* Increased from 20px (20% bigger) */
    font-weight: 700;
    font-size: 38px; /* Increased from 32px (20% bigger) */
    color: var(--white);
}

.filters {
    margin-bottom: 24px; /* Increased from 20px (20% bigger) */
}

.filters select {
    padding: 10px 15px; /* Increased from 8px 12px (20% bigger) */
    border: 1px solid #444;
    border-radius: 5px; /* Slightly increased from 4px */
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #333;
    color: var(--text-color);
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 24px; /* Increased from 20px (20% bigger) */
}

.article-item {
    background-color: var(--article-bg); /* Removed background */
    border-radius: 5px; /* Slightly increased from 4px */
    padding: 24px; /* Increased from 20px (20% bigger) */
    box-shadow: none; /* Removed shadow */
    transition: none; /* Removed transition */
    display: block; /* Changed from flex to block since we no longer have images */
}

.article-item:hover {
    transform: none; /* Removed transform animation */
    box-shadow: none; /* Removed shadow */
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px; /* Increased from 10px (20% bigger) */
    font-size: 16px; /* Increased from 14px (20% bigger) */
    color: var(--dark-gray);
}

.article-source {
    display: flex;
    align-items: center;
}

.source-logo {
    width: 20px; /* Increased from 16px (20% bigger) */
    height: 20px; /* Increased from 16px (20% bigger) */
    margin-right: 8px; /* Increased from 6px (20% bigger) */
    object-fit: contain;
}

.article-title {
    margin-bottom: 12px; /* Increased from 10px (20% bigger) */
    font-weight: 300;
    font-size: 41px; /* Increased from 34px (20% more) */
}

.article-title a {
    color: var(--text-color); /* Off-white */
    transition: color 0.3s ease; /* Only keep color transition */
}

.article-title a:hover {
    color: #ffffff; /* Pure white on hover */
}

.article-links {
    display: flex;
    gap: 18px; /* Increased from 15px (20% bigger) */
    margin-top: 18px; /* Increased from 15px (20% bigger) */
}

.original-link {
    font-size: 16px; /* Increased from 14px (20% bigger) */
    font-weight: 600;
}

.article-sources {
    margin: 10px 0; /* Increased from 8px (20% bigger) */
    font-size: 1rem; /* Increased from 0.85rem (20% bigger) */
    color: #666;
}

.source-tag {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 3px 10px; /* Increased from 2px 8px (20% bigger) */
    border-radius: 15px; /* Increased from 12px (20% bigger) */
    margin-right: 6px; /* Increased from 5px (20% bigger) */
    font-size: 1rem; /* Increased from 0.8rem (20% bigger) */
}

.article-popularity {
    display: inline-block;
    background-color: #ff4500;
    color: white;
    font-size: 1rem; /* Increased from 0.8rem (20% bigger) */
    padding: 3px 8px; /* Increased from 2px 6px (20% bigger) */
    border-radius: 15px; /* Increased from 12px (20% bigger) */
    margin-left: 10px; /* Increased from 8px (20% bigger) */
    font-weight: bold;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 36px; /* Increased from 30px (20% bigger) */
    gap: 18px; /* Increased from 15px (20% bigger) */
}

.pagination-link {
    padding: 10px 18px; /* Increased from 8px 15px (20% bigger) */
    background-color: #111111;
    border-radius: 5px; /* Slightly increased from 4px */
    color: var(--white);
    font-weight: 600;
}

.pagination-link:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.pagination-info {
    color: var(--dark-gray);
}

/* Infinite Scrolling Styles */
.pagination-info {
    text-align: center;
    margin: 24px 0;
    color: var(--dark-gray);
    font-size: 1rem;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    color: var(--dark-gray);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

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

/* Article Detail */
.article-detail {
    max-width: 960px; /* Increased from 800px (20% bigger) */
    margin: 0 auto;
    padding: 36px; /* Increased from 30px (20% bigger) */
    background-color: #111111;
    border-radius: 5px; /* Slightly increased from 4px */
}

.article-detail .article-title {
    font-size: 42px; /* Increased from 35px (20% bigger) */
    margin-bottom: 24px; /* Increased from 20px (20% bigger) */
    line-height: 1.2;
}

.article-content {
    font-size: 19px; /* Increased from 16px (20% bigger) */
    line-height: 1.7;
    margin-bottom: 36px; /* Increased from 30px (20% bigger) */
}

.article-content p {
    margin-bottom: 24px; /* Increased from 20px (20% bigger) */
    color: var(--text-color);
}

/* Article Signature */
.signature-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    font-weight: 700;
}

.article-signature {
    margin-top: 36px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    padding-top: 24px;
    border-top: 1px solid #333;
}

.article-signature .huge,
.article-signature .news {
    color: var(--text-color);
}

.article-signature .ai {
    color: var(--secondary-color);
}

.article-signature .back-link {
    padding: 12px 24px;
    background-color: #222;
    border-radius: 5px;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.article-signature .back-link:hover {
    background-color: var(--secondary-color);
}

/* Article Footer */
.article-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 36px; /* Increased from 30px (20% bigger) */
    padding-top: 24px; /* Increased from 20px (20% bigger) */
    border-top: 1px solid #333;
}

.article-footer a {
    padding: 12px 24px; /* Increased from 10px 20px (20% bigger) */
    background-color: #222;
    border-radius: 5px; /* Slightly increased from 4px */
    color: var(--white);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.article-footer a:hover {
    background-color: var(--secondary-color);
}

/* Sources List */
.sources-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); /* Increased from 300px (20% bigger) */
    gap: 24px; /* Increased from 20px (20% bigger) */
}

.source-item {
    background-color: var(--white);
    border-radius: 5px; /* Slightly increased from 4px */
    padding: 24px; /* Increased from 20px (20% bigger) */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.source-item.inactive {
    opacity: 0.7;
}

.source-logo {
    width: 72px; /* Increased from 60px (20% bigger) */
    height: 72px; /* Increased from 60px (20% bigger) */
    margin-right: 18px; /* Increased from 15px (20% bigger) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.source-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    width: 72px; /* Increased from 60px (20% bigger) */
    height: 72px; /* Increased from 60px (20% bigger) */
    background-color: var(--secondary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px; /* Increased from 24px (20% bigger) */
    font-weight: 600;
    border-radius: 5px; /* Slightly increased from 4px */
}

.source-name {
    margin-bottom: 12px; /* Increased from 10px (20% bigger) */
    font-weight: 400;
}

.source-links {
    display: flex;
    gap: 12px; /* Increased from 10px (20% bigger) */
    flex-wrap: wrap;
}

.source-website,
.source-rss,
.source-articles {
    font-size: 16px; /* Increased from 14px (20% bigger) */
}

.source-status {
    margin-top: 12px; /* Increased from 10px (20% bigger) */
    color: #e74c3c;
    font-size: 16px; /* Increased from 14px (20% bigger) */
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--dark-gray);
    padding: 24px 0; /* Increased from 20px (20% bigger) */
    text-align: center;
    margin-top: 48px; /* Increased from 40px (20% bigger) */
}

footer a {
    color: var(--secondary-color);
}

footer a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 18px; /* Increased from 15px (20% bigger) */
    }
    
    .sources-list {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 6px; /* Increased from 5px (20% bigger) */
    }
    
    .article-footer {
        flex-direction: column;
        gap: 18px; /* Increased from 15px (20% bigger) */
    }

    .article-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .site-title a {
        font-size: 43px; /* Increased from 36px (20% bigger) */
    }
    
    .article-title {
        font-size: 19px; /* Increased from 16px (20% bigger) */
    }
}

/* No results */
.no-articles,
.no-sources {
    background-color: var(--white);
    border-radius: 5px; /* Slightly increased from 4px */
    padding: 36px; /* Increased from 30px (20% bigger) */
    text-align: center;
    color: var(--dark-gray);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
