/* style.css */
Theme Name: MyTheme
Author: PMW
Version: 1.0

/* ✅ 기본 설정 */
* {
  box-sizing: border-box;
}

/* 기타 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: #fff;
  color: #1D1D1F;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a {
  color: #286BEC;
}
a:hover {
  color: #153bbf;
}

p {
  margin-top: 6px;
  margin-bottom: 14px;
}

.has-background {
  border-left: 4px solid #0C84FE;
  background-color: #EFF0F4 !important;
  font-size: 15px;
  line-height: 1.7;
  margin: 20px 0;
  padding: 16px 20px;
}

/* ✅ 헤더 영역 */
.site-header {
  position: relative;
  background-color: #fff;
  padding: 0;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #E5E5E5;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  max-width: 800px;
  height: 80px;
  margin: 0 auto;
  padding: 0 20px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
}
.site-title a {
  font-family: Impact, sans-serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  color: #111;
  text-decoration: none;
  text-transform: uppercase;
}
/* ✅ 데스크탑 메뉴 */
.main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.main-navigation li {
  position: relative;
}
.main-navigation li > a {
  display: block;
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  transition: color 0.3s;
}
.main-navigation li > a:hover {
  color: #4C4CFF;
}
/* ✅ 서브 메뉴 */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 60%;
  transform: translateX(-50%);
  background-color: #fff;
  border-radius: 15px;
  padding: 10px 0;
  z-index: 999;
  min-width: 140px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.main-navigation li:hover > ul {
  display: block;
}
.main-navigation ul ul li a {
  padding: 10px 24px;
  display: block;
  white-space: nowrap;
  font-size: 14px;
  color: #333;
  text-align: left;
}
.main-navigation ul ul li a:hover {
  background-color: #f2f2f2;
  color: inherit;
}
/* ✅ 햄버거 버튼 */
.menu-toggle {
  display: none;
}
.menu-toggle .icon-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background-color: currentColor;
  transition: 0.1s ease;
  border-radius: 2px;
}
.menu-toggle .icon-bar:nth-child(1) {
  top: 10px;
}
.menu-toggle .icon-bar:nth-child(2) {
  top: 16.5px;
}
.menu-toggle .icon-bar:nth-child(3) {
  top: 23px;
}
/* ✅ 햄버거 → X 전환 */
.menu-toggle.active .icon-bar:nth-child(1),
.menu-toggle.active .icon-bar:nth-child(3) {
  top: 16.5px;
  left: 50%;
}
.menu-toggle.active .icon-bar:nth-child(1) {
  transform: translateX(-50%) rotate(45deg);
}
.menu-toggle.active .icon-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .icon-bar:nth-child(3) {
  transform: translateX(-50%) rotate(-45deg);
}
/* ✅ 모바일 */
.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  position: relative;
  z-index: 20;
}
@media (max-width: 768px) {
  .header-inner {
    display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 60px;
}
.header-left {
  flex: none;
}
.nav-button,
  .theme-toggle-wrap {
  display: flex;
  align-items: center;
  height: 100%;
}
.menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  overflow: visible;
  box-sizing: content-box;
  color: #111;
  background: none;
  border: none;
  cursor: pointer;
  transform: translateY(1px);
  z-index: 30;
}
.theme-toggle {
  transform: translateY(1px);
}
.theme-toggle,
  .theme-toggle label {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  vertical-align: middle;
}
.theme-toggle input,
.theme-toggle .slider {
  vertical-align: middle;
  margin: 0;
}
.main-navigation {
  position: absolute;
  top: 90%;
  right: 20px;
  width: auto;
  min-width: 120px;
  max-width: 140px;
  padding: 15px 12px;
  background: #fff;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: flex-end;
}
.main-navigation.active {
  display: flex !important;
}
.main-navigation ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  padding: 0 15px;
  gap: 0;
}
.main-navigation li {
  list-style: none;
  width: 100%;
}
.main-navigation li:last-child {
  border-bottom: none;
}
.main-navigation li a {
  display: block;
  width: 100%;
  padding: 8px 8px;
  text-align: right;
  font-weight: 600;
  font-size: 15px;
  color: #111;
  text-decoration: none;
}
.main-navigation li a:hover {
  color: #4C4CFF;
}
/* ✅ 서브메뉴 무시 */
  .main-navigation ul ul {
  display: none !important;
}
.main-navigation li:hover > ul {
  display: none !important;
}
.pros-cons-wrapper {
  flex-direction: column;
  gap: 6px;
}
}

@media (min-width: 769px) {
  .theme-toggle-wrap {
    display: none;
}
}

/* ✅ 다크모드 색상 통합 관리 */
body.dark-mode .menu-toggle {
  color: #fff;
}
body.dark-mode {
  background: #131314;
  color: #F0F0F0;
}
body.dark-mode a {
  color: #153bbf;
}
body.dark-mode a:hover {
  color: #0C84FE;
}
body.dark-mode .has-background {
  border-left: 4px solid #153bbf;
  background-color: #1A1A1A !important;
}
body.dark-mode .custom-styled-list {
  background-color: #1A1A1A !important;
  border-left: 4px solid #153bbf;
  color: #fff;
}
body.dark-mode .custom-styled-list li a {
  color: #6eaaff;
}
body.dark-mode .related-card {
   background-color: #1A1A1A;
}
body.dark-mode .related-title-text {
   color: #fff;
}
body.dark-mode .article-related-title-text {
  color: #fff;
}
body.dark-mode hr {
  color: #252629 !important;
}
body.dark-mode .custom-divider {
  background-color: #333333;
}
body.dark-mode .site-header {
  background: #101010;
  border-bottom-color: #333;
}
body.dark-mode .main-navigation a,
body.dark-mode .main-navigation ul ul li a,
body.dark-mode .site-title a {
  color: #F0F0F0;
}
body.dark-mode .main-navigation a:hover {
  color: #4C4CFF;
}
body.dark-mode .main-navigation ul ul {
  background-color: #131314;
  border-color: #F0F0F0;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.03);
}
body.dark-mode .main-navigation ul ul li a:hover {
  background-color: #1A1A1A;
  color: inherit;
}
body.dark-mode .article-info {
  background-color: #1A1A1A;
}
body.dark-mode .article-card {
  background-color: #1A1A1A;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
body.dark-mode .article-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}
body.dark-mode .article-title {
  color: #fff;
}
body.dark-mode .article-meta {
  color: #aaa;
}
body.dark-mode #load-more {
  background-color: #282A2C;
  color: #111;
}
body.dark-mode #load-more:hover {
  background-color: #aaa;
}
body.dark-mode .article-toc {
  border-color: #333;
  background: #1a1a1a;
  color: #f0f0f0;
}
body.dark-mode .article-toc a {
  color: #80bfff;
}
body.dark-mode .article-divider {
  border-top: 1px solid #333;
}
body.dark-mode .meta-line-1 {
  color: #999;
}
body.dark-mode .meta-line-2 {
  color: #F0F0F0;
}
body.dark-mode .like-box,
body.dark-mode #like-count,
body.dark-mode .icon-btn svg,
body.dark-mode .share-buttons {
  color: #F0F0F0 !important;
}
body.dark-mode .icon-btn svg,
body.dark-mode .share-buttons svg {
  fill: #F0F0F0 !important;
}
body.dark-mode .icon-btn:hover svg {
  fill: #1a1a1a !important;
}
body.dark-mode .icon {
  fill: #F0F0F0 !important;
}
body.dark-mode .icon-btn:hover .icon {
  fill: #1a1a1a !important;
}
body.dark-mode .related-title {
  color: #fff;
}
body.dark-mode .site-footer {
  background-color: #101010;
  border-color: #333 !important;
}
body.dark-mode .site-footer p {
  color: #fff;
}
body.dark-mode .site-footer a {
   color: #E3E3E3;
}
body.dark-mode .footer-bottom {
  color: #fff;
}
body.dark-mode .footer-divider {
   border-color: #333;
}
@media (max-width: 768px) {
  body.dark-mode .main-navigation {
  background-color: #131314;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
}
/* ✅ 다크모드 토글 슬라이더 */
.theme-toggle-wrap {
  display: flex;
  align-items: center;
}
.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 28px;
  line-height: 1;
  vertical-align: middle;
}
.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #EFF0F4;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.dark-mode .slider {
  background-color: #1A1A1A;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  top: 4px;
  background-color: #1A1A1A;
  border-radius: 50%;
  z-index: 2;
}
.theme-toggle input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #fff;
}
.slider .icon {
  position: absolute;
  top: 4px;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0.8;
}
.slider .moon {
  left: 4px;
  background-image: url('https://plumprop.com/wp-content/uploads/2025/07/moon-real.svg');
}
.slider .sun {
  right: 4px;
  background-image: url('https://appexpress.ai/wp-content/uploads/2025/04/sun-black.svg');
}
/* ✅ 본문 너비 */
.content-area {
  max-width: 650px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
}

/* ✅ 목록 스타일 제거 */
.custom-styled-list {
  list-style: none;
  padding: 12px 16px;
  margin: 16px 0;
  border-left: 4px solid #0C84FE;
  background-color: #EFF0F4 !important;
  border-radius: 4px;
}
.custom-styled-list {
  list-style: none;
  padding-left: 20px;
}
.custom-styled-list li {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight:700;
  line-height: 1.6;
}
.custom-styled-list li a {
  color: #153bbf;
  text-decoration: none;
}
.custom-styled-list li a:hover {
  text-decoration: none;
}

/* ✅ 태그 아카이브 */
.tag-article-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 0;
}

.tag-article-card {
  flex: 0 0 calc(20% - 12px);
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  transition: transform 0.2s ease;
  text-decoration: none;
  color: #000;
}

.tag-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tag-article-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 12px;
}

.info-box .article-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}

.article-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
}

.article-tag {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  background: #EFF0F4;
  font-weight: 600;
}

.tag-article-card,
.tag-article-card * {
  color: inherit;
}
.tag-article-card:visited,
.tag-article-card:hover,
.tag-article-card:focus {
  color: inherit;
  text-decoration: none;
}

.tag-description {
  font-size: 1rem;
  color: #666;
  margin-top: 10px;
}


/* ✅ 아티클 아카이브 페이지 */
.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.article-card {
  border-radius: 12px;
  overflow: hidden;
  background: #FFF;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.article-card a {
  text-decoration: none;
}
.article-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.article-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.article-info {
  background-color: #FFF;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-title {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin: 0;
}
.article-meta {
  font-size: 13px;
  color: #888;
}

/* ✅ 더 보기 */
.load-more-wrap {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}
#load-more {
  background-color: #EFF0F4;
  color: #1D1D1F;
  font-size: 14px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#load-more:hover {
  background-color: #DCE1E9;
}
/* ✅ 아티클 헤더 */
.article-featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 18px;
}
.meta-line-1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}
.dot-divider {
  margin: 0 4px;
  color: #999;
  font-size: 10px;
  line-height: 1;
  position: relative;
}
.post-tags {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag-chip {
  background: #EFF0F4;
  color: #1D1D1F;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.meta-line-2 {
  margin: 4px 0;
  width: 100%;
}
.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 16px;
}
.like-box {
  display: flex;
  align-items: center;
  gap: 6px;
}
#like-count {
  color: #333 !important;
}
.share-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon {
  fill: #333 !important;
}
.icon-btn:hover .icon {
  fill: #666 !important;
}
.share-buttons .icon-btn:hover svg {
  opacity: 0.6;
  transition: opacity 0.2s ease-in-out;
}
/* ✅ 태그 카드 */
.post-tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.custom-tag-list {
  display: flex;
  flex-wrap: wrap;
  overflow-x: auto;
  gap: 8px;
  margin-top: 20px;
  -webkit-overflow-scrolling: touch;
}
.tag-list .tag-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  background-color: #EFF0F4;
  color: #1D1D1F;
  font-weight: 600;
  flex-shrink: 0;
}
.tag-chip a {
  text-decoration: none;
}
.tag-chip a:hover {
  text-decoration: underline;
}
body.dark-mode .tag-chip {
  background-color: #333;
  color: #fff;
}
/* ✅ 목차 스타일 */
.article-toc {
  border: 1px solid #eee;
  background: #EFF0F4;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  margin: 8px;
}
.article-toc a {
  color: #1D1D1F;
  text-decoration: none;
}
.article-toc a:hover {
  text-decoration: underline;
}
/* ✅ 아티클 본문 전체 */
.article-single {
  display: flex;
  max-width: 600px;
  flex-direction: column;
  margin: 0 auto;
  padding: 20px 12px;
  gap: 14px;
}
/* ✅ 브레드크럼 */
.breadcrumb {
  font-size: 17px;
  font-weight: bold;
  color: #0b57d0;
}
body.dark-mode .breadcrumb {
  color: #F0F0F0;
}
/* ✅ 제목 */
.entry-title {
  font-size: 26px;
  font-weight: bold;
  line-height: 1.4;
  color: #000;
  margin: 0;
  color: inherit;
}
/* ✅ 메타 정보 (날짜 + 태그) */
.meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #1f1f1f;
}
body.dark-mode .meta-info {
  color: #F0F0F0;
}
.dot-divider {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1f1f1f;
}
body.dark-mode .dot-divider {
  background: #F0F0F0;
}
/* ✅ 태그 */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ✅ 대표 이미지 */
.article-thumb > img,
.featured-image > img {
  width: 100%;
  height: auto;
  display: block;
}
/* ✅ 본문 */
.entry-content {
  font-size: 16px;
  line-height: 1.5;
  color: #1f1f1f;
  margin-bottom: 40px;
}
body.dark-mode .entry-content {
  color: #e3e3e3;
}
.entry-content h2 {
  font-size: 22px;
}
.entry-content h3 {
  font-size: 18px;
}
.entry-content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
}
.entry-content figure.wp-block-image {
  margin: 0;
  text-align: left;
}

/* ✅ 상위 .entry-content 등에서 구조 통제 */
.entry-content .pros-card,
.entry-content .cons-card {
  max-width: 100%;
}

/* info_table 테이블 스타일 */
.info-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 15px;
}

.info-table th,
.info-table td {
  border: 1px solid #ccc;
  padding: 12px 15px;
  text-align: left;
}

.info-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.info-table th {
  background-color: #f1f1f1;
  font-weight: bold;
}

/* ✅ 관련 게시글(아티클) */
.article-related-articles { margin-top: 60px; }
.article-related-title { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.article-related-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.article-related-card { text-decoration: none; color: inherit; transition: transform 0.2s ease; }
.article-related-card:hover { transform: translateY(-4px); }
.article-related-thumb { width: 100%; height: auto; border-radius: 8px; }
.article-related-title-text { margin-top: 10px; font-size: 15px; font-weight: 700; }
/* ✅ 구분자 */
.custom-divider {
  border: 0;
  height: 1px;
  background-color: #E4E7EB;
  margin: 40px 0;
}
.article-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2px 0;
}

/* ✅ 공통 input/textarea 스타일 */
form input[type="text"],
form input[type="email"],
form input[type="file"],
form textarea,
form select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  background-color: #fff;
  color: #222;
  transition: border-color 0.2s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus,
form select:focus {
  border-color: #0A85FF;
  outline: none;
}

input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #333;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  margin-right: 8px;
  vertical-align: middle;
}

input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background-color: #333;
  border-radius: 50%;
}

/* 라디오 버튼 제외하고 label 간격 */
form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

/* 제출 버튼 스타일 */
form button[type="submit"] {
  background-color: #0A85FF;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

form button[type="submit"]:hover {
  background-color: #0A85FF;
}

/* ✅사이트 푸터 */
.site-footer {
  padding: 20px 20px;
  background-color: #fff;
  color: #222;
  font-size: 15px;
  line-height: 1.7;
  border-top: 1px solid #E5E5E5;
}
.footer-col p {
  margin: 6px 0;
}
.footer-col a {
  text-decoration: none;
  color: #333;
}
.footer-col a:hover {
  text-decoration: underline;
}
.footer-divider {
  border-top: 1px solid #E3E3E3;
  width: 100%;
  margin: 30px 0;
}
.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #222;
}
/* ✅ Lazyload + Transition */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img.lazyloaded {
  opacity: 1;
}

body.dark-mode *,
body:not(.dark-mode) * {
  transition: none !important;
}