/* Global styles */
:root {
  --primary-color: #0000ff;
  --secondary-color: #00ff00;
  --accent-color: #ff0000;
  --background-color: #000000;
  --text-color: #ffffff;
  --card-background: rgba(30, 30, 60, 0.8);
  --header-background: rgba(0, 0, 50, 0.9);
  --footer-background: rgba(0, 0, 50, 0.9);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: var(--background-color);
  background-image: url('stars-background.jpg');
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-color);
}

/* Header styles */
header {
  background-color: var(--header-background);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 2px solid var(--secondary-color);
}

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

.logo {
  height: 120px;
  border-radius: 10px;
}

header h1 {
  margin: 0;
  color: var(--secondary-color);
  font-size: 2.5rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

.update-date {
  color: #cccccc;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Main content styles */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.news-section {
  margin-bottom: 3rem;
}

.news-section h2 {
  color: var(--secondary-color);
  border-bottom: 1px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

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

.news-card {
  background-color: var(--card-background);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 255, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.news-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  line-height: 1.4;
}

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

.news-title a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.news-snippet {
  color: #cccccc;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #999999;
  margin-top: auto;
}

.news-source {
  font-weight: bold;
  color: var(--primary-color);
}

.news-date {
  color: #888888;
}

/* Footer styles */
footer {
  background-color: var(--footer-background);
  padding: 1.5rem;
  text-align: center;
  border-top: 2px solid var(--secondary-color);
}

footer p {
  margin: 0;
  color: #cccccc;
  line-height: 1.6;
}

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

footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  main {
    padding: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
