@font-face {
	font-family: 'Pretendard Variable';
	font-weight: 45 920;
	font-style: normal;
	font-display: swap;
	src: url('/fonts/woff2/PretendardVariable.woff2') format('woff2-variations');
}

* { box-sizing: border-box; }
body { font-family: 'Pretendard Variable','Apple SD Gothic Neo', sans-serif; margin: 0; padding: 0; 
       background: #f8f8f8; font-weight: 400; height: 100%; font-size:1rem;}
a { text-decoration: none; color: inherit; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

header { background: #ff7b54; color: white; padding: 1rem; text-align: center; font-size: 1.5rem; position: relative; z-index: 1001; }
.nav { display: flex; justify-content: center; gap: 2rem; background: #ff7b54; padding-bottom: 0.5rem; color: white; }
.nav a {
  position: relative;
  display: inline-block;
  padding: 0 16px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0px; /* 텍스트와 간격 조절 */
  width: 0;
  height: 2px;
  background-color: #ddd; /* 하단 줄 색 (white) */
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}


.hamburger { display: none; position: absolute; left: 1rem; top: 1.2rem; cursor: pointer; z-index: 1002; }
.hamburger div { width: 25px; height: 3px; background-color: white; margin: 5px 0; }

.mobile-menu { position: fixed; top: 0; left: -250px; width: 200px; height: 100%; background: #ff7b54; padding: 1rem; padding-top: 60px; box-shadow: 2px 0 5px rgba(0,0,0,0.2); transition: left 0.3s ease; z-index: 1000; }
.mobile-menu a { display: block; margin: 1rem 0; color: white; font-weight: bold; }
.mobile-menu.show { left: 0; }


.mobile-menu {
    transition: left 0.3s ease;
}

.container { max-width: 800px; margin: auto; padding: 1rem; 
			min-height: calc(100vh - 268px); /* 대략적인 footer 높이 고려 */
}
.post { background: white; border-radius: 10px; font-size: 0.9rem; line-height: 180%; 
		padding: 1.2rem 1.2rem; margin: 0.5rem 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.post-title { font-weight: bold; font-size: 1.1rem; margin-bottom: 0.5rem; }
.post-meta { font-size: 0.8rem; color: #999; margin-bottom: 0.5rem; }

.post-bottom { margin-bottom: 1.5rem; }

.write-btn-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

/* PC 화면에서는 컨테이너 기준 정렬 */
@media screen and (min-width: 800px) {
  .write-btn-wrapper {
    right: calc(50% - 470px + 20px); /* 800px 기준 우측 여백 */
	bottom: 300px;
  }
}

/* 원형 버튼 */
.write-btn {
  background: #ff7b54;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.3s;
}

.write-btn::before {
  content: none;
  font-size: 2rem;
  transition: transform 0.3s ease, content 0.3s ease;
}

.write-btn:hover {
  background: #fd6235;
}


/* 말풍선 툴팁 */
.tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #444;
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 삼각형 꼬리 */
.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 10px;
  border-width: 6px;
  border-style: solid;
  border-color: #444 transparent transparent transparent;
}

/* hover 시 툴팁 표시 */
.write-btn-wrapper:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

textarea { font-family: 'Pretendard Variable'; width: 100%; line-height: 180%; padding: 0.8rem; margin-top: 0.3rem; margin-bottom: 0.3rem; border: 1px solid #ccc; border-radius: 5px; }

form textarea { font-family: 'Pretendard Variable'; width: 100%; line-height: 180%; padding: 0.8rem; margin-top: 0.3rem; margin-bottom: 0.3rem; border: 1px solid #ccc; border-radius: 5px; }
form select, input[type='text'] { font-family: 'Pretendard Variable'; width: 100%; padding: 0.4rem 0.8rem; margin-top: 0.3rem; margin-bottom: 0.3rem; border: 1px solid #ccc; border-radius: 5px; }
input[type='date'] { font-family: 'Pretendard Variable'; width: 200px; padding: 0.4rem 0.8rem; margin-top: 0.3rem; margin-bottom: 0.3rem; border: 1px solid #ccc; border-radius: 5px; }

.submit-btn {     
	padding: 0.5rem 1.5rem;
    background: #ff7b54;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer; 
}
.submit-btn:hover { background: #e85a5a; }

/*.login-btn {position:absolute; right:1rem; top:1.2rem; background:#fff; color:#ff7b54; padding:4px 10px; border-radius:5px; font-size:12px; font-weight:bold; text-decoration:none; }

.login-btn {background:#fff; color:#ff7b54; padding:4px 10px; border-radius:5px; font-size:12px; font-weight:bold; text-decoration:none; }
.login-btn a {color:#ff7b54;}
*/

.logo-link {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  margin-left: 1rem;
}

.btn-common {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin-top: 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
	cursor:pointer;
}

.emotion-btn {
    border: 2px solid #333;
    background: #fff;
    color: #333;
}
.emotion-btn:hover {
    background: #ffe0d2;
    color: #111;
}

.stop-btn {
    border: 2px solid #aaa;
    background: #f9f9f9;
    color: #666;
	margin-right:10px;
}
.stop-btn:hover {
    background: #ddd;
    color: #333;
    border-color: #888;
}

/* 작은 버튼용 */
.small {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
}

/* 오른쪽 끝 정렬 버튼 */
.right {
    display: block;        /* 오른쪽 정렬을 위해 block */
    margin-top: 0.1rem;
    margin-left: auto;     /* 오른쪽 정렬 */
}

.back-arrow {
	font-size : 1.5rem;
	color : #666;
	font-weight : 300;
	margin : 10px;
}

.hello-btn {
	border: 1px solid #eee; 
	background-color: #eee;
	color: #000; 
	cursor:pointer;
	padding: 4px 14px;  
	border-radius: 10px; 
	margin: 2px;
}
.hello-btn:hover {
	border: 1px solid #ccc; 
	background-color: #ccc;
}

.hello-m-btn {
	border: none; 
    background-color: #ff7b54;
	color: #fff; 
	cursor:pointer;
	font-size: 0.8em;
	padding: 2px 5px; 
	border-radius: 5px; 
}
.hello-m-btn:hover {
	background-color: #ccc; 
}

/* 마음톡톡 인트로 begin */

.intro-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #fff8f2, #ebf8ff);
  padding: 2rem;
  border-radius: 16px;
  margin: 1rem 0 2rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.intro-text {
  flex: 1;
  padding-right: 2rem;
}

.intro-text h2 {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 700;
}

.intro-text p {
  font-size: 1rem;
  color: #666;
  line-height: 0.7;
  white-space: pre-line;
}

.intro-illustration img {
  max-width: 220px;
  height: auto;
}

/* 마음톡톡 인트로 end */

.post-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.3rem;
    justify-content: flex-start;
}

.post-card {
    width: calc(33.333% - 0.9rem); /* 3개 맞춰 떨어지게 */
    background: #fefcee;
    border: 1px solid #dad5a9;
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s ease;
}

.post-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.post-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.post-meta-row {
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #999;
}

.post-category {
    background: #ffb74d;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: white;
    font-weight: bold;
}

.post-content {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0.7rem;
    word-break: break-word;
	line-height: 160%;
}

.post-content2 {
    font-size: 0.9rem;
    color: #222;
    margin-bottom: 0.7rem;
    word-break: break-word;
	line-height: 180%;
}

.post-stats {
    font-size: 0.8rem;
    color: #777;
    text-align: right;
    margin-top: auto;
}

.counsel-preview-box {
    margin-top: 8px;
    padding: 10px;
	border-radius: 10px;
    background: #f0f8ff;
    border-left: 1px solid #2980b9;
    font-size: 0.8rem;
    color: #2c3e50;
}

.gpt-comment {
	margin-bottom: 0px;
    background-color: #f3f9ff !important;
    border-left: 2px solid #0077cc;
    border-radius: 10px;
    font-size: 0.9rem;
}

.category-filter {
    text-align: center;
    margin-bottom: 1.0rem;
}

.category-btn {
    display: inline-block;
    margin: 3px 3px;
    padding: 8px 12px;
    background: #ddd;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s, color 0.2s;
}

.category-btn:hover {
    background: #ccc;
}

.category-btn.active {
    background: #ff7b54;
    color: white;
    font-weight: bold;
}

.category-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.0rem;
	margin-top: 1.5rem;
}
.category-radio {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 6px 6px;
	margin: 0px 2px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}
.category-radio:checked {
    background-color: #ff7b54;
    color: white;
    border-color: #ff7b54;
    font-weight: bold;
}
.category-radio-label {
    display: inline-block;
    cursor: pointer;
}

.check-msg {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #888;
}


.pagination {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.page-btn {
    display: inline-block;
    min-width: 24px;
    padding: 4px 7px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #555;
    font-size: 0.8rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.page-btn:hover {
    background: #ffebee;
    color: #d84315;
    border-color: #ffccbc;
}

.page-btn.active {
    background: #ff7b54;
    color: white;
    border-color: #ff7b54;
    font-weight: bold;
}


.comment-submit-btn {
    display: block;
    margin-top: 0.1rem;
    margin-left: auto;           /* 오른쪽 정렬 */
    background: #ff7b54;
    color: white;
    border: none;
    padding: 6px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
}
.comment-submit-btn:hover {
    background: #e85a5a;
}

.comment-bottom-row {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
}

.comment-meta { font-size: 0.8rem; color: #999; }


.heart-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    padding: 0;
    color: #999;
}

.heart-btn.liked {
    color: #ff7b54;
    cursor: default;
}

.heart-icon {
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.heart-count {
    font-size: 0.8rem;
    color: #999;
}

.post-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #666;
    flex-wrap: wrap;
}

.info-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.info-link {
    color: #666;
    text-decoration: none;
}
.info-link:hover {
    color: #ff7b54;
}

.info-hit {
    font-size: 0.8rem;
}

.info-right {
    text-align: right;
}
.action-link {
    color: #ff7b54;
    text-decoration: none;
    margin-left: 5px;
    font-weight: bold;
}
.action-link:hover {
    text-decoration: underline;
    color: #e85a5a;
}

.logout-btn {
    background: #eee;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #000;
    font-weight: normal;
	margin-left:10px;
}
.logout-btn:hover {
    background: #ccc;
}

/* 컬럼 begin */

.column-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.column-card {
    width: 48%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.column-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.column-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.column-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.column-title {
    font-size: 1.4rem;
    font-weight: bold;
	line-height: 1.4;
    margin: 2rem 1rem 0.5rem;
}

.column-excerpt {
    font-size: 1rem;
    color: #555;
    margin: 1rem 1rem 1rem;
    line-height: 1.4;
}

.column-writer {
    font-size: 0.9rem;
    color: #555;
    margin: 0.5rem 1rem 2rem;
    line-height: 1.4;
}

.column-hit {
    font-size: 0.8rem;
    color: #999;
    margin: 0 1rem 1rem;
    line-height: 1.4;
}

.column-content img {
    max-width: 100%;
    height: auto;
}

.column-content {
    font-family: 'Pretendard Variable', sans-serif !important;
	color : #333; !important;
    line-height: 1.5; /* 150% */
	margin-bottom:30px;
}
.column-content * {
    font-family: 'Pretendard Variable', sans-serif !important;
	color : #333; !important;
    line-height: 1.5 !important;
}


.column-content h1, .column-content h2, .column-content h3 {
    margin-top: 1.5rem;
    color: #444;
}

.column-content p {
    line-height: 1.8;
    margin: 1rem 0;
    color: #333;
}

.column-action-area {
    text-align: center;
}

.column-action-area .like-btn {
    background: #ff7b54;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.column-action-area .like-btn:disabled {
    background: #ccc;
    cursor: default;
}

.back-wrap {
    margin-top: 3rem;
    text-align: left;
}

.like-btn {
    background: #feecec;
    color: #333;
    border: none;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 10px;
}
.like-btn:disabled {
    background: #ccc;
    cursor: default;
}

.column-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-left,
.meta-right {
    line-height: 1.4;
}

.share-link {
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 컬럼 end */


/* 달력 begin  */
.calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* ✅ 각 열 너비 고정 */
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ✅ 요일 셀: 테두리는 없지만 넓이는 td와 동일하게 유지 */
.calendar thead th {
    width: 14.28%;
    padding: 10px 0;
    font-weight: bold;

    border: none; /* 테두리 없음 */
}

/* 날짜 셀 */
.calendar td {
    width: 14.28%;
    height: 100px;
    border: 1px solid #ddd;
    vertical-align: top;
    padding: 4px;
    position: relative;
    box-sizing: border-box;
}


/* 날짜 숫자 (칸 상단 좌측) */
.day-number {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 0.75rem;
    color: #666;
}

.day-number.sunday {
    color: red;
}

.day-number.saturday {
    color: blue;
}

.future-day {
	background-color: #f9f9f9;
	opacity: 0.4;
	pointer-events: none;
}
.day-number.disabled {
	color: #999;
}

/* 오늘 강조 */
.calendar-cell.today {
    border: 2px solid #ff7b54;
    background-color: #fff9f9;
}

/* 이모지 + 요약 */
.emoji {
    font-size: 1.4rem;
    margin-top: 1.2rem;
}
.summary {
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.calendar td a:hover .emoji,
.calendar td a:hover .summary {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.calendar-note {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 1rem;
    font-style: italic;
}

/* 기본적으로 숨김 */
.add-btn {
    display: none;
    font-size: 1.8rem;
    color: #ccc;
    text-decoration: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* 클릭은 td 전체에서만 감지 */
}

/* td에 마우스 오버 시 + 보이기 */
.calendar td:hover .add-btn {
    display: block;
    pointer-events: auto; /* 마우스 클릭 허용 */
}

.month-nav {
    margin: 0 1rem;
    text-decoration: none;
    font-size: 1.2rem;
    color: #555;
}
.month-nav:hover {
    color: #ff7b54;
}

.month-stats {
    text-align: center;
    background: #fafafa;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.emotion-bar {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.emotion-item {
    text-align: center;
    font-size: 1.2rem;
    min-width: 20px;
}
.emotion-item .emoji {
    font-size: 1.4rem;
}
.emotion-item .count {
    font-size: 0.9rem;
    color: #666;
}

#moodDonut {
  width: 200px !important;
  height: 200px !important;
}
/* 달력 end */

/* 일기장 begin  */

.diary-intro-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffaf7;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

.diary-intro-illust img {
  width: 120px;
  margin-right: 2rem;
}

.diary-intro-text h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  color: #333;
  margin-bottom: 1rem;
}

.diary-highlight {
  color: #ff7159;
  font-weight: bold;
}

.diary-intro-text p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}


/* 감정일기장 소개 페이지 begin */
.diary-intro-section {
  background: #fffaf7;
  padding: 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  text-align: center;
  margin-top: 1rem;
}

.diary-intro-section h2 {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 1rem;
}

.diary-intro-section img {
	width: 200px;
}

.diary-intro-section p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.diary-steps-gallery,
.diary-summary-gallery {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.step-box,
.summary-box {
  max-width: 200px;
  flex: 1 1 200px;
}

.step-box img,
.summary-box img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.step-box p,
.summary-box p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #444;
}

/* CTA 버튼 영역 */
.diary-intro-cta {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* 모바일 전용 줄바꿈 */
.mobile-only {
  display: none;
}
/* 감정일기장 소개 페이지 end */

.diary-card-wrapper {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    font-family: 'Pretendard', sans-serif;
}

.diary-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.diary-card-label {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.card-textarea {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #ccc;
    font-size: 1rem;
    resize: vertical;
}

.diary-card-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.step-progress {
    margin-bottom: 20px;
}
.step-label {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
}
.step-bar {
    display: flex;
    gap: 4px;
    justify-content: space-between;
    height: 10px;
}
.step-segment {
    flex: 1;
    background: #e0e0e0;
    border-radius: 4px;
    transition: background 0.3s;
}
.step-segment.filled {
    background: #4a90e2;
}


.mood-select, .energy-select, .diary-text {
    margin: 2.0rem 0;
}

.mood-card-group {
    margin-top: 1rem;
	margin-bottom: 1rem;
}
.mood-category-label {
    margin: 0.5rem 0 0.5rem;
    font-weight: bold;
    font-size: 1rem;
    color: #444;
}
.mood-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mood-card {
    width: 40px;
    height: 50px;
    border-radius: 8px;
    text-align: center;
    padding: 0.5rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.mood-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.mood-card.selected {
    border-color: red;
	background-color: #eee;
}

.mood-icon {
    font-size: 1rem;
    display: block;
    margin-bottom: 0rem;
}
.mood-name {
    font-size: 0.7rem;
    font-weight: 300;
}
.energy-bar {
    display: flex;
    gap: 2px;
    margin-top: 10px;
}

.energy-block {
    position: relative;
    width: 24px;
    height: 24px;
    background-color: #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.energy-block.active {
    background-color: #ff7b54;
}

.energy-block::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-20%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.75rem;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    display: none;
    z-index: 10;
}

.energy-block:hover::after {
    display: block;
}

.saytome-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.saytome-option {
    padding: 6px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    background: #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
	font-size: 0.9rem;
}
.saytome-option:hover {
    background: #ffebee;
}

.cancel-btn, .next-btn, .start-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.cancel-btn {
    background-color: #ddd;
    color: #666;
}
.cancel-btn:hover {
    background-color: #ccc;
}
.next-btn {
    background-color: #0984e3;
    color: white;
}
.next-btn:hover {
    background-color: #0673c2;
}
.start-btn {
    background-color: #ff7b54;
    color: #fff;
}
.start-btn:hover {
    background-color: #ee6a43;
}

.chart-desc {
  font-size: 0.9rem;
  color: #555;
  margin: 8px 0 24px;
  text-align: center;
  line-height: 1.6;
}
/* 일기장 end  */

/* 마이페이지 begin  */
.tabs {
    margin-bottom: 0;
}
.tab-btn {
    padding: 0.5rem 0.5rem;
    border: 1px solid #ccc;
    background: #f1f1f1;
    cursor: pointer;
    margin-right: 0px;
    border-radius: 5px 5px 0 0;
}
.tab-btn.active {
    background: #fff;
    border-bottom: 1px solid #fff;
}
.tab-content {
    border: 1px solid #ccc;
    border-radius: 0 10px 10px 10px;
    background: #fff;
}

/* 마이페이지 end */


/* 마음점검 test begin */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.test-card {
    height: 520px;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    box-sizing: border-box;
}

.card-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.card-overlay p {
    font-size: 0.9rem;
    margin: 0.5rem 0 1.2rem;
}

.start-test-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: #ff7b54;
    color: white;
    padding: 8px 14px;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease-in-out;
}

.start-test-btn:hover {
    background: #e65b45;
}
.test-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
	color: #333;
}
.test-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.test-card p {
    font-size: 0.95rem;
    color: #555;
}

.test-guide {
    margin-top: 3rem;
    padding: 4px 12px;
    background-color: #f9f9f9;
    border-left: 4px solid #ff7b54;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.test-guide .guide-label {
    font-weight: bold;
    color: #ff7b54;
    margin: 0;
    padding-bottom: 0.4rem;
}

.test-guide .guide-text {
    margin: 0;
}
/* 마음점검 test end   */

.site-footer {
    background-color: #bbb;
    color: #fff;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    width: 100%;
	margin-top: 30px;
}

.footer-info {
    max-width: 768px; margin: auto; 
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem 1rem;
    text-align: left;
    margin-bottom: 2rem;
}

.footer-info span {
    white-space: nowrap;
}

.footer-copy {
    max-width: 768px; margin: auto; 
    font-size: 0.8rem;
    color: #fff;
    text-align: left;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 이전, 이후 버튼 begin */
	.nav-btn {
		width: 20px;
		height: 20px;
		border-radius: 50%;
		background-color: #ff7b54;  
		color: #fff;
		border: none;
		font-size: 1rem;
		cursor: pointer;
	}
	.nav-btn:hover {
		background-color: #fb6439;
	}

/* 이전, 이후 버튼 end */


/* index.php 의 해더 영역 begin */
.hero-banner {
    background: #ffe0d2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 2rem 3rem;
	margin-bottom: 1.5rem;
}

.hero-text {
    flex: 1;
    min-width: 360px;
    line-height: 1.6;
}

.hero-text h2 {
    font-size: 1.4rem;
    color: #ff7b54;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-text p {
    font-size: 1rem;
    color: #444;
}

.hero-image {
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.hero-image img {
    width: 250px;
    max-width: 100%;
    transition: width 0.3s ease;
}


/* index.php의 헤더 영역 end*/

	/******* 스크롤바 커스터마이징 begin ****/
	/* 전체 스크롤바 너비 */
	::-webkit-scrollbar {
	  width: 6px;
	  height: 7px;
	}

	/* 스크롤바 트랙 (배경) */
	::-webkit-scrollbar-track {
	  background: #000;
	  border-radius: 10px;
	}

	/* 스크롤바 썸 (실제 드래그하는 부분) */
	::-webkit-scrollbar-thumb {
	  background: #a8a8a8;
	  border-radius: 10px;
	}

	/* 스크롤바 썸에 마우스 오버 시 */
	::-webkit-scrollbar-thumb:hover {
	  background: #a8a8a8;
	}
	/******* 스크롤바 커스터마이징 end ****/




@media (max-width: 768px) {
    .nav { display: none; }
    .hamburger { display: block; }

	.hero-banner {
		padding: 1.5rem;
	}
	.hero-text {
		line-height: 1.4;
	}

	.hero-text h2 {
		font-size: 1.2rem;
	}

	.hero-image img {
        width: 50% !important;
    }

	.post-card { width: 100%;  }
	    
	/* index.php 마음톡톡 begin */
	.post-slider-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
		scrollbar-width: none; /* Firefox */
    }

    .post-slider-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .post-slider {
        flex-wrap: nowrap;
        gap: 1rem;
        padding-bottom: 10px;
    }

    .post-slider .post-card {
        flex: 0 0 70%;
        width: 70%;
        min-width: 250px;
        max-width: 80%;
    }
	/* 마음톡톡 end */

	.intro-box {
		flex-direction: column;
		text-align: center;
		padding: 1rem 1rem;
	}

	.intro-text {
		padding-right: 0;

	}

	.intro-illustration {
		margin-top: 1rem;
	}
	.intro-illustration img {
	  max-width: 130px;
	  height: auto;
	}

	/* 마음톡톡 end */
	.site-footer { padding: 2rem 1.5rem; }
    .footer-info { flex-direction: column;  }
    .footer-info span {  white-space: normal; }
    .footer-copy { text-align: left;   }


	.column-card { width: 100%;  }

	/* index.php 컬럼 begin */

    .column-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none; /* Firefox */
    }

    .column-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .column-card {
        flex: 0 0 70%;
        min-width: 250px;
        max-width: 80%;
    }

	.column-title {
		font-size: 1.1rem;
	}

	.column-excerpt {
		font-size: 0.9rem;
	}
	.column-writer {
		font-size: 0.8rem;
	}
	/* index.php 컬럼 end */

	/* 감정일기장 intro  begin*/
	  .diary-intro-wrap {
		flex-direction: column;
		text-align: center;
	  }
	  .diary-intro-illust img {
		margin: 0 0 1rem 0;
	  }
	/* 감정일기장 intro end */

	/* 감정일기장 소개 begin */
	  .diary-intro-section {
		padding: 2rem 1rem;
	  }

	  .diary-steps-gallery,
	  .diary-summary-gallery {
		flex-direction: column;
		align-items: center;
	  }

	  .step-box,
	  .summary-box {
		max-width: 90%;
	  }

	  .diary-intro-section h2 {
		font-size: 1.3rem;
	  }

	  .diary-intro-section p {
		font-size: 0.95rem;
	  }

	.diary-intro-section img {
		width: 140px;
	}

	  .mobile-only {
		display: inline;
	  }
	/* 감정일기장 소개 end */

    .calendar td {
        height: 70px; /* 날짜 셀 높이 감소 */
        font-size: 0.8rem;
        padding: 3px;
    }

    .emoji { font-size: 1rem; /* 이모지 크기 축소 */   }

    .summary { font-size: 0.9rem;  margin-top: 2px;  }


	.day-number { font-size: 0.65rem; top: 3px; left: 4px;    }

    .add-btn { font-size: 1.4rem; }

    .calendar-note { font-size: 0.8rem; }
	.modal-content { padding: 1.5rem;	}

	.mood-card {
		width: 40px;
		height: 40px;
	}
	.mood-card .icon { font-size: 1.2rem; }
	.mood-card .name { font-size: 0.8rem; }
}

@media (min-width: 769px) {
  .mobile-menu {
    left: -250px !important; /* 화면 커지면 강제 숨김 */
  }
}

@media (max-width: 600px) {
    .mood-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .mood-option {
        margin-bottom: 10px;
    }
}