@charset "UTF-8";

/* --- 완벽한 싸이월드 미니홈피 + 파스텔 별빛 감성 v3.0 (확장 및 좌측 정렬) --- */

/* 1. 전체 배경 설정  */
body {
    font-family: 'Jua', sans-serif;
    background-color: #fdf5e6;
    background-image: 
        linear-gradient(#b8daef 2px, transparent 2px), 
        linear-gradient(90deg, #b8daef 2px, transparent 2px);
    background-size: 50px 50px;
    margin: 0;
    
    min-height: 100vh;
    display: flex;
    align-items: center; 
    justify-content: flex-start;
    padding-left: 8vw; 
    box-sizing: border-box;
}

/* 링크 스타일 초기화 */
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: #ff8e99;
}

/* 2. 미니홈피 다이어리 커버 (가로 1150px로 전격 확장) */
.hompy-wrapper {
    background-color: #92c4e7;
    padding: 25px; 
    border-radius: 24px;
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    width: 1300px; 
    height: 750px; 
    box-sizing: border-box;
    margin: 40px 0; 
}

/* 3. 다이어리 안쪽 하얀색 속지 틀 */
.hompy-book {
    background-color: #ffffff;
    border: 2px dashed #ffffff;
    border-radius: 18px;
    display: flex;
    width: 100%;
    height: 100%; 
    box-sizing: border-box;
}

/* 왼쪽 프로필 영역 (요구사항: 프로필 쪽 가로 사이즈는 늘리지 않고 고정) */
.left-section {
    width: 280px; /* 고정 크기 유지 */
    flex-shrink: 0; /* 본문이 늘어나도 쪼그라들지 않도록 고정 */
    padding: 25px;
    box-sizing: border-box;
    border-right: 2px dashed #e0e0e0; /* 다이어리 접히는 점선 */
    display: flex;
    flex-direction: column;
}

/* 오른쪽 메인 콘텐츠 영역 (요구사항: 가로로 확장된 모든 크기를 본문이 흡수) */
.right-section {
    flex-grow: 1;
    min-width: 0; 
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* --- 왼쪽 섹션 내부 요소들 --- */
.visitor-counter {
    text-align: center;
    font-size: 13px;
    margin-bottom: 15px;
}
.v-today { color: #ff6b81; font-weight: bold; }
.v-total { color: #555555; }

.profile-card {
    background-color: #f8f9fa;
    border: 2px solid #b8daef;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.profile-img-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-align: left;
    word-break: break-all;
    overflow-y: auto;
    flex-grow: 1;
    margin: 15px 0;
}
.profile-desc::-webkit-scrollbar, .content-inner::-webkit-scrollbar {
    width: 6px;
}
.profile-desc::-webkit-scrollbar-thumb, .content-inner::-webkit-scrollbar-thumb {
    background: #b8daef;
    border-radius: 10px;
}
.profile-owner {
    font-size: 15px;
    color: #2c3e50;
    border-top: 1px dashed #b8daef;
    padding-top: 12px;
    font-weight: bold;
}

/* --- 오른쪽 섹션 내부 요소들 --- */
.hompy-header {
    display: flex;
    justify-content: space-between; /* 타이틀은 왼쪽, 미니메뉴는 오른쪽 양끝 정렬 */
    align-items: flex-end;
    margin-bottom: 15px;
}
.blog-title {
    font-size: 24px;
    color: #3182b7;
    text-shadow: 1px 1px 0px #fff;
}
/* 오른쪽 상단 작은 메뉴 스타일링 */
.top-right-menu {
    font-size: 13px;
    color: #999;
    letter-spacing: 0.5px;
}
.top-right-menu a {
    margin: 0 3px;
}

/* 글이 들어가는 본문 상자 (크레파스풍 노란색 보더) */
.main-content-box {
    border: 3px solid #f7d24d;
    border-radius: 20px;
    flex-grow: 1; /* 가로뿐만 아니라 세로도 가득 채우기 */
    background-color: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}
.content-inner {
    padding: 25px;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

/* 블로그 포스트 디자인 */
.post-item { margin-bottom: 40px; }
.post-header { border-bottom: 2px dashed #f7d24d; padding-bottom: 8px; margin-bottom: 15px; }
.post-title { font-size: 22px; color: #333; margin: 0 0 8px 0; }
.post-date { font-size: 13px; color: #aaa; }
.post-body { font-size: 15px; line-height: 1.7; color: #444; word-break: break-all; }

/* 방명록 및 알림 폼 */
.guestbook-wrapper {
    margin-top: 30px;
    background: #fdfbf7;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #f7d24d;
}
.input-group textarea {
    font-family: 'Jua', sans-serif;
    border: 1px solid #b8daef;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.btn-submit {
    font-family: 'Jua', sans-serif;
    background-color: #55a6d9;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-submit:hover { background-color: #f7d24d; }

/* 4. 사이드 탭 메뉴 */
.hompy-tabs {
    position: absolute;
    right: -62px;
    top: 60px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}
.hompy-tab {
    width: 60px;
    padding: 12px 0;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    border-radius: 0 12px 12px 0;
    box-shadow: 3px 2px 5px rgba(0,0,0,0.1);
    display: block;
    transition: all 0.2s ease-in-out;
}
.tab-home { background-color: #ff8e99; }
.tab-profile { background-color: #55a6d9; }
.tab-guest { background-color: #f7d24d; }
.hompy-tab:hover {
    width: 68px;
    padding-left: 5px;
    font-weight: bold;
}

/* 페이징 */
.pagination { text-align: center; margin-top: 20px; font-size: 16px; color: #55a6d9; }
.pagination a { margin: 0 5px; }
