/* 마이페이지 글쓰기+페이지네이션 한 줄 정렬 */
.page-write-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    gap: 12px;
}
.btn-write {
    padding: 8px 22px;
    background: linear-gradient(90deg, #ffb37a 0%, #ff7e36 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255,126,54,0.13);
    transition: background 0.18s, color 0.18s;
}
.btn-write:hover {
    background: #ff7e36;
    color: #fffbe7;
}
/* 글 목록 제목 옆 메타 정보 그룹 */
.title-meta-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
}
.comment-count-badge {
    margin-left: 2px !important;
    padding: 0 2px;
    font-size: 13px;
    color: #ff7e36;
    background: none;
    border: none;
    vertical-align: center;
}
.image-icon {
    margin-left: 2px !important;
    font-size: 15px;
    vertical-align: middle;
}
.status-badge.status-reserved,
.status-badge.status-completed {
    margin-left: 2px !important;
    font-size: 12px;
    padding: 2px 6px;
    vertical-align: center;
    display: inline-block;
    line-height: 1;
}
/* PC용 main.main-container 스타일 */
@media (min-width: 1025px) {
    main.main-container {
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 10px 10px 10px 10px;
    min-height: 1000px;
    position: relative;
    }
}
/* main_style.css - 통합 스타일시트 */

/* ===== 기본 스타일 및 레이아웃 ===== */
body {
    margin: 0;
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    min-height: 100vh;
    box-sizing: border-box;
    background: white;
    display: flex;
    flex-direction: column;
}

/* ===== 로그인/회원가입 분할 화면 레이아웃 ===== */
.split-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.split-left {
    flex-basis: 50%;
    background: linear-gradient(135deg, #ff8a5c 0%, #ff7e36 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.welcome-content {
    max-width: 450px;
    text-align: left;
}

.welcome-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.welcome-content p {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.welcome-content ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    font-size: 16px;
    line-height: 2;
}

.split-right {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== 폼 컨테이너 (로그인/회원가입) ===== */
.form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.form-container h2 {
    font-size: 28px;
    color: #ff7e36;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

/* 버튼 스타일 통합 */
.btn-upload-license {
    width: auto;
    height: 44px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    border: none;
    border-radius: 8px;
    line-height: 44px;
    cursor: pointer;
    box-sizing: border-box;
    background: linear-gradient(135deg, #ff6f0f 0%, #ff8f3f 100%);
    box-shadow: 0 2px 8px rgba(255, 111, 15, 0.12);
}

.btn-upload-license:hover {
    background: linear-gradient(135deg, #e66a26 0%, #e65d15 100%);
}

.btn-register {
    display: block;
    padding: 12px;
    background-color: #28a745;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}

.btn-register:hover {
    background-color: #218838;
}

.btn-secondary {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #6c757d;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}


.btn-login {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff6f0f 0%, #ff8f3f 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 111, 15, 0.12);
    line-height: normal;
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-login:hover {
    background: linear-gradient(135deg, #e66a26 0%, #e65d15 100%);
    box-shadow: 0 4px 16px rgba(255, 111, 15, 0.18);
}
.form-actions .btn-login,
.form-actions .btn-register {
    flex: 1;
}

.find-account-link {
    display: block;
    margin-top: 25px;
    font-size: 14px;
    color: #606770;
    text-align: center;
}

/* ===== 메인 레이아웃 컨테이너 ===== */
.main-layout-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.board-nav-container {
    flex: 0 0 260px;
    max-width: 320px;
    min-width: 200px;
    width: 260px;
    box-sizing: border-box;
    background: transparent;
    z-index: 2;
}

.main-container {
    flex: 1 1 0%;
    min-width: 0;
    box-sizing: border-box;
    z-index: 1;
}
.page-content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 5px auto 0;
    box-sizing: border-box;
    padding-bottom: 80px;
    background: white;
    padding: 0px 0px;
    min-height: calc(100vh - 80px);
}


/* ===== 사이드바 레이아웃 ===== */
.site-sidebar,
.board-nav-container {
    width: 300px;
    min-width: 280px;
    box-sizing: border-box;
    flex: 0 0 260px;
    max-width: 320px;
    min-width: 200px;
    padding: 20px;
    background: transparent;
}

.sidebar-top-container {
    margin-bottom: 14px;
}

.sidebar-main-container {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    padding: 8px 10px;
}

/* ===== 사이드바 프로필 카드 ===== */
.sidebar-profile-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e6e8eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 16px;
    margin-bottom: 12px;
}

/* 상단 그리드: 프로필 사진 + 닉네임/로그아웃 */
.spc-grid {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.spc-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e6e8eb;
    overflow: hidden;
    position: relative;
}

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

/* 우측 유저 정보 */
.spc-user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.spc-nickname {
    font-size: 18px;
    font-weight: 700;
    color: #202124;
    line-height: 1.3;
}

.spc-btn-logout {
    display: inline-block;
    padding: 6px 14px;
    background: #6c757d;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    width: fit-content;
}

.spc-btn-logout:hover {
    background: #5a6268;
}

/* 하단: 캐롯포인트 | 회원등급 (1:1 그리드) */
.spc-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.spc-stats-row .summary-card {
    background-color: #fff9f2;
    border: 1px solid #ffe8d6;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.spc-stats-row .summary-card h3 {
    margin: 0 0 4px;
    font-size: 13px;
    color: #d96824;
    font-weight: 600;
}

.spc-stats-row .summary-card p {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ff7e36;
}

.spc-stats-row .summary-card p.small-text {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

/* 하단 4탭 */
.spc-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #e6e8eb;
    margin-top: 8px;
    padding: 12px 0 8px 0;
}

.spc-tab {
    position: relative;
    padding: 0;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-icon-wrapper {
    position: relative;
    display: inline-block;
}

.tab-label {
    color: #3c4043;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
}

.spc-tab:hover .tab-label {
    color: #ff6b2c;
}

/* 탭 배지 스타일 (탭 중앙 상단, 보더라인 위) */
.tab-badge {
    position: absolute;
    top: -22px; /* 탭 레이블 기준 위쪽 */
    left: 50%;
    transform: translateX(-50%); /* 좌우 중앙 정렬 */
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ff6b2c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

/* ===== 게시판 목록 테이블 ===== */
.post-list {
    width: 100%;
    border-collapse: collapse;
}

.post-list th, .post-list td {
    padding: 10px 5px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.post-list th:nth-child(1), .post-list td:nth-child(1) { padding-left: 5px; padding-right: 5px; }
.post-list th:nth-child(2), .post-list td:nth-child(2) { padding-left: 5px; padding-right: 5px; }

/* 컬럼 너비 */
.post-list th[width="6%"] { width: 6%; }
.post-list th[width="10%"] { width: 10%; }
.post-list th[width="48%"] { width: 48%; }
.post-list th[width="15%"] { width: 15%; }
.post-list th[width="13%"] { width: 13%; }
.post-list th[width="12%"] { width: 12%; }
.post-list th[width="14%"] { width: 14%; }
.post-list th[width="50%"] { width: 50%; }

.post-list th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.post-list .title {
    text-align: left;
}

.post-list .title a {
    text-decoration: none;
    color: #333;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    flex: 1 1 0%;
    min-width: 0;
}

.post-list .title a:hover {
    text-decoration: underline;
}

.title-content {
    display: flex;
    align-items: center;
    gap: 2px;
}

.title-meta-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.title-meta-group .comment-count-badge,
.title-meta-group .status-badge,
.title-meta-group .image-icon {
    margin-left: 0;
    margin-right: 0;
}
.title-content a {
    flex: 1 1 0%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-list .sold-out a {
    color: #6c757d;
}

.post-list .thumbnail {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #eee;
    vertical-align: middle;
}

.post-list tr.notice-post {
    background-color: #fffbe6;
    font-weight: 600;
}

.notice-badge {
    background-color: #ffc107;
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 5px;
}

.image-icon {
    font-size: 12px;
    vertical-align: middle;
    margin-left: 4px;
    line-height: 1;
}

/* ===== 상태 배지 스타일 ===== */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: center;
}

.status-badge.status-reserved {
    background-color: #FFA500;
    color: #4A2E00;
}

.status-badge.status-completed,
.status-badge.status-sold {
    background-color: #E53935;
    color: #FFFFFF;
}

/* 기존 style.css의 배지(제거된 중복) */
.status-selling {
    background-color: #28a745;
}
.status-reserved {
    background-color: #ffc107;
    color: #212529;
}
.status-completed {
    background-color: #6c757d;
}

/* ===== 검색 폼 ===== */
.search-form-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-form-container form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    margin: 0;
}

.search-form-container select,
.search-form-container input[type="text"] {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    height: 44px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.search-form-container select:focus,
.search-form-container input[type="text"]:focus {
    outline: none;
    border-color: #ff7e36;
    box-shadow: 0 0 0 3px rgba(255, 126, 54, 0.1);
    transform: translateY(-1px);
}

.search-form-container select {
    flex-basis: 150px;
    cursor: pointer;
}

.search-form-container input[type="text"] {
    flex-grow: 1;
    min-width: 200px;
}

.search-form-container input[type="text"]::placeholder {
    color: #adb5bd;
}

.search-form-container button {
    flex-shrink: 0;
    padding: 12px 28px;
    height: 44px;
    background: linear-gradient(135deg, #ff7e36 0%, #ff6a1f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(255, 126, 54, 0.3);
    position: relative;
    overflow: hidden;
}

.search-form-container button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-form-container button:hover::before {
    width: 300px;
    height: 300px;
}

.search-form-container button:hover {
    background: linear-gradient(135deg, #e66a26 0%, #e65d15 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 126, 54, 0.4);
}

.search-form-container button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 126, 54, 0.3);
}

/* ===== 페이지네이션 ===== */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination .page-link, .pagination .page-link-side {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #606770;
    background-color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.pagination .page-link {
    min-width: 36px;
}

.pagination .page-link.active {
    background-color: #ff7e36;
    color: white;
    border-color: #ff7e36;
    box-shadow: 0 2px 6px rgba(255, 126, 54, 0.3);
}

.pagination .page-link:hover:not(.active), .pagination .page-link-side:hover {
    border-color: #ff7e36;
    color: #ff7e36;
}

/* ===== 알림 배지 ===== */
.notification-badge {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: bold;
    vertical-align: super;
    margin-left: 4px;
    line-height: 1;
}

/* ===== 작성자 메뉴 드롭다운 ===== */
.author-menu-dropdown {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 100;
    padding: 0;
    min-width: 160px;
    overflow: hidden;
}

.author-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
}

.author-menu-dropdown a:hover {
    background-color: #f5f5f5;
}

.author-link {
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

.author-link:hover {
    text-decoration: underline;
}

/* ===== 모바일 푸터 네비게이션 ===== */
.mobile-footer-nav {
    display: flex;
    width: 100%;
    max-width: 450px;
    margin: 0 auto 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.footer-nav-btn {
    flex: 1;
    position: relative;
    padding: 12px 5px;
    text-align: center;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    font-size: 14px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.footer-nav-btn.main-action {
    background-color: #007bff;
    color: white;
}

.footer-nav-btn .notification-badge {
    vertical-align: super;
    margin-left: 4px;
    border: 1px solid white;
}

/* ===== 메인 소개(인트로) 및 요약 그리드 ===== */

/* 상단 3분할 요약 */
.summary-container { 
    padding-top: 30px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 0px;
}

.summary-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.summary-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #ff7e36;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff7e36;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.summary-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    background: linear-gradient(135deg, #ff7e36 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-header .more-link {
    font-size: 13px;
    color: #868e96;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.summary-header .more-link:hover {
    background-color: #fff3e0;
    color: #ff7e36;
}

.summary-post-list {
    list-style: none;
    padding: 0;
    min-height: 330px;
    margin: 0;
}

.summary-post-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.2s ease;
}

.summary-post-list li:hover {
    background-color: #fffbf7;
    margin: 0 -8px;
    padding: 10px 8px;
    border-radius: 6px;
}

.summary-post-list li:last-child { border-bottom: none; }

.summary-post-list li a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: #495057;
    overflow: hidden;
    font-size: 14px;
}

.summary-post-list li a:hover .summary-title { 
    color: #ff7e36;
    font-weight: 500;
}

.summary-post-list .summary-category {
    color: #868e96;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    background-color: #f1f3f5;
    padding: 2px 8px;
    border-radius: 4px;
}

.summary-post-list .summary-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.summary-post-list .summary-comment-count {
    color: #ff7e36;
    font-weight: 700;
    white-space: nowrap;
    font-size: 13px;
}

.summary-post-list .no-posts {
    color: #adb5bd;
    font-size: 14px;
    text-align: center;
    padding: 60px 0;
    font-style: italic;
}

/* 구분선 */

/* 하단 2분할 인트로 */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.intro-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.intro-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.intro-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff7e36;
}

.carrotpharm-intro h2 {
    background: linear-gradient(135deg, #ff7e36 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-section p {
    line-height: 1.8;
    color: #495057;
    margin: 0;
    font-size: 15px;
}

.features-intro h2 {
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.feature-item {
    margin-bottom: 0;
    padding: 8px 16px;
    background-color: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #4dabf7;
    transition: all 0.2s ease;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item:hover {
    background-color: #f0f9ff;
    border-left-color: #339af0;
    transform: translateX(4px);
}

.feature-item h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.feature-item h3 a {
    color: #339af0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.feature-item h3 a:hover {
    color: #1c7ed6;
    text-decoration: underline;
}

.feature-item p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
}

/* 반응형: 좁은 화면에서 1열로 전환 */
@media (max-width: 767px) {
    .summary-grid { grid-template-columns: 1fr; gap: 16px; }
    .summary-post-list { min-height: 0; }
    .intro-grid { grid-template-columns: 1fr; gap: 16px; }
    .features-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== 반응형: 데스크톱 (768px 이상) ===== */
@media (min-width: 768px) {
    .post-list {
        min-width: 720px;
    }

    .board-nav-container {
        display: flex;
        flex-direction: column;
        width: 180px;
        flex-shrink: 0;
        padding: 0px 0;
        margin-top: 0;
        margin-bottom: 0;
        border: 0px solid #dee2e6;
        border-radius: 0px;
        background-color: #ffffff;
        height: auto;
        position: static;
        overflow-x: visible;
        white-space: normal;
    }

    .board-nav-btn {
        display: block;
        width: auto;
        text-align: left;
        margin: 0 10px 5px;
        padding: 10px 15px;
        border: none;
        border-radius: 6px;
    }

    .board-nav-btn:hover {
        background-color: #fff3e0;
        color: #ff7e36;
    }

    .board-nav-btn.active:hover {
        background-color: rgba(255, 126, 54, 0.1);
        color: #ff7e36;
    }
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #343a40;
    padding-bottom: 8px;
    margin: 0 0 8px 0;
    border-bottom: 2px solid #dee2e6;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 12px 0;
}

/* board-nav-btn 스타일이 이미 있으면 그대로 두고, 없으면 아래 추가 */
.board-nav-btn {
    display: block;
    padding: 10px 14px;
    margin: 4px 0;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
    background-color: transparent;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.board-nav-btn:hover {
    background-color: #f8f9fa;
}

.board-nav-btn.active {
    background-color: rgba(255, 126, 54, 0.1);
    color: #ff7e36;
    font-weight: 700;
}

/* edit-card .form-actions 통합 */
.edit-card .form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

/* ===== 카테고리 통계 영역 ===== */

.category-stats .top-search-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.category-stats .top-search-form input[type="text"] {
    height: 36px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    padding: 0 14px;
    font-size: 14px;
}

.category-stats .top-search-form button[type="submit"] {
    height: 36px;
    border-radius: 10px;
    background: #ff7e36;
    color: white;
    border: none;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== 커스텀 셀렉트 박스 스타일 (카테고리 드롭다운) ===== */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 220px;
    font-family: 'Noto Sans KR', Arial, sans-serif;
}

.custom-select-trigger {
    background: #fff;
    border: 1px solid #e6e9ee;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select-trigger:hover {
    border-color: #ff7e36;
}

.custom-select-trigger::after {
    content: '▼';
    font-size: 10px;
    color: #999;
    margin-left: 8px;
}

.custom-select-options {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    width: 100%;
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(30, 40, 60, 0.06);
    z-index: 40;
    max-height: 260px;
    overflow: auto;
}

.custom-select-options.open {
    display: block;
}

.custom-select-options .option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.15s;
}

.custom-select-options .option:hover {
    background: #fff8f2;
    color: #ff7e36;
}

.custom-select-options .option.selected {
    background: #fff3e0;
    color: #ff7e36;
    font-weight: 600;
}

/* ===== 글쓰기 버튼 스타일 ===== */
.btn-register-item {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ff8a3d, #ff6a00);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255,110,40,0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-register-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,110,40,0.18);
}

.btn-register-item:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(255,110,40,0.12);
}

/* ===== edit_profile 버튼 통일 스타일 ===== */
.btn-flat {
    display: inline-block;
    width: auto; /* 기존 100%에서 auto로 변경 */
    height: 44px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 44px;        /* 링크(a)에도 수직 정렬 맞춤 */
    cursor: pointer;
    box-sizing: border-box;
}

/* 색상 변형 */
.btn-gray {
    background-color: #6c757d;
}
.btn-gray:hover {
    background-color: #5a6268;
}

.btn-orange {
    background-color: #ff7e36;
}
.btn-orange:hover {
    background-color: #e66a26;
}

.btn-dark {
    background-color: #495057;
}
.btn-dark:hover {
    background-color: #3e454b;
}

/* 액션 영역: 정확히 반반 */
.edit-card .form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}



/* ===== sidebar-main-container 내부 스타일 ===== */
.sidebar-group {
    padding: 12px 10px;
    margin-bottom: 8px;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #343a40;
    padding-bottom: 8px;
    margin: 0 0 8px 0;
    border-bottom: 2px solid #dee2e6;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 12px 0;
}

/* board-nav-btn 스타일이 이미 있으면 그대로 두고, 없으면 아래 추가 */
.board-nav-btn {
    display: block;
    padding: 10px 14px;
    margin: 4px 0;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
    background-color: transparent;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.board-nav-btn:hover {
    background-color: #f8f9fa;
}

.board-nav-btn.active {
    background-color: rgba(255, 126, 54, 0.1);
    color: #ff7e36;
    font-weight: 700;
}

/* ===== 작성자 프로필 카드 (main.php 작성자 클릭 시) ===== */
.author-profile-card {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    width: 280px;
    z-index: 1000;
    overflow: hidden;
}

.profile-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #fff9f2 0%, #ffffff 100%);
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    gap: 14px;
    align-items: center;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f3f5;
    border: 2px solid #e6e8eb;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-placeholder::before {
    content: '👤';
    font-size: 32px;
    opacity: 0.5;
}

.avatar-loading {
    font-size: 11px;
    color: #9aa0a6;
    text-align: center;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-nickname {
    font-size: 17px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-level {
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 2px;
}

.profile-points {
    font-size: 13px;
    color: #ff7e36;
    font-weight: 600;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 8px;
}

.profile-action-btn {
    display: block;
    padding: 10px 14px;
    background: #f8f9fa;
    color: #3c4043;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.profile-action-btn:hover {
    background: #e9ecef;
}

.profile-action-btn:first-child {
    background: #ff7e36;
    color: #fff;
}

.profile-action-btn:first-child:hover {
    background: #e66a26;
}

/* 작성자 링크 스타일 정리 (아이콘 제거) */
.author-link {
    color: #202124;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.author-link:hover {
    color: #ff7e36;
    text-decoration: underline;
}

.pharmacist-icon {
    display: none; /* 💊 아이콘 숨김 */
}

/* ===== 출석체크 페이지 스타일 ===== */
.attendance-container {
    /* main-container와 스타일이 겹치므로, 고유 스타일만 남김 */
    text-align: center;
}

.attendance-container h1 {
    color: #ff7e36;
    margin-bottom: 10px;
}

.attendance-container p {
    color: #606770;
    margin-bottom: 30px;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* 테이블 레이아웃을 고정하여 너비가 일정하게 유지되도록 함 */
}

.calendar th, .calendar td {
    width: 14.28%;
    padding: 15px 0;
    border: 1px solid #f0f2f5;
}

.calendar th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.calendar td {
    height: 0; /* 높이를 0으로 설정 */
    padding: 0; /* 패딩 초기화 */
    padding-bottom: 14.28%; /* 너비의 1/7 만큼의 높이를 확보하여 정사각형으로 만듦 */
    font-weight: 500;
    position: relative;
    vertical-align: middle; /* 내부 요소 수직 정렬을 위해 추가 */
}

.calendar .day-number {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 14px;
}

.calendar .today {
    background-color: #fffbe6;
}

.calendar .today .day-number {
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar .today .day-number:hover {
    background-color: rgba(255, 126, 54, 0.1);
    border-radius: 4px;
}

.calendar .checked-in .day-number {
    color: #28a745;
    font-weight: bold;
}

.calendar .checked-in::after {
    content: '✔️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0.8;
}

.btn-check-in {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    background-color: #28a745;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.2s;
}

.btn-check-in:hover {
    background-color: #218838;
}

.btn-check-in:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 출석체크 팝업 스타일 */
.attendance-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none; /* 기본적으로 숨김 */
    justify-content: center;
    align-items: center;
    z-index: 1001;
    padding: 15px;
    box-sizing: border-box;
}

.attendance-popup {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    text-align: center;
    width: 100%;
    max-width: 320px;
    cursor: pointer;
    box-sizing: border-box;
}

.attendance-popup .popup-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.attendance-popup .popup-message {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 검색창 form 마진 제거 및 정렬 */
.top-search-form {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== 카테고리 통계 영역 ===== */
.category-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    align-items: center;
}

.category-stats .top-search-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.category-stats .top-search-form input[type="text"] {
    height: 36px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    padding: 0 14px;
    font-size: 14px;
}

.category-stats .top-search-form button[type="submit"] {
    height: 36px;
    border-radius: 20px;
    background: #ff7e36;
    color: white;
    border: none;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* --- 로그인/회원 관련 누락된 보조 스타일 복구 --- */
.login-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.remember-me {
    margin-top: 15px;
    text-align: left;
    font-size: 14px;
    color: #606770;
}
.remember-me input {
    margin-right: 5px;
    vertical-align: middle;
}

/* 목록 하단 액션 영역 (페이지네이션 + 글쓰기) */
.list-footer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.pagination {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.write-button-container {
    order: 2;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: right;
}

/* input-group 통합 */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    text-align: left;
}
.input-group label {
    font-size: 13px;
    color: #555;
    font-weight: 600;
}
.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 500;
    color: #1c1e21;
    transition: border-color 0.2s ease-in-out;
}
.input-group input:focus {
    outline: none;
    border-color: #ff7e36;
}
.input-group input[readonly],
.input-group input[disabled] {
    background-color: #f7f8fa;
    color: #8a8f98;
}

/* form-actions 통합 */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.form-actions .btn-login,
.form-actions .btn-register {
    flex: 1;
}

/* edit-card .form-actions 통합 */
.edit-card .form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

/* 기타 중복되는 스타일은 한 번만 선언 */

/* ===== 포인트 내역 모달 ===== */
.point-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.point-modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.point-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e6e8eb;
}

.point-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #202124;
}

.point-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9aa0a6;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.point-modal-close:hover {
    color: #202124;
}

.point-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.current-points {
    font-size: 16px;
    color: #5f6368;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.current-points strong {
    color: #1a73e8;
    font-size: 20px;
    margin-left: 8px;
}

.point-history-list {
    min-height: 200px;
}

.point-history-table {
    width: 100%;
    border-collapse: collapse;
}

.point-history-table thead th {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #5f6368;
    border-bottom: 2px solid #e6e8eb;
}

.point-history-table tbody td {
    padding: 12px 8px;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f5;
}

.point-history-table tbody tr:last-child td {
    border-bottom: none;
}

.point-plus {
    color: #34a853;
    font-weight: 600;
}

.point-minus {
    color: #ea4335;
    font-weight: 600;
}

.loading,
.error,
.no-history {
    text-align: center;
    padding: 40px 20px;
    color: #9aa0a6;
    font-size: 14px;
}

.error {
    color: #ea4335;
}

/* 포인트 영역 호버 효과 */
.spc-points:hover {
    background: #f6f8fa;
    border-radius: 4px;
    padding: 4px 6px;
    margin: -4px -6px;
}



/* 사이드바 요약 카드 재사용 (mypage_info.php 호환) */
.summary-card {
    background-color: #fff9f2;
    border: 1px solid #ffe8d6;
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
    box-sizing: border-box;
}
.summary-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
    color: #d96824;
    font-weight: 600;
}
.summary-card p {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ff7e36;
}
.summary-card p.small-text {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

/* 사이드바용 크기 조정 */
.sidebar-carrot-card,
.sidebar-level-card {
    margin-top: 6px;
}
.sidebar-carrot-card p { font-size: 16px; }
.sidebar-level-card p.small-text { font-size: 13px; }

/* ===== 캐롯포인트 변동내역 오버레이 (사이드바에서 클릭 시 표시) ===== */
.rating-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none; /* 초기 숨김 */
    justify-content: center;
    align-items: center;
    z-index: 1001;
}
.rating-popup {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.rating-popup h2 {
    margin-top: 0;
    text-align: center;
    color: #ff7e36;
    font-size: 20px;
}
.point-history-list {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
}
.point-history-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}
.point-history-list li:last-child { border-bottom: none; }
.history-points.gain { font-weight: 700; color: #28a745; flex-basis: 80px; }
.history-points.loss { font-weight: 700; color: #dc3545; flex-basis: 80px; }
.history-reason { flex-grow: 1; color: #333; text-align: left; padding: 0 10px; }
.history-date { font-size: 13px; color: #606770; flex-basis: 90px; text-align: right; }
.popup-buttons {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.btn-close-gift-popup {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    border: none;
    background: #6c757d;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.btn-close-gift-popup:hover { background: #5a6268; }

/* ===== edit_profile (내 정보 수정) ===== */
.edit-profile-container {
    max-width: 720px;
    margin: 24px auto;
    padding: 0 16px;
    background: transparent;      /* main-container 배경 제거 대체 */
    box-shadow: none;              /* 기본 컨테이너 그림자 제거 */
    border-radius: 0;              /* 둥근 모서리 제거 (카드에만 적용) */
    min-height: auto;              /* main-container 상속 방지 */
}
.edit-card {
    background: #fff;
    border: 1px solid #eaecef;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    overflow: hidden;
}

.edit-card-header {
    padding: 20px 20px 12px;
    border-bottom: 1px solid #f0f2f5;
}

.edit-card-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #ff7e36;
    text-align: center;
    margin: 0;
}

.edit-card-body {
    padding: 20px;
}

/* ========== PC 마이페이지 탭 네비게이션 ========== */
.mypage-tab-nav {
    display: flex;
    justify-content: center;
    background: #fff;
    gap: 2px;
}
.mypage-tab-link {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 0 8px 0;
    font-size: 16px;
    color: #888;
    background: #fff;
    border: none;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s, border 0.18s, background 0.18s;
    position: relative;
}
.mypage-tab-link .tab-icon {
    font-size: 19px;
    margin-right: 4px;
    display: inline-block;
}
.mypage-tab-link.active {
    color: #ff7e36;
    border-radius: 8px;
    background: #fff7f0;
    font-weight: 700;
}
.mypage-tab-link:active {
    background: #ffe0c2;
}
.mypage-tab-link .tab-label {
    font-size: 15px;
    display: inline-block;
}
