/* RESET: Basic cleanup */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* HEADER STYLE */
header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

/* NAV STYLE */
nav {
    background-color: #444;
    padding: 10px;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    font-weight: bold;
}

nav a:hover {
    color: #ffd700; /* Gold color on hover */
}

/* LAYOUT: The "News Grid" */
.container {
    display: grid;
    /* Two columns: Main content takes 3 parts, Sidebar takes 1 part */
    grid-template-columns: 3fr 1fr; 
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto; /* Centers the site */
    padding: 0 20px;
}

/* CARDS STYLING */
article, aside {
    background: #f4f4f4;
    padding: 20px;
    border: 1px solid #ddd;
}

.hero-story h2 {
    font-size: 2rem;
    color: #222;
}

/* BUTTON STYLE */
button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

/* FOOTER - UPDATED */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 5px solid #ffd700; /* Nice gold accent line */
}

.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allows icons to flow to a new line if needed */
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between emoji and text */
}

.social-links a:hover {
    color: #ffd700; /* Gold on hover */
}

/* Mobile Tweak for Footer */
@media (max-width: 600px) {
    .social-links {
        flex-direction: column; /* Stack them on small screens */
        gap: 10px;
    }
}

/* MOBILE RESPONSIVENESS */
/* If screen is smaller than 700px, stack the columns */
@media (max-width: 700px) {
    .container {
        grid-template-columns: 1fr; /* Single column */
    }
}

/* DARK MODE STYLES */
/* When the body has the class "dark-mode", apply these colors */
body.dark-mode {
    background-color: #121212; /* Very dark grey background */
    color: #e0e0e0; /* Light grey text */
}

/* We also need to darken the cards (articles) */
body.dark-mode article, 
body.dark-mode aside {
    background-color: #1e1e1e;
    border-color: #333;
    color: #ddd;
}

/* Change the header links color in dark mode */
body.dark-mode a {
    color: #bb86fc; /* A nice purple for links */
} 

/* BUTTON STYLE - UPDATED */
/* We added .btn here so we can use it on links */
button, .btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none; /* Removes the underline from links */
    display: inline-block; /* Makes the link a solid block */
    font-size: 1rem;
}

button:hover, .btn:hover {
    background-color: #555;
    color: #ffd700; /* Matches your nav hover effect */
}