/*
 * BraveDAO Core — gate blocks
 * 暖色书卷气卡片，对齐 brave-base 站点基调（#fdfcfb 渐变 + 米色 + 主题绿 #2AA876）
 * 字号基线 ≥14px（Brave 设计准则）
 */

.bdc-gate {
  --bdc-green: #2AA876;
  --bdc-green-dark: #21895f;
  --bdc-gold: #c98f2f;
  background: #fffdf9;
  border: 1px solid #f0d4b1;
  border-radius: 8px;
  padding: 24px 32px;
  margin: 0 0 20px;
  max-width: none;
  width: 100%;
  text-align: left;
}

.bdc-gate-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 0 14px;
  padding: 11px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fdf3e3;
  color: var(--bdc-gold);
}

.bdc-gate-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  margin: 0 0 12px;
}

.bdc-gate-req {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 8px;
}

.bdc-gate-req strong {
  color: var(--bdc-gold);
  font-weight: 700;
}

.bdc-gate-note {
  font-size: 14px;
  line-height: 1.6;
  color: #777;
  margin: 0 0 8px;
}

.bdc-gate-emoji {
  margin-right: 6px;
}

.bdc-gate-actions {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
}

.bdc-gate-actions > * {
  width: auto;
  max-width: none;
  flex: 0 1 auto;
}

/* ─── 按钮统一极简风格：钱包登入 / BraveDAO 账号登录 / 加入质押池，同款描边 ─── */

.bdc-gate-actions .cwl-wrapper,
.bdc-gate-actions .openid-connect-login-button {
  margin: 0;
}

.bdc-gate-actions .cwl-wrapper .cwl-login-button,
.bdc-gate-actions .openid-connect-login-button a,
.bdc-gate-actions .bdc-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  border: 1px solid #d9cfbf;
  background: transparent;
  color: #5a5348;
  text-decoration: none;
  box-shadow: none;
  transition: border-color .15s ease, color .15s ease;
}

.bdc-gate-actions .cwl-wrapper .cwl-login-button:hover,
.bdc-gate-actions .openid-connect-login-button a:hover,
.bdc-gate-actions .bdc-gate-btn:hover,
.bdc-gate-actions .bdc-gate-btn-primary:hover {
  border-color: var(--bdc-gold);
  color: var(--bdc-gold);
  background: transparent;
}

.bdc-gate-actions .cwl-wrapper .cwl-login-button:focus,
.bdc-gate-actions .openid-connect-login-button a:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 143, 47, 0.25);
}

.bdc-gate-btn-primary {
  border-color: var(--bdc-gold);
  color: var(--bdc-gold);
}

.bdc-gate-member {
  font-size: 14px;
  line-height: 1.6;
  color: #777;
  margin: 14px 0 0;
}

/* ─── Dark mode（brave-dark-mode 插件：html.brave-dark-mode）─── */

html.brave-dark-mode .bdc-gate {
  background: #171b22;
  border-color: #262c35;
}

html.brave-dark-mode .bdc-gate-icon {
  background: rgba(255, 255, 255, 0.06);
  color: #e0b45c;
}

html.brave-dark-mode .bdc-gate-title {
  color: #e6e8ee;
}

html.brave-dark-mode .bdc-gate-req {
  color: #c5c9d4;
}

html.brave-dark-mode .bdc-gate-req strong {
  color: #e0b45c;
}

html.brave-dark-mode .bdc-gate-note,
html.brave-dark-mode .bdc-gate-member {
  color: #8b93a3;
}

html.brave-dark-mode .bdc-gate-actions .cwl-wrapper .cwl-login-button,
html.brave-dark-mode .bdc-gate-actions .openid-connect-login-button a,
html.brave-dark-mode .bdc-gate-actions .bdc-gate-btn {
  border-color: #3a4150;
  color: #c5c9d4;
  background: transparent;
}

html.brave-dark-mode .bdc-gate-actions .cwl-wrapper .cwl-login-button:hover,
html.brave-dark-mode .bdc-gate-actions .openid-connect-login-button a:hover,
html.brave-dark-mode .bdc-gate-actions .bdc-gate-btn:hover,
html.brave-dark-mode .bdc-gate-actions .bdc-gate-btn-primary:hover {
  border-color: #e0b45c;
  color: #e0b45c;
  background: transparent;
}

/* ─── 移动端 ─── */

@media (max-width: 600px) {
  .bdc-gate {
    padding: 28px 20px;
  }
}
