/* Import Public Sans font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;700&display=swap');

/* Global reset & box sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Helvetica, Arial, sans-serif !important;  /* Force Helvetica font everywhere */
}

/* Base page styles */
body {
  background-color: #0B3D91;  /* Changed background color */
  color: #FC3D21;  /* Changed text color */
  padding: 20px;
}

/* Centered container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

h1 {
  font-family: Verdana, sans-serif;
  font-weight: bold;
  color: #FC3D21;  /* Changed header text color */
}

/* Logo */
.logo {
  width: 140px;
  margin-right: 15px;
}

/* Date‐picker & button row */
.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
  padding: 0 20px;
}

/* Inputs and buttons */
input[type="date"],
button {
  font-family: Arial, sans-serif;
  font-weight: normal;
  color: #666;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.4;
  width: 100%;
}

/* Button specific */
button {
  background-color: #d3d3d3;
  color: black;
  cursor: pointer;
}
button:hover {
  background-color: #bfbfbf;
}

/* Stack horizontally on wider screens */
@media (min-width: 600px) {
  .filters {
    flex-direction: row;
    padding: 0;
  }
  
  input[type="date"],
  button {
    width: auto;
  }
}

/* Gallery flex container */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

/* Gallery items */
.gallery-item {
  flex: 1 1 100%;  /* full width by default */
  min-width: 280px;
  max-width: 500px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Three columns on wider screens */
@media (min-width: 1000px) {
  .gallery-item {
    flex: 0 1 31%;
  }
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.gallery-item p {
  margin-top: 10px;
  padding: 5px;
  font-size: 14px;
}

/* Placeholder content */
.placeholder {
  flex: 1 1 100%;
  text-align: center;
  padding: 40px;
  color: #FC3D21;  /* Changed placeholder text color */
}

.placeholder-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

/* Add hover effect to APOD cards */
.apod-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #0B3D91;  /* Changed card background color */
  color: #FC3D21;  /* Changed card text color */
  font-family: Helvetica, Arial, sans-serif;
}
.apod-card:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 2;
}

/* Make sure all text uses the correct color */
.apod-card h3,
.apod-card p,
.apod-card {
  color: #FC3D21;
}

/* Modal styles for text color */
.modal {
  color: #FC3D21;
  font-family: Helvetica, Arial, sans-serif;
}

/* Placeholder and loading message text color */
.placeholder,
.loading-message {
  color: #FC3D21;
}

/* Ensure loading message text is always #FC3D21 */
.loading-message, .loading-message * {
  color: #FC3D21 !important;
}
