/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6, p {
  overflow-wrap: break-word;
}

.nanum-myeongjo-regular {
  font-family: "Nanum Myeongjo", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
}


body{
    background-color:#f4f4f4;
    color:#111;
    font-family: 'Nanum Barun Gothic', sans-serif;
    max-width:500px;
    width: 100%;
    margin: 0 auto;

}
body > div {
    background-color: #fff;
    position:relative;
}

.blog-wrap{
    background-color: #fff;
    max-width:430px;
    margin:0 auto;
    padding:28px 22px 40px;
}

.category{
    text-align:center;
    font-size:15px;
    color:#666;
    margin-bottom:18px;
}

.title{
    font-size:28px;
    line-height:1.55;
    font-weight:400;
    text-align:center;
    letter-spacing:-0.04em;
    word-break:keep-all;
}

.writer{
    margin-top:34px;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.writer img{
    width:52px;
    height:52px;
    border-radius:50%;
    object-fit:cover;
}

.writer-info{
    margin-top:12px;
    text-align:center;
}

.name{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;
    font-size:22px;
}

.badge{
    width:18px;
    height:18px;
    border-radius:50%;
    background:#00d564;
}

.date{
    margin-top:8px;
    font-size:16px;
    color:#999;
}

.neighbor-btn{
    display:block;
    margin:22px auto 0;
    width:170px;
    height:54px;
    background:#fff;
    border:2px solid #00c73c;
    color:#00c73c;
    font-size:24px;
    border-radius:2px;
    cursor:pointer;
}

.divider{
    margin:42px 0;
    height:1px;
    background:#ececec;
}

.notice{
    display:flex;
    flex-direction:column;
    align-items:center;
    color:#555;
}

.check{
    font-size:28px;
    color:#4d7fff;
}

.notice-text{
    margin-top:12px;
    text-align:center;
    font-size:18px;
    line-height:1.8;
}

.notice-text span{
    color:#4a77ff;
}

/* 작성자 카드 */

.author-card{
    margin-top:28px;
    border:1px solid #ececec;
    border-radius:18px;
    padding:20px;
    background:#fff;
}

.author-top{
    display:flex;
    justify-content:space-between;
    gap:16px;
}

.author-left{
    display:flex;
    gap:14px;
}

.author-left img{
    width:64px;
    height:64px;
    border-radius:50%;
    object-fit:cover;
}

.author-name{
    font-size:26px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:6px;
}

.author-info{
    margin-top:6px;
    color:#666;
    font-size:15px;
}

.follow-btn{
    width:120px;
    height:46px;
    border:0;
    border-radius:10px;
    background:#55c95a;
    color:#fff;
    font-size:17px;
}

.author-desc{
    margin-top:18px;
    color:#444;
    line-height:1.6;
    font-size:16px;
}

.author-links{
    display:flex;
    gap:14px;
    margin-top:18px;
}

.circle{
    width:46px;
    height:46px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f2f2f2;
    font-size:20px;
}

.green{
    background:#12c85d;
    color:#fff;
}

.insta{
    background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4);
    color:#fff;
}

 /* 댓글 섹션 */
.comment-section {
    max-width: 800px;
    padding: 40px 20px 70px;
    background-color: #fff;
}
.comment-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid #bbb;
}
.comment-title span {
    color: #03c75a;
    margin-left: 4px;
}
.comment-item {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}
.comment-item.reply {
    margin-left: 32px;
    padding: 14px 16px;
    background: #f7f8fa;
    border-bottom: none;
    border-radius: 6px;
    margin-top: 8px;
    margin-bottom: 8px;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8e8e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    flex-shrink: 0;
}
.comment-header strong {
    font-size: 14px;
    color: #222;
}
.author-badge {
    display: inline-block;
    background: #03c75a;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: -0.3px;
}
.comment-content {
    font-size: 14px;
    line-height: 1.65;
    color: #333;
    margin: 8px 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.comment-meta {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}
.comment-bottom {
    display: flex;
    gap: 18px;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}
.comment-bottom span {
    cursor: pointer;
}
.comment-bottom span:hover {
    color: #03c75a;
}

.write-comment{
    margin-top:28px;
    width:100%;
    height:54px;
    border:0;
    border-radius:10px;
    background:#55c95a;
    color:#fff;
    font-size:18px;
    font-weight:600;
}

.wrapper {
    margin:0 20px;
    text-align: center;
    font-weight: 500;
    font-size:18px;
}

.wrapper p {
    width: 100%;
    line-height:2.5;
    padding-bottom:10px;
}

.wrapper img {
    width: 100%;
}

.paper-slider {
    position: relative;
    margin: 20px 0 30px;
}

.paper-slider-viewport {
    overflow: hidden;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background-color: #fff;
}

.paper-slider-track {
    display: flex;
    transition: transform 0.35s ease;
}

.paper-slider-track img {
    width: 100%;
    flex: 0 0 100%;
    display: block;
}

.paper-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
}

.paper-slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.paper-slider-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.paper-slider-btn.prev { left: 10px; }
.paper-slider-btn.next { right: 10px; }

.paper-slider-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.paper-slider-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 14px;
}

.paper-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.paper-slider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #d5d5d5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.paper-slider-dots button.active {
    background-color: #00c73c;
}

.img-wrapper {
    display: flex;
    flex-direction: column;
    gap:23px;
    justify-content: center;
    align-items: center;
}

.img-wrapper img {
    width: 100%;
    
}


.share {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    margin: 25px;
    border: 1px solid #e3e3e3;
    text-align: left;
}

.share .img {
    height: 150px;
    overflow: hidden;
}

.share .img img {
    transform: translateY(-15%);
}

.share .text {
    padding: 15px 20px;
}

.share .text .desc {
    font-size:13px;
    color: #888;
}

.share .text .link {
    color: #55c95a;
    font-size:9px;
}

  /* 하단 모바일 nav바 */
        body {
            padding-bottom: 70px; /* nav바에 가려지지 않도록 */
        }
 
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            background: #fff;
            border-top: 1px solid #eaeaea;
            padding-bottom: env(safe-area-inset-bottom);
            z-index: 1000;
            box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
            /* iOS Safari 스크롤 중 리페인트 안정화 */
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }
 
        .nav-inner {
            /* 실제 아이콘이 배치되는 고정 높이 영역 */
            height: 60px;
            width: 100%;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }
 
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            color: #999;
            font-size: 11px;
            text-decoration: none;
            flex: 1;
            height: 100%;
            transition: color 0.15s;
            /* 아이템 자체도 shrink 방지 */
            min-width: 0;
        }
 
        .nav-item:hover {
            color: #555;
        }
 
        .nav-item svg {
            width: 24px;
            height: 24px;
            /* iOS Safari에서 flex 안에서 SVG가 축소되는 것 방지 */
            min-width: 24px;
            min-height: 24px;
            flex-shrink: 0;
            stroke: currentColor;
            fill: none;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
 
        .nav-item.active {
            color: #03c75a;
        }
 
        .nav-item.nav-write svg {
            width: 28px;
            height: 28px;
            min-width: 28px;
            min-height: 28px;
        }

        .scroll-wrap {
            position: fixed;
            bottom:80px;
            right:0px;
            font-size:12px;
            line-height:2.12;
            background-color: RGBA(255,255,255,0.9);
            padding:15px 20px;
            box-shadow: 0 0 10px rgba(0,0,0,0.3);
            overflow-y:scroll;
            z-index: 1000;
            border-radius:6px;
            
        }

        .scroll-wrap .scroll-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #ddd;
            padding: 5px 0;
            margin-bottom: 5px;
        }

        .scroll-wrap .scroll-header .title {
            font-size: 15px;
            font-weight: bold;
        }

        .scroll-wrap .scroll-header .close-btn {
            font-size: 25px;
            height: 25px;
            font-weight: bold;
            display: flex;
            align-items: center;
        }
        
                /* 1. 우측 하단 플로팅 책갈피 버튼 */
        .bookmark-btn {
            position: fixed;
            bottom: 110px; /* 하단 네비바 높이 고려 */
            right: 20px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #00c73c; /* 블로그 포인트 컬러 */
            color: #fff;
            border: none;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 999;
            transition: transform 0.2s ease, background-color 0.2s;
        }

        .bookmark-btn:hover {
            transform: scale(1.05);
            background-color: #00b035;
        }

        .bookmark-btn svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }