/* 1. 을유1945 웹폰트 정의 */
@font-face {
    font-family: 'Eulyoo1945-Regular';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2102-01@1.0/Eulyoo1945-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* --- 기초 설정 --- */
body {
  margin: 0;
  /* 폰트 교체 */
  font-family: 'Eulyoo1945-Regular', serif;
  background-color: #fff;
  padding-top: 50px;
}

.publishing-process {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.stage {
  padding: 60px 30px;
  border-bottom: 0.9px solid #aaa;
}

/* --- 1. 원고 영역 --- */
.stage-header h2 {
  font-size: 20px;
  font-weight: 500;
  color: #444;
  margin: 0 0 20px 0;
  font-family: 'Eulyoo1945-Regular', serif;
  letter-spacing: 0.05em;
}

.editor {
  min-height: 200px;
  outline: none;
  font-size: 15px;
  line-height: 2.0; 
  padding-left: 20px;
  font-family: 'Eulyoo1945-Regular', serif;
  letter-spacing: 0.04em;

}

.editor:empty:before {
  content: attr(placeholder);
  color: #aaa;
}

.underlined {
  border-bottom: 1.2px solid #333;
  padding-bottom: 0.9px;
}

/* --- 2. 편집 영역 --- */
.item-number {
  font-weight: 300; /* 얇은 숫자 */
  color: #999;
  margin-right: 6px;
  font-family: sans-serif;
  font-size: 13px;
}

.guide-text {
  color: #888;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px dashed #ccc;
  padding: 20px;
  text-align: center;
  background: #fafafa;
  border-radius: 8px;
  font-family: 'Eulyoo1945-Regular', serif;
}

/*인쇄 옵션바 디자인*/
.binding-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    padding: 20px;
    
}

.label {
  font-size: 13px; 
  letter-spacing: 0.5px; 
  color: #999; 
  text-transform: none; 
  margin-bottom: 4px;
  font-family: 'Eulyoo1945-Regular', serif;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-select, 
input[type="color"] {
    height: 36px; 
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-family: 'Eulyoo1945-Regular', serif;
    font-size: 13px;
    outline: none;
}

.custom-select {
    appearance: none;
    padding: 0 30px 0 10px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

input[type="color"] {
    width: 36px; 
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 0; }

.custom-select:hover, 
input[type="color"]:hover {
    border-color: #333;
}

/* 발행버튼 */
#pdfBtn {
    margin-left: auto;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 0.9px solid #000; 
    background: #fff;
    color: #000;
    
    /* 폰트 교체 */
    font-family: 'Eulyoo1945-Regular', serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; 
    padding: 0;
    
    animation: rotateBtn 10s linear infinite; 
    transition: background 0.3s, color 0.3s, transform 0.1s;
    
    position: relative;
    overflow: hidden;
}

#pdfBtn::after {
    content: '발행';
    display: block;
    margin-top: 2px; 
}

#pdfBtn:hover {
    background: #000;
    color: #fff;
}

@keyframes rotateBtn {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}





.book-preview {
  background: #f0f0f0;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page {
  background: white;
  width: 210mm; min-height: 297mm; padding: 25mm;
  margin-bottom: 20px; box-shadow: 0 0 15px rgba(0,0,0,0.1);
  box-sizing: border-box; word-break: break-all; position: relative;
  /* 폰트 적용 */
  font-family: 'Eulyoo1945-Regular', serif;
  line-height: 1.8;
}

.page-number {
  position: absolute; bottom: 15mm; left: 50%;
  transform: translateX(-50%); font-size: 13px; color: #aaa;
}

/* 인쇄용 */
@media print {
  .no-print, .stage-header, .binding-controls { display: none !important; }
  .page { margin: 0; box-shadow: none; }
}

.item-time {
    display: block !important;
    font-size: 12px !important;
    
    /* 1. 순수 회색(#b0b0b0)보다 아주 살짝 진한 회색으로 변경 */
    /* 브라우저가 '중요 텍스트'로 인식할 확률이 높아집니다. */
    color: #888888 !important; 
    
    /* 2. 투명도를 살짝 주어 다시 연한 회색처럼 보이게 만듭니다. */
    /* 텍스트 자체의 색이 진하면 브라우저가 기본 인쇄 대상에 포함시킵니다. */
    opacity: 0.7; 
    
    font-weight: 400 !important; /* 300보다 아주 살짝만 두껍게 해서 가독성 확보 */
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    font-family: sans-serif !important;
    text-transform: uppercase;
    
    /* 3. 강제 인쇄 속성 (배경 옵션 의존도를 낮춤) */
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

@media print {
    .item-time {
        /* 인쇄 시에만 적용되는 필터로 회색 느낌 유지 */
        color: #777777 !important;
        opacity: 0.8;
    }
}

/* 띠 전체 영역 */
.ticker-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    
    /* 기존 20px + 패딩 10px씩 = 40px로 고정합니다 */
    height: 50px; 
    
    z-index: 2000;
    background-color: #ffffff;
    border-bottom: 0.9px solid #888;
    cursor: pointer;
    
    /* 패딩 대신 flex로 중앙 정렬을 잡으면 높이가 정확해집니다 */
    display: flex;
    align-items: center; 
    justify-content: center;
    padding: 0; /* 패딩은 0으로 초기화 */
}

.ticker-static span {
    font-family: 'Eulyoo1945-Regular', serif;
    font-size: 15px;
    color: #888;
    letter-spacing: 0.6px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ticker-wrapper:hover .ticker-static span {
    color: #333; /* 마우스 올리면 검정색으로 */
}

/* 2. 상세 정보 패널 스타일 */
.info-panel {
    display: none;
    position: relative;
    /* ⭐ 중요: 띠 높이가 40px이므로 여기도 정확히 40px이어야 틈이 없습니다 */
    margin-top: -40px;
    border-top: 0.1px solid transparent;
    width: 100%;
    z-index: 1999;
    background: #f9f9f9;
    border-bottom: 0.9px solid #eee;
    padding: 40px 20px;
    margin-top: 0;
    text-align: left;
    animation: slideDown 0.4s ease-out;
}

.info-content {
    max-width: 680px;
    margin: 0 auto;
    font-family: 'Eulyoo1945-Regular', serif;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    word-break: keep-all;
}

#closeInfo {
    margin-top: 30px;
    background: none;
    border: none;
    border-bottom: 1px solid #000;
    font-family: inherit;
    cursor: pointer;
    padding: 2px 5px;
    font-size: 13px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


