/* ==========================
   Global Styles & Variables
   ========================== */
html {
  overflow-y: scroll;
}

:root {
  --primary-color: #1e1e1e;
  --secondary-color: #d4a807;
  --text-color: #2c2c2c;
  --light-text: #555;
  --font-heading: 'Playfair Display', serif;
  --font-main: 'Poppins', sans-serif;
  --border-radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-color);
  background-color: #f5f5f5;
  text-align: center;
}

/* ==========================
     Typography
     ========================== */
h1,
h2,
p {
  color: var(--light-text);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: var(--font-heading);
}

h2 {
  font-size: 1.6rem;
  font-weight: 350;
  margin-bottom: 12px;
}

p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
}

/* ==========================
     Layout & Containers
     ========================== */

.raised-container, .infographic-container {
  max-width: 1000px;
  margin: 50px auto;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================
     Hero Section
     ========================== */
.hero-text-container {
  text-align: center;
  max-width: 800px;
  margin: 70px auto;
}

.hero-text-container h1 {
  line-height: 1.5;
}

.hero-text-container p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--light-text);
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 36px;
  font-size: 1.5rem;
  color: var(--secondary-color);
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
  text-decoration: none;
}

/* ==========================
     Images
     ========================== */
.background-image-left,
.background-image-right {
  position: fixed;
  top: 0;
  width: 55vw;
  height: 100vh;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.background-image-left {
  left: -25vw;
  background: url('images/silhouette_compass.svg') no-repeat center/contain;
}

.background-image-right {
  right: -25vw;
  background: url('images/silhouette_engraving.svg') no-repeat center/contain;
  transform: scaleX(-1);
}

.infographic-svg {
  width: 100%;
  height: auto;
}

/* ==========================
     Desktop Table Dashboard
     ========================== */
.table-container {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th,
td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 1rem;
}

th {
  background-color: #444;
  color: white;
  font-weight: 600;
}

/* ==========================
     Mobile Card Dashboard
     ========================== */
.mobile-cards {
  display: none;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
}

.mobile-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

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

/* ==========================
     Status Labels
     ========================== */
.status-searching,
.status-complete,
.status-other {
  font-weight: bold;
  color: white;
}

.status-searching {
  background-color: #28a745;
}

.status-complete {
  background-color: #898989;
}

.status-other {
  background-color: #007bff;
}

/* ==========================
     YouTube Video
     ========================== */

.video-container {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
  padding: 20px;
}

.video-container h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* Responsive iframe container */
.video-container iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
}

/* ==========================
     Footer
     ========================== */

footer {
  font-family: 'Arial', sans-serif;
  color: #777;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #e7e7e7;
}

footer p {
  margin: 10px 0;
  font-size: 16px;
}
/* ==========================
     Loading animation
     ========================== */
     .loading-container {
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #f4f4f400;
      padding: 40px;
  }
  .loading {
      width: 50px;
      height: 50px;
      border: 5px solid #555;
      border-top: 5px solid var(--secondary-color);
      border-radius: 50%;
      animation: spin 1s linear infinite;
  }
  @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
  }
  .hidden {
      display: none;
  }

/* ==========================
     Media Queries
     ========================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-text-container h1 {
    font-size: 2.2rem;
  }

  .background-image-left {
    display: none;
  }

  .background-image-right {
    left: -350px;
    width: 768px;
    transform: none;
    background-size: cover;
    opacity: 0.05;
  }

  .hero-text-container {
    padding: 30px 20px;
    margin: 30px auto;
  }

  .infographic-container {
    overflow-x: scroll;
  }

  .table-container {
    display: none !important;
  }

  .mobile-cards {
    display: flex !important;
  }

  .video-container {
    padding: 10px;
  }

  .video-container h2 {
    font-size: 1.5rem;
  }

  br {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-cards {
    display: none !important;
  }

  .table-container {
    display: block !important;
  }
}