@import url('/fonts/noto-sans-sc/noto-sans-sc.css');

/* === Base === */
body { font-family: 'Noto Sans SC', sans-serif; -webkit-tap-highlight-color: transparent; }
.card-hover { transition: all 0.2s ease; }
.card-hover:active { transform: scale(0.98); opacity: 0.9; }

/* === Scroll === */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.scroll-top { opacity: 0; transition: opacity 0.3s; }
.scroll-top.visible { opacity: 1; }

/* === Navigation === */
.nav-drawer { transform: translateX(-100%); transition: transform 0.3s ease; }
.nav-drawer.open { transform: translateX(0); }
.overlay { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 50%; width: 0; height: 2px; background: #3b82f6; transition: all 0.3s; transform: translateX(-50%); }
.nav-link:hover::after { width: 100%; }

/* === Mobile Menu === */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* === Tabs === */
.tab-active { background: #2563eb; color: white; }
.tab-panel { animation: fadeIn 0.3s ease; }

/* === Form === */
.ask-input:focus, .ask-textarea:focus, .ask-select:focus { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.1); outline: none; }
.about-input:focus, .about-textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); outline: none; }

/* === Info Items === */
.info-item { padding: 0.625rem 0; border-bottom: 1px solid #f3f4f6; }
.info-item:last-child { border-bottom: none; }
.info-label { font-weight: 600; color: #4b5563; display: inline-block; margin-right: 0.5rem; }
.info-value { color: #1f2937; }

/* === Prose Content === */
.prose h2 { font-size: 1.1rem; font-weight: 700; color: #1e3a5f; margin-top: 1.5rem; margin-bottom: 0.75rem; padding-left: 0.75rem; border-left: 4px solid #3b82f6; }
.prose h3 { font-size: 1rem; font-weight: 600; color: #1d4ed8; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.prose p { line-height: 1.8; margin-bottom: 1rem; color: #374151; font-size: 0.95rem; }
.prose ul { margin: 1rem 0; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; font-size: 0.95rem; }
    .prose img { display: block; max-width: 100%; height: auto; border-radius: 0.75rem; margin: 1.25rem 0; }
    .prose a { color: #dc2626 !important; text-decoration: none; }
    .prose a:hover { color: #dc2626 !important; text-decoration: underline; }
    .prose p[style*="text-align:center"],
    .prose p[style*="text-align: center"] { text-align: center !important; }
    .prose p[style*="text-align:center"] img,
    .prose p[style*="text-align: center"] img { display: inline-block !important; margin-left: auto; margin-right: auto; }

/* === Meta Table === */
.meta-table th { text-align: left; padding: 0.375rem 0.75rem; font-weight: 500; color: #6b7280; white-space: nowrap; background: #f9fafb; font-size: 0.875rem; }
.meta-table td { padding: 0.375rem 0.75rem; color: #374151; font-size: 0.875rem; }
.meta-table tr { border-bottom: 1px solid #f3f4f6; }

/* === About Section === */
.about-section { display: none; }
.about-section.active { display: block; }

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease-out forwards; }

/* === Prose Custom === */
.prose-custom p { @apply text-gray-700 leading-relaxed mb-3; }
.prose-custom ul { @apply list-disc pl-5 mb-3 text-gray-700; }
.prose-custom li { @apply mb-2; }

/* === Video === */
.video-no-url { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; background: #f3f4f6; color: #9ca3af; border-radius: 0.5rem; }
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.3s ease;
}
.card-hover:active .play-btn { transform: translate(-50%, -50%) scale(1.1); }
.duration-badge {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.7); color: white;
  font-size: 10px; padding: 1px 5px; border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
