﻿/* Paperlogy A�ͨ�u���� */
@font-face {
  font-family: 'Paperlogy';
  src: url('../assets/fonts/Paperlogy-4Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Paperlogy';
  src: url('../assets/fonts/Paperlogy-6SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bz-bg: #f8f9fa;
  --bz-surface: #ffffff;
  --bz-surface-muted: #f2f4f7;
  --bz-text: #212529;
  --bz-muted: #6c757d;
  --bz-border: rgba(0, 0, 0, 0.08);
  --bz-shadow: 0 12px 24px rgba(23, 50, 74, 0.08);
  --bz-primary: #708090;
  --bz-primary-text: #FFFAF0;
  --bz-accent: #ffc94d;
  --bz-accent-soft: #fff0b3;
  --bz-chip-bg: #eef2f6;
  --bz-chip-selected: rgba(17, 102, 239, 0.12);
  --bz-chip-border: rgba(17, 24, 39, 0.08);
}

html, body {
  height: 100%;
}

body,
.bz-body {
  margin: 0;
  min-height: 100%;
  background: var(--bz-bg);
  color: var(--bz-text);
  font-family: 'Paperlogy', 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 15px;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

/* ---------- AppBar ---------- */
.bz-appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, var(--bz-accent-soft), var(--bz-surface));
}

.bz-appbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.bz-appbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bz-appbar__logo {
  height: 40px;
  width: auto;
}

.bz-appbar__title {
  font-weight: 600;
  font-size: 20px;
}

.bz-accent {
  color: var(--bz-primary);
}

.bz-appbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bz-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.6);
  color: var(--bz-text);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bz-action-btn:hover,
.bz-action-btn:focus-visible {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
}

.bz-action-btn.is-active {
  border-color: rgba(17, 102, 239, 0.4);
  background: rgba(17, 102, 239, 0.12);
  color: #1142ef;
}

.bz-action-icon {
  font-size: 16px;
  line-height: 1;
}

/* ---------- Main Layout ---------- */
.bz-main {
  padding: 24px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bz-feed-card {
  background: var(--bz-surface);
  border-radius: 18px;
  border: 1px solid var(--bz-border);
  box-shadow: var(--bz-shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bz-feed-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bz-feed-divider {
  height: 1px;
  width: 100%;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
}

.bz-feed-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bz-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bz-filter-row + .bz-filter-row {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 16px;
  margin-top: 4px;
}

.bz-group-chips {
  display: inline-flex;
  gap: 8px;
}

.bz-chip {
  --chip-color: var(--bz-chip-bg);
  border: 1px solid var(--bz-chip-border);
  background: var(--chip-color);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--bz-text);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bz-chip:hover,
.bz-chip:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.bz-chip--ghost {
  --chip-color: rgba(34, 34, 34, 0.08);
  border-color: transparent;
}

.bz-chip--primary {
  --chip-color: var(--bz-primary);
  color: #ffffff;
  border-color: var(--bz-primary);
}

.bz-chip--group {
  width: 36px;
  height: 36px;
  padding: 0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bz-chip--group[data-active="true"] {
  background: var(--bz-primary);
  color: #ffffff;
  border-color: var(--bz-primary);
}

.bz-chip[data-active="true"] {
  box-shadow: 0 0 0 2px rgba(17, 102, 239, 0.25);
  font-weight: 600;
  color: #17324a;
}

.bz-chip:not(.bz-chip--group)[data-active="true"] {
  position: relative;
  padding-left: 30px;
}

.bz-chip:not(.bz-chip--group)[data-active="true"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill%3D%22%2317324a%22%20d%3D%22M16.7%206.3a1%201%200%200%200-1.4-1.4l-6.3%206.29-2.3-2.29a1%201%200%201%200-1.4%201.42l3%203a1%201%200%200%200%201.4%200l7-6.98Z%22/%3E%3C/svg%3E") no-repeat center/contain;
}


.bz-chip-scroll::-webkit-scrollbar {
  height: 6px;
}

.bz-chip-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
}

.bz-chip--best {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
}

.bz-chip__icon {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.bz-chip__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

/* ---------- Posts ---------- */
.bz-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bz-section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.bz-section-meta {
  color: var(--bz-muted);
  font-size: 13px;
}

.bz-post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bz-post {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
}

.bz-post:first-child {
  padding-top: 0;
}

.bz-post:last-child {
  padding-bottom: 0;
}

.bz-post-list .bz-feed-divider {
  margin: 4px 0;
}

.bz-post__pill {
  flex-shrink: 0;
  min-width: 64px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  color: #17324a;
  background: #d1ecff;
}

.bz-post__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bz-post__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--bz-text);
  text-decoration: none;
  line-height: 1.4;
}

.bz-post__title:hover,
.bz-post__title:focus {
  text-decoration: underline;
}

.bz-post__title[data-read="true"] {
  color: rgba(33, 37, 41, 0.55);
}

.bz-post__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--bz-muted);
}

.bz-pill-secondary {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.08);
  color: rgba(33, 37, 41, 0.75);
  font-weight: 500;
}

.bz-posts-footer {
  margin-top: 20px;
  text-align: center;
}

.bz-loadmore {
  border: 1px solid rgba(17, 102, 239, 0.4);
  background: rgba(17, 102, 239, 0.08);
  color: #1142ef;
  border-radius: 999px;
  padding: 10px 30px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.bz-loadmore:hover,
.bz-loadmore:focus-visible {
  background: rgba(17, 102, 239, 0.18);
}

/* ---------- Skeleton ---------- */
@keyframes bz-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f1f5f9 25%, #e1e7ef 37%, #f1f5f9 63%);
  background-size: 200% 100%;
  animation: bz-shimmer 1.2s infinite;
}

.skeleton-pill {
  height: 32px;
  border-radius: 999px;
  width: 80px;
}

.skeleton-post {
  height: 72px;
  border-radius: 18px;
}

/* ---------- Footer ---------- */
.bz-footer {
  padding: 24px 0 40px;
  color: var(--bz-muted);
  font-size: 13px;
}

/* ---------- Dialog & Toast ---------- */
.bz-dialog-host {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bz-dialog {
  max-width: 360px;
  width: 100%;
}

.bz-dialog__content {
  background: var(--bz-surface);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--bz-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bz-dialog__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bz-dialog__logo {
  width: 48px;
  height: 48px;
}

.bz-dialog__title {
  margin: 0;
  font-weight: 600;
}

.bz-dialog__subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--bz-muted);
}

.bz-dialog__body {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bz-dialog__actions {
  display: flex;
  justify-content: flex-end;
}

.bz-button {
  border: none;
  border-radius: 999px;
  background: var(--bz-primary);
  color: #ffffff;
  padding: 8px 20px;
  font-weight: 600;
}

.bz-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.bz-toast[data-visible="true"] {
  opacity: 1;
}

.bz-chip-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .bz-appbar__inner {
    padding: 8px 0;
  }

  .bz-appbar__actions {
    gap: 6px;
  }

  .bz-action-btn {
    padding: 4px 8px;
    font-size: 14px;
  }

  .bz-action-icon {
    font-size: 14px;
  }

  .bz-chip-scroll {
    overflow-x: visible;
  }

  .bz-feed-card {
    padding: 16px;
    gap: 16px;
  }

  .bz-filter-row {
    gap: 8px;
  }
}

@media (max-width: 576px) {
  .bz-action-label {
    display: none;
  }

  .bz-action-btn {
    padding: 6px;
    min-width: 36px;
  }

  .bz-chip-scroll {
    gap: 8px;
  }

  .bz-appbar__title {
    font-size: 18px;
  }

  .bz-appbar__logo {
    height: 32px;
  }
}





