@charset "utf-8";
/* =======================================================================
   Weblease Hub 전용 공통 스타일
   - 파일 경로 : /theme/weblease_Simple-A/css/hub.css
   - 용도 : 허브 메인, 서비스 소개 등 허브 관련 페이지 공용
   - 기존 theme.css / Bittersweet.css 는 그대로 두고 여기서만 확장
   ======================================================================= */

/* ------------------------------
   1. HERO 영역
   ------------------------------ */

.hub-hero-wrap {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.hub-hero-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  /* HERO는 흰 배경이라 기본 글자색(검정) 그대로 사용 */
}

@media (min-width: 992px) {
  .hub-hero-title {
    font-size: 2.4rem;
  }
}

.hub-hero-sub {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #495057; /* 기존 #adb5bd → 조금 더 진한 회색으로 가독성 확보 */
}

.hub-hero-badges > span {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  margin-right: 0.35rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #212529;
}

/* CTA 버튼 줄 정렬 */
.hub-hero-cta .btn {
  min-width: 140px;
}

/* ------------------------------
   2. 다크 카드 공통 (통계/카드/위젯)
   ------------------------------ */

/* ★ 여기 수정 핵심: 다크 박스 내부 기본 글자색을 밝게 통일 */
.hub-stat-card,
.hub-card,
.hub-widget-box {
  border-radius: 0.9rem;
  padding: 1.2rem 1.4rem;
  background: rgba(15, 20, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f8f9fa; /* 다크 카드 기본 텍스트 컬러 */
}

/* 통계 카드만 살짝 여백/라운드 다르게 줄 경우를 대비해서 별도 클래스 유지 */
.hub-stat-card {
  border-radius: 0.9rem;
}

/* ------------------------------
   3. 텍스트 톤 (타이틀/설명)
   ------------------------------ */

.hub-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8f9fa; /* 타이틀은 완전한 밝은 글자 */
}

.hub-section-desc {
  font-size: 0.85rem;
  color: #adb5bd; /* 보조 설명은 살짝 흐린 톤 */
}

/* 통계카드용 라벨/값 */
.hub-stat-label {
  font-size: 0.8rem;
  color: #adb5bd;
}

.hub-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f8f9fa;
}

/* ------------------------------
   4. 카드형 레이아웃 (서비스 설명 등)
   ------------------------------ */

.hub-card + .hub-card {
  margin-top: 0.75rem;
}

/* ------------------------------
   5. 위젯 감싸는 박스 (공지/업데이트/플러그인)
   ------------------------------ */

.hub-widget-box {
  padding: 1rem 1.2rem;
}

/* ------------------------------
   6. 작은 뱃지 / 링크
   ------------------------------ */

.hub-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f3f5;
}

.hub-link-sm a {
  font-size: 0.8rem;
  color: #6ea8fe;
}

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

/* ------------------------------
   9. 다크 박스 내부 링크 / hover 색상
   ------------------------------ */

/* 기본 링크 색상 : 밝게 */
.hub-card a,
.hub-widget-box a,
.hub-stat-card a {
  color: #f8f9fa;
}

/* hover 시 포인트 컬러로 변경 */
.hub-card a:hover,
.hub-widget-box a:hover,
.hub-stat-card a:hover {
  color: #ff6b6b; /* 필요하면 다른 포인트 색으로 변경 가능 */
  text-decoration: underline;
}

/* 작은 링크(.hub-link-sm)는 기존 파란톤 유지 */
.hub-link-sm a {
  font-size: 0.8rem;
  color: #6ea8fe;
}

.hub-link-sm a:hover {
  color: #9ec5fe;
  text-decoration: underline;
}

/* ------------------------------
   7. 공지/업데이트 탭 헤더 느낌
   ------------------------------ */

.hub-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.hub-tab-header .nav {
  border-bottom: none;
}

.hub-tab-header .nav-link {
  padding: 0 0.2rem;
  font-size: 0.8rem;
  color: #adb5bd;
}

.hub-tab-header .nav-link.active {
  color: #fff;
  font-weight: 600;
}

/* ------------------------------
   8. 플러그인 카드용 그리드 (plugin_list 용)
   ------------------------------ */

/* 그리드는 여기에도 한번 정의해 두고,
   스킨의 style.css 에서 추가 커스터마이징 */
.wl-plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 1rem;
}

/* 반응형 (모바일에서는 1열) */
@media (max-width: 575.98px) {
  .hub-hero-wrap {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .wl-plugin-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------
   10. HERO CTA 보조 버튼 색상 보정
   ------------------------------ */

/* 기본 상태 : 흰 배경 + 진한 글자 */
.hub-hero-cta .btn-outline-light {
  color: #343a40;
  border-color: #dee2e6;
  background-color: #ffffff;
}

/* hover 시 : 약간 더 진한 글자 + 옅은 회색 배경 */
.hub-hero-cta .btn-outline-light:hover {
  color: #212529;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

/* 개별 사이트 상세 상태 */
.wl-site-summary {
  border-radius: 16px;
  background: #ffffff;
}

.wl-site-maininfo .wl-site-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.wl-site-maininfo .wl-site-domain a {
  font-size: 0.95rem;
  color: #007bff;
  word-break: break-all;
}

.wl-site-kpi-label {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.wl-site-kpi-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.wl-site-kpi-unit {
  font-size: 0.9rem;
  margin-left: 2px;
}

.wl-site-log-table tbody tr td {
  vertical-align: middle;
}

/* 모니터 센터 - 사이트 상세 요약 */

.wl-site-summary {
  border-radius: 16px;
  background: #ffffff;
}

.wl-site-maininfo .wl-site-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.wl-site-maininfo .wl-site-domain a {
  font-size: 0.95rem;
  color: #007bff;
  word-break: break-all;
}

.wl-site-meta {
  line-height: 1.6;
}

.wl-site-kpi-row .wl-site-kpi-card {
  border-radius: 12px;
  background: #f8f9fa;
  padding: 10px 6px;
}

@media (min-width: 992px) {
  .wl-site-kpi-row .wl-site-kpi-card {
    padding: 12px 10px;
  }
}

.wl-site-kpi-label {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.wl-site-kpi-value {
  font-size: 1.3rem;
  font-weight: 700;
}

.wl-site-kpi-unit {
  font-size: 0.85rem;
  margin-left: 2px;
}

.wl-site-log-table tbody tr td {
  vertical-align: middle;
}

/* 모니터 센터 - 사이트 상세 요약 KPI 시각화 */

.wl-site-summary {
  border-radius: 16px;
  background: #ffffff;
}

.wl-site-maininfo .wl-site-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.wl-site-maininfo .wl-site-domain a {
  font-size: 0.95rem;
  color: #007bff;
  word-break: break-all;
}

.wl-site-meta {
  line-height: 1.6;
}

.wl-site-kpi-row .wl-site-kpi-card {
  border-radius: 12px;
  background: #f8f9fa;
  padding: 10px 8px 12px;
}

@media (min-width: 992px) {
  .wl-site-kpi-row .wl-site-kpi-card {
    padding: 12px 10px 14px;
  }
}

.wl-site-kpi-label {
  font-size: 0.78rem;
  color: #6c757d;
  margin-bottom: 3px;
}

.wl-site-kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.wl-site-kpi-unit {
  font-size: 0.85rem;
  margin-left: 2px;
}

.wl-site-kpi-bar {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e9ecef;
  overflow: hidden;
  margin-top: 6px;
}

.wl-site-kpi-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #28a745, #5cd08a);
  transform-origin: left center;
}

.wl-site-kpi-bar-error span {
  background: linear-gradient(90deg, #dc3545, #f88a97);
}

.wl-site-kpi-bar-visitor span {
  background: linear-gradient(90deg, #17a2b8, #5cd0e0);
}

.wl-site-log-table tbody tr td {
  vertical-align: middle;
}

/* 모니터 센터 - 사이트 상세 요약 + 그래프 */

.wl-site-summary {
  border-radius: 16px;
  background: #ffffff;
}

.wl-site-maininfo .wl-site-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.wl-site-maininfo .wl-site-domain a {
  font-size: 0.95rem;
  color: #007bff;
  word-break: break-all;
}

.wl-site-meta {
  line-height: 1.6;
}

.wl-site-kpi-row .wl-site-kpi-card {
  border-radius: 12px;
  background: #f8f9fa;
  padding: 10px 8px 12px;
}

@media (min-width: 992px) {
  .wl-site-kpi-row .wl-site-kpi-card {
    padding: 12px 10px 14px;
  }
}

.wl-site-kpi-label {
  font-size: 0.78rem;
  color: #6c757d;
  margin-bottom: 3px;
}

.wl-site-kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.wl-site-kpi-unit {
  font-size: 0.85rem;
  margin-left: 2px;
}

.wl-site-kpi-bar {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e9ecef;
  overflow: hidden;
  margin-top: 6px;
}

.wl-site-kpi-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #28a745, #5cd08a);
  transform-origin: left center;
}

.wl-site-kpi-bar-error span {
  background: linear-gradient(90deg, #dc3545, #f88a97);
}

.wl-site-kpi-bar-visitor span {
  background: linear-gradient(90deg, #17a2b8, #5cd0e0);
}

.wl-site-log-table tbody tr td {
  vertical-align: middle;
}

/* 그래프 영역 */

.wl-site-chart-wrap {
  width: 100%;
  max-width: 100%;
}

.wl-site-chart-canvas {
  width: 100%;
  display: block;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

/* ============================================
   Parsing Hub/Node 공통 UI (index + site_* 공용)
   - .ph-* 이름으로만 사용
   - 다른 테마/플러그인과 충돌 최소화
============================================ */

/* 공통 컨테이너 */
.ph-container {
  max-width: 1100px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  padding: 24px 24px 32px;
  font-size: 13px;
}

/* 제목/부제 */
.ph-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.ph-subtitle {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* 상단 네비게이션 탭 */
.ph-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 6px;
  flex-wrap: wrap;
}
.ph-nav a {
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  color: #495057;
  background: #f8f9fa;
}
.ph-nav a.ph-active {
  background: #212529;
  color: #ffffff;
  font-weight: 600;
}
.ph-nav a:hover {
  background: #e9ecef;
}

/* 섹션 카드 */
.ph-section {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  background: #ffffff;
}
.ph-section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.ph-section-desc {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* 필터/폼 공통 */
.ph-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 10px;
}
.ph-filter-item {
  min-width: 140px;
}
.ph-filter-label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #495057;
}

.ph-input,
.ph-select,
.ph-textarea {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #ced4da;
  font-size: 13px;
}
.ph-textarea {
  resize: vertical;
}

/* 버튼 */
.ph-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid #ced4da;
  background: #ffffff;
  color: #212529;
  cursor: pointer;
}
.ph-btn-primary {
  background: #212529;
  border-color: #212529;
  color: #ffffff;
}
.ph-btn-primary:hover {
  background: #000000;
}
.ph-btn-outline {
  background: #ffffff;
}
.ph-btn-xs {
  padding: 3px 8px;
  font-size: 12px;
}
.ph-btn-sm {
  padding: 4px 8px;
  font-size: 12px;
}

/* 사이트 등록/수정 폼 전용 */
.ph-form-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ph-form-table th,
.ph-form-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}
.ph-form-table th {
  width: 140px;
  background: #f8f9fa;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
}

.ph-help {
  font-size: 11px;
  color: #6c757d;
  margin-top: 4px;
  line-height: 1.5;
}
.ph-form-actions {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* 마스터키 입력 줄 정렬 */
.ph-flex-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ph-input-md {
  max-width: 420px;
}

/* 목록용 테이블 */
.ph-table-scroll {
  overflow-x: auto;
  margin-top: 10px;
}
.ph-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ph-table th,
.ph-table td {
  border: 1px solid #e9ecef;
  padding: 6px 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.ph-table th {
  background: #f8f9fa;
  font-weight: 600;
}
.ph-table-empty {
  text-align: center;
  padding: 20px 0;
  background: #f8f9fa;
}

/* 뱃지/텍스트 */
.ph-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
}
.ph-badge-code {
  background: #e9f5ff;
  color: #0d6efd;
}
.ph-badge-key {
  background: #fcefe3;
  color: #e67e22;
}
.ph-badge-role {
  background: #e8f5e9;
  color: #2e7d32;
}
.ph-badge-use-on {
  background: #e9f5ff;
  color: #0d6efd;
}
.ph-badge-use-off {
  background: #f8d7da;
  color: #c82333;
}

.ph-meta {
  font-size: 11px;
  color: #6c757d;
}
.ph-link {
  color: #0d6efd;
  text-decoration: none;
}
.ph-link:hover {
  text-decoration: underline;
}
.ph-code {
  padding: 2px 4px;
  background: #f8f9fa;
  border-radius: 3px;
  font-family: Consolas, Menlo, monospace;
  font-size: 11px;
}

/* 페이징 */
.ph-pagination {
  margin-top: 15px;
  text-align: center;
}

/* 반응형 */
@media (max-width: 768px) {
  .ph-container {
    margin: 20px auto;
    border-radius: 0;
    padding: 18px 12px 24px;
  }
  .ph-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
}
