/* ==========================================================
   AI RINKA (online-rinka.com) Design System
   Modern Glassmorphism & Pure Static Performance Engine
   Multi-Theme Customizer & Accessibility Architecture
   ========================================================== */

/* 1. Theme 1: Midnight Amethyst (Default - 深夜の安らぎと神秘) */
:root, [data-theme="amethyst"] {
  --theme-name: "Midnight Amethyst";
  --color-bg-main: #0B0F19;
  --color-bg-card: rgba(23, 30, 48, 0.72);
  --color-bg-card-hover: rgba(30, 41, 67, 0.88);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-glow: rgba(139, 92, 246, 0.4);
  
  --color-primary: #8B5CF6;
  --color-primary-light: #A78BFA;
  --color-primary-dark: #6D28D9;
  
  --color-accent-gold: #F59E0B;
  --color-accent-gold-light: #FDE68A;
  
  --color-rose: #EC4899;
  --color-sky: #38BDF8;
  
  --color-text-main: #F8FAFC;
  --color-text-sub: #94A3B8;
  --color-text-muted: #64748B;
  
  --bg-radial-1: rgba(139, 92, 246, 0.14);
  --bg-radial-2: rgba(236, 72, 153, 0.08);
  --bg-radial-3: rgba(56, 189, 248, 0.08);
  
  --cert-bg: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
}

/* 2. Theme 2: Aurora Rose (優しさと愛・自己受容) */
[data-theme="rose"] {
  --theme-name: "Aurora Rose";
  --color-bg-main: #140B12;
  --color-bg-card: rgba(43, 22, 38, 0.72);
  --color-bg-card-hover: rgba(58, 29, 52, 0.88);
  --color-border: rgba(255, 200, 230, 0.14);
  --color-border-glow: rgba(244, 114, 182, 0.45);
  
  --color-primary: #EC4899;
  --color-primary-light: #F472B6;
  --color-primary-dark: #BE185D;
  
  --color-accent-gold: #FBBF24;
  --color-accent-gold-light: #FEF08A;
  
  --color-rose: #FB7185;
  --color-sky: #C084FC;
  
  --color-text-main: #FFF1F2;
  --color-text-sub: #E2CBD8;
  --color-text-muted: #9F8295;
  
  --bg-radial-1: rgba(236, 72, 153, 0.15);
  --bg-radial-2: rgba(251, 113, 133, 0.1);
  --bg-radial-3: rgba(192, 132, 252, 0.08);
  
  --cert-bg: linear-gradient(135deg, rgba(58, 20, 48, 0.95) 0%, rgba(20, 11, 18, 0.95) 100%);
}

/* 3. Theme 3: Emerald Forest (森林浴・深い安らぎと健康) */
[data-theme="emerald"] {
  --theme-name: "Emerald Forest";
  --color-bg-main: #06140E;
  --color-bg-card: rgba(13, 38, 28, 0.72);
  --color-bg-card-hover: rgba(20, 53, 39, 0.88);
  --color-border: rgba(167, 243, 208, 0.14);
  --color-border-glow: rgba(16, 185, 129, 0.45);
  
  --color-primary: #10B981;
  --color-primary-light: #34D399;
  --color-primary-dark: #047857;
  
  --color-accent-gold: #F59E0B;
  --color-accent-gold-light: #FDE68A;
  
  --color-rose: #14B8A6;
  --color-sky: #38BDF8;
  
  --color-text-main: #ECFDF5;
  --color-text-sub: #A7F3D0;
  --color-text-muted: #6EE7B7;
  
  --bg-radial-1: rgba(16, 185, 129, 0.14);
  --bg-radial-2: rgba(20, 184, 166, 0.09);
  --bg-radial-3: rgba(56, 189, 248, 0.08);
  
  --cert-bg: linear-gradient(135deg, rgba(6, 78, 59, 0.95) 0%, rgba(6, 20, 14, 0.95) 100%);
}

/* 4. Theme 4: Sunshine Citrine (前向きな活力・勇気と希望) */
[data-theme="citrine"] {
  --theme-name: "Sunshine Citrine";
  --color-bg-main: #140E05;
  --color-bg-card: rgba(45, 30, 12, 0.72);
  --color-bg-card-hover: rgba(63, 42, 17, 0.88);
  --color-border: rgba(254, 240, 138, 0.15);
  --color-border-glow: rgba(245, 158, 11, 0.45);
  
  --color-primary: #F59E0B;
  --color-primary-light: #FBBF24;
  --color-primary-dark: #B45309;
  
  --color-accent-gold: #F59E0B;
  --color-accent-gold-light: #FEF08A;
  
  --color-rose: #FB923C;
  --color-sky: #FCD34D;
  
  --color-text-main: #FFFBEB;
  --color-text-sub: #FDE68A;
  --color-text-muted: #D97706;
  
  --bg-radial-1: rgba(245, 158, 11, 0.15);
  --bg-radial-2: rgba(251, 146, 60, 0.1);
  --bg-radial-3: rgba(253, 224, 71, 0.08);
  
  --cert-bg: linear-gradient(135deg, rgba(69, 26, 3, 0.95) 0%, rgba(20, 14, 5, 0.95) 100%);
}

/* 5. Theme 5: Silent Snow (クリーン・ライトモード・昼間のオフィスやカフェ用) */
[data-theme="snow"] {
  --theme-name: "Silent Snow";
  --color-bg-main: #F8FAFC;
  --color-bg-card: rgba(255, 255, 255, 0.92);
  --color-bg-card-hover: rgba(241, 245, 249, 0.98);
  --color-border: rgba(15, 23, 42, 0.1);
  --color-border-glow: rgba(99, 102, 241, 0.3);
  
  --color-primary: #6366F1;
  --color-primary-light: #4F46E5;
  --color-primary-dark: #4338CA;
  
  --color-accent-gold: #D97706;
  --color-accent-gold-light: #B45309;
  
  --color-rose: #E11D48;
  --color-sky: #0284C7;
  
  --color-text-main: #0F172A;
  --color-text-sub: #475569;
  --color-text-muted: #64748B;
  
  --bg-radial-1: rgba(99, 102, 241, 0.08);
  --bg-radial-2: rgba(236, 72, 153, 0.05);
  --bg-radial-3: rgba(56, 189, 248, 0.06);
  
  --cert-bg: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
}

/* Global Font Size Variables */
html[data-font-size="large"] { font-size: 18px; }
html[data-font-size="xlarge"] { font-size: 20px; }

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --max-w-container: 1120px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg-main);
  transition: background-color 0.3s ease, font-size 0.2s ease;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, var(--bg-radial-1) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, var(--bg-radial-2) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, var(--bg-radial-3) 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* space for mobile floating bar */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Base Container */
.container {
  width: 100%;
  max-width: var(--max-w-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Links & Buttons */
a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--color-text-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366F1 50%, var(--color-rose) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.5);
  color: #FFFFFF;
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-accent-gold) 0%, #D97706 100%);
  color: #0F172A;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
  color: #0F172A;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-border);
  color: var(--color-text-main);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-text-main);
}

/* Header & Controls Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  transition: background-color 0.3s ease;
}

[data-theme="snow"] .site-header {
  background: rgba(255, 255, 255, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-sub);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.08);
}

.site-nav .nav-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-rose) 100%);
  color: #FFFFFF;
  padding: 7px 16px;
  border-radius: var(--radius-full);
}

/* Top Preference Bar (Theme & Font Size Customizer) */
.preference-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

[data-theme="snow"] .preference-bar {
  background: rgba(0, 0, 0, 0.04);
}

.theme-palette-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-dot-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  padding: 0;
  outline: none;
}

.theme-dot-btn:hover {
  transform: scale(1.18);
}

.theme-dot-btn.active {
  border-color: #FFFFFF;
  box-shadow: 0 0 8px currentColor;
}

.theme-dot-amethyst { background: #8B5CF6; color: #8B5CF6; }
.theme-dot-rose { background: #EC4899; color: #EC4899; }
.theme-dot-emerald { background: #10B981; color: #10B981; }
.theme-dot-citrine { background: #F59E0B; color: #F59E0B; }
.theme-dot-snow { background: #E2E8F0; border: 1px solid #94A3B8; color: #64748B; }

.font-size-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  border-left: 1px solid var(--color-border);
  padding-left: 8px;
}

.font-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.font-btn:hover, .font-btn.active {
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
  padding: 64px 0 40px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--color-primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-title-highlight {
  background: linear-gradient(135deg, var(--color-accent-gold-light) 0%, var(--color-accent-gold) 50%, var(--color-rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-sub);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Interactive Approval App Box */
.approval-app-wrapper {
  margin: 20px auto 60px;
  max-width: 820px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.approval-app-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-gold), var(--color-rose));
}

.app-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.app-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-accent-gold);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.app-header-text h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.app-header-text p {
  font-size: 0.88rem;
  color: var(--color-text-sub);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

[data-theme="snow"] .form-control {
  background: #FFFFFF;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.cat-btn {
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-sub);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-theme="snow"] .cat-btn {
  background: rgba(0, 0, 0, 0.04);
}

.cat-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text-main);
}

.cat-btn.active {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--color-primary);
  color: var(--color-text-main);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

/* Certificate Result Display */
.certificate-card {
  margin-top: 28px;
  background: var(--cert-bg);
  border: 2px solid var(--color-accent-gold);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.2);
  position: relative;
  text-align: center;
  display: none;
  transition: all 0.3s ease;
}

.certificate-card.show {
  display: block;
  animation: fadeInCert 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInCert {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.cert-seal {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  display: block;
}

.cert-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-accent-gold-light);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

[data-theme="snow"] .cert-title {
  color: #B45309;
}

.cert-id {
  font-size: 0.82rem;
  font-family: monospace;
  color: var(--color-text-muted);
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.cert-message {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.04);
  padding: 22px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent-gold);
  text-align: left;
  margin-bottom: 24px;
}

[data-theme="snow"] .cert-message {
  background: rgba(0, 0, 0, 0.03);
}

.cert-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}

.cert-detail-item {
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="snow"] .cert-detail-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.cert-detail-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.cert-detail-item strong {
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.cert-actions-box {
  text-align: left;
  background: rgba(0, 0, 0, 0.2);
  padding: 18px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

[data-theme="snow"] .cert-actions-box {
  background: rgba(0, 0, 0, 0.03);
}

/* Feature Sections */
.section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-sub);
  max-width: 660px;
  margin: 0 auto;
}

/* Grid Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-glow);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* Post Cards with 16:9 Image */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-glow);
  box-shadow: var(--shadow-md);
}

.post-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.read-time-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  line-height: 1.6;
  margin-top: auto;
}

/* Midnight Breath Widget */
.breath-widget {
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

[data-theme="snow"] .breath-widget {
  background: linear-gradient(135deg, #F8FAFC 0%, #EDE9FE 100%);
  border-color: rgba(99, 102, 241, 0.3);
}

.breath-circle-container {
  width: 140px;
  height: 140px;
  margin: 24px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breath-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(139, 92, 246, 0.1) 70%);
  border: 2px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
  transition: transform 4s ease-in-out;
}

.breath-circle.inhale {
  transform: scale(1.4);
}

.breath-circle.exhale {
  transform: scale(0.85);
}

.breath-text {
  position: absolute;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Article Detail Styles */
.article-header {
  padding: 48px 0 24px;
  text-align: center;
}

.article-thumb-full {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 36px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.article-thumb-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-text-main);
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--color-primary-light);
}

.article-body p {
  margin-bottom: 24px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--color-text-sub);
}

.summary-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.summary-box h3 {
  font-size: 1.1rem;
  color: var(--color-primary-light);
  margin-top: 0;
  margin-bottom: 12px;
}

/* Footer & Legal Compliance (Strict 6 Experts Standard) */
.site-footer {
  background: #060911;
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
  font-size: 0.9rem;
  color: var(--color-text-sub);
}

[data-theme="snow"] .site-footer {
  background: #F1F5F9;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand h3 {
  color: var(--color-text-main);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  line-height: 1.7;
  max-width: 440px;
}

.footer-nav h4 {
  color: var(--color-text-main);
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: var(--color-text-sub);
}

.footer-nav a:hover {
  color: var(--color-text-main);
}

.footer-legal-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 32px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

[data-theme="snow"] .footer-legal-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Mobile Floating Bar */
.mobile-floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  padding: 10px 16px;
  z-index: 999;
}

[data-theme="snow"] .mobile-floating-bar {
  background: rgba(255, 255, 255, 0.94);
}

@media (max-width: 768px) {
  .mobile-floating-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .site-nav {
    display: none; /* simple mobile switch */
  }
}

.mobile-floating-btn {
  flex: 1;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-align: center;
}
