/* !important 우선순위 CSS - 다른 모든 CSS보다 우선 적용 */
.area_reply {
    display: none !important;
}

#dkHead,
.dkHead {
  display: none !important;
}

.tit_category {
  display: none !important;
}

.tit_post a,
.tit_post a:hover,
.tit_post a:active,
.tit_post a:visited {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
  color: inherit !important;
}

.cont_skin {
  margin-top: 0px !important;
}

/* u 태그 스타일 - 두껍고 반투명 초록색 형광색 */
u {
  text-decoration: underline !important;
  text-decoration-thickness: 6px !important;
  text-decoration-color: rgba(0, 255, 100, 0.6) !important;
  text-underline-offset: 2px !important;
  -webkit-text-decoration-color: rgba(0, 255, 100, 0.6) !important;
}
/* 컨텐츠 영역 높이 자동 조정 */
#cMain {
  height: auto !important;
}

#mArticle.article_skin {
  height: auto !important;
}

.skin_view {
  height: auto !important;
}

#article-view {
  height: auto !important;
  min-height: 0px !important;
}

/* 반응형 제목 스타일 - 채도가 낮은 블루톤 */
.dbear-title {
  background-color: #e6f0ff !important;
  padding: 0.4em 1em 0.4em 0.5em !important;
  margin: 0.5em 0 !important;
  border-left: 10px solid #0064FF !important;
  border-bottom: 2px solid #0064FF !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.dbear-title-text {
  color: #000000 !important;
  font-weight: bold !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.4em !important;
  line-height: 1.4 !important;
}


/* 목차 스타일 */
#dbear-toc-wrapper {
  display: none !important;
  margin: 20px 0 !important;
  padding: 15px !important;
  background-color: #f5f5f5 !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#dbear-toc-wrapper:not(:empty) {
  display: block !important;
}

/* 인라인 스타일로 display가 설정된 경우 우선 적용 */
#dbear-toc-wrapper[style*="display: block"],
#dbear-toc-wrapper[style*="display:block"] {
  display: block !important;
}

.dbear-toc-list {
  margin: 0 !important;
  padding-left: 20px !important;
  list-style-type: decimal !important;
}

.dbear-toc-item {
  margin: 8px 0 !important;
  padding: 0 !important;
}

.dbear-toc-link {
  color: #0064ff !important;
  text-decoration: underline !important;
  font-size: 1em !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
}

.dbear-toc-link:hover {
  color: #0052cc !important;
  text-decoration: underline !important;
}

.dbear-toc-link:visited {
  color: #0064ff !important;
}


/* CTA 버튼 스타일 - 클릭율 높은 라운드 버튼 */
.dbear-button-area {
  margin: 30px 0 !important;
  text-align: center !important;
  width: 100% !important;
}

/* 더 구체적인 선택자로 style.css의 a 태그 스타일 덮어쓰기 */
#article-view a.dbear-cta-button,
.skin_view .area_view a.dbear-cta-button,
.area_view a.dbear-cta-button,
a.dbear-cta-button,
.dbear-cta-button {
  display: inline-block !important;
  padding: 18px 40px !important;
  font-weight: bold !important;
  font-size: 1.2em !important;
  text-decoration: underline !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  border: none !important;
  line-height: 1.5 !important;
  text-align: center !important;
  color: #ffffff !important;
  background-color: #dc3545 !important;
  animation: dbear-button-blink 2s infinite !important;
  animation-timing-function: ease-in-out !important;
  animation-fill-mode: both !important;
  will-change: background-color, color, box-shadow !important;
  transition: none !important;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4), 0 2px 5px rgba(0, 0, 0, 0.2) !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  min-width: auto !important;
  width: 80% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@keyframes dbear-button-blink {
  0% {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4), 0 2px 5px rgba(0, 0, 0, 0.2) !important;
  }
  50% {
    background-color: #ffc107 !important;
    color: #000000 !important;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5), 0 3px 8px rgba(0, 0, 0, 0.3) !important;
  }
  100% {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4), 0 2px 5px rgba(0, 0, 0, 0.2) !important;
  }
}

#article-view a.dbear-cta-button:hover,
.skin_view .area_view a.dbear-cta-button:hover,
.area_view a.dbear-cta-button:hover,
a.dbear-cta-button:hover,
.dbear-cta-button:hover {
  text-decoration: underline !important;
  transform: translateY(-2px) !important;
  animation: dbear-button-blink 2s infinite !important;
  animation-timing-function: ease-in-out !important;
  animation-fill-mode: both !important;
  transition: none !important;
}

#article-view a.dbear-cta-button:active,
.skin_view .area_view a.dbear-cta-button:active,
.area_view a.dbear-cta-button:active,
a.dbear-cta-button:active,
.dbear-cta-button:active {
  transform: translateY(0) !important;
  animation: dbear-button-blink 2s infinite !important;
  animation-timing-function: ease-in-out !important;
  animation-fill-mode: both !important;
  transition: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* 모바일 미디어 쿼리 내에서도 버튼 스타일 강제 적용 */
@media only screen and (max-width: 820px) {
  /* 모바일에서 폰트 두께 정상화 - style.css의 font-weight: 100 덮어쓰기 */
  #article-view,
  #article-view p,
  #article-view span,
  #article-view div,
  .skin_view .area_view,
  .skin_view .area_view p,
  .skin_view .area_view span {
    font-weight: normal !important;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Apple SD Gothic Neo", Arial, sans-serif !important;
  }

  /* 제목 텍스트 폰트 두께 강제 적용 */
  .dbear-title-text {
    font-weight: bold !important;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Apple SD Gothic Neo", Arial, sans-serif !important;
  }

  /* 목차 링크 폰트 두께 정상화 */
  .dbear-toc-link {
    font-weight: normal !important;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Apple SD Gothic Neo", Arial, sans-serif !important;
  }

  /* 버튼 스타일 강제 적용 */
  #article-view a.dbear-cta-button,
  .skin_view .area_view a.dbear-cta-button,
  .area_view a.dbear-cta-button,
  a.dbear-cta-button,
  .dbear-cta-button {
    display: inline-block !important;
    padding: 18px 40px !important;
    font-weight: bold !important;
    font-size: 1.2em !important;
    text-decoration: underline !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    border: none !important;
    line-height: 1.5 !important;
    text-align: center !important;
    color: #ffffff !important;
    background-color: #dc3545 !important;
    animation: dbear-button-blink 2s infinite !important;
    animation-timing-function: ease-in-out !important;
    animation-fill-mode: both !important;
    will-change: background-color, color, box-shadow !important;
    transition: none !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4), 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    min-width: auto !important;
    width: 80% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent !important;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Apple SD Gothic Neo", Arial, sans-serif !important;
  }
}

/* 리모컨 버튼 스타일 - 본문 우측 상단 고정 (유튜브 아이콘) */
.dbear-remote-button {
  position: fixed !important;
  right: 20px !important;
  top: 100px !important;
  width: 50px !important;
  height: 50px !important;
  background-color: #ff0000 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  text-decoration: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.dbear-remote-button svg {
  width: 24px !important;
  height: 24px !important;
  fill: #ffffff !important;
}

.dbear-remote-button.dbear-remote-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.dbear-remote-button:hover {
  background-color: #cc0000 !important;
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4) !important;
  transform: translateY(-2px) !important;
}

.dbear-remote-button:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3) !important;
}

/* 모바일에서 리모컨 버튼 크기 조정 */
@media only screen and (max-width: 820px) {
  .dbear-remote-button {
    right: 15px !important;
    top: 80px !important;
    width: 45px !important;
    height: 45px !important;
  }
  
  .dbear-remote-button svg {
    width: 20px !important;
    height: 20px !important;
  }
}

/* 뒤로가기 버튼 스타일 - 좌측 하단 고정 (아이폰 스타일) */
.dbear-back-button {
  position: fixed !important;
  left: 20px !important;
  bottom: 20px !important;
  width: 50px !important;
  height: 50px !important;
  background-color: #f5f5f5 !important;
  color: #333333 !important;
  border: 0.5px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.dbear-back-button svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #333333 !important;
}

.dbear-back-button:hover {
  background-color: #e8e8e8 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px) !important;
}

.dbear-back-button:active {
  transform: translateY(0) !important;
  background-color: #d0d0d0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Name tag card */
.dbear-nametag {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  padding: 26px 34px !important;
  border-radius: 26px !important;
  background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)) !important;
  background-color: #1d1b24 !important;
  color: #ffffff !important;
  margin: 30px 0 !important;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden !important;
  position: relative !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dbear-nametag__photo {
  width: 120px !important;
  height: 120px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: #2a2732 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.35) !important;
}

.dbear-nametag__photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.dbear-nametag__info {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  align-items: flex-end !important;
  text-align: right !important;
}

.dbear-nametag__title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.dbear-nametag__name {
  font-size: 1.45em !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
}

.dbear-nametag__tag {
  font-size: 0.95em !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: #ff2d8a !important;
  font-weight: 600 !important;
  color: #ffe6f3 !important;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
}

.dbear-nametag__desc {
  margin: 0 !important;
  font-size: 1.05em !important;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.5 !important;
}

.dbear-nametag__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-size: 1.05em !important;
  width: fit-content !important;
  background: #ffffff !important;
  color: #1a1a1a !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  align-self: flex-end !important;
}

.dbear-nametag__cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38) !important;
}

.dbear-nametag__cta-arrow {
  font-size: 1.3em !important;
}

@media only screen and (max-width: 820px) {
  .dbear-nametag {
    flex-direction: row !important;
    align-items: center !important;
    padding: 20px 20px !important;
    gap: 18px !important;
  }
  
  .dbear-nametag__photo {
    width: 110px !important;
    height: 110px !important;
    margin: 0 !important;
  }
  
  .dbear-nametag__info {
    align-items: flex-end !important;
    text-align: right !important;
  }
  
  .dbear-nametag__cta {
    width: auto !important;
  }
}

/* 모바일에서 뒤로가기 버튼 크기 조정 */
@media only screen and (max-width: 820px) {
  .dbear-back-button {
    left: 15px !important;
    bottom: 15px !important;
    width: 45px !important;
    height: 45px !important;
  }
  
  .dbear-back-button svg {
    width: 18px !important;
    height: 18px !important;
  }
}

