@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Text colors for title */
  --text-blue: #4f46e5;
  --text-pink: #ec4899;
  
  /* Main blue theme - Light mode (default) */
  --blue-primary: #2563eb;
  --blue-light: #60a5fa;
  --blue-dark: #1e40af;
  --blue-pale: #dbeafe;
  --bg-color: #f7f9fc;
  --text-color: #1e293b;
  /* Brighter card colors for light mode */
  --card-1: #f0abfc; /* Bright pink for News */
  --card-2: #93c5fd; /* Bright blue for History */
  --card-3: #7dd3fc; /* Bright sky blue for Philosophy */
  --card-4: #6ee7b7; /* Bright emerald for About */
  --card-5: #a7f3d0; /* Light teal for Biography */
  --rain-color: rgba(59, 130, 246, 0.7);
  --splash-color: rgba(59, 130, 246, 0.9);
  --force-field-border: rgba(96, 165, 250, 0.3);
  --force-field-shadow: rgba(96, 165, 250, 0.2);
  --transition-speed: 0.3s;
  --card-bg: #ffffff;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --accent-color: #1a73e8;
  --accent-hover: #1765cc;
}

/* Dark mode colors */
body.dark-mode {
  /* Dark mode theme */
  --bg-color: #030f2b;
  --text-color: #f1f5f9;
  /* Less bright but still colorful card colors for dark mode */
  --card-1: #6b21a8; /* Deeper purple for News */
  --card-2: #1e40af; /* Deeper blue for History */
  --card-3: #0369a1; /* Deeper sky blue for Philosophy */
  --card-4: #065f46; /* Deeper emerald for About */
  --card-5: #047857; /* Darker teal for Biography */
  --rain-color: rgba(148, 163, 184, 0.6);
  --splash-color: rgba(148, 163, 184, 0.9);
  --force-field-border: rgba(148, 163, 184, 0.3);
  --force-field-shadow: rgba(148, 163, 184, 0.2);
  --card-bg: #1e1e1e;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-color: #5c6bc0;
  --accent-hover: #7986cb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Decorative elements */
.noise {
  display: none;
}

/* Particle Container */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 8rem 2rem; /* Increased bottom padding from 6rem to 8rem */
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}

.title-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text-blue);
}

.title-highlight {
  color: var(--text-pink);
}

.logo {
  width: 45px;
  height: auto;
}

.tagline {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-dark);
  opacity: 0.8;
  max-width: 600px;
}

.description {
  max-width: 700px;
  margin-top: 0.8rem;
}

.description p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.sources {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.source {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: var(--blue-light);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Individual source colors */
.source:nth-child(1) { /* NYT */
  background-color: var(--text-blue);
}

.source:nth-child(2) { /* BBC */
  background-color: var(--text-pink);
}

.source:nth-child(3) { /* Guardian */
  background-color: #00B2FF;
}

.source:nth-child(4) { /* Fox News */
  background-color: #036;
}

.source:nth-child(5) { /* WSJ */
  background-color: #444;
}

.source:nth-child(6) { /* SMH */
  background-color: var(--blue-primary);
}

/* Options section */
.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;  /* Control maximum width */
  margin: 0 auto;     /* Center the grid container */
  justify-content: center;  /* Center the grid items */
}

.option-card {
  position: relative;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  z-index: 0;
}

.card-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.option-card h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  transition: color var(--transition-speed) ease;
  text-align: center;
}

.option-card p {
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text-color);
  opacity: 0.8;
  transition: color var(--transition-speed) ease;
  text-align: center;
}

.news {
  background-color: var(--card-1);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.2);
}

.history {
  background-color: var(--card-2);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
}

.biography {
  background-color: var(--card-5);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.philosophy {
  background-color: var(--card-3);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.2);
}

.about {
  background-color: var(--card-4);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.option-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

/* Media Queries */
@media (min-width: 768px) {
  main {
    padding: 4rem 2rem;
  }
  
  .options {
    grid-template-columns: repeat(2, minmax(220px, 1fr));  /* Two columns for tablets */
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .options {
    grid-template-columns: repeat(4, minmax(200px, 1fr));  /* Four equal columns for desktop */
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .option-card {
    aspect-ratio: 1/1.1;
  }
}

@media (max-width: 767px) {
  main {
    padding: 4rem 1.5rem 8rem 1.5rem;
    gap: 3rem;
  }
  
  h1 {
    font-size: 2.8rem;
  }
  
  .logo {
    width: 40px;
  }
  
  .tagline {
    font-size: 1.2rem;
    padding: 0 1rem;
  }
  
  .description {
    padding: 0 0.5rem;
  }
  
  .description p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .sources {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .source {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }
  
  .options {
    grid-template-columns: 1fr;  /* Single column for mobile */
    gap: 1rem;
  }
  
  .option-card {
    min-height: 120px;
  }
  
  .card-content {
    flex-direction: column;
    padding: 1.5rem;
    align-items: center;
    text-align: center;
  }
  
  .card-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    margin-right: 0;
  }
  
  .option-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
  }
  
  .option-card p {
    font-size: 0.9rem;
  }
  
  .weather-control {
    padding: 8px 12px;
    transform: translateX(-50%) scale(0.9); /* Slightly smaller on mobile */
  }
  
  .weather-control:hover {
    transform: translateX(-50%) scale(0.93);
  }
  
  .weather-slider {
    width: 80px; /* Smaller slider on mobile */
  }
  
  .about-link {
    padding: 6px 12px;
    font-size: 0.8rem;
    right: 70px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  h1 {
    font-size: 2.3rem;
  }
  
  .title-container {
    gap: 0.5rem;
  }
  
  .logo {
    width: 35px;
  }
  
  .tagline {
    font-size: 1.1rem;
  }
  
  .card-content {
    padding: 1.2rem;
  }
  
  .card-icon {
    font-size: 1.8rem;
  }
  
  .option-card h2 {
    font-size: 1.2rem;
  }
  
  .about-link {
    padding: 4px 10px;
    font-size: 0.75rem;
    right: 65px;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  main {
    padding: 1.5rem;
    gap: 2rem;
  }
  
  .hero {
    gap: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .description p {
    margin-bottom: 1rem;
  }
  
  .options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .option-card {
    min-height: 100px;
  }
}

/* Make sure the theme toggle button is visible and properly styled */
.themeToggle {
    display: none;
}

/* Add the about link styles */
.about-link {
    display: none;
}