/* =========================================================
   홈 매거진 최신 개편 스타일 (boutique-info 1:1 여백 & 여유 공간 완벽 반영)
   ========================================================= */

/* 전체 페이지 레이아웃 여백 확보 (모니터 끝까지 퍼지지 않도록 1180px 중앙 정렬) */
body {
  background-color: #f7f8f9 !important; /* 차분하고 은은한 에디토리얼 라이트 배경 */
}

/* 최상단 GNB 네비게이션 너비 제한 및 중앙 정렬 */
.site-nav {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.site-nav .nav-container {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  height: 62px !important;
}

/* 메인 컨테이너 최대 너비 1180px 고정 및 좌우 시원한 여백 확보 */
.main-content {
  max-width: 1180px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 28px 20px 80px !important;
  box-sizing: border-box !important;
}

/* 1. 최상단 검은색 띠 바 (Top Bar) */
.top-notice-bar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 8px 20px;
  border-bottom: 1px solid #1e293b;
  position: relative;
  z-index: 10000;
}
.top-notice-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.top-notice-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-notice-brand {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.top-notice-tagline {
  color: #64748b;
  font-weight: 500;
}
.top-notice-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-notice-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.top-notice-btn:hover {
  color: #38bdf8;
}

/* 2. 비밀 키워드 검은색 캡슐 배너 (컴팩트 & 여유 공간) */
.secret-capsule-banner {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 9999px;
  padding: 10px 24px;
  margin: 16px auto 36px;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.secret-capsule-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f5f9;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.secret-capsule-text .lock-icon {
  font-size: 0.95rem;
}
.secret-capsule-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-capsule-green {
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-capsule-green:hover {
  background: #047857;
}
.btn-capsule-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-capsule-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

/* 3. 메인 히어로 2단 분할 영역 (상하 마진 확장) */
.magazine-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 0 2px;
  flex-wrap: wrap;
  gap: 16px;
}
.magazine-hero-title {
  font-size: 2.15rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin: 0 0 8px 0;
  line-height: 1.25;
}
.magazine-hero-desc {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}
.magazine-hero-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.magazine-hero-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

/* 4. 실시간 급상승어 섹션 (원본 사이트와 동일하게 5위까지 컴팩트 노출 및 스크롤) */
.trending-section {
  margin-bottom: 36px !important;
}
.trending-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px !important;
}
.trending-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
}
.trending-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.trending-portal-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 10px 8px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  min-height: auto !important;
}
.portal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.portal-name-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.95rem !important;
}
.dot-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.dot-naver { background: #03c75a; box-shadow: 0 0 6px rgba(3, 199, 90, 0.4); }
.dot-nate { background: #ff3344; box-shadow: 0 0 6px rgba(255, 51, 68, 0.4); }
.dot-zum { background: #8b5cf6; box-shadow: 0 0 6px rgba(139, 92, 246, 0.4); }
.dot-google { background: #3b82f6; box-shadow: 0 0 6px rgba(59, 130, 246, 0.4); }
.dot-daum { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.portal-goto-link {
  font-size: 0.72rem;
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.portal-goto-link:hover {
  color: #0284c7;
}
.trending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 2px 0 !important;
  height: 145px !important;
  max-height: 145px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}
.trending-list::-webkit-scrollbar {
  width: 5px;
}
.trending-list::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 3px;
}
.trending-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.trending-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.trending-list li,
.trending-item {
  padding: 4px 4px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-sizing: border-box;
}
.trending-list li .trend-rank,
.trend-rank {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: #64748b !important;
  width: 16px !important;
  text-align: center !important;
  flex-shrink: 0;
}
.trending-list li a,
.trend-link {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.trending-list li a:hover,
.trend-link:hover {
  color: #0284c7 !important;
  text-decoration: underline;
}
.trending-footer-bar {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

/* 5. 실시간 숏텐츠 섹션 (넉넉한 패딩과 여유 공간) */
.short-contents-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 30px;
  margin-bottom: 48px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.short-contents-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.short-contents-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}
.short-contents-time {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

/* 카테고리 알약 바 */
.short-cat-scroll-box {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  scrollbar-width: thin;
}
.short-cat-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
.short-cat-pill:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}
.short-cat-pill.active {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}
.short-cat-pill.pro-tag {
  color: #7c3aed;
  border-color: #ddd6fe;
  background: #f5f3ff;
}
.short-cat-pill.pro-tag .badge-pro {
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}

/* 숏텐츠 행 리스트 (행간 패딩 확대) */
.short-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
  border-radius: 10px;
}
.short-row-item:hover {
  background: #f8fafc;
}
.short-row-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin-right: 18px;
}
.short-rank-num {
  width: 28px;
  font-size: 1.05rem;
  font-weight: 900;
  color: #334155;
  text-align: center;
  flex-shrink: 0;
  margin-right: 14px;
}
.short-thumb-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 16px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
}
.short-text-col {
  flex: 1;
  min-width: 0;
}
.short-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.short-item-title a,
.short-title-link {
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.short-item-title a:hover,
.short-title-link:hover {
  color: #0284c7;
  text-decoration: underline;
}

.short-item-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.short-item-desc a,
.short-desc-link {
  color: #64748b;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.short-item-desc a:hover,
.short-desc-link:hover {
  color: #0284c7;
  text-decoration: underline;
}

.short-thumb-link {
  display: block;
  flex-shrink: 0;
  cursor: pointer;
  line-height: 0;
}
.short-thumb-link:hover .short-thumb-img {
  opacity: 0.85;
  border-color: #0284c7;
  transform: scale(1.02);
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}
.short-item-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.naver-badge-icon {
  background: #03c75a;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 2px;
}
.short-action-col {
  flex-shrink: 0;
}
.btn-short-write {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-short-write:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

/* 숏텐츠 하단 액션 */
.short-footer-box {
  text-align: center;
  padding-top: 20px;
}
.btn-short-load-more {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 36px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-short-load-more:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}
.short-disclaimer-note {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 12px 0 0 0;
}

/* 6. 최신 연예뉴스 세로 박스 (마진 및 패딩 여유 확보) */
.ent-news-vert-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 30px;
  margin-bottom: 48px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.ent-news-vert-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 15px 18px;
  margin-bottom: 10px;
  transition: all 0.15s;
  cursor: pointer;
}
.ent-news-vert-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}
.ent-news-source-time {
  font-size: 0.75rem;
  color: #0284c7;
  font-weight: 700;
  margin-bottom: 4px;
}
.ent-news-main-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.45;
}

/* 7. FROM THE DESK 최근 공지와 업데이트 박스 */
.from-the-desk-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 30px;
  margin-bottom: 48px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.desk-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.desk-main-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}
.desk-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 20px;
  margin-bottom: 18px;
}
.desk-row-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-size: 0.92rem;
  color: #334155;
  transition: color 0.15s;
}
.desk-row-link:hover {
  color: #059669;
}
.desk-date {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
  font-family: monospace;
}
.desk-title-text {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desk-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.15s;
}
.desk-all-link:hover {
  color: #047857;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .trending-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .trending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .secret-capsule-banner {
    flex-direction: column;
    border-radius: 16px;
    align-items: stretch;
  }
  .secret-capsule-text {
    white-space: normal;
  }
  .magazine-hero-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .short-contents-container,
  .ent-news-vert-card,
  .from-the-desk-card {
    padding: 20px 16px;
  }
  .desk-row-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .trending-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   숏텐츠 글쓰기 도구 선택 팝업 다이얼로그 (홈판 / 네이버 SEO 글쓰기)
   ========================================================= */
.shortents-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 24px;
  color: #172033;
  background: #ffffff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.shortents-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}
.shortents-dialog h2 {
  margin: 0 0 14px 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.shortents-title-copy {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #0f172a;
  border-radius: 8px;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 700;
  background: #ffffff;
  outline: none;
}
.shortents-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.shortents-copy-actions button {
  margin: 0;
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.shortents-copy-actions button:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}
.shortents-copy-status {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 16px 0;
  min-height: 20px;
}
.shortents-copy-fallback {
  box-sizing: border-box;
  width: 100%;
  min-height: 100px;
  font: inherit;
  font-size: 12px;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.shortents-dialog .shortents-tool-link {
  display: block;
  padding: 14px;
  border: 1px solid #e0be9f;
  background: #fdf5ef;
  color: #92400e;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  margin: 10px 0;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.15s;
}
.shortents-dialog .shortents-tool-link:hover {
  background: #fbeadb;
  border-color: #d6ab8d;
  color: #78350f;
  transform: translateY(-1px);
}
.shortents-dialog .btn-shortents-close {
  display: block;
  margin: 16px auto 0;
  padding: 8px 24px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.shortents-dialog .btn-shortents-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.shortents-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200000;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 10px;
  background: #173d33;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  animation: shortToastFadeIn 0.2s ease-out;
}
@keyframes shortToastFadeIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
