/* TechTools — 生日全分析 (Birthday Analyzer) styles */
/* Emerald green accent: var(--cat-life)  #10B981 */

/* ---- Input Section ---- */
.bd-input-section {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.bd-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}

.bd-input-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.bd-input-group input {
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.bd-input-group input:focus {
  border-color: var(--cat-life);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}

.bd-input-group input::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
}

.bd-btn {
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
}

.bd-btn-primary {
  background: linear-gradient(135deg, rgba(16,185,129,0.85), rgba(16,185,129,0.65));
  color: #fff;
  box-shadow: 0 0 20px rgba(16,185,129,0.25);
}

.bd-btn-primary:hover {
  box-shadow: 0 0 30px rgba(16,185,129,0.45);
  transform: translateY(-1px);
}

.bd-btn-outline {
  background: transparent;
  color: var(--cat-life);
  border: 1px solid rgba(16,185,129,0.35);
}

.bd-btn-outline:hover {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.6);
  box-shadow: 0 0 16px rgba(16,185,129,0.2);
}

.bd-btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ---- Results Grid ---- */
.bd-results {
  display: none;
  margin-bottom: 32px;
}

.bd-results.visible {
  display: block;
}

.bd-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ---- Result Card ---- */
.bd-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}

.bd-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.bd-card:hover {
  border-color: rgba(16,185,129,0.25);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.bd-card:hover::before {
  opacity: 1;
}

.bd-card-full {
  grid-column: 1 / -1;
}

.bd-icon-lg {
  font-size: 32px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,185,129,0.08);
  border-radius: 14px;
}

.bd-card-full .bd-icon-lg {
  width: 56px;
  height: 56px;
  font-size: 36px;
  border-radius: 16px;
}

.bd-result-lg {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-hero);
  color: var(--cat-life);
  flex-shrink: 0;
  width: 56px;
  text-align: center;
}

.bd-result-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.bd-result-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.bd-result-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  word-break: break-all;
}

.bd-result-sub strong {
  color: var(--cat-life);
  font-weight: 600;
}

/* ---- Share / Card Section ---- */
.bd-share-section {
  display: none;
  margin-top: 8px;
  margin-bottom: 32px;
}

.bd-share-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bd-share-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--cat-life);
  border-radius: 2px;
}

.bd-card-generator {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.bd-card-generator .bd-input-group {
  flex: 1;
  max-width: 300px;
  min-width: 180px;
}

.bd-card-actions {
  display: flex;
  gap: 8px;
}

/* ---- Card Preview ---- */
.bd-card-preview {
  display: none;
  margin-bottom: 24px;
  max-width: 420px;
}

.bd-card-inner {
  position: relative;
  background: linear-gradient(145deg, rgba(16,185,129,0.06), rgba(16,185,129,0.02));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 20px;
  padding: 28px 24px 24px;
  overflow: hidden;
}

.bd-card-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--cat-life);
  border-style: solid;
  opacity: 0.5;
}

.bd-card-tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.bd-card-tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.bd-card-bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.bd-card-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }

.bd-card-header {
  text-align: center;
  margin-bottom: 20px;
}

.bd-card-decorate-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.35), transparent);
  margin: 8px 0;
}

.bd-card-name {
  font-family: var(--font-hero);
  font-size: 24px;
  font-weight: 700;
  color: var(--cat-life);
  text-shadow: 0 0 20px rgba(16,185,129,0.3);
}

.bd-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bd-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  transition: background 0.2s;
}

.bd-card-row:hover {
  background: rgba(16,185,129,0.06);
}

.bd-card-key {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.bd-card-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.bd-card-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ---- Empty State ---- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px 20px;
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state p {
  font-size: 14px;
  line-height: 1.6;
}

/* ---- Tool Info Section overrides for this tool ---- */
.tool-info-section ul li::before {
  color: var(--cat-life);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .bd-input-section {
    flex-direction: column;
  }

  .bd-input-group {
    min-width: 100%;
  }

  .bd-results-grid {
    grid-template-columns: 1fr;
  }

  .bd-card-generator {
    flex-direction: column;
  }

  .bd-card-generator .bd-input-group {
    max-width: 100%;
  }

  .bd-card-preview {
    max-width: 100%;
  }

  .bd-card-actions {
    width: 100%;
  }

  .bd-card-actions .bd-btn {
    flex: 1;
  }

  .bd-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .bd-card {
    padding: 16px 18px;
    gap: 12px;
  }

  .bd-icon-lg {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .bd-result-lg {
    font-size: 24px;
    width: 44px;
  }

  .bd-result-label {
    font-size: 14px;
  }

  .bd-card-name {
    font-size: 20px;
  }
}
