/* phongthuythuctam.com - Bản Đồ Sao Chiêm Tinh Học Styles */
:root {
  --astro-primary: #1b4d3e;
  --astro-primary-light: #2a6855;
  --astro-gold: #d7be88;
  --astro-gold-light: #f3ede0;
  --astro-bg: #122b24;
  --astro-card-bg: #fcfcf9;
  --astro-text: #19211e;
  --astro-text-muted: #58645e;
  --fire-color: #ef4444;
  --earth-color: #10b981;
  --air-color: #f59e0b;
  --water-color: #06b6d4;
}

.bds-hero {
  background: linear-gradient(180deg, #17362d 0%, #122b24 100%);
  color: #ffffff;
  padding: 48px 0 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bds-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(215, 190, 136, 0.08) 0%, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(215, 190, 136, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.bds-hero .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: none;
  color: var(--astro-gold);
  background: rgba(215, 190, 136, 0.08);
  border: 1px solid rgba(233, 196, 106, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.bds-hero h1 {
  font-family: var(--font-serif, "Noto Serif", serif);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.3;
}

.bds-hero .lead {
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

.bds-container {
  max-width: 1040px;
  margin: -24px auto 40px;
  padding: 0 16px;
  position: relative;
  z-index: 10;
}

.bds-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #dcdbd2;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  padding: 24px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .bds-card {
    padding: 32px;
  }
}

.bds-card-title {
  font-family: var(--font-serif, "Noto Serif", serif);
  font-size: 20px;
  font-weight: 700;
  color: #122b24;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bds-card-desc {
  font-size: 13.5px;
  color: var(--astro-text-muted);
  margin: 0 0 20px;
}

/* Form inputs */
.bds-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.bds-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: 0.5px;
}

.bds-field input,
.bds-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  background-color: #f8fafc;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.bds-field input:focus,
.bds-field select:focus {
  outline: none;
  border-color: var(--astro-primary-light);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15);
}

.bds-btn-calc {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #1b4d3e 0%, #143b2f 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(49, 46, 129, 0.3);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bds-btn-calc:hover {
  background: linear-gradient(135deg, #122b24 0%, #3730a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(49, 46, 129, 0.4);
}

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

/* Results layout */
#bdsResultContainer {
  display: none;
}

.bds-chart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  background: radial-gradient(circle at center, #122b24 0%, #0f172a 100%);
  border-radius: 20px;
  padding: 24px 16px;
  border: 1px solid #334155;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

.bds-chart-svg {
  width: 100%;
  max-width: 580px;
  height: auto;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.bds-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 16px 0 24px;
}

.bds-btn-download {
  background: linear-gradient(135deg, #e9c46a 0%, #f59e0b 100%);
  color: #1c0f0a;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bds-btn-download:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.bds-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.bds-btn-secondary:hover {
  background: #dcdbd2;
}

/* Big 3 Cards */
.bds-big3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.bds-big3-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #dcdbd2;
  border-left: 5px solid var(--astro-primary);
  transition: transform 0.2s;
}

.bds-big3-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.bds-big3-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bds-big3-role {
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
  color: var(--astro-primary);
  letter-spacing: 1px;
}

.bds-big3-glyph {
  font-size: 24px;
  line-height: 1;
}

.bds-big3-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.bds-big3-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

/* Elements Bars */
.bds-elements-wrap {
  background: #fdfbf7;
  border: 1px solid #f3e8d2;
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
}

.bds-element-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13.5px;
}

.bds-element-name {
  width: 90px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bds-element-bar-bg {
  flex: 1;
  height: 10px;
  background: #dcdbd2;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 12px;
}

.bds-element-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bds-element-pct {
  width: 45px;
  text-align: right;
  font-weight: 700;
  color: #334155;
}

/* Table of planets */
.bds-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  border: 1px solid #dcdbd2;
  background: #ffffff;
}

.bds-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.bds-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid #cbd5e1;
  white-space: nowrap;
}

.bds-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: top;
}

.bds-table td:nth-child(1),
.bds-table td:nth-child(2),
.bds-table td:nth-child(3),
.bds-table td:nth-child(4) {
  white-space: nowrap;
}

.bds-table td:nth-child(5) {
  min-width: 260px;
  line-height: 1.55;
}

.bds-table tr:hover {
  background-color: #f8fafc;
}

.bds-glyph-cell {
  font-size: 15.5px;
  font-weight: 700;
  color: #122b24;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Giao diện Mobile tối ưu cho bảng tọa độ & báo cáo chi tiết (không cuộn ngang, không kéo dài cột) */
@media (max-width: 680px) {
  .bds-container {
    padding: 0 10px;
  }
  .bds-card {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .bds-table-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
  }
  .bds-table,
  .bds-table tbody {
    display: block;
    width: 100%;
  }
  .bds-table thead {
    display: none;
  }
  .bds-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    background: #ffffff;
    border: 1px solid #dcdbd2;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  }
  .bds-table td {
    display: block;
    padding: 0;
    border: none;
    white-space: normal !important;
  }
  .bds-table td:nth-child(1) {
    font-size: 15px;
    margin-right: 4px;
  }
  .bds-table td:nth-child(2) {
    background: #eef2ff;
    color: #1b4d3e;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12.5px;
  }
  .bds-table td:nth-child(3) {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12.5px;
  }
  .bds-table td:nth-child(4) {
    margin-left: auto;
    font-size: 12.5px;
  }
  .bds-table td:nth-child(5) {
    width: 100%;
    flex-basis: 100%;
    min-width: 0;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed #dcdbd2;
    font-size: 13.5px;
    line-height: 1.55;
  }
  .bds-big3-grid,
  .bds-sub-grid {
    grid-template-columns: 1fr !important;
  }
  .bds-detail-box {
    padding: 16px 14px;
  }
  .bds-detail-box-head,
  .bds-aspect-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Aspects summary */
.bds-aspect-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin: 2px;
}
.bds-aspect-trine, .bds-aspect-sextile {
  background: #e0f2fe;
  color: #0369a1;
}
.bds-aspect-square, .bds-aspect-opposition {
  background: #fee2e2;
  color: #b91c1c;
}
.bds-aspect-conjunction {
  background: #fef3c7;
  color: #b45309;
}

/* Thuc Tam Commentary Box */
.bds-thuctam-note {
  background: linear-gradient(135deg, #fdf8eb 0%, #fef3c7 100%);
  border-left: 4px solid var(--astro-gold);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.bds-thuctam-note h3 {
  font-family: var(--font-serif, "Noto Serif", serif);
  font-size: 17px;
  color: #78350f;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bds-thuctam-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #451a03;
}

/* Share card container for rendering export */
#bdsCanvasContainer {
  display: none;
}

/* Detailed Interpretation Report Sections */
.bds-report-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px dashed #dcdbd2;
}

.bds-report-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.bds-report-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1b4d3e;
  color: #e9c46a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.bds-report-title {
  font-family: var(--font-serif, "Noto Serif", serif);
  font-size: 20px;
  font-weight: 700;
  color: #122b24;
  margin: 0;
}

.bds-detail-box {
  background: #ffffff;
  border: 1px solid #dcdbd2;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.bds-detail-box-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.bds-detail-box-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #122b24;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bds-detail-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #143b2f;
}

.bds-detail-body p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 10px;
}

.bds-detail-body p:last-child {
  margin-bottom: 0;
}

.bds-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.bds-sub-pill {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 14px;
  border-left: 3px solid #2a6855;
}

.bds-sub-pill strong {
  display: block;
  font-size: 12.5px;
  color: #122b24;
  text-transform: none;
  margin-bottom: 4px;
}

.bds-sub-pill span {
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
}

.bds-aspect-card {
  background: #f8fafc;
  border: 1px solid #dcdbd2;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.bds-aspect-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.bds-aspect-card-title {
  font-weight: 700;
  font-size: 14.5px;
  color: #0f172a;
}

@media print {
  .no-print, .site-header, .site-footer, .msg-fab, .zalo-fab, .bds-actions {
    display: none !important;
  }
  .bds-card {
    box-shadow: none !important;
    border: none !important;
  }
}


.bds-field input, .bds-field select { min-height: 44px; height: 44px; border-radius: 8px; }

.bds-report-section { content-visibility: auto; contain-intrinsic-size: auto 700px; }
