/* --- Global & Gradient --- */
body.hidden-until-auth > *:not(script) {
        display: none !important;
    }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  /* Gradient starting at 3/4 page down */
  background-color: #17234B;
  background-image: linear-gradient(to bottom, #17234B 75%, #FCB526 100%); /* Gradient starts at 75% */
  background-repeat: no-repeat;
  min-height: 100vh;
  color: #f0f0f0;
  text-align: center; /* Center all content */
}

/* --- Header --- */
header {
  display: flex;
  justify-content: center; /* Center logo */
  align-items: center;
  padding: 5px 5%; /* Further decreased padding */
  max-width: 1600px;
  margin: 0 auto;
}
.header-logo img {
  max-height: 60px; /* Slightly smaller logo size */
  width: auto;
}

/* --- Navigation Bar --- */
nav {
  /* Transparent bar, matching the darker gradient color */
  background: rgba(23, 35, 75, 0.5); 
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 5%;
  max-width: 1600px;
  margin: 0 auto;
}
.nav-links {
  display: flex;
  flex-wrap: wrap; /* For mobile */
  gap: 20px;
  margin: 0;
  padding: 2px 0; /* Further decreased padding */
  list-style: none;
  justify-content: center; /* Center nav links */
}
.nav-links a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9em;
  padding: 10px 4px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}
.nav-links a:hover {
  border-bottom-color: #FCB526; /* Gold */
}
.nav-links a.active {
  color: #FCB526; /* Gold */
  border-bottom-color: #FCB526;
}

/* --- Main Content Area --- */
main {
  padding: 30px 5%;
  max-width: 1600px;
  margin: 0 auto;
}

/* --- Homepage Specific --- */
.homepage-body {
  text-align: center;
  padding-top: 50px;
}
.homepage-body img {
  max-width: 300px;
}
.homepage-body p {
  font-size: 1.2em;
  max-width: 600px;
  margin: 20px auto;
  line-height: 1.6;
}

/* --- Look Page Specific --- */
#look-title {
  font-size: 1.5em; /* Smaller title */
  margin-bottom: 5px; /* Closer to the next title */
  text-decoration: underline; /* Underline the top title */
  margin-top: 0; /* Removed top margin */
}

.content-section {
  display: none; /* All sections hidden by default */
}
.content-section.visible {
  display: block; /* JS will make the active one visible */
}
.content-section h2 {
  border-bottom: 2px solid #FCB526;
  padding-bottom: 10px;
  font-size: 1.5em; /* Same size as look-title */
  margin-top: 5px; /* Closer to the previous title */
}

.template-download-link {
  display: inline-block;
  background-color: #FCB526;
  color: #17234B;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.template-download-link:hover {
  background-color: #e0a800;
}
.content-section p {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto; /* Center p tags */
  margin-right: auto; /* Center p tags */
}

/* File List (for AE/PSD) */
.file-list a {
  display: block;
  padding: 5px; /* Reduced padding */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #f0f0f0;
  font-weight: 500;
  transition: background 0.2s ease;
}
.file-list a:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Embed (for MOE/MASV) */
.embed-container {
  width: 100%;
  max-width: 900px; /* Limit embed width */
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.embed-container iframe {
  width: 100%;
  height: 70vh; /* Responsive height based on viewport */
  min-height: 500px; /* Minimum height */
  border: none;
}
.masv-embed {
  max-width: 450px; /* MASV embed is narrow */
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.masv-embed iframe {
  height: 70vh; /* Responsive height based on viewport */
  min-height: 500px; /* Minimum height */
}
.masv-logo-div {
  width: 400px;
}
.masv-logo-div img {
  margin: auto;
  display: block;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 120px;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
  }
  .nav-links {
    justify-content: center;
    gap: 10px;
  }
  .nav-links a {
    font-size: 0.8em;
  }
}