@charset "utf-8";

/* ===============================================
   청춘드라이브 게시판 스타일 (style.css)
   =============================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;900&family=Jua&display=swap');

/* CSS Variables */
:root {
    --primary-color: #fc74a6;
    --secondary-color: #fe6981;
    --accent-color: #263172;
    --success-color: #b5ca31;
    --warning-color: #efb74c;
    --info-color: #00b3ce;
    --danger-color: #ff6350;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #f0e0e8;
    --pink-light: #ffe0ee;
    --pink-pastel: #ffc0db;
    --yellow-kakao: #ffe600;
    --purple-light: #e8d5ff;
    --blue-light: #e0f2ff;
    --green-light: #e8f5e9;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fef6f9;
    background-image:
            radial-gradient(circle at 20% 80%, var(--pink-light) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, var(--pink-pastel) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(255, 224, 238, 0.3) 0%, transparent 50%);
}

/* ===============================================
   Emoji Decorations
   =============================================== */
.emoji-float {
    position: fixed;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ===============================================
   게시물 읽기 (Post View)
   =============================================== */
#bo_v {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(252, 116, 166, 0.15);
    border: 3px solid var(--pink-light);
    position: relative;
    overflow: hidden;
    margin: 40px auto;
    max-width: 1000px;
}

#bo_v::before {
    content: '🚗';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 120px;
    opacity: 0.05;
    transform: rotate(-15deg);
}

/* ===============================================
   제목 영역 (Title Area)
   =============================================== */
#bo_v_header {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

#bo_v_title_area {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--pink-light);
}

.bo_v_cate {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(252, 116, 166, 0.3);
}

.bo_v_cate i {
    margin-right: 5px;
}

.bo_v_tit {
    line-height: 1.4 !important;
    margin: 15px 0 !important;
    padding: 10px 0 !important;
    word-wrap: break-word;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

#bo_v_title_area {
    overflow: visible !important;
    height: auto !important;
    padding: 20px 0 !important;
}

/* ===============================================
   게시물 정보 (Post Info)
   =============================================== */
#bo_v_info {
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 40px;
    border: 2px solid var(--border-color);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#bo_v_info::after {
    content: '✨';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    opacity: 0.3;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.profile_info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.pf_img img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(252, 116, 166, 0.2);
}

.profile_info_ct {
    flex: 1;
}

.author_info {
    margin-bottom: 10px;
}

.author_name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.author_name i {
    color: var(--primary-color);
}

.post_stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.post_stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.post_stats i {
    color: var(--primary-color);
}

.post_stats a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post_stats a:hover {
    color: var(--primary-color);
}

/* ===============================================
   상단 버튼 (Top Buttons)
   =============================================== */
#bo_v_top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.btn_bo_user {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.btn_cute {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 116, 166, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn_cute:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 116, 166, 0.4);
    color: white;
}

.btn_cute i {
    font-size: 0.9rem;
}

.more_options {
    position: relative;
}

.more_opt {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 2px solid var(--pink-light);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(252, 116, 166, 0.2);
    z-index: 999;
    min-width: 120px;
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.more_opt::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent var(--pink-light) transparent;
}

.more_opt li {
    border-bottom: 1px solid var(--pink-light);
}

.more_opt li:last-child {
    border-bottom: none;
}

.more_opt li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-weight: 500;
}

.more_opt li:first-child a {
    border-radius: 13px 13px 0 0;
}

.more_opt li:last-child a {
    border-radius: 0 0 13px 13px;
}

.more_opt li a:hover {
    background: var(--pink-light);
    color: var(--primary-color);
    transform: none;
}

.more_opt li a i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* ===============================================
   공유 & 스크랩 (Share & Scrap)
   =============================================== */
#bo_v_share {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid var(--pink-light);
}

.share_title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share_title i {
    color: var(--primary-color);
}

.btn_scrap {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn_scrap:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* ===============================================
   본문 내용 (Post Content)
   =============================================== */
#bo_v_con {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 40px 0;
    min-height: 300px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    border: 2px solid var(--pink-light);
}

#bo_v_con p {
    margin-bottom: 20px;
}

#bo_v_con img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

#bo_v_con strong {
    color: var(--primary-color);
    font-weight: 600;
}

#bo_v_con a {
    color: var(--primary-color);
    text-decoration: underline;
}

#bo_v_con a:hover {
    color: var(--secondary-color);
}

/* ===============================================
   이미지 갤러리 (Image Gallery)
   =============================================== */
#bo_v_img {
    margin: 30px 0;
    text-align: center;
}

#bo_v_img img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#bo_v_img img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ===============================================
   추천/비추천 (Good/Bad Voting)
   =============================================== */
#bo_v_act {
    background: linear-gradient(135deg, #fff 0%, var(--pink-light) 100%);
    border-radius: 25px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
    border: 2px solid var(--border-color);
}

.vote_title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vote_title i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.vote_buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.bo_v_good,
.bo_v_nogood {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(252, 116, 166, 0.2);
    position: relative;
}

.bo_v_good:hover,
.bo_v_nogood:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(252, 116, 166, 0.4);
}

.bo_v_good i,
.bo_v_nogood i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.vote_text {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.vote_count {
    font-size: 1.1rem;
    font-weight: 700;
}

.vote_message {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(252, 116, 166, 0.3);
}

.vote_display {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.bo_v_good_display,
.bo_v_nogood_display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    border: 2px solid var(--pink-light);
    min-width: 100px;
}

.bo_v_good_display i,
.bo_v_nogood_display i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.bo_v_good_display strong,
.bo_v_nogood_display strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* ===============================================
   첨부파일 (Files)
   =============================================== */
#bo_v_file {
    margin: 40px 0;
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 2px solid var(--pink-light);
}

#bo_v_file h2 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
   font-family:'Malgun Gothic',"맑은 고딕",AppleGothic,Dotum,"돋움", sans-serif;
}

#bo_v_file h2 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.file_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.file_item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--light-gray);
    border-radius: 15px;
    border: 2px solid var(--pink-light);
    transition: all 0.3s ease;
}

.file_item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(252, 116, 166, 0.2);
}

.file_icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.file_info {
    flex: 1;
}

.file_name {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.file_name:hover {
    color: var(--primary-color);
}

.file_desc {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 5px;
}

.file_meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===============================================
   관련링크 (Related Links)
   =============================================== */
#bo_v_link {
    margin: 40px 0;
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 2px solid var(--pink-light);
}

#bo_v_link h2 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
   font-family:'Malgun Gothic',"맑은 고딕",AppleGothic,Dotum,"돋움", sans-serif;
}

#bo_v_link h2 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.link_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.link_item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--light-gray);
    border-radius: 15px;
    border: 2px solid var(--pink-light);
    transition: all 0.3s ease;
}

.link_item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(252, 116, 166, 0.2);
}

.link_icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--info-color), #00d4ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.link_info {
    flex: 1;
}

.link_url {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link_url:hover {
    color: var(--info-color);
}

.link_meta {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===============================================
   이전/다음글 네비게이션 (Post Navigation)
   =============================================== */
.post_navigation {
    margin: 40px 0;
}

.bo_v_nb {
    list-style: none;
    margin: 0;
    padding: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--pink-light);
}

.bo_v_nb li {
    border-bottom: 2px solid var(--pink-light);
}

.bo_v_nb li:last-child {
    border-bottom: none;
}

.nav_link {
    display: block;
    padding: 25px 30px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
}

.nav_link:hover {
    background: var(--pink-light);
    color: var(--text-dark);
}

.nav_direction {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.nav_direction i {
    color: var(--primary-color);
    font-size: 1rem;
}

.nav_title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.4;
}

.nav_date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===============================================
   시그니처 (Signature)
   =============================================== */
.signature_area {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 224, 238, 0.3);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.signature_area p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===============================================
   반응형 디자인 (Responsive)
   =============================================== */
@media (max-width: 768px) {
    #bo_v {
        padding: 30px 20px;
        margin: 20px 10px;
    }

    .bo_v_tit {
        font-size: 1.6rem;
    }

    #bo_v_info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .post_stats {
        flex-direction: column;
        gap: 8px;
    }

    .btn_bo_user {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn_cute {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .vote_buttons {
        gap: 20px;
    }

    .bo_v_good,
    .bo_v_nogood {
        width: 100px;
        height: 100px;
    }

    .bo_v_good i,
    .bo_v_nogood i {
        font-size: 1.5rem;
    }

    .file_item,
    .link_item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .nav_link {
        padding: 20px;
    }

    .nav_title {
        font-size: 1rem;
    }

    #bo_v_con {
        padding: 20px;
        font-size: 1rem;
    }

    .more_opt {
        right: -10px;
    }
}

/* ===============================================
   유틸리티 클래스 (Utility Classes)
   =============================================== */
.sound_only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }




/* ===============================================
   Profile Info 모바일 정렬 수정 (추가)
   =============================================== */

/* 모바일에서 profile_info 정렬 수정 */
@media (max-width: 768px) {
    .profile_info {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
    }

    .pf_img {
        margin-bottom: 10px;
    }

    .pf_img img {
        width: 50px !important;
        height: 50px !important;
    }

    .profile_info_ct {
        width: 100%;
        text-align: center;
    }

    .author_info {
        margin-bottom: 8px;
        text-align: center;
    }

    .author_name {
        justify-content: center !important;
        font-size: 1.1rem !important;
    }

    .post_stats {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .post_stats span {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
    }

    #bo_v_info {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
        padding: 25px 20px !important;
    }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
    .profile_info {
        width: 100%;
        gap: 8px !important;
    }

    .pf_img img {
        width: 45px !important;
        height: 45px !important;
    }

    .author_name {
        font-size: 1rem !important;
        gap: 5px !important;
    }

    .post_stats {
        gap: 8px !important;
        margin-top: 5px;
    }

    .post_stats span {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
        border-radius: 12px;
    }

    #bo_v_info {
        padding: 20px 15px !important;
    }
}

/* 초소형 모바일 (360px 이하) */
@media (max-width: 360px) {
    .pf_img img {
        width: 40px !important;
        height: 40px !important;
    }

    .author_name {
        font-size: 0.95rem !important;
        gap: 4px !important;
    }

    .author_name i {
        font-size: 0.85rem !important;
    }

    .post_stats span {
        font-size: 0.75rem !important;
        padding: 5px 8px !important;
    }

    .post_stats i {
        font-size: 0.8rem !important;
    }

    #bo_v_info {
        padding: 15px 10px !important;
    }
}