@charset "UTF-8";

/* ------------------------------------------------------------
   CUSTOM FONTS
   ------------------------------------------------------------ */
@font-face {
  font-family: "SunLifeNewDisplay";
  src: url("./fonts/SunLifeNewDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SunLifeNewDisplay";
  src: url("./fonts/SunLifeNewDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SunLifeNewText";
  src: url("./fonts/SunLifeNewText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SunLifeNewText";
  src: url("./fonts/SunLifeNewText-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Primary Theming */
  --main-bg: #fff7e6;
  --main-bg2: #f4fbff;
  --body-text: #003946;
  --accent-color: #febe10;
  --accent-hover: color-mix(in srgb,var(--accent-color),#fff 10%);
  --dropzone-border:#8b0000;
  --thumb-border: #ffd700;
  --upload-bg: #1a0000;
  --upload-text: #003946;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --button-bg: #005064;
}

/* ------------------------------------------------------------
   BASE RESET / STRUCTURE
   ------------------------------------------------------------ */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  color: var(--body-text);
  background: var(--main-bg);
  background-attachment: fixed;
  font-family: "SunLifeNewText", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Improve base readability */
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}

/* button, .btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #005064, #00303e);
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 48, 62, 0.4);
  transition: transform 0.06s ease, filter 0.2s ease;
  will-change: transform;
  font-weight: bold;
}
button, .btn:hover {
  background: linear-gradient(135deg, #00667f, #003a4b);
  box-shadow: 0 12px 28px rgba(0, 48, 62, 0.45);
} */

header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .container h1 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  /* font-family: "Creepster", system-ui; */
  /* Responsive headline for better readability */
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);
  line-height: 1.2;
  margin-bottom: 0.25em;
}
header .container h1 span {
  color: var(--accent-color);
}

/* Page Container */
#main {
  min-height: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

#app {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  flex-grow: 1;
  /* Hide app initially until Vue is loaded */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

#app.inited {
  opacity: 1;
  visibility: visible;
}

/* Hide the spinner when the app is initialized - using adjacent sibling selector */
#app.inited + #loading-spinner {
  display: none !important;
}

/* ------------------------------------------------------------
HEADINGS
------------------------------------------------------------ */
h1 {
  font-weight: bold;
  font-family: "SunLifeNewDisplay", "SunLifeNewText", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);
  text-align: center;
}

h1 span {
  color: var(--accent-color);
}

h2 {
  font-weight: bold;
  font-family: "SunLifeNewDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
  line-height: 1.25;
  margin-bottom: 0.4em;
}

h3 {
  font-weight: bold;
  font-family: "SunLifeNewDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  line-height: 1.3;
  margin-bottom: 0.4em;
}

h4 {
  font-weight: bold;
  font-family: "SunLifeNewDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.35;
}

h5 {
  font-weight: bold;
  font-family: "SunLifeNewDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  line-height: 1.35;
}


.logo {
  height: 32px;
}
.logo-link {
  text-decoration: none;
}
.logo img {
  max-width: 100%;
  max-height: 100%;
}
.logo svg {
  height: 40px;
}

svg g path,
svg g rect {
  fill: var(--accent-color) !important;
}

/* Form and controls */
.form-label,
.form-check-label {
  font-size: 1rem;
}

.modal-body {
  font-size: 1rem;
  line-height: 1.6;
}

.sponsor {
  font-size: 1rem;
}

#photo-container {
  position: relative;
  width: 100%;
  height: 350px;
  margin: 3rem auto 1rem auto;
}

#photo-container .photo:nth-child(1) {
  top: 60px;
  left: -22px;
  transform: rotate(-15deg);
  z-index: 1;
}

#photo-container .photo:nth-child(2) {
  top: 35px;
  right: -32px;
  transform: rotate(14deg);
  z-index: 2;
}

#photo-container .photo:nth-child(3) {
  top: 110px;
  left: 26%;
  transform: rotate(7deg);
  z-index: 3;
}

#photo-container .photo:nth-child(4) {
  top: -50px;
  left: 40%;
  transform: rotate(-4deg);
  z-index: 4;
}

.photo {
  position: absolute;
  width: 150px;
  /* height: 200px; */
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 2px solid #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.photo:hover {
  transform: scale(1.1) rotate(0deg) !important;
  z-index: 10 !important;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.4rem;
  }
  #app {
    overflow-x: hidden;
  }
  p {
    margin-bottom: 1rem !important;
  }
}
/* ------------------------------------------------------------
LINKS & HOVER STATES
------------------------------------------------------------ */
a {
  /* Accent color with a white hover */
  color: var(--body-text);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

/* ------------------------------------------------------------
SECTIONS
------------------------------------------------------------ */
.section {
  flex-grow: 1;
}

.text-monospace {
  font-family: "Courier New", Courier, monospace;
}

.sponsor {
  font-size: medium;
  margin-bottom: 1rem;
}

.sponsor-content {
  padding: 1rem;
  color: var(--body-text);
}

/* Container spacing utility */
.container {
  margin: 1rem auto;
  padding: 0 1rem;
}

/* .row {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5rem;
} */


/* ------------------------------------------------------------
IMAGE THUMBNAILS
------------------------------------------------------------ */
.img-thumbnail {
  border: 1px solid var(--thumb-border);
  border-radius: 0.25rem;
}

/* ------------------------------------------------------------
UPLOAD AREA (IMAGE PREVIEW + DRAG-DROP)
------------------------------------------------------------ */
.upload-area {
  border: 2px dashed var(--dropzone-border);
  border-radius: 0.5rem;
  cursor: pointer;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--upload-bg);
  color: var(--upload-text);
}

.upload-area:hover {
  background-color: #fafafa;
}

.upload-area img {
  max-width: 160px;
  max-height: 160px;
  margin: 0 auto;
  display: block;
}

/* Additional accent class (for icons or text) */
.accent-text {
  /* Reusing accent color name for consistency */
  color: var(--accent-color);
}

/* ------------------------------------------------------------
FORM & BUTTONS
------------------------------------------------------------ */
form {
  margin-bottom: 1rem;
}

.btn {
  cursor: pointer;
  height: 3rem;
}

.btn-primary {
  /* Gold background, lighter gold hover, deep red text */
  --bs-btn-bg: var(--button-bg);
  --bs-btn-border-color: var(--button-bg);
  --bs-btn-hover-bg: var(--button-bg);
  --bs-btn-hover-border-color: var(--button-bg);
  --bs-btn-disabled-bg: var(--button-bg);
  --bs-btn-disabled-border-color: var(--button-bg);
  color: #fff;
}
.btn-primary:disabled {

}

.btn-link {
  color: var(--body-text);
}

.file-input, .white-bg {
  color: var(--body-text);
}

/* ------------------------------------------------------------
FOOTER
------------------------------------------------------------ */
/* ------------------------------------------------------------
   GENDER SELECTOR
   ------------------------------------------------------------ */
.gender-selector {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.gender-option {
  position: relative;
  flex: 0 0 auto;
}

.gender-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "SunLifeNewText", Helvetica, Arial, sans-serif;
  text-align: center;
  min-width: 120px;
  justify-content: center;
}

.gender-label:hover {
  border-color: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(254, 190, 16, 0.15);
}

.gender-option.selected .gender-label {
  background: linear-gradient(135deg, #fef9e7, #fffef0);
  border-color: var(--accent-color);
  color: var(--body-text);
  box-shadow: 0 4px 16px rgba(254, 190, 16, 0.25);
  transform: translateY(-1px);
}

.gender-icon {
  font-size: 1.25rem;
  color: #6c757d;
  transition: all 0.2s ease;
}

.gender-option.selected .gender-icon {
  color: var(--accent-color);
  transform: scale(1.05);
}

.gender-label:hover .gender-icon {
  color: var(--accent-color);
  transform: scale(1.02);
}

.gender-text {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gender-option.selected .gender-text {
  font-weight: 600;
  color: var(--body-text);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .gender-selector {
    flex-direction: column;
    gap: 0.5rem;
  }

  .gender-label {
    min-width: auto;
    width: 100%;
  }
}

footer {
  margin-top: auto; /* Push footer to bottom if content is short */
}

#footer {
  max-width: 680px;
  font-size: 0.85rem;
  align-items: left;
  text-align: left;
}

/* Language selector in footer */
.language-selector {
  display: flex;
  justify-content: center;
}
.language-selector .lang-select {
  padding: 4px 8px;
  border: 1px solid var(--accent-color);
  background: var(--main-bg);
  color: var(--body-text);
  border-radius: 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
  min-width: 80px;
  text-align: center;
}
.language-selector .lang-select:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}
.language-selector .lang-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(255, 117, 24, 0.2);
}
.language-selector .lang-select option {
  background: var(--main-bg);
  color: var(--body-text);
  padding: 4px 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  padding-bottom: 1rem;
  align-items: center;
  flex-flow: wrap;
}

.footer-links a {
  padding: 0.25rem;
}

/* ------------------------------------------------------------
SPINNER OVERLAY
------------------------------------------------------------ */
#loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-bg);
  z-index: 9999;
}

/* ------------------------------------------------------------
RESPONSIVE STYLES
------------------------------------------------------------ */
/* ------------------------------------------------------------
IMAGE SELECTION FOR VIDEO GENERATION
------------------------------------------------------------ */
.image-selection-section {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.image-selection-section h3 {
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.image-card {
  position: relative;
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--main-bg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.image-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}
.image-card.selected {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(255, 117, 24, 0.5);
  transform: scale(1.05);
}
.image-card.selected::before {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: var(--main-bg);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 10;
}
.image-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.image-card img:hover {
  transform: scale(1.1);
}

/* Selected image styling for generation container */
.generation-container {
  position: relative;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #fff;
  padding: 2px;
  border: 3px solid #ddd;
}
.generation-container img {
  border-radius: .5rem;
}
.generation-container.selected-image {
  border-color: var(--accent-color);
}

/* Audio selection styling */
.audio-option {
  position: relative;
  background: #fff;
  border: 3px solid #ddd !important;
  border-radius: 28px;
  padding: 1.25rem 1.5rem;
  /* box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08); */
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.audio-option:hover {
  border-color: var(--accent-color) !important;
}

.audio-option.selected-audio {
  border-color: var(--accent-color) !important;
}

.audio-option-header {
  border-bottom: 1px solid #f0f2f8;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.audio-play-button {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.audio-play-button:hover {
  transform: scale(1.05);
}

.audio-play-button.playing {
  background: var(--accent-color, #ff7518);
}

.audio-waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 60px;
  flex: 1;
}

.audio-wave-bar {
  width: 4px;
  border-radius: 2px;
  background: #d5d8e3;
  transition: background 0.2s ease;
}

.audio-option .audio-wave-bar:nth-child(-n+4) {
  background: #2b2e3c;
}

.audio-option.selected-audio .audio-wave-bar {
  background: var(--accent-color);
}

.audio-option.playing .audio-wave-bar,
.audio-play-button.playing ~ .audio-waveform .audio-wave-bar {
  animation: audioWave 1.8s ease-in-out infinite;
  animation-delay: calc(var(--bar-index, 0) * 0.04s);
}

@keyframes audioWave {
  0% { transform: scaleY(0.9); }
  50% { transform: scaleY(1.1); }
  100% { transform: scaleY(0.9); }
}

.hidden-audio {
  display: none;
}

.selected-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-color, #ff7518);
  color: #fff;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 6px 12px rgba(255, 117, 24, 0.35);
  pointer-events: none;
}

/* Photo placeholder styles */
.photo.placeholder {
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, #333, #666);
  border-radius: 8px;
  margin: 10px;
  display: inline-block;
  position: relative;
}

.photo.placeholder::after {
  content: "📷";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
}

@media (min-width: 576px) {
  body {
    font-size: 1.125rem;
  }
  h1 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .upload-area img {
    max-width: 200px;
    max-height: 200px;
  }
  #footer {
    font-size: 1rem;
  }
  .footer-links a {
    padding: 0 0.5rem;
  }
  .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  .image-card img {
    height: 250px;
  }
}
/* ------------------------------------------------------------
WORKFLOW PROGRESS INDICATOR
------------------------------------------------------------ */
.step-indicator {
  color: var(--body-text);
  opacity: 0.5;
  transition: all 0.3s ease;
}
.step-indicator.active {
  opacity: 1;
  color: var(--accent-color);
  font-weight: 600;
}
.step-indicator:hover {
  opacity: 0.8;
}

.progress {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.progress-bar {
  background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #fff 20%));
  transition: width 0.6s ease;
}

/* ------------------------------------------------------------
JOB TYPE LABELS AND VIDEO CONTAINER
------------------------------------------------------------ */
.job-type-label .badge {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.job-type-label .badge i {
  margin-right: 0.5rem;
}

.video-result-container {
  background: var(--main-bg);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.video-result-container video {
  border-radius: 0.25rem;
  background: #000;
}
.video-result-container .ratio {
  position: relative;
}
.video-result-container .ratio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  pointer-events: none;
}

.video-preview {
  position: relative;
}
.preview-frame {
  position: relative;
}
.preview-image {
  width: 80%;
  left: 10%;
  top: 4%;
  position: absolute;
}
