/* =============================================================
   Mind Fitness Hub — Landing page for all tools
   ============================================================= */

:root {
  --bg-primary: #faf7f2;
  --bg-secondary: #f3ede4;
  --text-primary: #2d2a26;
  --text-secondary: #6b6560;
  --text-dim: #9b9590;
  --accent-warm: #e07a5f;
  --accent-night: #7c6ddf;
  --radius: 20px;
  --radius-lg: 28px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Prompt', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- Hub Container --- */
.hub-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* --- Header --- */
.hub-header {
  text-align: center;
  margin-bottom: 48px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.brand-icon {
  color: var(--accent-warm);
  line-height: 1;
}

.brand-text {
  text-align: left;
}

.brand-name {
  font-family: 'Nunito', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.hub-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Tools Grid --- */
.tools-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

/* --- Tool Card --- */
.tool-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.tool-card:active {
  transform: translateY(-1px);
}

.tool-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.tool-card-content {
  position: relative;
  z-index: 1;
  padding: 36px 32px;
}

.tool-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.tool-name {
  font-family: 'Nunito', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 2px;
}

.tool-subtitle {
  font-size: 13px;
  opacity: 0.6;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.tool-desc {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  opacity: 0.85;
}

.tool-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tool-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tool-time {
  font-size: 13px;
  opacity: 0.6;
}

.tool-cta {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
}

.tool-card:hover .tool-cta {
  transform: translateX(4px);
}

/* --- Warm Theme (ระบายใจ) --- */
.tool-card--warm {
  background: linear-gradient(135deg, #fdf0e8 0%, #fbe2d0 100%);
  color: #3d2a1a;
}

.tool-card--warm .tool-tag {
  background: rgba(224, 122, 95, 0.15);
  color: #c96a52;
}

.tool-card--warm .tool-cta {
  color: var(--accent-warm);
}

/* --- Night Theme (นอนนับแกะ) --- */
.tool-card--night {
  background: linear-gradient(135deg, #1a1a4e 0%, #0d1130 100%);
  color: #e8e4f0;
}

.tool-card--night .tool-tag {
  background: rgba(184, 169, 250, 0.2);
  color: #b8a9fa;
}

.tool-card--night .tool-cta {
  color: #b8a9fa;
}

/* --- Battery Theme (แบตใจ) --- */
.tool-card--battery {
  background: linear-gradient(135deg, #FFF5EC 0%, #E8D5F5 50%, #D4EAFF 100%);
  color: #3D2C4E;
}

.tool-card--battery .tool-tag {
  background: rgba(168, 85, 247, 0.15);
  color: #A855F7;
}

.tool-card--battery .tool-cta {
  color: #A855F7;
}

/* --- Attachment Theme (สไตล์ความผูกพัน) --- */
.tool-card--attachment {
  background: linear-gradient(135deg, #FFF5F7 0%, #FFE8EE 50%, #F5E0FF 100%);
  color: #3D1F2E;
}

.tool-card--attachment .tool-tag {
  background: rgba(232, 93, 117, 0.15);
  color: #E85D75;
}

.tool-card--attachment .tool-cta {
  color: #E85D75;
}

/* --- Share Section --- */
.share-section {
  margin-bottom: 48px;
}

.share-title {
  font-family: 'Prompt', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.share-desc {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.share-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-radius: 14px;
  margin-bottom: 10px;
}

.share-tool-row--hub {
  background: linear-gradient(135deg, #fdf0e8 0%, #ede4f5 50%, #dce8fa 100%);
}

.share-tool-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.share-btns {
  display: flex;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn:active {
  transform: translateY(0);
}

.share-btn--fb {
  background: #1877F2;
}

.share-btn--x {
  background: #000;
}

.share-btn--line {
  background: #06C755;
}

.share-btn--copy {
  background: var(--text-dim);
  color: #fff;
}

.share-btn--copy.copied {
  background: #22c55e;
}

/* --- CTA Section --- */
.cta-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.cta-card {
  background: linear-gradient(135deg, #fff7f0 0%, #ffecd9 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.cta-card--outline {
  background: var(--bg-secondary);
  border: 1.5px solid #e0d8cf;
}

.cta-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 10px;
}

.cta-title {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cta-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.cta-btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cta-btn--primary {
  background: var(--accent-warm);
  color: #fff;
}

.cta-btn--secondary {
  background: #fff;
  color: var(--text-primary);
  border: 1.5px solid #d5cec5;
}

/* --- Footer --- */
.hub-footer {
  text-align: center;
  color: var(--text-dim);
  padding-top: 24px;
  border-top: 1px solid #e8e2da;
}

.hub-partner-section {
  margin-bottom: 20px;
}

.hub-partner-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.hub-partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hub-partner-logo {
  height: 40px;
  width: auto;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.hub-partner-logo:hover {
  opacity: 1;
}

.hub-footer-text {
  font-size: 13px;
  margin-bottom: 4px;
}

.hub-footer-link {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--accent-warm);
  text-decoration: none;
}

.hub-footer-link:hover {
  text-decoration: underline;
}

.hub-footer-tagline {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .hub-container {
    padding: 28px 16px 40px;
  }

  .brand-name {
    font-size: 26px;
  }

  .hub-desc {
    font-size: 15px;
  }

  .tool-card-content {
    padding: 28px 24px;
  }

  .tool-name {
    font-size: 24px;
  }

  .tool-icon {
    font-size: 40px;
  }

  .share-tool-row {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .share-btns {
    width: 100%;
    justify-content: flex-start;
  }
}
