/* Tai Chi Wisdom & Water Tai Chi - Responsive Multilingual Theme */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Cambria", "Times New Roman", serif;
  
  --bg-main: #fbf9f5;
  --bg-card: #ffffff;
  --bg-subtle: #f1ede4;
  --bg-dark: #141c24;
  
  --text-main: #242c35;
  --text-muted: #5e6d7e;
  --text-light: #94a3b8;
  --text-inverse: #f8fafc;
  
  --accent-jade: #0f766e;
  --accent-jade-hover: #115e59;
  --accent-jade-light: #e6f4f2;
  --accent-amber: #b45309;
  --accent-amber-light: #fef3c7;
  --accent-red: #be123c;
  
  --border-color: #e5e0d6;
  --border-focus: #0f766e;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(20, 28, 36, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(20, 28, 36, 0.1);
  
  --max-w-content: 860px;
  --max-w-page: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  letter-spacing: -0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-jade);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-jade-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: var(--max-w-page);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  background: var(--accent-jade-light);
  color: var(--accent-jade);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-jade);
}

/* Language Switcher Pill */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.2rem;
  gap: 0.2rem;
}

.lang-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-btn.active {
  background: var(--bg-card);
  color: var(--accent-jade);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
  display: flex;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Main Container */
.main-wrapper {
  flex: 1;
  max-width: var(--max-w-content);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.breadcrumbs span {
  color: var(--border-color);
}

/* Article Hero Header */
.article-header {
  margin-bottom: 2rem;
}

.meta-category {
  display: inline-block;
  color: var(--accent-amber);
  background: var(--accent-amber-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.article-title {
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .article-title {
    font-size: 2.35rem;
  }
}

.article-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.article-author-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-jade-light);
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-lineage {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Video Player Container */
.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.video-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta-bar {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.yt-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-red);
}

/* Interactive Timestamp Pills */
.timestamp-tray {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timestamp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.timestamp-pill:hover, .timestamp-pill:active {
  background: var(--accent-jade);
  color: #fff;
  border-color: var(--accent-jade);
  transform: translateY(-1px);
}

.timestamp-pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* AdSense Slot Wrapper */
.adsense-wrapper {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
}

.adsense-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.adsense-placeholder {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
}

/* Article Body Content */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 1.35rem;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.25rem 0 1rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.75rem 0 0.85rem;
}

/* Principle Step Cards */
.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.principle-card:hover {
  box-shadow: var(--shadow-md);
}

.principle-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--accent-jade-light);
  color: var(--accent-jade);
  margin-bottom: 0.5rem;
}

.principle-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.principle-frame {
  margin: 1rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.principle-frame figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
}

/* Callout Boxes */
.callout {
  border-left: 4px solid var(--accent-jade);
  background: var(--accent-jade-light);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.callout-title {
  font-weight: 700;
  color: var(--accent-jade);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.callout-warning {
  border-left-color: var(--accent-amber);
  background: var(--accent-amber-light);
}

.callout-warning .callout-title {
  color: var(--accent-amber);
}

/* Comparison Table */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background: var(--bg-card);
}

th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-main);
}

/* FAQ Accordion */
.faq-section {
  margin: 2.5rem 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Lineage Banner / Bio */
.bio-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .bio-card {
    flex-direction: row;
    align-items: center;
  }
}

.bio-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}

/* Disclaimer Footer Bar */
.disclaimer-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.6;
  margin-top: 2rem;
}

/* Site Footer */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 3rem 1.25rem 2rem;
  border-top: 1px solid #334155;
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-w-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: #f8fafc;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: #38bdf8;
}

.footer-bottom {
  max-width: var(--max-w-page);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.8rem;
}
