/* display.css - Shared styles for Be: /Prompt installation */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #080808;
  color: #ccc;
  font-family: "Bodoni Moda", serif;
  overflow-x: hidden;
}

/* ==================== DISPLAY PAGE LAYOUT ==================== */
body.display-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Left Section - QR Code (1/3 width) */
.qr-section {
  width: 33.33%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  border-right: 1px solid #333;
}

.qr-section h1 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.qr-section .subtitle {
  font-size: 18px;
  color: #999;
  margin-bottom: 40px;
  text-align: center;
}

.qr-container {
  margin-bottom: 30px;
}

.qr-info {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.qr-info .token-info {
  margin: 10px 0;
  color: #999;
}

#currentToken {
  color: #D4145A;
  font-weight: bold;
}

.imp {
  color: #D4145A;
  font-size: 0.8em;
}
/* Right Section - Artist Info (2/3 width) */
.info-section {
  width: 66.67%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  overflow-y: auto;
}

.artist-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-bottom: 30px;
  border-radius: 10px;
}

.info-section h1 {
  font-size: 48px;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: 0.05em;
  text-align: center;
}

.og-name, .years {
  font-size: 20px;
  color: #999;
  margin-bottom: 10px;
  font-style: italic;
  text-align: center;
}

/* .years {
  font-size: 20px;
  color: #666;
  margin-bottom: 30px;
  text-align: center;
} */

.description {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
  max-width: 700px;
}

.prompt {
  font-size: 20px;
  line-height: 1.5;
  color: #D4145A;
  font-style: italic;
  padding: 25px;
  background-color: rgba(212, 20, 90, 0.1);
  border-radius: 10px;
  text-align: center;
  max-width: 700px;
}

.prompt::before {
  content: "現在のプロンプト / Current Prompt";
  display: block;
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}

/* ==================== CONTENT PAGES (index, data, corrections) ==================== */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
  min-height: 100vh;
}

.hero {
  text-align: center;
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 64px;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero .subtitle {
  font-size: 24px;
  color: #D4145A;
  font-style: italic;
}

.page-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-header h1 {
  font-size: 48px;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.page-header p {
  font-size: 18px;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 15px;
}

.content-section {
  margin-bottom: 60px;
}

.content-section h2 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.content-section p {
  font-size: 18px;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 15px;
}

/* ==================== FORMS ==================== */
.form-section {
  background-color: rgba(212, 20, 90, 0.05);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid rgba(212, 20, 90, 0.2);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 16px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-family: "Bodoni Moda", serif;
  background-color: #1a1a1a;
  border: 1px solid #333;
  color: #ccc;
  border-radius: 5px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #D4145A;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group .helper-text {
  font-size: 14px;
  color: #999;
  margin-top: 5px;
}

.submit-btn {
  background-color: #D4145A;
  color: #fff;
  padding: 15px 40px;
  font-size: 18px;
  font-family: "Bodoni Moda", serif;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.3s;
}

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

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

.success-message,
.error-message {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: none;
}

.success-message {
  background-color: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  border: 1px solid #4CAF50;
}

.error-message {
  background-color: rgba(212, 20, 90, 0.2);
  color: #D4145A;
  border: 1px solid #D4145A;
}

/* ==================== NAVIGATION ==================== */
.nav-links {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #333;
}

.nav-links a {
  color: #D4145A;
  text-decoration: none;
  font-size: 18px;
  margin: 0 20px;
  transition: opacity 0.3s;
  display: inline-block;
}

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

/* ==================== GENERAL STYLES ==================== */

/* Status indicator */
.status {
  position: fixed;
  top: 15px;
  right: 15px;
  padding: 10px 15px;
  font-size: 14px;
  color: #4CAF50;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  z-index: 1000;
}

/* Typography */
h1 {
  color: #fff;
  letter-spacing: 0.05em;
}

h2 {
  color: #fff;
  letter-spacing: 0.03em;
}

p {
  line-height: 1.6;
}

ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

/* Links */
a {
  color: #D4145A;
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

/* Accent color */
.accent {
  color: #D4145A;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

button.front, .button {
  display: inline-block;
  font-family: "Bodoni Moda", serif;
  background-color: #D4145A;
  color: #fff;
  padding: 12px 30px;
  margin: 0 0 20px 0;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.3s;
}

/* ==================== LANGUAGE SWITCHER ==================== */
.language-switch {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
}

.language-icon {
  width: 40px;
  height: 40px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.language-icon:hover {
  opacity: 1;
}

.language-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(8, 8, 8, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.language-popup.active {
  display: flex
}

.language-options {
  text-align: center;
}

.language-option {
  font-size: 48px;
  color: #ccc;
  margin: 30px 0;
  cursor: pointer;
  transition: color 0.3s;
}

.language-option:hover {
  color: #D4145A;
}

.language-option.selected {
  color: #D4145A;
}

/* Language visibility control */
.language-en .jp { display: none; }
.language-jp .en { display: none; }

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
  body.display-layout {
    flex-direction: column;
  }

  .qr-section {
    width: 100%;
    height: auto;
    padding: 30px 20px;
    border-right: none;
    border-bottom: 1px solid #333;
  }

  .qr-section h1 {
    font-size: 28px;
  }

  .qr-section .subtitle {
    font-size: 16px;
  }

  .info-section {
    width: 100%;
    padding: 40px 20px;
  }

  .artist-image {
    max-width: 300px;
  }

  .info-section h1 {
    font-size: 40px;
  }

  .og-name {
    font-size: 20px;
  }

  .years {
    font-size: 16px;
  }

  .description {
    font-size: 18px;
  }

  .prompt {
    font-size: 16px;
    padding: 20px;
  }

  .page-container {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero .subtitle {
    font-size: 18px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .page-header p {
    font-size: 16px;
  }

  .content-section h2 {
    font-size: 24px;
  }

  .content-section p, .content-section ul li {
    font-size: 16px;
  }

  .form-section {
    padding: 30px 20px;
  }

  .submit-btn {
    padding: 12px 30px;
    font-size: 16px;
  }

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

@media (max-width: 480px) {
  button, .button {
    padding: 10px 25px;
    font-size: 16px;
  } 
  .qr-section h1 {
    font-size: 24px;
  }

  .qr-section .subtitle {
    font-size: 14px;
  }

  .info-section h1 {
    font-size: 32px;
  }

  .og-name {
    font-size: 18px;
  }

  .artist-image {
    max-width: 200px;
  }

  .description {
    font-size: 16px;
  }

  .prompt {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero .subtitle {
    font-size: 16px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .page-header p, .content-section ul li {
    font-size: 14px;
  }

  .content-section h2 {
    font-size: 20px;
  }

  .content-section p {
    font-size: 14px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
    padding: 10px;
  }

  .submit-btn {
    padding: 10px 25px;
    font-size: 14px;
  }

  .nav-links a {
    font-size: 14px;
    margin: 0 5px;
  }
}

.video-section {
  padding: 0;
}

.intro-video {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 8px; /* optional, match your design */
}