@charset "UTF-8";

/* [1] 기본 초기화 및 레이아웃 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('https://i.imgur.com/Lco6UJD.png');
    background-repeat: repeat;
    background-position: center top;
    background-attachment: fixed;
    background-color: #ffe4e9;
    font-family: 'Courier New', Courier, monospace, sans-serif;
    color: #555;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

/* [1] 제일 바깥쪽 컨테이너 (직각 3단 컬러 테두리) - PC 고정 버전 */
#container {
    width: 900px;
    background-color: #ffffff;
    border-radius: 0;
    padding: 10px;
    box-shadow: 
        0 0 0 2px #D9E8F1,
        0 0 0 7px #FCE3EC,
        0 0 0 9px #EE95B3;
    margin: 15px auto; 
}

/* [2] 상단 헤더 배너 */
#header {
    width: 100%;
    margin-bottom: 8px;
}
.header_banner_img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border: 2px dashed #D9E8F1;
    border-radius: 4px;
}

/* [3] 상단 미니 배너 6개 바 */
#top_banner_bar {
    border: 2px solid #D9E8F1;
    background-color: #E3F0F9;
    padding: 6px 12px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.top_banner_list {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top_banner_list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.top_banner_list a:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.top_banner_list img {
    width: auto;
    max-height: 31px;
    border: 1px solid #D9E8F1;
    border-radius: 3px;
    display: block;
}

/* [4] 메인 3열 레이아웃 */
#wrapper {
    display: flex;
    gap: 10px;
}

.sidebar {
    width: 210px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 공통 사이드바 박스 디자인 */
.box_aside {
    border: 2px solid #D9E8F1;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 8px;
}

/* [프로필 카드] */
.box_profile_card {
    text-align: center;
}
.profile_img_wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px auto;
    border-radius: 50%;
    border: 2px solid #D9E8F1;
    overflow: hidden;
    background: #ffffff;
}
.profile_main_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile_intro {
    font-size: 11px;
    margin-bottom: 5px;
    color: #666;
}
.profile_feeling {
    font-size: 11px;
    background: #ffffff;
    border: 1px dashed #D9E8F1;
    padding: 3px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.profile_comment_box {
    background: #ffffff;
    border: 1px solid #D9E8F1;
    border-radius: 4px;
    padding: 6px;
    text-align: left;
    font-size: 11px;
}
.comment_header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}
.profile_name_link {
    color: #D970B5;
    text-decoration: none;
    font-weight: bold;
}
.comment_time {
    color: #999;
    font-size: 10px;
}

/* [네비게이션 메뉴] */
.box_navigation {
    position: relative !important;
    overflow: visible !important;
    margin-top: 55px !important;
    text-align: center;
}

.nav_title_img {
    position: absolute !important;
    top: -45px !important;
    left: -12px !important;
    transform: none !important;
    max-width: 210px !important;
    height: auto !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.nav_title {
    font-size: 14px;
    color: #ffffff;
    text-transform: lowercase;
    margin-bottom: 3px;
    letter-spacing: 1px;
}
.nav_sitemap_link {
    font-size: 9px;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}
.nav_sitemap_link:hover {
    text-decoration: underline;
}
.nav_menu_list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6px 10px;
    background-color: #ffffff;
    border: 1px solid #D9E8F1;
    border-radius: 4px;
    color: #D970B5;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s;
}

.nav_btn.btn_star::before {
    content: "✭";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #D970B5;
    line-height: 1;
}

.nav_btn:hover {
    background-color: #a0d8ef;
    color: #ffffff;
}

.nav_btn:hover::before {
    color: #ffffff;
}

.ribbon_divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}
.ribbon_line {
    flex: 1;
    height: 1px;
    background-color: #D9E8F1;
}
.ribbon_icon {
    padding: 0 4px;
    font-size: 10px;
}

/* [미니 뮤직 플레이어] */
.box_music_player {
    background: #ffffff;
    border: 2px solid #D9E8F1;
    border-radius: 6px;
    padding: 8px;
}

.box_music_player .nav_title {
    font-size: 12px;
    text-transform: lowercase;
    color: #D970B5;
    margin-bottom: 6px;
    border-bottom: 1px dashed #D9E8F1;
    padding-bottom: 3px;
    text-align: center;
    letter-spacing: 1px;
}

.mini_player_container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player_info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #555;
    background: #ffffff;
    padding: 5px 7px;
    border-radius: 4px;
    border: 1px solid #D9E8F1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.player_title {
    font-weight: bold;
    color: #5c9ead;
}

.player_controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player_btn {
    background: #a0d8ef;
    color: white;
    border: none;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.player_btn:hover {
    background: #7ec0ee;
}

.player_volume_box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #888;
}

.player_volume_box input[type="range"] {
    width: 55px;
    accent-color: #a0d8ef;
}

/* [중앙 웰컴 포스트 박스] */
.main_post_card {
    position: relative; 
    border: 2px solid #D9E8F1;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #DDF7FC 100%);
    padding: 10px;
    padding-bottom: 30px;
    min-height: 420px;
    overflow: hidden;
}

.post_title_badge {
    position: relative;
    z-index: 2;
    background-color: #BDE6FB;
    color: #BDE6FB;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    padding: 4px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.post_card_content {
    position: relative;
    z-index: 2;
    font-size: 11px;
    line-height: 1.4;
    width: 100%;
}

.post_intro_text {
    margin-bottom: 10px;
}

.post_sub_title {
    color: #D970B5;
    font-size: 12px;
    margin-bottom: 5px;
}

.post_bullet_list {
    list-style: none;
    padding-left: 5px;
    margin-bottom: 10px;
}

.post_bullet_list li {
    margin-bottom: 3px;
}

/* [우측 하단 캐릭터 이미지] */
.post_bottom_img {
    position: absolute;
    right: 10px;
    bottom: 5px;
    width: auto;
    max-height: 280px;
    z-index: 1;
    pointer-events: none; 
}

/* [하단 영역: 회색 이미지 3개 + Information 카드] */
.info_section_wrapper {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: stretch;
}

.gray_img_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 105px;
    flex-shrink: 0;
}

.gray_img_item {
    width: 100%;
    flex: 1;
    border: 1px solid #D9E8F1;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.gray_img_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info_card_box {
    flex: 1;
    border: 2px solid #D9E8F1;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #DDF7FC 100%);
    padding: 8px;
}

.info_card_title {
    background-color: #D9E8F1;
    color: #ffffff;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    padding: 3px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.info_card_body {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 10px;
    line-height: 1.4;
    color: #555;
}

.info_thumb_box {
    width: 65px;
    height: 65px;
    border: 1px solid #D9E8F1;
    border-radius: 4px;
    background: #ffffff;
    flex-shrink: 0;
    overflow: hidden;
}

.info_thumb_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info_text_content {
    flex: 1;
    min-width: 0;
}

.info_text_content h4 {
    font-size: 11px;
    color: #5c9ead;
    margin-top: 6px;
    margin-bottom: 2px;
}

.info_text_content a {
    color: #a0d8ef;
    text-decoration: underline;
}

/* [우측 사이드바 요소들] */
.box_todo {
    border: none;
    position: relative;
}
.todo_title_badge {
    background-color: #ffffff;
    color: white;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    padding: 3px;
    border-radius: 3px;
    margin-bottom: 6px;
}
.todo_list {
    list-style: disc;
    padding-left: 15px;
    font-size: 10px;
    line-height: 1.4;
    margin-bottom: 30px;
}
.todo_list li.done {
    text-decoration: line-through;
    color: #ffffff;
}
.todo_sticker {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.thank_you_text {
    font-size: 9px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.1;
    text-align: right;
}
.bunny_character {
    font-size: 16px;
}

/* [시계 박스] */
.box_timer {
    text-align: center;
    padding: 10px;
    background-color: #ffffff;
    border: 2px solid #D9E8F1;
    border-radius: 6px;
}

.digital_clock {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #ffffff;
    background-image: 
        linear-gradient(90deg, rgba(217, 232, 241, 0.5) 50%, transparent 50%),
        linear-gradient(rgba(217, 232, 241, 0.5) 50%, transparent 50%);
    background-size: 8px 8px;
    border: 1px solid #D9E8F1;
    padding: 6px 4px;
    border-radius: 4px;
    letter-spacing: 2px;
    display: block;
    text-shadow: 
        -1px -1px 0 #a0d8ef,  
         1px -1px 0 #a0d8ef,
        -1px  1px 0 #a0d8ef,
         1px  1px 0 #a0d8ef,
         0px  0px 2px #a0d8ef;
}

.box_calendar {
    font-size: 10px;
}
.calendar_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #D9E8F1;
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px 3px 0 0;
    font-weight: bold;
}
.cal_btn {
    background: none;
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}
.retro_calendar {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    text-align: center;
    border: 1px solid #D9E8F1;
}
.retro_calendar th, .retro_calendar td {
    border: 1px solid #E3F0F9;
    padding: 2px;
    height: 24px;
    vertical-align: middle;
}
.retro_calendar th {
    background-color: #E3F0F9;
    color: #D970B5;
    font-size: 9px;
}
.retro_calendar th.sun { color: #ff6b6b; }
.retro_calendar th.sat { color: #4dabf7; }
.retro_calendar td.sun { color: #ff6b6b; }
.retro_calendar td.today {
    background-color: #E3F0F9;
    font-weight: bold;
    border: 1px dashed #a0d8ef;
}
.retro_calendar td .num {
    display: block;
    font-size: 10px;
}
.retro_calendar td .sub_text {
    display: block;
    font-size: 7px;
    color: #888;
}
.retro_calendar td .sub_text.red_txt {
    color: #ff6b6b;
}

/* [우측 사이드 배너 3연속 스타일] */
.box_side_banner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 0;
    background-color: transparent;
    border: none;
    margin-top: -10px;
}

.side_banner_link {
    display: block;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.side_banner_link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.side_banner_link img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #D9E8F1;
    border-radius: 6px;
}

/* [5] 푸터 */
#footer {
    text-align: center;
    font-size: 10px;
    color: #aaa;
    margin-top: 10px;
    border-top: 1px dashed #D9E8F1;
    padding-top: 6px;
}

/* [6] 화면 전환 및 의뢰 폼 전용 스타일 */
.page-view { display: none; }
.page-view.active { display: block; }

.commission_form_box {
    background-color: #ffffff;
    border: 2px solid #D9E8F1;
    border-radius: 4px;
    padding: 10px;
    font-family: Arial, sans-serif;
    color: #5c9ead;
}
.comm_top_btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.comm_btn {
    background: #ffffff;
    border: 1px solid #D9E8F1;
    padding: 3px 10px;
    font-weight: bold;
    color: #5c9ead;
    cursor: pointer;
    border-radius: 3px;
    font-size: 11px;
}
.comm_btn:hover {
    background-color: #a0d8ef;
    color: #fff;
}
.comm_field_row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 11px;
}
.comm_field_row label {
    width: 70px;
    text-align: right;
    padding-right: 10px;
    color: #5c9ead;
}
.comm_field_row input[type="text"] {
    flex: 1;
    border: 1px solid #D9E8F1;
    padding: 3px;
    background: #ffffff;
    font-size: 11px;
}
.comm_sub_bar {
    background-color: #D9E8F1;
    padding: 5px;
    margin: 8px 0;
    display: flex;
    gap: 10px;
    font-size: 11px;
    border-top: 1px solid #D9E8F1;
    border-bottom: 1px solid #D9E8F1;
}
.stamp_grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    background: #ffffff;
    padding: 8px;
    border: 1px solid #D9E8F1;
    margin-bottom: 8px;
    text-align: center;
}
.stamp_item img {
    width: 35px;
    height: 35px;
    object-fit: cover;
}
.comm_textarea {
    width: 100%;
    height: 140px;
    border: 1px solid #D9E8F1;
    background: #ffffff;
    resize: vertical;
    padding: 5px;
    font-size: 11px;
}
.comm_bottom_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

/* [7] 방명록(Guestbook) 전용 스타일 */
.guestbook_container {
    background-color: #ffffff;
    border: 2px solid #D9E8F1;
    border-radius: 6px;
    padding: 12px;
}
.gb_write_box {
    background: #ffffff;
    border: 1px solid #D9E8F1;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 12px;
}
.gb_write_title {
    font-size: 12px;
    font-weight: bold;
    color: #5c9ead;
    margin-bottom: 8px;
}
.gb_input_row {
    margin-bottom: 6px;
}
.gb_input_row input[type="text"] {
    width: 100%;
    border: 1px solid #D9E8F1;
    padding: 4px;
    font-size: 11px;
    border-radius: 3px;
    background: #ffffff;
}
.gb_textarea {
    width: 100%;
    height: 60px;
    border: 1px solid #D9E8F1;
    padding: 5px;
    font-size: 11px;
    border-radius: 3px;
    resize: vertical;
    background: #ffffff;
    margin-bottom: 6px;
}
.gb_submit_btn {
    float: right;
    background: #a0d8ef;
    color: white;
    border: none;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
}
.gb_submit_btn:hover {
    background: #7ec0ee;
}
.gb_thread_item {
    background: #ffffff;
    border: 1px solid #D9E8F1;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
}
.gb_thread_header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    border-bottom: 1px dashed #D9E8F1;
    padding-bottom: 4px;
    margin-bottom: 6px;
    color: #666;
}
.gb_num {
    font-weight: bold;
    color: #5c9ead;
}
.gb_name {
    font-weight: bold;
    color: #555;
}
.gb_date {
    color: #999;
}
.gb_postno {
    color: #aaa;
    margin-left: auto;
}
.gb_reply_btn {
    background: #E3F0F9;
    border: 1px solid #D9E8F1;
    color: #5c9ead;
    width: 16px;
    height: 16px;
    font-size: 10px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gb_content {
    font-size: 11px;
    color: #444;
    line-height: 1.4;
    margin-bottom: 6px;
}
.gb_comment_list {
    background: #E3F0F9;
    border-radius: 3px;
    padding: 5px;
    margin-top: 4px;
}
.gb_comment_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    padding: 2px 0;
    color: #555;
}
.gb_del_comment_btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 9px;
    cursor: pointer;
}
.gb_inline_reply_box {
    display: none;
    margin-top: 6px;
    gap: 4px;
}
.gb_inline_reply_box.open {
    display: flex;
}
.gb_inline_reply_box input {
    flex: 1;
    border: 1px solid #D9E8F1;
    padding: 3px;
    font-size: 10px;
    border-radius: 3px;
}
.gb_inline_reply_box button {
    background: #5c9ead;
    color: white;
    border: none;
    padding: 3px 8px;
    font-size: 10px;
    border-radius: 3px;
    cursor: pointer;
}

/* [8] 성향(Tendency) 전용 스타일 */
.tendency_container {
    background-color: #ffffff;
    border: 2px solid #D9E8F1;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}
.tendency_photo_box {
    width: 100%;
    max-height: 300px;
    border: 2px solid #D9E8F1;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 6px;
}
.tendency_photo_box img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.tendency_source {
    font-size: 10px;
    color: #888;
    margin-bottom: 12px;
    text-align: right;
}
.tendency_text_bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tendency_text_bar {
    background: #ffffff;
    border: 1px solid #D9E8F1;
    border-radius: 4px;
    padding: 8px;
    font-size: 11px;
    color: #5c9ead;
    text-align: left;
}

/* ==========================================================
   [9] 모바일 전용 반응형 스타일 (PC 버전과 완전히 독립적용)
   ========================================================== */
@media screen and (max-width: 768px) {
    body {
        padding: 10px 5px;
        /* iOS 사파리 가로모드 전환 시 글자 크기 자동 확대 방지 */
        -webkit-text-size-adjust: 100%;
    }

    /* iOS 사파리/웹뷰에서 input, textarea, button 기본 스타일(둥근 모서리 등) 초기화 */
    input[type="text"], 
    input[type="range"], 
    textarea, 
    button {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 4px;
    }

    #container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 8px !important;
        box-shadow: 
            0 0 0 1px #D9E8F1,
            0 0 0 4px #FCE3EC,
            0 0 0 6px #EE95B3 !important;
    }

    /* 3열 레이아웃을 1열(세로) 스택 형태로 전환 */
    #wrapper {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .sidebar {
        width: 100% !important;
    }

    #main {
        width: 100% !important;
    }

    /* [★ 모바일 전용 숨김 처리] 타이머 박스와 인포메이션 옆 회색 이미지 2개 숨기기 */
    .box_timer, 
    .gray_img_list {
        display: none !important;
    }

    /* 모바일 환경에서 요소 가독성 및 배치 최적화 */
    .header_banner_img {
        height: 90px !important;
    }

    .top_banner_list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .info_section_wrapper {
        flex-direction: column !important;
    }

    /* 모바일에서 글자가 너무 작지 않도록 유연성 부여 */
    .post_card_content, .info_card_body, .comm_field_row, .gb_content {
        font-size: 12px !important;
    }
}