/* —————————————————————————————————————————
   VARIABLES & BASE
————————————————————————————————————————— */
:root {
  --bg-light: #19273d;
  --bg-dark: #27436e;
  --primary: #f9f9f9;
  --primary-light: #4acfff;
  --accent: #03cccc;
  --text-dark: #c2e9ff;
  --text-light: #052a3c;
  --radius: 0.5rem;
  --transition: 0.3s ease;
  --footer-height: 30px;    /* new */
}

* {
  box-sizing: border-box;
  transition: all var(--transition);
}

/* Base site styles */
body {
  margin: 0;
  /* keep your 1rem padding, plus room at bottom for footer */
  padding: 1rem 1rem calc(1rem + var(--footer-height));
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
}

/* Logo styling */
.logo {
  text-align: center;
  margin-bottom: 1rem;
}
.logo img {
  max-width: 350px;
  height: auto;
  display: inline-block;
}
@media (max-width: 350px) {
  .logo {
    width: 100%;
    height: auto;
  }
}

/* Mint status styling */
.mint-status {
  display: block;
  margin-left: 1rem;
  font-size: 1.5rem;
}
.mint-status strong {
  color: indianred;
}
.mint-status.open strong {
  color: lime;
}

/* Layout wrappers */
#accountRow {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Common panel styling */
.panel {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  flex: 1 1 300px;
}

/* Remove global panel link behavior to avoid stretching */
/* .panel a {
  display: inline-block;
} */

/* Specific styling for #additionalInfo1: center and shrink-wrap only the image link */
#additionalInfo1 {
  text-align: center;
}
#additionalInfo1 a {
  display: inline-block;
}
#additionalInfo1 img {
  display: block;
  margin: 0;
  height: 125px;
  width: auto;
  object-fit: contain;
}

/* 3) leave #container (and #connectSection) alone */
#connectSection,
#container {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* under 850px, stack them vertically */
@media (max-width: 850px) {
  #accountRow {
    flex-direction: column;
  }
}

h1, h2 {
  margin-top: 0;
  color: var(--primary);
  text-align: center;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.preview, 
.base64-output {
  flex: 1 1 300px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

#base64Text {
  display: none;
}

/* —————————————————————————————————————————
   STICKY FOOTER
————————————————————————————————————————— */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--footer-height);
  background: #222;
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 1rem;
}

.site-footer a:hover {
  text-decoration: underline;
}


/* —————————————————————————————————————————
   MEDIA QUERY FOR MOBILE
————————————————————————————————————————— */
@media (max-width: 600px) {
  .container {
    flex-direction: column;
  }
}

/* —————————————————————————————————————————
   IMAGES & TEXTAREAS
————————————————————————————————————————— */
img {
  width: 100%;
  border-radius: var(--radius);
  border: 2px dashed var(--primary-light);
  padding: 5px;
  background: #19273d;
}

textarea {
  width: 100%;
  height: 34px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  resize: none;
  font-family: monospace;
  background: #fff;
}

/* —————————————————————————————————————————
   FORM ELEMENTS
————————————————————————————————————————— */
label {
  font-weight: bold;
}

label[for="nameInput"]   { color: #ffbb00; }
label[for="traitInput"]  { color: #ffde85; }
label[for="traitInput2"] { color: #ffde85; }

input[type="text"] {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  background: #c3ffff;
}

button {
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 16px;
  padding: 0.7rem 1.2rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* target both Generate & Mint buttons */
#generateBtn,
#mintBtn {
  width: 100%;
  max-width: 300px; /* optional cap */
  box-sizing: border-box;
}

/* style the native file-picker button */
input[type="file"]::file-selector-button {
  padding: 0.6rem 1rem;
  margin-right: 0.5rem;
  border: none;
  background: var(--accent);
  color: var(--text-light);
  font-weight: bold;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
  display: inline-block;  
}

input[type="file"]::file-selector-button:hover {
  background: var(--primary-light);
}


/* —————————————————————————————————————————
   STATUS & WARNINGS
————————————————————————————————————————— */
#sizeInfo,
#metaSizeInfo,
#status,
#requiredWarning {
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.warning, 
#requiredWarning { color: var(--accent); }

#networkWarning {
  background: #ffe5e0;
  padding: 0.8rem;
  border-radius: var(--radius);
  color: #d32f2f;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* —————————————————————————————————————————
   FUN LITTLE ANIMATION
————————————————————————————————————————— */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 123, 37, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 123, 37, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 123, 37, 0); }
}
#mintBtn:not(:disabled) {
  animation: pulse 2s infinite;
}
