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

html, body {
  height: 100%;
}

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;
}


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;
}

.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;
    margin: 40px auto 0;
    padding: 0 20px 70px;
}
.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%;
}

.img-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
}

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


.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(-25%);
}

.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;
        }