/* ============================================
   basic_style.css - GeneratePress Clean Theme
   v2.0 - Full Overhaul
   ============================================ */

/* === Reset & Base === */
* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #222;
  background: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

a { color: #1e73be; text-decoration: none; }
a:hover { color: #155a96; }
img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sound_only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* === Header === */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}
.site-title a { color: #222 !important; text-decoration: none !important; }
.site-title a:hover { color: #1e73be !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  transition: all 0.3s;
  border-radius: 1px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Navigation === */
.site-nav {
  background: #222;
}
.site-nav .container { padding: 0; }

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu li a {
  display: block;
  padding: 12px 18px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-menu li a:hover,
.nav-menu li a.nav-home { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.nav-menu li a:hover { background: #1e73be; }

/* === Main Content Area === */
.main-container {
  max-width: 800px;
  margin: 25px auto;
  padding: 0 20px;
}
.main-content-wrap {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* === Ad Grid === */
.ad-container { padding: 0 20px; }
.ad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 15px 0;
}
.ad-item { background: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden; text-align: center; }

/* === Latest Widget (Main Page) === */
.latest_top_wr { margin-top: 10px; }

#container_title { display: none; }

/* === Post View (basic_style portion) === */
h1.daum-wm-title, .daum-wm-title {
  font-size: 32px !important; font-weight: 700; line-height: 1.3;
  color: #222 !important; border-bottom: none !important;
  padding: 0 0 10px !important; margin-bottom: 10px; letter-spacing: -0.5px;
}

.content { font-size: 17px; line-height: 1.8; color: #222; padding: 20px 0 !important; }
.content p { font-size: 17px !important; line-height: 1.8 !important; margin-bottom: 1.5em; color: #333; }
.content h1 { font-size: 30px; font-weight: 700; margin: 45px 0 18px; color: #222; }
.content h2 { font-size: 24px; font-weight: 700; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #1e73be; color: #222; }
.content h3 { font-size: 20px; font-weight: 600; margin: 30px 0 10px; color: #333; }
.content h4 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; color: #444; }
.content img { max-width: 100% !important; height: auto !important; margin: 15px 0; border-radius: 4px; }
.content blockquote {
  border-left: 4px solid #1e73be; padding: 16px 20px; margin: 20px 0;
  background: #f8f9fa; color: #555; font-style: normal; border-radius: 0 6px 6px 0;
}
.content blockquote p { margin-bottom: 0.5em; }
.content ul, .content ol { padding-left: 28px; margin-bottom: 1.5em; }
.content li { margin-bottom: 6px; line-height: 1.8; }
.content hr { border: none; border-top: 1px solid #e8e8e8; margin: 35px 0; }
.content code { background: #f0f2f5; padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.content pre { background: #1d1f21; color: #c5c8c6; padding: 20px; border-radius: 6px; overflow-x: auto; margin: 20px 0; }
.content pre code { background: none; color: inherit; padding: 0; }
.content table { width: 100% !important; border-collapse: collapse; margin: 20px 0; font-size: 15px !important; }
.content table th { background: #f7f8f9 !important; font-weight: 600; padding: 10px 14px !important; border: 1px solid #e8e8e8 !important; }
.content table td { padding: 10px 14px !important; border: 1px solid #e8e8e8 !important; }
.content iframe { max-width: 100%; }

/* Tags */
.tags { padding: 15px 0; }
.tags .tag {
  display: inline-block; background: #f0f2f5 !important; color: #555 !important;
  padding: 4px 12px !important; border-radius: 20px !important; font-size: 13px;
  margin: 2px 4px 2px 0 !important;
}
.tags .tag:hover { background: #e0e3e8 !important; color: #222 !important; text-decoration: none; }

/* === Family Sites === */
.family-sites {
  background: #f8f9fa;
  padding: 35px 0;
  border-top: 1px solid #e8e8e8;
  margin-top: 30px;
}
.family-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 18px;
  text-align: center;
}
.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}
.family-item {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.family-item:hover {
  border-color: #1e73be;
  box-shadow: 0 2px 8px rgba(30,115,190,0.12);
  transform: translateY(-1px);
  text-decoration: none;
}
.family-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.family-host {
  font-size: 12px;
  color: #999;
}

/* === Footer === */
.site-footer {
  background: #222;
  padding: 30px 0;
  margin-top: 0;
}
.footer-inner { text-align: center; }
.footer-brand { margin-bottom: 12px; }
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.footer-nav { margin-bottom: 12px; }
.footer-nav a {
  display: inline-block;
  padding: 0 12px;
  font-size: 13px;
  color: #aaa;
  border-right: 1px solid #444;
}
.footer-nav a:last-child { border-right: none; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-copy { font-size: 12px; color: #666; }

/* === Pagination === */
.pg_wrap { text-align: center; padding: 25px 0; }
.pg_wrap a, .pg_wrap .pg_current, .pg_wrap strong {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px; margin: 0 2px;
  font-size: 14px; border-radius: 6px; text-decoration: none;
}
.pg_wrap a { color: #555; border: 1px solid #ddd; background: #fff; }
.pg_wrap a:hover { border-color: #1e73be; color: #1e73be; text-decoration: none; }
.pg_wrap .pg_current, .pg_wrap strong.pg_current {
  background: #1e73be; color: #fff; border: 1px solid #1e73be; font-weight: 700;
}

/* === Board Overrides === */
#bo_list { margin-bottom: 30px; }

/* Board top buttons */
#bo_btn_top { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; margin-bottom: 10px; border-bottom: 2px solid #222; }
#bo_list_total { font-size: 13px; color: #888; }
#bo_list_total span { font-weight: 600; color: #333; }

.btn_bo_user { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.btn_bo_user .btn, .btn_b01.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid #ddd;
  background: #fff; color: #555; font-size: 14px; text-decoration: none; cursor: pointer; transition: all 0.15s;
}
.btn_bo_user .btn:hover, .btn_b01.btn:hover { border-color: #1e73be; color: #1e73be; text-decoration: none; }

/* More options */
.more_opt { display: none; position: absolute; right: 0; top: 40px; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 10; min-width: 120px; list-style: none; padding: 4px 0; margin: 0; }
.more_opt li { list-style: none; }
.more_opt li button { display: block; width: 100%; padding: 8px 14px; border: none; background: none; text-align: left; cursor: pointer; font-size: 13px; }
.more_opt li button:hover { background: #f5f5f5; color: #1e73be; }

/* Board category */
#bo_cate { margin: 15px 0; }
#bo_cate_ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
#bo_cate a { display: inline-block; padding: 5px 14px; font-size: 13px; color: #555; border: 1px solid #ddd; border-radius: 20px; transition: all 0.2s; }
#bo_cate a:hover, #bo_cate a:focus, #bo_cate #bo_cate_on { color: #1e73be; border-color: #1e73be; background: #f0f7ff; text-decoration: none; }

/* View page */
#bo_v { background: #fff; margin-bottom: 30px; }
#bo_v_top { display: none; }
#bo_v_title .bo_v_cate { background: #eef4fb; color: #1e73be; font-size: 12px; padding: 3px 10px; border-radius: 3px; }
#bo_v_title .bo_v_tit { font-size: 26px; font-weight: 700; line-height: 1.4; color: #222; word-break: keep-all; }
#bo_v_info { border-bottom: 1px solid #eee; color: #666; padding-bottom: 15px; }
#bo_v_info .profile_info .pf_img img { border-radius: 50%; width: 40px; height: 40px; }
#bo_v_info .sv_member { color: #222; font-weight: 600; }
#bo_v_info .if_date { color: #999; font-size: 13px; }
#bo_v_con { font-size: 17px; line-height: 1.8; color: #333; margin: 20px 0 30px; }
#bo_v_con a { color: #1e73be; }
#bo_v_con img { max-width: 100%; height: auto; margin: 12px 0; border-radius: 6px; }

/* File/Link */
#bo_v_file li, #bo_v_link li {
  border: 1px solid #eee; border-radius: 6px; padding: 12px 15px; margin: 6px 0; transition: border-color 0.15s;
}
#bo_v_file li:hover, #bo_v_link li:hover { border-color: #1e73be; }

/* Vote */
#bo_v_act { margin: 30px 0; }
#bo_v_act .bo_v_good, #bo_v_act .bo_v_nogood {
  border: 1px solid #e8e8e8; border-radius: 30px; padding: 0; width: 80px; line-height: 46px; font-size: 14px; color: #555; transition: all 0.15s;
}
#bo_v_act .bo_v_good:hover { border-color: #1e73be; color: #1e73be; background: #f4f8fc; }
#bo_v_act .bo_v_nogood:hover { border-color: #e74c3c; color: #e74c3c; background: #fef5f4; }

/* Prev/Next */
.bo_v_nb { margin: 25px 0; }
.bo_v_nb li { border-top: 1px solid #f0f0f0; padding: 12px 0; font-size: 14px; transition: background 0.15s; }
.bo_v_nb li:last-child { border-bottom: 1px solid #f0f0f0; }
.bo_v_nb li:hover { background: #f9fbfd; }
.bo_v_nb .nb_tit { color: #999; font-size: 13px; min-width: 70px; display: inline-block; }
.bo_v_nb li a { color: #222; }
.bo_v_nb li a:hover { color: #1e73be; }

/* SNS Share */
#bo_v_share { padding: 15px 0; border-bottom: 1px solid #eee; }
#bo_v_share .btn { border: 1px solid #eee; border-radius: 6px; font-size: 13px; color: #555; padding: 0 12px; height: 34px; line-height: 34px; }
#bo_v_share .btn:hover { border-color: #1e73be; color: #1e73be; }

/* Comments */
.cmt_btn { border-bottom: 2px solid #eee; font-size: 15px; padding: 0 0 12px; margin: 30px 0 0; }
.cmt_btn span.total { color: #1e73be; }

#bo_vc article { margin: 12px 0; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
#bo_vc .member, #bo_vc .sv_member { color: #222; font-weight: 600; }
#bo_vc .cmt_contents { line-height: 1.7; font-size: 15px; color: #333; padding: 8px 0 12px; }

.bo_vc_w textarea {
  border: 1px solid #e8e8e8; border-radius: 6px; padding: 12px; font-size: 14px; line-height: 1.6; resize: vertical; transition: border-color 0.15s;
}
.bo_vc_w textarea:focus { border-color: #1e73be; outline: none; box-shadow: 0 0 0 3px rgba(30,115,190,0.1); }
.bo_vc_w .btn_submit {
  height: 42px; padding: 0 24px; border-radius: 6px; font-weight: 600; font-size: 14px;
  background: #1e73be; color: #fff; border: none; cursor: pointer; transition: background 0.15s;
}
.bo_vc_w .btn_submit:hover { background: #155a96; }

/* Write form */
#bo_w .frm_input, .frm_input {
  border: 1px solid #e8e8e8; border-radius: 6px; padding: 8px 12px; font-size: 14px; height: 40px; transition: border-color 0.15s;
}
#bo_w .frm_input:focus, .frm_input:focus { border-color: #1e73be; outline: none; box-shadow: 0 0 0 3px rgba(30,115,190,0.1); }
#bo_w .btn_submit {
  padding: 0 24px; height: 44px; border-radius: 6px; background: #1e73be; color: #fff; border: none; font-size: 15px; font-weight: 600; cursor: pointer;
}
#bo_w .btn_submit:hover { background: #155a96; }
#bo_w .btn_cancel { border-radius: 6px; background: #f7f8f9; color: #555; border: 1px solid #e8e8e8; font-size: 15px; height: 44px; padding: 0 24px; cursor: pointer; }

/* Search overlay */
.bo_sch_wrap { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; }
.bo_sch_bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); }
.bo_sch { position: relative; z-index: 1; max-width: 500px; margin: 12% auto 0; padding: 30px; background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.bo_sch h3 { font-size: 18px; font-weight: 700; margin: 0 0 15px; }
.bo_sch select { padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 10px; font-size: 14px; }
.sch_bar { display: flex; gap: 8px; }
.sch_input { flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; outline: none; }
.sch_input:focus { border-color: #1e73be; }
.sch_btn { padding: 10px 20px; background: #1e73be; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 15px; }
.sch_btn:hover { background: #155a96; }
.bo_sch_cls { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 18px; color: #999; cursor: pointer; }

/* Checkbox */
.chk_box input[type="checkbox"]:checked + label span { background: url(../skin/board/basic/img/chk.png) no-repeat 50% 50% #1e73be; border-color: #155a96; }

/* Related posts */
#related { border-top: 1px solid #eee; margin-top: 30px; padding-top: 20px; }
#related > div:first-child { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 10px; }

/* page_ment / sidebar */
.page_ment { font-size: 14px; color: #666; line-height: 1.6; }
.sidebar-left { background: #f7f8f9 !important; border: none !important; padding: 20px; border-radius: 6px; }

/* Legacy Tailwind compat */
.bg-gray-100 { background-color: #f5f5f5 !important; }
.max-w-screen-xl { max-width: 1100px; margin: 0 auto; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.gap-6 { gap: 1.5rem; }
.rounded-lg { border-radius: 6px; }
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
@media (min-width: 640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* Old selectors override */
.page_name { font-size: 22px; font-weight: 700; margin: 0; }
.page_name a { color: #222 !important; text-decoration: none; }
.container.px-4.pb-4.small.text-center { display: none; }

/* === Responsive === */
@media (max-width: 768px) {
  body { font-size: 16px; }

  .site-header-inner { height: 52px; }
  .site-title { font-size: 18px; }

  .nav-toggle { display: flex; }

  .site-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open {
    max-height: 500px;
  }
  .nav-menu {
    flex-direction: column;
  }
  .nav-menu li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .main-container { margin: 15px auto; padding: 0 12px; }
  .main-content-wrap { padding: 20px 16px; border-radius: 6px; }

  h1.daum-wm-title, .daum-wm-title { font-size: 24px !important; }

  .content h2 { font-size: 20px; }
  .content h3 { font-size: 18px; }

  .ad-container { padding: 0 12px; }
  .ad-grid { grid-template-columns: 1fr; gap: 8px; padding: 10px 0; }

  .family-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .family-sites { padding: 25px 0; }
  .family-title { font-size: 14px; margin-bottom: 12px; }

  #bo_v_title .bo_v_tit { font-size: 22px; }

  .bo_sch { margin: 8% 12px 0; padding: 20px; }
}

@media (max-width: 480px) {
  .site-title { font-size: 16px; }

  h1.daum-wm-title, .daum-wm-title { font-size: 22px !important; }

  .content h2 { font-size: 18px; }
  .content h3 { font-size: 16px; }

  .family-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .family-item { padding: 10px 12px; }
  .family-name { font-size: 13px; }
}
