/* SOUL/ALLOY Detailed Presentation - Base Styles */
/* Common styles shared between dark and light themes */

body {
  font-family: 'Noto Sans JP', sans-serif;
}

.reveal {
  font-family: 'Noto Sans JP', sans-serif;
}

.reveal .slides section {
  text-align: left;
  padding: 20px 60px;
}

.reveal h1, .reveal h2, .reveal h3 {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
}

.reveal h1 { font-size: 2.8em; margin-bottom: 0.3em; }
.reveal h2 { font-size: 2em; margin-bottom: 0.4em; }
.reveal h3 { font-size: 1.4em; margin-bottom: 0.3em; color: var(--text-sub); }
.reveal p { line-height: 1.8; margin-bottom: 0.8em; }
.reveal ul { margin-left: 1.5em; }
.reveal li { margin-bottom: 0.5em; line-height: 1.6; }

/* ============================================ */
/* Glass Card                                   */
/* ============================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--glass-shadow);
}

/* ============================================ */
/* Part Title Slides                            */
/* ============================================ */
.part-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.part-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.8;
}

.part-title h2 {
  font-size: 3em;
  margin-bottom: 20px;
}

.part-subtitle {
  font-size: 1.3em;
  color: var(--text-sub);
}

.part-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

/* ============================================ */
/* Badges                                       */
/* ============================================ */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  margin-right: 10px;
}

.badge-high { background: rgba(231, 76, 60, 0.3); color: #E74C3C; }
.badge-medium { background: rgba(241, 196, 15, 0.3); color: #F1C40F; }
.badge-new { background: rgba(155, 89, 182, 0.3); color: #9B59B6; }

/* ============================================ */
/* Screenshot Container                         */
/* ============================================ */
.screenshot {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-height: 55vh;
  object-fit: contain;
}

/* ============================================ */
/* Grid Layouts                                 */
/* ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

/* ============================================ */
/* Feature Cards                                */
/* ============================================ */
.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
}

.feature-card h4 {
  color: var(--metal-gold);
  margin-bottom: 10px;
  font-size: 1.1em;
}

.feature-card p {
  font-size: 0.9em;
  color: var(--text-sub);
  margin: 0;
}

.feature-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
}

/* ============================================ */
/* Theory Cards                                 */
/* ============================================ */
.theory-card {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(155, 89, 182, 0.2) 100%);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 20px;
}

.theory-card h4 {
  color: #3498DB;
  margin-bottom: 10px;
}

/* ============================================ */
/* Weight Bar                                   */
/* ============================================ */
.weight-bar {
  display: flex;
  height: 40px;
  border-radius: 20px;
  overflow: hidden;
  margin: 20px 0;
}

.weight-jung { background: linear-gradient(90deg, #3498DB, #2980B9); flex: 50; }
.weight-enneagram { background: linear-gradient(90deg, #9B59B6, #8E44AD); flex: 25; }
.weight-bigfive { background: linear-gradient(90deg, #2ECC71, #27AE60); flex: 25; }

.weight-bar span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9em;
}

/* ============================================ */
/* Organization Chart                           */
/* ============================================ */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.org-level {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.org-node {
  background: var(--glass-bg);
  border: 2px solid;
  border-radius: 12px;
  padding: 15px 25px;
  text-align: center;
  min-width: 120px;
}

.org-node.nucleus { border-color: #E74C3C; }
.org-node.proton { border-color: #FF6B6B; }
.org-node.neutron { border-color: #95A5A6; }
.org-node.electron { border-color: #3498DB; }

/* ============================================ */
/* Timeline                                     */
/* ============================================ */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--metal-gold), var(--metal-copper));
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--metal-gold);
}

.timeline-time {
  color: var(--metal-gold);
  font-weight: 600;
  font-size: 0.9em;
}

/* ============================================ */
/* Stat Grid                                    */
/* ============================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--glass-bg);
  border-radius: 12px;
}

.stat-number {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--metal-gold);
  font-family: 'Montserrat', sans-serif;
}

.stat-label {
  font-size: 0.9em;
  color: var(--text-sub);
  margin-top: 5px;
}

/* ============================================ */
/* Axis Cards                                   */
/* ============================================ */
.axis-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--glass-bg);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 15px;
}

.axis-label {
  font-weight: 700;
  font-size: 1.2em;
  min-width: 80px;
}

.axis-desc {
  flex: 1;
  color: var(--text-sub);
  font-size: 0.95em;
}

/* ============================================ */
/* Table of Contents                            */
/* ============================================ */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.toc-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s ease;
}

.toc-item:hover {
  border-color: var(--metal-gold);
  transform: translateY(-3px);
}

.toc-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--metal-gold);
  font-size: 0.9em;
}

.toc-title {
  font-weight: 600;
  margin-top: 5px;
}

.toc-category {
  font-size: 0.8em;
  color: var(--text-sub);
}

.toc-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.toc-item-small {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 12px;
  transition: all 0.3s ease;
}

.toc-item-small:hover {
  border-color: var(--metal-gold);
  transform: translateY(-2px);
}

.toc-item-small .toc-number {
  font-size: 0.75em;
}

.toc-item-small .toc-title {
  font-size: 0.9em;
  margin-top: 3px;
}

/* ============================================ */
/* Metallic Text Animation                      */
/* ============================================ */
.metallic-text {
  background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 20%, #ffd700 40%, #ffffff 50%, #c0c0c0 60%, #ffd700 80%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallic-shine 4s ease-in-out infinite;
}

@keyframes metallic-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================ */
/* Tab Preview                                  */
/* ============================================ */
.tab-preview {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.tab-item {
  padding: 12px 24px;
  border-radius: 8px 8px 0 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-bottom: 3px solid transparent;
  font-weight: 600;
  font-size: 0.9em;
}

.tab-item.active {
  border-bottom-color: var(--metal-gold);
  color: var(--metal-gold);
}

/* ============================================ */
/* Layer Badges                                 */
/* ============================================ */
.layer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
}

.layer-l1 { background: rgba(139, 195, 74, 0.3); color: #8BC34A; }
.layer-l2 { background: rgba(3, 169, 244, 0.3); color: #03A9F4; }
.layer-l3 { background: rgba(156, 39, 176, 0.3); color: #9C27B0; }

/* ============================================ */
/* Sub-tab Grids                                */
/* ============================================ */
.subtab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.subtab-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.subtab-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
}

.subtab-item .icon {
  font-size: 2em;
  margin-bottom: 10px;
}

.subtab-item .name {
  font-weight: 600;
  font-size: 0.95em;
}

.subtab-item .desc {
  font-size: 0.8em;
  color: var(--text-sub);
  margin-top: 5px;
}

/* ============================================ */
/* Chart Placeholder                            */
/* ============================================ */
.chart-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px dashed var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 0.9em;
  color: var(--text-sub);
}

/* ============================================ */
/* Psychology Framework Cards                   */
/* ============================================ */
.psych-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
}

.psych-card .framework-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.psych-card .framework-name {
  font-weight: 700;
  font-size: 1.2em;
  margin-bottom: 8px;
}

.psych-card .framework-detail {
  font-size: 0.85em;
  color: var(--text-sub);
}

/* ============================================ */
/* Layer Comparison Table                       */
/* ============================================ */
.layer-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.layer-table th, .layer-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.layer-table th {
  background: var(--glass-bg);
  font-weight: 600;
  color: var(--metal-gold);
}

.layer-table tr:hover td {
  background: rgba(255, 215, 0, 0.05);
}

/* ============================================ */
/* Utility Classes                              */
/* ============================================ */

/* Text sizes & colors */
.text-sm-sub { font-size: 0.85em; color: var(--text-sub); }
.text-xs-sub { font-size: 0.8em; color: var(--text-sub); }
.text-center { text-align: center; }
.text-2x { font-size: 2em; }
.fw-bold { font-weight: 700; }
.fw-semi { font-weight: 600; }

/* Spacing */
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.p-10 { padding: 10px; }

/* Colors */
.color-gold { color: var(--metal-gold); }
.color-sub { color: var(--text-sub); }
.color-red { color: #E74C3C; }
.color-blue { color: #3498DB; }
.color-green { color: #2ECC71; }
.color-purple { color: #9B59B6; }
.color-orange { color: #F39C12; }
.color-yellow { color: #F1C40F; }
.color-teal { color: #1ABC9C; }

/* Part & Layer colors */
.color-compatibility { color: var(--color-compatibility); }
.color-special { color: var(--color-special); }
.color-battle { color: var(--color-battle); }
.color-theory { color: var(--color-theory); }
.color-atomic { color: var(--color-atomic); }
.color-origin { color: var(--color-origin); }
.color-corrosion { color: var(--color-corrosion); }
.color-electron { color: var(--color-electron); }
.color-sdgs { color: var(--color-sdgs); }
.color-price { color: var(--color-price); }
.color-catalyst { color: var(--color-catalyst); }
.color-plastic { color: var(--color-plastic); }
.color-pigment { color: var(--color-pigment); }
.color-cosmic { color: var(--color-cosmic); }
.color-persona-page { color: var(--color-persona-page); }
.color-basic-tab { color: var(--color-basic-tab); }
.color-story-tab { color: var(--color-story-tab); }
.color-life-tab { color: var(--color-life-tab); }
.color-l1 { color: var(--color-detail-l1); }
.color-l2 { color: var(--color-detail-l2); }
.color-l3 { color: var(--color-detail-l3); }

/* Border colors for layer cards */
.border-l1 { border-color: var(--color-detail-l1); }
.border-l2 { border-color: var(--color-detail-l2); }
.border-l3 { border-color: var(--color-detail-l3); }

/* ============================================ */
/* Print Styles                                 */
/* ============================================ */
@media print {
  .reveal .slides section {
    page-break-after: always;
  }
}
