/* Admin Panel Slider Styles */
.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}

.slider-wrapper {
  display: flex;
  overflow: hidden;
  width: 300px;
  height: 300px;
  border: 2px solid #eee;
  border-radius: 8px;
  background: white;
}

.slider-wrapper img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.5s ease;
}

.arrow {
  background: transparent;
  color: var(--primary-color);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 22px;
  transition: opacity 0.2s ease;
  position: absolute;
}

.arrow:hover {
  opacity: 0.5;
}

.arrow.prev {
  left: 10px;
}

.arrow.next {
  right: 10px;
}

.slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.slider-info {
  font-size: 14px;
  color: #343a40;
  font-weight: 500;
}

.btn-slider {
  background: #17a2b8;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  margin-left: 5px;
}

.btn-slider:hover {
  background: #138496;
}

.slider-wrapper img.selected {
  border: 3px solid #0e1adf;
  box-shadow: 0 0 10px rgba(14, 26, 223, 0.3);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0e1adf;
  --secondary-color: #0e1adf;
  --text-color: #0e1adf;
  --background-color: #ffffff;
  --border-color: #0e1adf;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(14, 26, 223, 0.1);
}

/* Global Layout Enforcement - 1400px Centered */
.site-container {
  max-width: 1400px !important;
  margin: 0 auto !important;
  width: 100% !important;
  position: relative;
}

.character-container {
  display: flex !important;
  justify-content: space-between !important;
  width: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  gap: 10vw;
  pointer-events: none;
  z-index: 5;
}

.hero {
  max-width: 1400px !important;
  margin: 0 auto !important;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #f0f0f0;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.site-container {
  background-color: var(--background-color);
}

/* Site container - strict 1400px centered with !important */
.site-container {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 2rem;
  position: relative;
}

/* Hero section also constrained to 1400px with !important */
.hero {
  max-width: 1400px !important;
  margin: 0 auto !important;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

html {
  scroll-behavior: smooth;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
}

/* Nav — top right, vertical, small */
.nav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  z-index: 1000;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
  align-items: flex-end;
}

.nav-links a {
  color: #0e1adf;
  text-decoration: none;
  font-weight: 500;
  font-size: 11px;
  transition: var(--transition);
  text-align: right;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* Character container with maximum spacing and 10vw gap */
.character-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0;
  gap: 10vw;
  pointer-events: none;
  z-index: 5;
}

.characters-left,
.characters-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  z-index: 10;
  pointer-events: auto;
}

.characters-left {
  align-items: flex-end;
}

.characters-right {
  align-items: flex-start;
}

.hero-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  z-index: 1;
}

/* Character placeholder — logo on top, character below, spaced apart */
.character-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

/* Logo — same blue filter as characters */
.character-placeholder img:first-child,
.hero-logo {
  filter: url(#dodobob-line-art-recolor);
  max-width: 160px;
  height: auto;
}

/* Hero character — blue filter */
.character-placeholder img:last-child,
.hero-character {
  filter: url(#dodobob-line-art-recolor);
  max-width: 320px;
  height: auto;
}

.main-character {
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-card {
  cursor: pointer;
  text-align: center;
  background: transparent;
  border: none;
  transition: var(--transition);
  animation: fadeIn 0.6s ease-out forwards;
}

.character-card:hover {
  transform: scale(1.05);
}

.character-card .character-image {
  width: 420px;
  height: 420px;
  filter: url(#dodobob-line-art-recolor);
}

.character-card .character-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.character-card h3 {
  font-size: 2.2rem;
  color: #0e1adf;
  margin-top: 1.5rem;
  font-weight: 400;
}

/* Animation delays */
.character-card:nth-child(1) { animation-delay: 0.1s; }
.character-card:nth-child(2) { animation-delay: 0.2s; }
.character-card:nth-child(3) { animation-delay: 0.3s; }
.character-card:nth-child(4) { animation-delay: 0.4s; }
.character-card:nth-child(5) { animation-delay: 0.5s; }
.character-card:nth-child(6) { animation-delay: 0.6s; }

/* Main */
.main {
  margin-top: 0;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  color: #0e1adf;
}

.footer a {
  color: #0e1adf;
  text-decoration: none;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
  backdrop-filter: blur(2px);
}

.modal-content {
  background: white;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
  color: var(--text-color);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-body {
  line-height: 1.6;
  color: var(--text-color);
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-section {
  margin-bottom: 2rem;
  text-align: left;
}

.modal-section h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.modal-section p {
  line-height: 1.7;
  color: var(--text-color);
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

.character-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.character-link:hover {
  opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#leftHand, #rightHand {
  display: none;
}

/* Contact Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.submit-btn:hover {
  opacity: 0.8;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 1px solid #c3e6cb;
}

.form-error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
}

/* Gallery-specific color customization */
.gallery-character-image {
  filter: url(#dodobob-gallery-line-art-recolor);
}

/* Character info styles */
.char-desc {
  font-style: italic;
  margin-bottom: 1rem;
  color: #666;
}

.char-story {
  line-height: 1.6;
  color: var(--text-color);
}

/* Modal header styles */
.modal-header {
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 500;
}

/* ── MOBILE ── */
@media (max-width: 768px) {

  .nav {
    top: 1rem;
    right: 1rem;
  }

  .nav-links a {
    font-size: 10px;
  }

  /* Logo smaller */
  .character-placeholder img:first-child,
  .hero-logo {
    max-width: 90px !important;
    filter: url(#dodobob-line-art-recolor);
  }

  /* Hero character smaller */
  .character-placeholder img:last-child,
  .hero-character {
    max-width: 150px !important;
    filter: url(#dodobob-line-art-recolor);
  }

  /* Tighter gap on mobile */
  .character-placeholder {
    gap: 1.2rem;
  }

  /* Side characters smaller */
  .character-card .character-image {
    width: 168px;
    height: 168px;
  }

  .character-card h3 {
    font-size: 1.3rem;
  }

  .characters-left {
    left: 0.5%;
    gap: 1rem;
  }

  .characters-right {
    right: 0.5%;
    gap: 1rem;
  }
}
