/* Type detail page styles — Light theme */

.type-detail-hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #edf6ef, var(--bg));
}
.type-detail-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}

.type-detail-hero-inner {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
}

/* Hero type image */
.type-hero-img {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  border: 4px solid var(--panel);
  box-shadow: 0 8px 32px rgba(47,73,55,0.15);
  display: block;
  animation: floatEmoji 3s ease-in-out infinite;
}

.type-big-emoji {
  font-size: 6rem; display: block; margin-bottom: 20px;
  animation: floatEmoji 3s ease-in-out infinite;
}

.type-badge {
  display: inline-block; padding: 5px 16px; border-radius: 50px;
  font-family: 'Space Mono', monospace; font-size: 0.75rem;
  letter-spacing: 0.12em; margin-bottom: 14px;
}

.type-big-name {
  font-family: 'Ma Shan Zheng', 'Noto Sans SC', sans-serif;
  font-size: clamp(3rem, 8vw, 5rem); line-height: 1; margin-bottom: 6px;
}

.type-big-zh { font-size: 1.1rem; color: var(--muted); margin-bottom: 20px; }

.type-big-motto {
  display: inline-block; padding: 14px 24px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 1.05rem;
  color: var(--text); font-style: italic; line-height: 1.6; margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.type-action-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Content */
.type-content { max-width: 860px; margin: 0 auto; padding: 64px 24px; }
.type-content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

.type-main-desc { color: var(--muted); font-size: 1rem; line-height: 1.9; margin-bottom: 28px; }
.type-section-title { font-family: 'Ma Shan Zheng', sans-serif; font-size: 1.35rem; color: var(--text); margin-bottom: 14px; }
.type-sub-title {
  font-family: 'Space Mono', monospace; font-size: 0.70rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--dim); margin-bottom: 12px;
}

/* Sidebar */
.type-sidebar > * + * { margin-top: 18px; }

.sidebar-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card-title {
  font-family: 'Space Mono', monospace; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--dim); margin-bottom: 12px;
}

/* Traits */
.trait-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.trait-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-xs);
}
.trait-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.trait-text { font-size: 0.9rem; color: var(--text); }

/* Compatible types */
.compat-list { display: flex; flex-direction: column; gap: 8px; }
.compat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--soft);
  border: 1px solid var(--line); border-radius: var(--radius-xs);
  text-decoration: none; color: var(--muted); font-size: 0.86rem;
  transition: all var(--transition);
}
.compat-item:hover { background: var(--panel); border-color: var(--accent); color: var(--accent-strong); transform: translateX(3px); }
.compat-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* Quote */
.quote-block {
  padding: 18px 22px; background: var(--soft);
  border-left: 3px solid; border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  margin: 22px 0; font-style: italic; color: var(--muted); font-size: 0.95rem; line-height: 1.7;
}

/* Tags */
.type-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.type-tag { padding: 5px 14px; border-radius: 50px; font-size: 0.76rem; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }

/* Other types */
.other-types-section { border-top: 1px solid var(--line); padding: 56px 24px; background: var(--soft); }
.other-types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; max-width: 860px; margin: 28px auto 0; }
.other-type-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-xs);
  text-decoration: none; color: var(--muted); font-size: 0.86rem;
  transition: all var(--transition); overflow: hidden;
}
.other-type-card:hover { background: var(--panel); border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.other-type-card img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* Breadcrumb */
.breadcrumb { padding: 76px 24px 0; max-width: 860px; margin: 0 auto; font-size: 0.78rem; color: var(--dim); font-family: 'Space Mono', monospace; }
.breadcrumb a { color: var(--dim); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent-strong); }

@media (max-width: 900px) {
  .type-content-grid { grid-template-columns: 1fr; }
  .type-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 600px) {
  .type-big-name { font-size: 3rem; }
  .type-hero-img { width: 120px; height: 120px; }
  .type-sidebar { grid-template-columns: 1fr; }
  .type-action-row { flex-direction: column; align-items: center; }
}
