/* Newspaper-inspired styling */
:root {
    --primary-color: #d63384;
    --secondary-color: #f8bbd9;
    --accent-color: #ce93d8;
    --background-color: #fce4ec;
    --text-color: #4a148c;
    --border-color: #f3e5f5;
    --shadow: 0 2px 4px rgba(214, 51, 132, 0.1);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

/* Header Styles */
.masthead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.newspaper-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0.5rem 0;
    opacity: 0.9;
}

.date {
    font-size: 1rem;
    opacity: 0.8;
}

/* Navigation */
.navigation {
    background: var(--primary-color);
    padding: 0;
    box-shadow: var(--shadow);
}

.navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.navigation li {
    margin: 0;
}

.navigation a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    transition: background-color 0.3s ease;
}

.navigation a:hover {
    background-color: var(--accent-color);
}

/* Main Content */
main {
    padding: 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Headlines Section */
.headlines {
    margin-bottom: 2rem;
}

.headlines h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.featured-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
}

.featured-article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-article-content {
    padding: 1.5rem;
}

.featured-article h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.featured-article p {
    color: #666;
    margin-bottom: 1rem;
}

/* Articles List */
.latest-news h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.article:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.article h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.article h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.article h3 a:hover {
    color: var(--accent-color);
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.article-source {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.trending ul, .quick-links ul {
    list-style: none;
}

.trending li, .quick-links li {
    margin-bottom: 0.5rem;
}

.trending a, .quick-links a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
}

.trending a:hover, .quick-links a:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 2rem;
    font-style: italic;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .newspaper-title {
        font-size: 2.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .navigation ul {
        flex-direction: column;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Print styles */
@media print {
    .navigation, .sidebar, .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .article {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
