/* ==========================================================================
   1. Base & Global Styles
   ========================================================================== */
* {
  font-family: Montserrat, sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* ==========================================================================
   UTILITY & NEW STYLES
   ========================================================================== */

/* Add this utility class near the top of your file */
.hidden {
  display: none !important;
}

/* ==========================================================================
   2. Main Layout (Mobile First)
   ========================================================================== */
.container {
  min-height: 100vh;
  padding: 12vh 1rem 2vh 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 0;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../../assets/translation-page/landing/languageTranslations.jpg);
  background-size: cover;
  background-position: center center;
  opacity: 0.2;
  z-index: -1;
}

/* ==========================================================================
   3. Component Styles (Mobile First)
   ========================================================================== */
.header-section {
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin-bottom: 2rem;
}

.header-section h1 {
  font-size: 2rem;
  color: #002244;
  margin-bottom: 0.5rem;
}

.header-section h2 {
  font-size: 1rem;
  color: #5a7d9b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-bar {
  display: flex;
  margin-top: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#translationSearchInput {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  flex-grow: 1;
  outline: none;
}

#translationSearchButton {
  border: none;
  background-color: #002244;
  color: white;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

#translationSearchButton:hover {
  background-color: #3473b2;
}
.action-panel {
  width: 100%;
  max-width: 1000px;
  margin-top: 2rem;
}

.action-panel h3 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: #002244;
}

.term-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.suggestion-tag {
  background-color: white;
  color: #495057;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.suggestion-tag:hover {
  background-color: #ced4da;
}

.translation-results {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 0;
}

.translation-result-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.separator-diamond {
  width: 1rem;
  height: 1rem;
}

.term-block {
  text-align: center;
}

.term-block .label {
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #5a7d9b;
  margin-bottom: 0.25rem;
}

.term-block .value {
  font-size: 1.5rem;
  color: #212529;
}

.not-found {
  color: #adb5bd;
  font-style: italic;
  text-align: center;
}

.credits {
  margin-top: 3rem;
  text-align: left;
  max-width: 1000px;
  color: #6c757d;
  font-size: 0.9rem;
}

.credits .learn-more {
  margin-top: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #04568d;
}

.credits button {
  background-color: #002244;
  color: white;
  font-weight: 600;
  border: 1px solid #002244;
  border-radius: 20px;
  padding: 8px 60px;
  cursor: pointer;
}

.results-wrapper {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  z-index: 1;
}

.results-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 100vw;
  height: 100%;

  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);

  z-index: -1; /* Place it BEHIND the content */
}

/* ==========================================================================
   4. Desktop Overrides
   ========================================================================== */
@media (min-width: 900px) {
  .container {
    padding: 12vh 2rem 2vh 2rem;
  }

  .header-section h1 {
    font-size: 3rem;
  }

  .header-section h2 {
    font-size: 1.2rem;
  }

  /* Make translation cards horizontal on desktop */
  .translation-card {
    flex-direction: row;
  }

  .term-box {
    flex: 1;
  }

  .term-box:not(:last-child) {
    border-bottom: none;
    border-right: 1px solid #dee2e6;
  }

  .separator-diamond {
    width: 4rem;
    height: 4rem;
  }

  .term-block .value {
    font-size: 2rem;
  }

  .translation-result-item {
    gap: 2rem;
  }
}
