/* ============================================================
  index.css.scss
  ------------------------------------------------------------
  - Neutral black & white baseline
  - System fonts only
  - Bootstrap-first buttons
  - NO theme / NO decoration / NO gradients
============================================================ */
/* ============================================================
  photo-stacks.css.scss
  ------------------------------------------------------------
  - Minimal feature layer
  - Depends on index.css.scss
============================================================ */
/* ------------------------------------------------------------
  Photo stack
------------------------------------------------------------ */
#photo-container {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 1.5rem auto 2rem auto;
}

/* Photo card */
.photo {
  position: absolute;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--main-bg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover: subtle */
.photo:hover {
  transform: scale(1.02) rotate(0deg) !important;
  z-index: 10 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ------------------------------------------------------------
  Stacking positions 
------------------------------------------------------------ */
#photo-container .photo:nth-child(1) {
  top: 30px;
  left: 0;
  transform: rotate(-6deg);
  z-index: 1;
}

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

#photo-container .photo:nth-child(3) {
  top: 100px;
  right: 0;
  transform: rotate(-4deg);
  z-index: 3;
}

#photo-container .photo:nth-child(4) {
  top: 130px;
  left: 80px;
  transform: rotate(6deg);
  z-index: 4;
}

/* ------------------------------------------------------------
  Responsive tweaks 
------------------------------------------------------------ */
@media (max-width: 576px) {
  #photo-container {
    height: 360px;
  }
  #photo-container .photo:nth-child(3) {
    top: 180px;
    right: -6px;
  }
  #photo-container .photo:nth-child(4) {
    top: 220px;
    left: 30px;
  }
}
/* ------------------------------------------------------------
  Design tokens (neutral only)
------------------------------------------------------------ */
:root {
  --main-bg: #ffffff;
  --main-bg2: #fafafa;
  --body-text: #111111;
  --muted-text: #555555;
  --accent-color: #111111;
  --accent-hover: #333333;
  --border-color: #e5e5e5;
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
}

/* ------------------------------------------------------------
  Reset / Base
------------------------------------------------------------ */
* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  background: var(--main-bg);
  color: var(--body-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  letter-spacing: 0;
  text-align: left;
  text-rendering: optimizeLegibility;
}

/* ------------------------------------------------------------
  Layout containers
------------------------------------------------------------ */
#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;
}

.section {
  flex-grow: 1;
  padding: 8px 0 24px;
}

/* ------------------------------------------------------------
  Header (structure only)
------------------------------------------------------------ */
header {
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
}
header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Keep legacy centered-title behavior */
}
header .container h1 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

/* ------------------------------------------------------------
  Typography
------------------------------------------------------------ */
h1,
h2,
h3,
h4,
h5,
p,
li {
  color: var(--body-text);
  font-family: inherit;
}

h1 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
}

h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  line-height: 1.25;
  font-weight: 800;
  margin: 0.8rem 0 0.4rem;
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.3;
  font-weight: 700;
  margin: 0.6rem 0 0.35rem;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

h5 {
  font-weight: 700;
  margin: 0.5rem 0 0;
}

small,
.small {
  color: var(--muted-text);
}

/* ------------------------------------------------------------
  Links
------------------------------------------------------------ */
a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-hover);
  opacity: 0.9;
}

/* ------------------------------------------------------------
  Logo
------------------------------------------------------------ */
.logo {
  display: flex;
  justify-content: center;
  min-height: 40px;
}

.logo .logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: var(--body-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo img {
  display: block;
  max-width: 180px;
  height: 40px;
  object-fit: contain;
}

.logo .logo-text {
  line-height: 1;
}

/* ------------------------------------------------------------
  Grid helpers
------------------------------------------------------------ */
.container {
  margin: 1rem auto;
  padding: 0 0.5rem;
}

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

.col-6,
.col-lg-4 {
  box-sizing: border-box;
  padding: 0.5rem;
}

/* ------------------------------------------------------------
  Sponsor / content blocks
------------------------------------------------------------ */
.sponsor {
  text-align: left;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--muted-text);
}

.sponsor-content {
  padding: 1rem;
  color: var(--body-text);
  background-color: var(--main-bg2);
  text-align: left;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.hero-card,
.panel,
.status-card {
  background: var(--main-bg2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: none;
}

.hero-intro,
.section-copy {
  color: var(--muted-text);
  line-height: 1.65;
}

.hero-intro {
  text-align: center;
  margin: 0 auto;
  max-width: 38rem;
}

/* ------------------------------------------------------------
  Images / thumbnails
------------------------------------------------------------ */
.img-thumbnail {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------
  Upload area (neutral)
------------------------------------------------------------ */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--main-bg2);
  color: var(--body-text);
}
.upload-area:hover {
  background-color: #f3f3f3;
}
.upload-area img {
  max-width: 160px;
  max-height: 160px;
  margin: 0 auto;
  display: block;
}

/* ------------------------------------------------------------
  Forms
------------------------------------------------------------ */
form {
  margin-bottom: 1rem;
}

.form-label,
.form-check-label {
  font-size: 1rem;
}

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

.file-input {
  cursor: pointer;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-color: var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  background: #ffffff !important;
}

.file-input:hover {
  background-color: #f3f3f3 !important;
}

.file-input.dragging {
  border-color: var(--accent-color) !important;
  background: var(--main-bg2) !important;
}

.file-input img,
.generation-container img {
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------
  Buttons
------------------------------------------------------------ */
/* Bootstrap default preferred.
   Only add minimal black/white if needed. */
.btn {
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  box-shadow: none;
  font-weight: 600;
}

/* Optional minimal override */
.btn-primary {
  --bs-btn-bg: #111111;
  --bs-btn-border-color: #111111;
  --bs-btn-hover-bg: #000000;
  --bs-btn-hover-border-color: #000000;
  --bs-btn-color: #ffffff;
}

.btn-secondary {
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: #111111;
  --bs-btn-hover-bg: #f5f5f5;
  --bs-btn-hover-border-color: #000000;
  --bs-btn-color: #111111;
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  min-height: 48px;
  border-color: var(--border-color);
  color: var(--body-text);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: none;
}

.form-check-input {
  margin-top: 0.32em;
}

.error-text {
  color: #cc0000;
  display: inline-block;
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------
  Footer
------------------------------------------------------------ */
footer {
  margin-top: auto;
}

#footer {
  max-width: 680px;
  font-size: 0.85rem;
  text-align: left;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  color: var(--muted-text);
}

/* Language selector */
.language-selector {
  display: flex;
  justify-content: center;
}
.language-selector .lang-select {
  padding: 6px 10px;
  border: 1px solid var(--accent-color);
  background: #ffffff;
  color: #111111;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
  outline: none;
  min-width: 80px;
  text-align: center;
}
.language-selector .lang-select:hover {
  background: #f4f4f4;
}
.language-selector .lang-select:focus {
  border-color: #000000;
  box-shadow: none;
}
.language-selector .lang-select option {
  background: #ffffff;
  color: #111111;
  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 0.5rem;
}

/* ------------------------------------------------------------
  Spinner overlay
------------------------------------------------------------ */
#loading-spinner {
  position: fixed;
  inset: 0;
  background-color: var(--overlay-bg);
  z-index: 9999;
}

/* ------------------------------------------------------------
  Utilities
------------------------------------------------------------ */
.transition-opacity {
  transition: opacity 0.3s ease-in-out;
}

.opacity-0 {
  opacity: 0;
}

.opacity-1 {
  opacity: 1;
}

/* ------------------------------------------------------------
  Responsive
------------------------------------------------------------ */
@media (min-width: 576px) {
  #footer {
    font-size: 1rem;
  }
  .upload-area img {
    max-width: 200px;
    max-height: 200px;
  }
  .footer-links a {
    padding: 0 0.5rem;
  }
}

/* ============================================================
  KPOP custom theme
  ------------------------------------------------------------
   Page-level styling restored from the previous kpop page.
============================================================ */

:root {
  --main-bg: #0b0a12;
  --main-bg2: #130f1f;
  --body-text: #f8f8ff;
  --muted-text: #b8b4d8;
  --accent-color: #19f0ff;
  --accent-hover: color-mix(in srgb, var(--accent-color), #fff 30%);
  --dropzone-border: #8b0000;
  --thumb-border: #ffd700;
  --upload-bg: #1a0000;
  --upload-text: #ffd700;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --border-color: rgba(255, 255, 255, 0.12);
  --radius-sm: 8px;
  --radius-md: 8px;
}

body {
  color: var(--body-text);
  background:
    radial-gradient(1200px 600px at 30% 0%, rgba(124, 59, 255, 0.25), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 47, 185, 0.25), transparent 65%),
    linear-gradient(180deg, #0b0b14 0%, #0b0b14 100%);
  background-attachment: fixed;
  letter-spacing: 0.2px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  line-height: 1.65;
  text-align: left;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.95" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.08"/></svg>');
  background-size: 160px 160px;
}

#main,
#app {
  min-height: 100%;
}

header {
  border-bottom: 0;
}

header .container {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

header .container h1,
h1 {
  font-family: "Arial Narrow", Impact, "Oswald", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 0.25em;
  white-space: nowrap;
}

header .container h1 {
  position: static;
  grid-column: 2;
  transform: none;
  margin: 0;
  text-align: center;
}

h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
  line-height: 1.25;
  margin-bottom: 0.4em;
}

h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  line-height: 1.3;
  margin-bottom: 0.4em;
}

h4 {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.35;
}

h1,
h2,
h3,
h4,
h5,
p,
li,
.form-label,
.form-check-label,
.section-copy,
.small {
  color: var(--body-text);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  grid-column: 1;
  min-height: 44px;
  min-width: 0;
}

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

.logo img {
  height: 42px;
  width: min(220px, 100%);
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(25, 240, 255, 0.4));
  opacity: 0.96;
}

.logo .logo-text {
  color: var(--body-text);
  text-shadow: 0 0 14px rgba(25, 240, 255, 0.45);
}

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

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

.hero-intro {
  color: var(--body-text);
  text-align: left;
}

.brand-demo-card {
  position: relative;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(25, 240, 255, 0.35);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(25, 240, 255, 0.12), transparent 42%),
    rgba(8, 7, 16, 0.78);
  box-shadow: 0 0 28px rgba(25, 240, 255, 0.12);
}

.brand-demo-card p {
  color: var(--body-text);
}

.brand-demo-kicker {
  color: var(--accent-color) !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

#photo-container {
  height: 400px;
  margin: 1rem auto 6rem auto;
}

#photo-container .photo:nth-child(1) {
  top: 60px;
  left: -20px;
  transform: rotate(-10deg);
}

#photo-container .photo:nth-child(2) {
  top: 40px;
  left: 45%;
  transform: rotate(8deg);
}

#photo-container .photo:nth-child(3) {
  top: 140px;
  right: -20px;
  transform: rotate(-6deg);
}

#photo-container .photo:nth-child(4) {
  top: 180px;
  left: 100px;
  transform: rotate(12deg);
}

.photo {
  width: 200px;
  height: 200px;
  border: 5px solid #fff;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.sponsor {
  color: var(--body-text);
  font-size: 1rem;
}

.sponsor-content,
.status-card,
.panel,
.hero-card {
  color: var(--body-text);
  background:
    radial-gradient(80px 40px at 20% 20%, rgba(255, 255, 255, 0.2), transparent 60%),
    radial-gradient(140px 80px at 80% 80%, rgba(25, 240, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #1a1a30, #0f0f1d);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.img-thumbnail {
  border: 1px solid var(--thumb-border);
  border-radius: 4px;
}

.file-input {
  color: var(--main-bg);
}

.file-input,
.upload-area {
  border-color: var(--dropzone-border) !important;
  background-color: var(--upload-bg) !important;
  color: var(--upload-text);
}

.file-input:hover,
.upload-area:hover {
  background-color: #2d0a0a !important;
}

.form-control,
.form-select {
  color: #111;
}

button,
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0b0b14;
  background: #ff2fb9;
  box-shadow: 0 6px 24px rgba(255, 47, 185, 0.35);
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
  background: #ff2fb9;
}

.btn-primary {
  --bs-btn-bg: var(--accent-color);
  --bs-btn-border-color: var(--accent-color);
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  color: var(--body-text);
}

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

#footer {
  color: var(--muted-text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.language-selector .lang-select {
  border: 1px solid var(--accent-color);
  background: var(--main-bg);
  color: var(--body-text);
  border-radius: 16px;
}

.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(25, 240, 255, 0.2);
}

.language-selector .lang-select option {
  background: var(--main-bg);
  color: var(--body-text);
}

@media (max-width: 900px) {
  header .container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .logo {
    justify-content: center;
    width: 100%;
  }

  .logo img {
    width: auto;
    max-width: 210px;
  }

  header .container h1 {
    white-space: normal;
  }
}

@media (max-width: 576px) {
  header .container {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
  }

  .logo {
    justify-content: center;
    min-width: 0;
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .logo img {
    height: 30px;
    max-width: 180px;
  }

  h1,
  header .container h1 {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    font-size: 1.75rem !important;
  }

  #app {
    overflow-x: hidden;
  }

  p {
    margin-bottom: 0.5rem !important;
  }

  #photo-container .photo:nth-child(3) {
    top: 200px;
    right: -20px;
  }

  #photo-container .photo:nth-child(4) {
    top: 240px;
    left: 40px;
  }
}
