/* assets/css/custom.css - Podossi Custom Extensions */

/* 화면 전환 시 스크롤바 유무로 인한 미세한 좌우 이동(Layout Shift) 방지 */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

/* Navbar: 완전 불투명 처리 및 z-index 상향 (뒤 요소 비침 방지) */
.navbar {
  background: hsl(240, 2%, 13%) !important;
  backdrop-filter: none !important;
  z-index: 20 !important;
}

/* Top Global Admin Bar */
.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 30, 32, 0.95);
  border-bottom: 1px solid var(--jet);
  padding: 10px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  gap: 16px;
  box-sizing: border-box;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-6);
  color: var(--light-gray);
}

.admin-badge {
  background: linear-gradient(135deg, hsl(45, 100%, 71%), hsl(35, 100%, 68%));
  color: #1a1a1a;
  font-weight: 600;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Common Custom Buttons */
.custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--border-gradient-onyx);
  color: var(--white-2);
  font-family: var(--ff-poppins);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--jet);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.custom-btn:hover {
  background: var(--bg-gradient-yellow-1);
  color: var(--smoky-black);
  border-color: var(--orange-yellow-crayola);
  transform: translateY(-1px);
}

.custom-btn.btn-sm {
  padding: 4px 10px;
  font-size: var(--fs-7);
  border-radius: 8px;
}

.custom-btn.btn-gold {
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);
  border: none;
  font-weight: 600;
}

.custom-btn.btn-gold:hover {
  box-shadow: 0 4px 14px rgba(255, 219, 112, 0.3);
}

.custom-btn.btn-danger {
  background: rgba(220, 53, 69, 0.15);
  color: #ff6b6b;
  border-color: rgba(220, 53, 69, 0.4);
}

.custom-btn.btn-danger:hover {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

/* Modal Popup Framework */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.custom-modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.custom-modal-box {
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-2);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.2s ease;
  padding: 28px;
  position: relative;
  z-index: 1000000;
  pointer-events: auto;
}

.custom-modal-box.modal-lg {
  max-width: 820px;
}

.custom-modal-overlay.active .custom-modal-box {
  transform: translateY(0) scale(1);
}

.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--jet);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.custom-modal-title {
  color: var(--white-2);
  font-size: var(--fs-2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-modal-title ion-icon {
  color: var(--orange-yellow-crayola);
  font-size: 24px;
}

.custom-modal-close {
  background: var(--onyx);
  border: 1px solid var(--jet);
  color: var(--light-gray);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto !important;
  z-index: 1000001;
}

.custom-modal-close:hover {
  color: var(--white-1);
  border-color: var(--orange-yellow-crayola);
}

/* Modal Form Fields */
.modal-form-group {
  margin-bottom: 18px;
}

.modal-form-label {
  display: block;
  font-size: var(--fs-6);
  color: var(--white-2);
  margin-bottom: 8px;
  font-weight: 500;
}

.modal-form-input,
.modal-form-textarea,
.modal-form-select {
  width: 100%;
  background: var(--onyx);
  border: 1px solid var(--jet);
  border-radius: 12px;
  padding: 11px 16px;
  color: var(--white-2);
  font-family: var(--ff-poppins);
  font-size: var(--fs-6);
  outline: none;
  transition: border-color 0.25s ease;
  box-sizing: border-box;
}

.modal-form-input:focus,
.modal-form-textarea:focus,
.modal-form-select:focus {
  border-color: var(--orange-yellow-crayola);
}

.modal-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  border-top: 1px solid var(--jet);
  padding-top: 18px;
}

/* Section Action Bar (For Add Portfolio, Edit, View switcher, etc) */
.section-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

@media (min-width: 1024px) {
  .section-action-bar {
    align-items: flex-end;
    margin-bottom: 28px;
  }
  
  .section-action-bar > div:last-child {
    margin-top: 30px;
  }
}

/* Free Board Styles */
.board-container {
  margin-top: 10px;
}

.board-search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.board-search-input {
  flex: 1;
  background: var(--onyx);
  border: 1px solid var(--jet);
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--white-2);
  font-size: var(--fs-6);
}

.board-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.board-item {
  background: var(--border-gradient-onyx);
  border: 1px solid var(--jet);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.board-item:hover {
  border-color: var(--orange-yellow-crayola);
  transform: translateX(4px);
  background: var(--bg-gradient-jet);
}

.board-item-title {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: 500;
  margin-bottom: 6px;
}

.board-item-meta {
  color: var(--light-gray-70);
  font-size: var(--fs-7);
  display: flex;
  gap: 14px;
  align-items: center;
}

.board-item-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.board-empty {
  text-align: center;
  padding: 40px;
  color: var(--light-gray-70);
  background: var(--onyx);
  border-radius: 14px;
  border: 1px dashed var(--jet);
}

.board-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.page-btn {
  background: var(--onyx);
  border: 1px solid var(--jet);
  color: var(--white-2);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--fs-7);
  transition: 0.2s;
}

.page-btn.active, .page-btn:hover {
  background: var(--text-gradient-yellow);
  color: var(--smoky-black);
  border-color: var(--orange-yellow-crayola);
  font-weight: 600;
}

/* ==========================================================================
   Modern Luxury Book Showcase Grid (메뉴 '내가 쓴 책' 고급 카드 모드)
   ========================================================================== */
.books-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 680px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
}

.book-card {
  background: linear-gradient(160deg, rgba(38, 38, 42, 0.95) 0%, rgba(22, 22, 25, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.book-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 219, 112, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.book-card:hover {
  border-color: rgba(255, 219, 112, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 219, 112, 0.1);
}

.book-card:hover::before {
  opacity: 1;
}

/* 3D Book Cover Stage inside Card */
.book-cover-stage {
  position: relative;
  width: 100%;
  height: 250px;
  background: radial-gradient(circle at 50% 35%, rgba(52, 52, 58, 0.6) 0%, rgba(15, 15, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.book-cover-stage img {
  max-height: 205px;
  max-width: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px 8px 8px 4px;
  box-shadow: -8px 10px 22px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.book-cover-stage:hover img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: -12px 16px 28px rgba(0, 0, 0, 0.85), 0 0 16px rgba(255, 219, 112, 0.25);
}

.book-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.book-cover-stage:hover .book-cover-overlay {
  opacity: 1;
}

.cover-quick-view-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--orange-yellow-crayola, #ffdb70);
  color: var(--smoky-black, #121212);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.book-cover-stage:hover .cover-quick-view-badge {
  transform: translateY(0);
}

/* Draft Cover (Typographic Luxury Book) */
.book-cover-draft {
  width: 145px;
  height: 200px;
  border-radius: 4px 8px 8px 4px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: -8px 10px 22px rgba(0, 0, 0, 0.75);
  border-left: 5px solid rgba(255, 219, 112, 0.35);
  transition: transform 0.4s ease;
}

.book-cover-stage:hover .book-cover-draft {
  transform: translateY(-4px) scale(1.04);
}

.book-cover-draft.grey {
  background: linear-gradient(145deg, #2f343e 0%, #191b20 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.book-cover-draft.blue {
  background: linear-gradient(145deg, #1d2c40 0%, #0f1824 100%);
  border-top: 1px solid rgba(100, 181, 246, 0.3);
  border-right: 1px solid rgba(100, 181, 246, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.draft-cover-title {
  color: var(--white-1, #ffffff);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.draft-cover-sub {
  color: var(--orange-yellow-crayola, #ffdb70);
  font-size: 11px;
  font-weight: 500;
}

/* Card Body & Badges */
.book-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.shelf-category-badge {
  color: var(--orange-yellow-crayola, #ffdb70);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 219, 112, 0.12);
  border: 1px solid rgba(255, 219, 112, 0.3);
  padding: 3px 9px;
  border-radius: 6px;
}

.shelf-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}

.shelf-status-badge.published {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.shelf-status-badge.draft {
  background: rgba(243, 156, 18, 0.12);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.book-card-title {
  color: var(--white-1, #ffffff);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.book-meta-tag {
  font-size: 11px;
  color: var(--light-gray-70, #c8c8c8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 5px;
}

/* Card Action Buttons */
.shelf-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.shelf-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.shelf-action-btn * {
  pointer-events: none;
}

.shelf-action-btn.btn-flip {
  background: linear-gradient(135deg, rgba(255, 219, 112, 0.18) 0%, rgba(255, 219, 112, 0.06) 100%);
  color: var(--orange-yellow-crayola, #ffdb70);
  border: 1px solid rgba(255, 219, 112, 0.4);
}

.shelf-action-btn.btn-flip:hover {
  background: var(--orange-yellow-crayola, #ffdb70);
  color: var(--smoky-black, #121212);
  box-shadow: 0 4px 14px rgba(255, 219, 112, 0.35);
  transform: translateY(-2px);
}

.shelf-action-btn.btn-pdf {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white-2, #fafafa);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.shelf-action-btn.btn-pdf:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white-1, #ffffff);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.shelf-action-btn.btn-draft {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.03);
  color: var(--light-gray-70, #c8c8c8);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  cursor: default;
  padding: 10px;
}

/* ==========================================================================
   Portfolio Drag Grip (Left) & Actions (Right)
   ========================================================================== */
.portfolio-item-drag-box {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
}

.portfolio-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(20, 20, 24, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 219, 112, 0.4);
  border-radius: 8px;
  color: var(--orange-yellow-crayola, #ffdb70);
  cursor: grab;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.portfolio-drag-handle:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.portfolio-drag-handle:hover {
  background: var(--jet, #383838);
  border-color: var(--orange-yellow-crayola);
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(255, 219, 112, 0.35);
}

.portfolio-item-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
}

.portfolio-item-actions .custom-btn {
  background: rgba(20, 20, 24, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(220, 53, 69, 0.6);
  color: #ff6b6b;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.portfolio-item-actions .custom-btn:hover {
  background: #dc3545;
  color: #ffffff;
  border-color: #dc3545;
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(220, 53, 69, 0.4);
}

.project-item.is-dragging {
  opacity: 0.35;
  transform: scale(0.97);
  box-shadow: 0 0 0 2px var(--orange-yellow-crayola);
  border-radius: 16px;
}

/* Toast Message */
.podossi-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(22, 22, 26, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--orange-yellow-crayola, #ffdb70);
  color: var(--white-1, #ffffff);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 219, 112, 0.2);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.podossi-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Project & Media Card Animations (실험실 & 언론보도 호버 애니메이션)
   ========================================================================== */
.project-item {
  cursor: pointer;
  position: relative;
}

.project-item > a,
.project-card-link {
  display: block;
  width: 100%;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 마우스 호버 시 카드 살짝 들림 효과 */
.project-item:hover > a,
.project-item > a:hover,
.project-card-link:hover {
  transform: translateY(-6px);
}

.project-item .project-img {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--eerie-black-1, #1e1e1f);
}

/* 마우스 호버 시 어두운 오버레이 레이어 페이드 인 */
.project-item .project-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
  transition: background 0.35s ease;
  pointer-events: none;
}

.project-item:hover .project-img::before,
.project-item > a:hover .project-img::before,
.project-card-link:hover .project-img::before {
  background: rgba(0, 0, 0, 0.52) !important;
}

/* 마우스 호버 시 이미지 부드러운 줌(확대) 애니메이션 */
.project-item .project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  display: block;
}

.project-item:hover .project-img img,
.project-item > a:hover img,
.project-card-link:hover .project-img img {
  transform: scale(1.12) !important;
}

/* 마우스 호버 시 중앙 아이콘(눈/외부링크) 부드럽게 팝업 */
.project-item .project-item-icon-box {
  background: var(--jet, #383838);
  color: var(--orange-yellow-crayola, #ffdb70);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: 22px;
  padding: 16px;
  border-radius: 14px;
  opacity: 0;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease !important;
  pointer-events: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-item:hover .project-item-icon-box,
.project-item > a:hover .project-item-icon-box,
.project-card-link:hover .project-item-icon-box {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
}

/* 마우스 호버 시 제목 텍스트 골드 색상으로 전환 */
.project-item .project-title {
  transition: color 0.25s ease;
}

.project-item:hover .project-title,
.project-item > a:hover .project-title,
.project-card-link:hover .project-title {
  color: var(--orange-yellow-crayola, #ffdb70) !important;
}

/* Resume Inline Actions */
.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Dropzone Component */
.dropzone-container {
  border: 2px dashed var(--jet);
  background: var(--onyx);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.dropzone-container:hover, .dropzone-container.dragover {
  border-color: var(--orange-yellow-crayola);
  background: rgba(255, 219, 112, 0.05);
}

.dropzone-icon {
  font-size: 38px;
  color: var(--orange-yellow-crayola);
  margin-bottom: 8px;
}

.dropzone-text {
  font-size: var(--fs-6);
  color: var(--white-2);
  margin-bottom: 4px;
  font-weight: 500;
}

.dropzone-hint {
  font-size: var(--fs-7);
  color: var(--light-gray-70);
}

.dropzone-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dropzone-preview-img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--jet);
}

.dropzone-remove-btn {
  background: rgba(231, 76, 60, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(231, 76, 60, 0.4);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.dropzone-remove-btn:hover {
  background: #e74c3c;
  color: #fff;
}

/* ==========================================================================
   Custom Timeline: 연도가 왼쪽, 점이 가운데, 수상명이 오른쪽에 배치되는 모던 레이아웃
   ========================================================================== */
.timeline-list.custom-timeline {
  margin-left: 0 !important;
  padding-left: 0;
  position: relative;
}

.timeline-list.custom-timeline .timeline-item.custom-timeline-row {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 14px;
}

/* 기존 style.css의 가상요소(선과 점) 위치 재정의 */
.timeline-list.custom-timeline .timeline-item:not(:last-child)::before {
  top: 25px;
  left: 80px !important;
  height: calc(100% + 14px);
  width: 1px;
  background: var(--jet);
  z-index: 1;
}

.timeline-list.custom-timeline .timeline-item::after {
  top: 50% !important;
  transform: translateY(-50%);
  left: 77px !important;
  width: 7px !important;
  height: 7px !important;
  background: var(--text-gradient-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--jet);
  z-index: 2;
}

.timeline-list.custom-timeline .timeline-year-box {
  width: 65px;
  text-align: right;
  flex-shrink: 0;
  margin-right: 32px; /* 선과 점을 위한 공간 */
}

.timeline-list.custom-timeline .timeline-item-year {
  display: inline-block;
  background: rgba(255, 219, 112, 0.12);
  color: var(--orange-yellow-crayola);
  border: 1px solid rgba(255, 219, 112, 0.28);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.timeline-list.custom-timeline .timeline-content-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--border-gradient-onyx);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--jet);
  transition: all 0.25s ease;
}

.timeline-list.custom-timeline .timeline-content-box:hover {
  background: var(--bg-gradient-jet);
  border-color: rgba(255, 219, 112, 0.35);
  transform: translateX(4px);
}

.timeline-list.custom-timeline .timeline-item-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--white-2);
  line-height: 1.4;
}

@media (max-width: 580px) {
  .timeline-list.custom-timeline .timeline-year-box {
    width: 52px;
    margin-right: 25px;
  }
  .timeline-list.custom-timeline .timeline-item-year {
    font-size: 11px;
    padding: 2px 6px;
  }
  .timeline-list.custom-timeline .timeline-item:not(:last-child)::before {
    left: 64px !important;
  }
  .timeline-list.custom-timeline .timeline-item::after {
    left: 61px !important;
  }
  .timeline-list.custom-timeline .timeline-item-title {
    font-size: 13px;
  }
}

/* ==========================================================================
   3D Bookshelf & E-Book Library Styles
   ========================================================================== */

/* 1. View Mode Switcher */
.book-view-switcher {
  display: inline-flex;
  background: var(--onyx);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--jet);
  gap: 4px;
}

.view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--light-gray-70);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.view-switch-btn * {
  pointer-events: none;
}

.view-switch-btn:hover {
  color: var(--white-2);
}

.view-switch-btn.active {
  background: var(--bg-gradient-jet);
  color: var(--orange-yellow-crayola);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* 2. 3D Bookshelf Container */
.bookshelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 130px 40px;
  padding: 40px 20px 100px;
  position: relative;
  justify-items: center;
}

.shelf-item {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1800px;
  padding: 15px 10px;
}

/* 3. 3D Book Container */
.book-3d-wrap {
  width: 170px;
  height: 240px;
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
  cursor: pointer;
}

.book {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

/* HARDCOVER FRONT & BACK */
.hardcover_front,
.hardcover_back,
.book_spine,
.hardcover_front li,
.hardcover_back li,
.book_spine li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.hardcover_front,
.hardcover_back {
  transform-origin: 0% 100%;
}

.hardcover_front {
  transform: rotateY(-34deg) translateZ(8px);
  z-index: 100;
  transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.5s;
}

.hardcover_back {
  transform: rotateY(-15deg) translateZ(-8px);
}

.hardcover_front li:first-child {
  background-color: #222;
  backface-visibility: hidden;
  user-select: none;
  transform: translateZ(2px);
  border-radius: 2px 6px 6px 2px;
  overflow: hidden;
  box-shadow: inset 2px 0 6px rgba(0,0,0,0.6);
  border: 1px solid rgba(255, 219, 112, 0.25);
}

.hardcover_front li:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hardcover_front li:last-child {
  background: #1e1e24;
  transform: rotateY(180deg) translateZ(2px);
  border-radius: 6px 2px 2px 6px;
  border: 1px solid rgba(255, 219, 112, 0.2);
}

.hardcover_back li:first-child {
  background: #1a1a1f;
  transform: translateZ(2px);
}

.hardcover_back li:last-child {
  background: #141416;
  transform: translateZ(-2px);
  border-radius: 2px 6px 6px 2px;
  box-shadow: -15px 15px 30px rgba(0, 0, 0, 0.85);
}

/* Spine */
.book_spine {
  transform: rotateY(60deg) translateX(-5px) translateZ(-12px);
  width: 16px;
  z-index: 0;
}

.book_spine li:first-child {
  background: #2a2a30;
  transform: translateZ(2px);
  border-left: 1px solid rgba(255, 219, 112, 0.3);
}

.book_spine li:last-child {
  background: #111114;
  transform: translateZ(-2px);
}

/* Pages */
.page,
.page > li {
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
}

.page {
  width: 98%;
  height: 98%;
  top: 1%;
  left: 2%;
  z-index: 10;
}

.page > li {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
  background: linear-gradient(to right, #1f1f26 0%, #292933 100%);
  border-radius: 0px 5px 5px 0px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  border-right: 1px solid rgba(255, 219, 112, 0.2);
  box-shadow: inset 0px -1px 3px rgba(0,0,0,0.5), inset -1px 0px 2px rgba(255,255,255,0.05);
}

.page li:nth-child(1) { transform: rotateY(-28deg); transition-duration: 0.6s; }
.page li:nth-child(2) {
  transform: rotateY(-30deg);
  transition-duration: 0.6s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: linear-gradient(135deg, #1d1d23 0%, #252530 100%);
}
.page li:nth-child(3) { transform: rotateY(-32deg); transition-duration: 0.4s; }
.page li:nth-child(4) { transform: rotateY(-34deg); transition-duration: 0.5s; }
.page li:nth-child(5) { transform: rotateY(-36deg); transition-duration: 0.6s; }

/* Page Buttons inside 3D Book */
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 90%;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.page-btn * {
  pointer-events: none;
}

.page-btn.btn-flip {
  background: var(--text-gradient-yellow);
  color: #121212;
  box-shadow: 0 3px 10px rgba(255, 219, 112, 0.25);
  border: none;
}

.page-btn.btn-flip:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(255, 219, 112, 0.45);
}

.page-btn.btn-pdf {
  background: rgba(30, 30, 36, 0.85);
  color: var(--orange-yellow-crayola);
  border: 1px solid rgba(255, 219, 112, 0.4);
}

.page-btn.btn-pdf:hover {
  background: var(--orange-yellow-crayola);
  color: #121212;
}

.page-btn.btn-draft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--light-gray-70);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  cursor: default;
}

/* 4. Hover & Opened Events */
.book-3d-wrap:hover .hardcover_front,
.book-3d-wrap.opened .hardcover_front {
  transform: rotateY(-145deg) translateZ(0);
  z-index: 0;
}

.book-3d-wrap:hover .page li:nth-child(1),
.book-3d-wrap.opened .page li:nth-child(1) {
  transform: rotateY(-30deg);
  transition-duration: 1.5s;
}

.book-3d-wrap:hover .page li:nth-child(2),
.book-3d-wrap.opened .page li:nth-child(2) {
  transform: rotateY(-35deg);
  transition-duration: 1.8s;
}

.book-3d-wrap:hover .page li:nth-child(3),
.book-3d-wrap.opened .page li:nth-child(3) {
  transform: rotateY(-118deg);
  transition-duration: 1.6s;
}

.book-3d-wrap:hover .page li:nth-child(4),
.book-3d-wrap.opened .page li:nth-child(4) {
  transform: rotateY(-130deg);
  transition-duration: 1.4s;
}

.book-3d-wrap:hover .page li:nth-child(5),
.book-3d-wrap.opened .page li:nth-child(5) {
  transform: rotateY(-140deg);
  transition-duration: 1.2s;
}

/* 5. Typographic Design Covers (For Books in Progress) */
.coverDesign {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.coverDesign.grey {
  background: linear-gradient(145deg, #2b2f38 0%, #1a1c22 100%);
  border: 1px solid rgba(255, 219, 112, 0.3);
}

.coverDesign.blue {
  background: linear-gradient(145deg, #1b2838 0%, #101924 100%);
  border: 1px solid rgba(100, 181, 246, 0.4);
}

.coverDesign h1 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--white-1);
}

.coverDesign p {
  font-size: 12px;
  color: var(--orange-yellow-crayola);
  font-weight: 500;
}

.ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--text-gradient-yellow);
  color: #111;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 6. Book Viewer Modal (인페이지 풀모달) */
.book-viewer-modal-box {
  width: 96vw !important;
  max-width: 1400px !important;
  height: 94vh !important;
  max-height: 96vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #161619 !important;
  border-radius: 16px !important;
}

.book-viewer-frame-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #0d0d0f;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.book-viewer-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .book-viewer-modal-box {
    width: 98vw !important;
    height: 96vh !important;
    max-height: 98vh !important;
    padding: 0 !important;
  }

  .bookshelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 55px 20px;
    padding: 30px 10px 60px;
  }
  .book-3d-wrap {
    width: 140px;
    height: 200px;
  }
}

/* Toast Notification */
.podossi-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--eerie-black-2);
  border: 1px solid var(--orange-yellow-crayola);
  color: var(--white-1);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  font-weight: 500;
  z-index: 99999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.podossi-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   Mobile Hamburger Navigation & Sidebar Structure
   =================================================== */

/* 모바일 전용 햄버거 메뉴 박스 (모던 & 프리미엄 글래스모피즘 카드) */
.mobile-nav-box {
  margin-bottom: 20px;
  background: linear-gradient(145deg, rgba(35, 35, 38, 0.75), rgba(22, 22, 24, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-title {
  color: var(--light-gray-70);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-nav-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-yellow-crayola);
  box-shadow: 0 0 8px var(--orange-yellow-crayola);
}

.mobile-nav-badge {
  font-size: 10px;
  color: var(--orange-yellow-crayola);
  background: rgba(255, 219, 112, 0.1);
  border: 1px solid rgba(255, 219, 112, 0.25);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.mobile-nav-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  width: 100%;
}

.mobile-nav-item.mobile-nav-item-full {
  grid-column: span 2;
}

.mobile-nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: rgba(45, 45, 48, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  color: var(--light-gray);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.mobile-nav-link .mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 219, 112, 0.08);
  border: 1px solid rgba(255, 219, 112, 0.15);
  color: var(--orange-yellow-crayola);
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.mobile-nav-link .mobile-nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 219, 112, 0.4);
  color: var(--white-1);
  transform: translateY(-1px);
}

.mobile-nav-link.active {
  background: var(--text-gradient-yellow);
  color: #121212 !important;
  font-weight: 700;
  border-color: var(--orange-yellow-crayola);
  box-shadow: 0 4px 14px rgba(255, 219, 112, 0.3);
}

.mobile-nav-link.active .mobile-nav-icon {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
  color: #121212;
}

.mobile-nav-link.active .mobile-nav-text {
  color: #121212 !important;
}

/* 언론보도 모달 터치 및 모바일 뷰 최적화 */
#mediaSkillsList .project-item {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

#mediaSkillsList .project-card-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
  touch-action: manipulation;
}

#sidebarAdminBtnGroup .custom-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* ===================================================
   햄버거 토글 버튼 (모바일 및 태블릿 지원, 단일 아이콘 표시)
   =================================================== */
.info_more-btn {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  border-radius: 0 20px 0 15px !important;
  font-size: 20px !important;
  color: var(--orange-yellow-crayola) !important;
  background: var(--border-gradient-onyx) !important;
  border: 1px solid var(--jet) !important;
  border-top: none !important;
  border-right: none !important;
  padding: 10px 14px !important;
  box-shadow: var(--shadow-2) !important;
  cursor: pointer !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  min-height: 44px !important;
  transition: all 0.25s ease !important;
}

.info_more-btn:hover {
  background: var(--bg-gradient-yellow-1) !important;
  color: var(--smoky-black) !important;
}

.info_more-btn:hover ion-icon {
  color: var(--smoky-black) !important;
}

.info_more-btn ion-icon {
  font-size: 22px !important;
  color: var(--orange-yellow-crayola) !important;
  transition: color 0.25s ease !important;
}

/* 닫힘/열림 상태별 단일 아이콘만 표시 (아이콘 겹침 원천 방지) */
.info_more-btn .sidebar-close-icon {
  display: none !important;
}
.info_more-btn .sidebar-open-icon {
  display: inline-block !important;
}

.sidebar.active .info_more-btn .sidebar-open-icon {
  display: none !important;
}
.sidebar.active .info_more-btn .sidebar-close-icon {
  display: inline-block !important;
}

/* ===================================================
   반응형 분기 (Desktop vs Tablet vs Mobile)
   =================================================== */

/* 1. PC 대화면 (1250px 이상 - 좌측 고정 사이드바) */
@media (min-width: 1250px) {
  .info_more-btn {
    display: none !important;
  }
  
  .mobile-nav-box,
  .mobile-nav-separator {
    display: none !important;
  }
  
  .navbar {
    display: block !important;
  }
}

/* 2. 태블릿 및 중형 화면 (1024px ~ 1249px) */
@media (min-width: 1024px) and (max-width: 1249px) {
  .mobile-nav-box,
  .mobile-nav-separator {
    display: none !important;
  }
  
  .navbar {
    display: block !important;
  }

  .sidebar {
    max-height: 180px;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.active {
    max-height: 1500px !important;
    overflow: visible !important;
    padding-bottom: 28px !important;
  }
}

/* 3. 스마트폰 / 소형 화면 (1023px 이하) */
@media (max-width: 1023px) {
  /* 모바일에서는 상단 navbar 숨기고 햄버거 메뉴 안으로 이동 */
  .navbar {
    display: none !important;
  }
  
  /* 사이드바 확장 시 하단 관리자 버튼 잘림 완벽 방지 */
  .sidebar {
    max-height: 112px;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.active {
    max-height: 1500px !important;
    overflow: visible !important;
    padding-bottom: 28px !important;
  }

  .sidebar-info_more {
    overflow: visible !important;
    padding-bottom: 6px;
  }

  #sidebarAdminBtnGroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 6px;
  }

  #sidebarAdminBtnGroup .custom-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 10px;
  }

  .custom-modal-box {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    max-height: 85vh !important;
  }
}




