/* Fortnite News Section */
.news-section {
  padding: 40px 5%;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
}

/* Scrollable horizontal news feed */
.news-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  scrollbar-width: auto;
  scrollbar-color: #00aaff #1a1a1a;
  padding: 40px 0; /* top-bottom space only */
  scroll-snap-type: x mandatory;
}

.news-container {
  display: flex;
  gap: 20px;
  padding: 0 60px; /* adds margin space so first/last cards aren't cut off */
  width: max-content;
  scroll-snap-type: x mandatory;
  
}

.news-card {
  width: 280px;
  flex: 0 0 auto;
  width: 280px;
  background: #1c1c1c;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
  scroll-snap-align: center;
  transform: translateY(0); 
}

.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 2px solid #00aaff;
}

.news-card h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  margin: 15px;
  color: #00aaff;
}

.news-card p {
  font-family: "Open Sans", sans-serif;
  font-size: 0.9rem;
  color: #ccc;
  margin: 0 15px 15px;
  max-height: 60px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Expanded state */
.news-card.expanded {
  transform: scale(1.05);
  z-index: 5;
  box-shadow: 0 18px 40px rgba(0, 170, 255, 0.2);
}

.news-card.expanded p {
  max-height: 300px;
}

/* Hover floating effect */
.news-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 170, 255, 0.25);
}

/* Smooth horizontal scroll */
.news-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.news-scroll-container::-webkit-scrollbar-thumb {
  background: #00aaff;
  border-radius: 10px;
}
.news-scroll-container::-webkit-scrollbar-track {
  background: #1a1a1a;
}

/* Bug Report Section */
.bug-report-section {
  margin-top: 60px;
  text-align: center;
}

#bugForm {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

#bugForm input,
#bugForm select,
#bugForm textarea {
  padding: 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
  transition: border 0.3s ease;
}

#bugForm input:focus,
#bugForm select:focus,
#bugForm textarea:focus {
  border: 2px solid #00ccff;
}

#bugForm button {
  background-color: #00ccff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

#bugForm button:hover {
  background-color: #00a3cc;
}

.error {
  border: 2px solid #ff3b3b !important;
}

.success {
  border: 2px solid #4caf50 !important;
}

.error-message {
  color: #ff3b3b;
  font-size: 0.8rem;
  text-align: left;
  margin-top: 4px;
}

#form-message {
  margin-top: 10px;
  font-weight: bold;
}
