/* ============================================================
  index.css.scss
  ------------------------------------------------------------
  - Neutral black & white baseline
  - System fonts only
  - Bootstrap-first buttons
  - NO theme / NO decoration / NO gradients
============================================================ */
/* ------------------------------------------------------------
  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: center;
  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;
}

/* ------------------------------------------------------------
  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);
}

/* ------------------------------------------------------------
  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);
}

/* ------------------------------------------------------------
  Buttons
------------------------------------------------------------ */
/* Bootstrap default preferred.
   Only add minimal black/white if needed. */
.btn {
  cursor: pointer;
  border-radius: var(--radius-sm);
  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;
}

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

/* ============================================================
  Ocean Material custom theme
  ------------------------------------------------------------
  Page-level styling restored from the previous oceanmaterial page.
============================================================ */

:root {
  --main-bg: #095569;
  --main-bg2: #ffffff;
  --bs-body-bg: #095569;
  --body-text: #ffffff;
  --muted-text: rgba(255, 255, 255, 0.82);
  --accent-color: #077fa0;
  --accent-hover: color-mix(in srgb, var(--accent-color), #fff 30%);
  --border-color: rgba(255, 255, 255, 0.28);
  --dropzone-border: #8b0000;
  --thumb-border: #ffd700;
  --upload-bg: #1a0000;
  --upload-text: #ffd700;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --radius-sm: 6px;
  --radius-md: 6px;
}

html,
body {
  min-height: 100vh;
  background-color: var(--main-bg);
}

body {
  color: var(--body-text);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 25% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%);
}

#main {
  position: relative;
  background-size: cover;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  text-align: center;
}

header {
  border-bottom: 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}

header .container h1 {
  display: none;
}

.logo {
  justify-content: flex-start;
  min-height: 44px;
}

.logo .logo-link {
  min-height: 44px;
}

.logo img {
  height: 44px;
  max-width: 190px;
  object-fit: contain;
}

.partner-logo {
  justify-content: flex-end;
}

.partner-logo img {
  height: 30px;
  max-width: 180px;
  filter: brightness(0) invert(1);
}

a {
  color: #ffffff;
  text-decoration: underline;
}

a:hover {
  color: rgba(255, 255, 255, 0.84);
}

.section-1 p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.theme-name {
  color: var(--body-text);
  font-weight: 700;
}

.img-thumbnail {
  border: 3px solid #ffffff;
  border-radius: 0.375rem;
  background-color: #ffffff;
}

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

.file-input {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

.form-control {
  background-color: #ffffff;
}

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

.sponsor-content {
  color: var(--main-bg);
  background-color: #ffffff;
  border: 0;
  border-radius: 0.25rem;
}

.sponsor-content a {
  color: var(--main-bg);
}

.generation-container {
  border: 3px solid #ffffff;
  border-radius: 0.375rem;
}

.btn-primary {
  --bs-btn-color: var(--body-text);
  --bs-btn-bg: #077fa0;
  --bs-btn-border-color: #077fa0;
  --bs-btn-hover-color: var(--main-bg);
  --bs-btn-hover-bg: #ffffff;
  --bs-btn-hover-border-color: #ffffff;
  font-weight: 800;
}

.btn-secondary {
  --bs-btn-color: var(--main-bg);
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: #ffffff;
  --bs-btn-hover-color: var(--main-bg);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.88);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.88);
}

#footer {
  color: #ffffff;
  border-top-color: rgba(255, 255, 255, 0.28);
}

#footer a {
  color: #ffffff;
}

.language-selector .lang-select {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--main-bg);
}

.language-selector .lang-select:hover,
.language-selector .lang-select:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: #ffffff;
}

@media (max-width: 576px) {
  header .container {
    align-items: center;
  }

  .logo img {
    height: 34px;
    max-width: 150px;
  }

  .partner-logo img {
    height: 24px;
    max-width: 130px;
  }
}
