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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #1a237e;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.archive-credit {
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

nav {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.search-container {
    margin-bottom: 1rem;
}

#searchInput {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.category-filters {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
}

.category-row .filter-btn {
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.category-row:last-child .filter-btn {
    max-width: 100%;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: #bdbdbd;
}

.filter-btn.active {
    background-color: #1a237e;
    color: white;
}

/* All Button */
.filter-btn[data-category="all"] {
    background-color: #3f51b5;
}

.filter-btn[data-category="all"]:hover {
    background-color: #303f9f;
}

.filter-btn[data-category="all"].active {
    background-color: #283593;
    box-shadow: 0 0 8px rgba(63, 81, 181, 0.5);
}

/* Corruption & Fraud Button */
.filter-btn[data-category="corruption"] {
    background-color: #f44336;
}

.filter-btn[data-category="corruption"]:hover {
    background-color: #d32f2f;
}

.filter-btn[data-category="corruption"].active {
    background-color: #c62828;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
}

/* Tax & Finance Button */
.filter-btn[data-category="tax"] {
    background-color: #4caf50;
}

.filter-btn[data-category="tax"]:hover {
    background-color: #388e3c;
}

.filter-btn[data-category="tax"].active {
    background-color: #2e7d32;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

/* Petroleum & Energy Button */
.filter-btn[data-category="petroleum"] {
    background-color: #9c27b0;
}

.filter-btn[data-category="petroleum"]:hover {
    background-color: #7b1fa2;
}

.filter-btn[data-category="petroleum"].active {
    background-color: #6a1b9a;
    box-shadow: 0 0 8px rgba(156, 39, 176, 0.5);
}

/* Muslim Hatred Button */
.filter-btn[data-category="muslim_hatred"] {
    background-color: #673ab7;
}

.filter-btn[data-category="muslim_hatred"]:hover {
    background-color: #512da8;
}

.filter-btn[data-category="muslim_hatred"].active {
    background-color: #4527a0;
    box-shadow: 0 0 8px rgba(103, 58, 183, 0.5);
}

/* Modi's Corrupt Friends Button - keeping existing color but updating style for consistency */
.filter-btn[data-category="modi_friends"] {
    background-color: #2196f3;
}

.filter-btn[data-category="modi_friends"]:hover {
    background-color: #1976d2;
}

.filter-btn[data-category="modi_friends"].active {
    background-color: #1565c0;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.5);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-item {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.news-item p {
    color: #666;
    margin-bottom: 1rem;
}

.news-item a {
    color: #1a237e;
    text-decoration: none;
    font-weight: 500;
}

.news-item a:hover {
    text-decoration: underline;
}

.news-item .date {
    color: #888;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #1a237e;
    color: white;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .category-filters {
        justify-content: center;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Styles */
:root {
    --bg-color: #f5f5f5;
    --text-color: #333;
    --card-bg: #fff;
    --header-bg: #1a237e;
    --header-text: #fff;
    --footer-bg: #f8f9fa;
    --footer-text: #666;
    --border-color: #ddd;
    --card-text: #333;
    --link-color: #1a237e;
    --card-shadow: rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --card-bg: #1e1e1e;
    --header-bg: #000051;
    --header-text: #ffffff;
    --footer-bg: #1e1e1e;
    --footer-text: #e0e0e0;
    --border-color: #444;
    --card-text: #e0e0e0;
    --link-color: #90caf9;
    --card-shadow: rgba(0,0,0,0.3);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.news-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--card-shadow);
    color: var(--card-text);
}

.news-item h3, .news-item h2 {
    color: var(--text-color);
}

.news-item p {
    color: var(--card-text);
}

.news-item a {
    color: var(--link-color);
}

.news-item .date, .reading-time {
    color: var(--footer-text);
}

header {
    background-color: var(--header-bg);
    color: var(--header-text);
}

footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--header-bg);
    color: var(--header-text);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, 
        var(--card-bg) 25%, 
        var(--border-color) 50%, 
        var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 80px;
    background-color: var(--header-bg);
    color: var(--header-text);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* Share Button */
.share-button {
    background-color: var(--header-bg);
    color: var(--header-text);
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.3s;
}

.share-button:hover {
    transform: scale(1.05);
}

/* Reading Time Indicator */
.reading-time {
    font-size: 0.8rem;
    color: var(--footer-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Middle Class Button - keeping the existing color but updating for consistency */
.filter-btn[data-category="middle_class"] {
    background-color: #00796b;
}

.filter-btn[data-category="middle_class"]:hover {
    background-color: #00695c;
}

.filter-btn[data-category="middle_class"].active {
    background-color: #004d40;
    box-shadow: 0 0 8px rgba(0, 121, 107, 0.5);
}

/* Middle Class Item Styling */
.news-item[data-category="middle_class"] {
    border-left: 4px solid #00796b;
}

.news-item[data-category="middle_class"] h2 {
    color: #00796b;
}

/* Promise vs Reality Button - keeping the existing color but updating for consistency */
.filter-btn[data-category="promise_reality"] {
    background-color: #ff6d00;
}

.filter-btn[data-category="promise_reality"]:hover {
    background-color: #e65100;
}

.filter-btn[data-category="promise_reality"].active {
    background-color: #dd2c00;
    box-shadow: 0 0 8px rgba(255, 109, 0, 0.5);
}

/* Promise vs Reality Item Styling */
.news-item[data-category="promise_reality"] {
    border-left: 4px solid #ff6d00;
}

.news-item[data-category="promise_reality"] h2 {
    color: #ff6d00;
}

/* Breaking News Button - keeping the existing color but updating for consistency */
.filter-btn[data-category="breaking"] {
    background-color: #d32f2f;
}

.filter-btn[data-category="breaking"]:hover {
    background-color: #b71c1c;
}

.filter-btn[data-category="breaking"].active {
    background-color: #9a0007;
    box-shadow: 0 0 8px rgba(211, 47, 47, 0.5);
}

/* Breaking News Item Styling */
.news-item[data-category="breaking"] {
    border-left: 4px solid #d32f2f;
    position: relative;
    overflow: hidden;
}

.news-item[data-category="breaking"]::before {
    content: "BREAKING";
    position: absolute;
    top: 10px;
    right: -35px;
    background-color: #d32f2f;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 40px;
    transform: rotate(45deg);
    z-index: 1;
}

.news-item[data-category="breaking"] h2 {
    color: #d32f2f;
}

/* Pulsing effect for breaking news */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.news-item[data-category="breaking"] {
    animation: pulse 2s infinite;
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.modal-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 120px;
}

.yes-btn {
    background-color: #f44336;
    color: white;
}

.yes-btn:hover {
    background-color: #d32f2f;
}

.no-btn {
    background-color: #4caf50;
    color: white;
}

.no-btn:hover {
    background-color: #388e3c;
}

.modal-disclaimer {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--footer-text);
    font-style: italic;
}

/* Greeting Container */
.greeting-container {
    background-color: var(--card-bg);
    padding: 1.5rem;
    margin: 0 auto 2rem;
    max-width: 1200px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.greeting-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.greeting-content h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.greeting-content blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    padding: 0 2rem;
    margin: 0;
}

.greeting-content blockquote::before {
    content: "\201C";
    font-size: 3rem;
    position: absolute;
    left: 0;
    top: -10px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.greeting-content blockquote::after {
    content: "\201D";
    font-size: 3rem;
    position: absolute;
    right: 0;
    bottom: -30px;
    opacity: 0.3;
    font-family: Georgia, serif;
} 