/* Clean Minimalist Component Styles for Wmimo */

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled {
  background: var(--bg-card-elevated);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 1px 0 var(--border-color);
  border-bottom-color: var(--border-color);
}

.site-header.is-scrolled .header-inner {
  height: 56px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.site-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.nav-link.active {
  color: var(--brand-primary);
  font-weight: 600;
}

.nav-desktop .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #00daf5;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 218, 245, 0.9);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-btn {
  display: none !important;
}

/* Language Capsule Switcher [ 中 | EN ] */
.lang-capsule {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.lang-capsule-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
  line-height: 1.2;
}

.lang-capsule-btn:hover {
  color: #ffffff;
}

.lang-capsule-btn.active {
  background: rgba(0, 218, 245, 0.22);
  color: #00daf5;
  box-shadow: 0 0 10px rgba(0, 218, 245, 0.3);
}

.lang-toggle-btn {
  display: none !important;
}

.mobile-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.mobile-toggle-btn:active {
  transform: scale(0.95);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-app);
  z-index: 9999;
  padding: 20px 16px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.is-open {
  display: flex;
  animation: drawerFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-drawer .nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 16px;
  width: 100%;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-footer {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-lang-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
}

.mobile-drawer .nav-link.active {
  background: var(--badge-bg);
  color: var(--brand-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 14px;
}

.btn-sm {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: linear-gradient(135deg, #00BCDF 0%, #0284C7 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(var(--brand-primary-rgb), 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38BDF8 0%, #00BCDF 100%);
  box-shadow: 0 8px 25px rgba(var(--brand-primary-rgb), 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.card:hover {
  border-color: rgba(var(--brand-primary-rgb), 0.4);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.badge-cyan {
  background: rgba(var(--brand-primary-rgb), 0.12);
  color: var(--brand-primary);
}

.badge-green {
  background: rgba(var(--status-green-rgb), 0.12);
  color: var(--status-green);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--status-amber);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-app);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 28px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 320px;
  font-size: 0.88rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-card-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(0.96); }
}

/* Back to top */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.back-to-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top-btn:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}


/* ==========================================================================
   Responsive Adaptations for Components
   ========================================================================== */
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .mobile-toggle-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .header-inner { height: 60px; }
  .mobile-drawer { top: 60px; }
}

@media (max-width: 640px) {
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 20px;
    align-items: center;
  }
  .toast {
    width: 100%;
    justify-content: center;
  }
  .back-to-top-btn {
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .site-logo span {
    font-size: 1.12rem;
  }
  .site-logo img {
    width: 28px;
    height: 28px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn-secondary span {
    display: none;
  }
  .nav-actions .btn-secondary {
    padding: 7px 10px;
  }
}
