/*
 * 確認くん公開表示用CSSです。
 * PHP内のインラインstyleを外部化し、既存表示に近い見た目を維持します。
 * bge_env_public_shortcode() から wp_enqueue_style() で読み込まれ、
 * 既存のインラインstyleを置き換えるために使用します。
 */

.bge-wrap {
  max-width: 1400px;
  margin: 20px auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bge-public {
  box-sizing: border-box;
}

.bge-section {
  margin-bottom: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.bge-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(135deg, #6ec1e4 0%, #4a9fbe 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.bge-section-header:hover {
  opacity: 0.9;
}

.bge-section-header .toggle-icon {
  font-size: 18px;
  transition: transform 0.3s;
}

.bge-section-header.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.bge-section-content,
.bge-section-body {
  display: block;
  padding: 20px;
  background: #fafafa;
}

.bge-section-content.collapsed,
.bge-section-body.collapsed {
  display: none;
}

.bge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.bge-card {
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
}

.bge-label {
  margin-bottom: 4px;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.bge-value {
  color: #333;
  font-family: "Courier New", monospace;
  font-size: 13px;
  word-break: break-word;
}

.bge-table-wrap {
  margin-top: 15px;
  overflow: auto;
}

.bge-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bge-table th,
.bge-table td {
  padding: 10px;
  border: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.bge-table th {
  position: sticky;
  top: 0;
  background: #f5f5f5;
  font-weight: 600;
}

.bge-table tbody tr:hover {
  background: #f9f9f9;
}

.bge-category-title {
  margin: 15px 0 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #6ec1e4;
  color: #6ec1e4;
  font-size: 14px;
  font-weight: 600;
}

.bge-empty {
  padding: 10px;
  color: #999;
  font-style: italic;
}

.bge-error {
  margin: 10px 0;
  padding: 15px;
  border-radius: 6px;
  background: #ffebee;
  color: #d32f2f;
}

.bge-copy-btn,
.bge-copy-button {
  margin-left: 10px;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background: #6ec1e4;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.bge-copy-btn:hover,
.bge-copy-button:hover {
  background: #5aafce;
}

.bge-help {
  margin-top: 20px;
  padding: 15px;
  border-left: 4px solid #2196f3;
  border-radius: 4px;
  background: #e3f2fd;
  color: #1565c0;
  line-height: 1.6;
}

.bge-loading {
  padding: 40px;
  color: #6ec1e4;
  font-size: 18px;
  text-align: center;
}

.bge-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #6ec1e4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .bge-grid {
    grid-template-columns: 1fr;
  }

  .bge-table {
    font-size: 11px;
  }

  .bge-table th,
  .bge-table td {
    padding: 6px;
  }
}