/* Quoted-Printable Studio - Styles */

:root {
  --surface: rgba(255, 255, 255, 0.06);
  --outline: rgba(255, 255, 255, 0.1);
  --accent: linear-gradient(120deg, #7cf4ff, #7c8bff 60%, #ff8ac3);
  --text: #e8eefb;
  --muted: #b9c4de;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN",
              "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(124, 244, 255, 0.08), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255, 138, 195, 0.12), transparent 30%),
    radial-gradient(circle at 50% 70%, rgba(124, 139, 255, 0.12), transparent 32%),
    #070b1a;
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding-bottom: 80px; /* フッター用スペース */
}

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.orb.a { background: #7cf4ff; top: 4%; left: -8%; }
.orb.b { background: #ff8ac3; top: 12%; right: -10%; }
.orb.c { background: #7c8bff; bottom: -12%; left: 18%; }

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 48px;
  flex: 1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--muted);
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

select, button {
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

select {
  min-width: 160px;
}

button {
  cursor: pointer;
  border: none;
  background-image: var(--accent);
  background-size: 200% 200%;
  color: #0b0f1f;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(124, 139, 255, 0.25);
}

button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--outline);
}

button:hover { transform: translateY(-1px) scale(1.01); }
button:active { transform: translateY(0); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 16px;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

textarea {
  width: 100%;
  min-height: 240px;
  background: rgba(7, 12, 28, 0.65);
  border: 1px solid var(--outline);
  border-radius: 14px;
  color: var(--text);
  padding: 14px 16px;
  font-size: 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Noto Sans Mono JP", monospace;
  resize: vertical;
  line-height: 1.5;
}

textarea:focus, select:focus { outline: 1.5px solid rgba(124, 139, 255, 0.6); }

.status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status.error { color: #ff9ab5; }

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7cf4ff;
  box-shadow: 0 0 12px rgba(124, 244, 255, 0.65);
}

/* About Section */
.about-section {
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 32px 24px;
  margin-top: 24px;
}

.about-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text);
}

.about-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  color: var(--text);
}

.about-section p {
  line-height: 1.8;
  margin: 0 0 16px 0;
  color: var(--muted);
}

.about-section ul {
  margin: 12px 0;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.about-section li {
  margin: 8px 0;
}

.about-section code {
  background: rgba(124, 244, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  color: #7cf4ff;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 11, 26, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--outline);
  padding: 16px;
  z-index: 100;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.footer-link::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.footer-link:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.footer-link:hover::before {
  transform: scaleX(1);
}

.footer-copyright {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; }
  textarea { min-height: 180px; }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
