/* ============================
   Base Styles
============================ */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f5f5f5;
  color: #222;
  line-height: 1.6;
}

a {
  color: #1E3A8A;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  background: #1E3A8A; /* navy base */
  color: white;
  padding: 2rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ⭐ Star container */
#stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.star {
  position: absolute;
  color: white;
  opacity: 0.8;
  animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ============================
   Coming Soon Banner
============================ */
.coming-soon-banner {
  background: linear-gradient(135deg, #FFA726, #FF7043);
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.coming-soon-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.banner-content {
  position: relative;
  z-index: 1;
}

.standby-text {
  font-size: 1.2rem;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.banner-subtext {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
}

/* ============================
   Search Bar
============================ */
.search-container {
  margin: 2rem auto;
  max-width: 600px;
  display: flex;
  justify-content: center;
}

.search-container input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #ccc;
  border-radius: 40px;
  font-size: 1.1rem;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.2s;
}

.search-container input:focus {
  border-color: #1E3A8A;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.2);
}

/* Checkbox styling (Search in meanings) */
.search-options {
  text-align: center;
  margin-top: -1rem;
  font-size: 0.9rem;
  color: #444;
}

/* ============================
   Submit Acronym Section
============================ */
.submit-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 4px solid #1E3A8A;
}

.submit-container h3 {
  margin-top: 0;
  color: #1E3A8A;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.submit-container p {
  color: #666;
  margin-bottom: 1.5rem;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.submit-form input,
.submit-form textarea,
.submit-form select {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.submit-form input:focus,
.submit-form textarea:focus,
.submit-form select:focus {
  outline: none;
  border-color: #1E3A8A;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.submit-form textarea {
  min-height: 80px;
  resize: vertical;
}

.submit-form select {
  background: white;
  cursor: pointer;
}

.opsec-warning {
  background: #FFF3CD;
  border: 1px solid #FFE69C;
  color: #856404;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.opsec-warning strong {
  color: #664d03;
}

.submit-form button {
  background: #1E3A8A;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.submit-form button:hover {
  background: #1E40AF;
  transform: translateY(-1px);
}

.submit-form button:active {
  transform: translateY(0);
}

/* ============================
   Support Section
============================ */
.support-section {
  background: #f5f5f5; /* light gray, no purple */
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  border-top: 1px solid #ddd;
}

.support-section p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}

/* Support Button */
.support-button {
  display: inline-block;
  background: #1E3A8A; /* Navy */
  color: white;
  padding: 14px 28px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.support-button:hover {
  background: #16367a;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

/* Desktop override: make button lighter if on dark background */
@media (min-width: 769px) {
  .support-button {
    background: white;
    color: #1E3A8A;
    border: 2px solid #1E3A8A;
  }

  .support-button:hover {
    background: #f0f0f0;
    color: #1E40AF;
  }
}

/* ============================
   Flashcard Results
============================ */
.cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1E3A8A;
}

.card .meaning {
  font-weight: 600;
  color: #2E7D32;
  margin-bottom: 0.5rem;
}

.card .description {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.5rem;
}

.card .example {
  font-size: 0.95rem;
  font-style: italic;
  color: #667;
  margin-bottom: 0.5rem;
}

.card .reference {
  font-size: 0.95rem;
  font-style: italic;
  color: #666;
}

/* Match strength badges */
.badges {
  background: #E3F2FD;
  color: #1565C0;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-top: 1rem;
  border: 1px solid #BBDEFB;
}

/* ============================
   Responsive Design
============================ */
@media (max-width: 768px) {
  header {
    padding: 1.5rem 0 2rem;
  }
  
  .search-container {
    margin: 1.5rem 1rem;
  }
  
  .submit-section {
    margin: 1.5rem 1rem;
    padding: 1.5rem;
  }
  
  .card {
    margin: 0 1rem;
  }
  
  .standby-text {
    font-size: 1rem;
  }
  
  .banner-subtext {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .submit-form input,
  .submit-form textarea,
  .submit-form select {
    font-size: 16px;
  }
  
  .card h2 {
    font-size: 1.3rem;
  }
  
  .support-button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* ============================
   Footer
============================ */
footer {
  text-align: center;
  padding: 1.5rem;
  color: #777;
  font-size: 0.85rem;
  margin-top: 3rem;
  border-top: 1px solid #ddd;
}

footer strong {
  color: #1E3A8A;
}

/* ============================
   Header Nav Links Override
============================ */
header nav a {
  color: white;
  font-weight: 600;
  margin: 0 10px;
}

header nav a:hover {
  color: #FFCC00;
  text-decoration: underline;
}
