/*@charset "utf-8";*/
/* board_basic/view.css */

h2 { 
	font-size: 1.2rem; 
	margin-top: 2rem; 
}
.title { 
	font-size: 1.3rem; 
	font-weight: bold; 
	margin-bottom: 0.5rem; 
	margin-top:0;
}
.info { 
	font-size: 0.85rem; 
	color: #666; 
	margin-bottom: 1rem; 
}
.post-img { 
	width: 100%; 
	height: auto; 
	margin-bottom: 1rem; 
	border-radius: 5px; 
	max-width: 100%;  /* 이미지 반응형 안정성 강화 */
}
.content { 
	white-space: pre-wrap; 
	margin-bottom: 1rem; 
	line-height: 1.6; /* 가독성 향상 */
}
.attachments ul { 
	list-style: none;
	padding: 0; 
	margin: 0 0 1rem 0; 
}
.attachments li { margin-bottom: 0.3rem; }
.attachments a { color: #007bff; text-decoration: none; }
.attachments a:hover { text-decoration: underline; }

/* 게시판에서는 네비게이션을 container 밖으로 옮기면 가리게되어ㅓ 컨테이너에 상단마진을 주어야한다.  */
.container {  
  margin: 60px auto 0;
  padding: 10px;
  background: #f2f2f2;
}

/* post-info-top 전체를 본문 크기로 */
.post-info-top {
  display: flex;
  align-items: center;
  gap: 1rem;       /* 요소 간 간격 */
  font-size: 1rem;   /* 본문과 동일한 크기 */
  color: #555;       /* 원하시는 색상으로 조절 */  
  font-weight: bold;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* 내부 타입·카테고리도 같은 크기 */
.post-info-top .board-type,
.post-info-top .board-category {
  font-size: inherit;
}
/* post-info-top 전체를 본문 크기로 */


/* 파일첨부로 업로드한 이미지 크기조절 */
.post-img { 
  max-width: 100%; 
  width: auto;
  max-height: 600px;
  height: auto; 
  cursor: pointer;
  display: block;
  margin: 0 auto 1rem;
}

textarea { margin-bottom: 1rem; } 

.pagination { 
	text-align: center; 
	margin: 1.5rem 0; 
}
.pagination a, .pagination span { 
	display: inline-block; 
	padding: 0.4rem 0.8rem; 
	margin: 0 0.2rem; 
	text-decoration: none; 
	border: 1px solid #ccc; 
	border-radius: 3px; 
	font-size: 0.9rem; 
	color: #333; 
}
.pagination .active { 
	background: #007bff; 
	color: white; 
	border-color: #007bff; 
}
.vote-btn { 
	padding: 0.2rem 0.5rem; 
	margin-right: 0.5rem; 
	background: #eee; 
	border: none; 
	border-radius: 4px; 
	font-size: 0.85rem; 
	cursor: pointer; 
}
.vote-btn:hover { background: #ddd; }
.likes { 
	margin: 1rem 0; 
	text-align: center; 
}


/* 좋아요 + 공유 영역 시작 */
.post-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 1.5rem 0;
  position: relative;
}

.post-actions .likes {
  margin: 0;
}

/* 공유 토글 버튼 */
.share-toggle {
  background: #6c757d;
}

.share-toggle:hover {
  background: #5a6268;
}
/* 좋아요 + 공유 영역 끝 */

/* ========================================
   공유 팝업 시작
   ======================================== */
.share-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.share-popup.active {
  display: flex;
}

.share-popup-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 320px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: popupSlide 0.2s ease;
}

@keyframes popupSlide {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.share-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  font-weight: bold;
  font-size: 1.1rem;
}

.share-popup-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #999;
  padding: 0;
  line-height: 1;
}

.share-popup-close:hover {
  color: #333;
}

.share-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.share-list li {
  border-bottom: 1px solid #f0f0f0;
}

.share-list li:last-child {
  border-bottom: none;
}

.share-list button {
  width: 100%;
  padding: 15px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.share-list button:hover {
  background: #f8f9fa;
}
/* ========================================
   공유 팝업 끝
   ======================================== */


/* ========================================
   미디어 파일 렌더링 (오디오/비디오/유튜브) 2025.12.04 추가
   ======================================== */

/* 오디오 플레이어 */
.audio-wrapper {
  margin: 20px 0;
  text-align: center;
}

.audio-wrapper audio {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 비디오 플레이어 */
.video-wrapper {
  margin: 20px 0;
  text-align: center;
}

.video-wrapper video {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 유튜브 iframe (본문 붙여넣기용 - 실제로는 사용 안 됨 (임시 코드가 인라인 스타일 사용)) */
.youtube-wrapper-inline {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 비율 */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.youtube-wrapper-inline iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* 유튜브 iframe (전용 필드용) */
.youtube-wrapper {
  margin: 20px 0;
  text-align: center;
}

.youtube-wrapper iframe {
  width: 100%;
  max-width: 800px;
  height: 480px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .audio-wrapper audio {
    max-width: 100%;
  }
  
  .video-wrapper video {
    max-width: 100%;
  }
  
  .youtube-wrapper-inline {
    max-width: 100%;
  }
  
  .youtube-wrapper iframe {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .youtube-wrapper iframe {
    height: 200px;
  }
}

/* ========================================
   미디어 파일 렌더링 끝
   ======================================== */


/* ========================================
   슬라이드 시작 
   ======================================== */
.paper-slideshow-container,
.paper-slideshow-container * {
  box-sizing: border-box;
}

.paper-slideshow-container {
  max-width: 1000px;
  width: 100%;
  position: relative;
  margin: 20px auto;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.paper-slider-track {
  display: flex;
  transition: transform 0.3s ease-out;
  cursor: grab;
}

.paper-slider-track:active {
  cursor: grabbing;
}

.paper-slide {
  min-width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.paper-slide img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  cursor: pointer;
/*  pointer-events: pointer;*/
}

.paper-slide img:active {
  cursor: grabbing; /* ⭐ 추가: 잡는 손 */
}

.paper-slide-number {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #f2f2f2;
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.6);
  border-radius: 3px;
  z-index: 2;
}

.paper-slide-caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  color: #f2f2f2;
  font-size: 14px;
  padding: 8px 12px;
  text-align: center;
  background: rgba(0,0,0,0.6);
}

.paper-slider-dots {
  text-align: center;
  padding: 15px 0;
}

.paper-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.paper-dot.active {
  background-color: #007bff;
  transform: scale(1.2);
}

.paper-dot:hover {
  background-color: #717171;
}

@media only screen and (max-width: 768px) {
  .paper-slideshow-container {
    max-width: 100%;
    margin: 10px 0;
  }
  
  .paper-slide-number {
    font-size: 10px;
    padding: 4px 8px;
  }
  
  .paper-slide-caption {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .paper-dot {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
}

@media only screen and (max-width: 480px) {
  .paper-slide-caption {
    font-size: 11px;
    padding: 5px 8px;
  }
}
/* ========================================
   슬라이드 끝  
   ======================================== */
