/* stylelint-disable selector-class-pattern */
/* Notion-style CSS - Perfect Match */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 40px 20px;
  background-color: rgb(255, 254, 252);
  color: rgb(55, 53, 47);
  font-size: 16px;
  font-family: -apple-system, 'system-ui', 'Segoe UI', Helvetica, 'Apple Color Emoji', Arial, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol';
  line-height: 24px;
}

.notion-page {
  min-height: 100vh;
  background-color: #fff;
}

.notion-content {
  max-width: 1090px;
  margin: 0 auto;
  padding: 0 24px;
}

.notion-page-content {
  display: flex;
  z-index: 4;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  padding-top: 8px;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  color: rgb(44, 44, 43);
  font-size: 16px;
  line-height: 24px;
}

/* Column Layout */
.notion-column-list {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  align-self: center;
  justify-content: space-between;
  gap: 46px;
  width: 100%;
  max-width: 1090px;
  margin: 0 auto;
  margin-top: 2px;
  margin-bottom: 1px;
}

.notion-column {
  display: flex;
  flex-grow: 0;
  flex-shrink: 1;
  flex-direction: column;
  width: calc(50% - 23px);
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  transition-timing-function: ease;
  transition-duration: 200ms;
  transition-property: width;
}

/* Quote Blocks */
.notion-quote-block {
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
  margin-right: 0;
  margin-bottom: 4px;
  margin-left: 0;
  padding: 0;
  border: 0 none rgb(44, 44, 43);
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0);
}

/* 전체 너비를 사용하는 quote block */
.notion-quote-block.full-width {
  width: 100%;
  max-width: 100%;
}

.notion-quote-block blockquote {
  display: flex;
  margin: 0;
  padding-top: 3px;
  padding-bottom: 3px;
  color: inherit;
  font-size: 1em;
  fill: inherit;
  padding-inline: 2px;
}

.quote-content {
  display: flex;
  align-items: center;
  width: 100%;
  white-space: nowrap;
  border-inline-start: 3px solid currentcolor;
  padding-inline: 14px;
}

.emoji {
  display: inline-block;
  margin-right: 6px;
  font-size: 14px;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  vertical-align: middle;
  white-space: nowrap;
}

.notion-enable-hover {
  font-weight: 600;
  white-space: nowrap;
}

/* Dividers */
.notion-divider {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 13px;
  margin-top: 1px;
  margin-right: 0;
  margin-bottom: 1px;
  margin-left: 0;
  color: #37352f29;
  pointer-events: auto;
}

.notion-divider::after {
  display: block;
  visibility: visible;
  width: 100%;
  height: 1px;
  border-bottom: 1px solid #e6e5e3;
  content: '';
}

/* Text Blocks */
.notion-text-block {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 1px;
  margin-right: 0;
  margin-bottom: 1px;
  margin-left: 0;
  padding: 4px 8px;
  border: 0 none rgb(44, 44, 43);
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0);
  color: rgb(44, 44, 43);
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  user-select: none;
}

.notion-text-block span {
  display: inline;
  color: inherit;
  white-space: nowrap;
}

/* File Blocks */
.notion-file-block {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  margin-top: 1px;
  margin-right: 0;
  margin-bottom: 1px;
  margin-left: 0;
  padding: 0;
  border: 0 none rgb(44, 44, 43);
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0);
  white-space: nowrap;
}

.notion-file-block {
  display: inline-block;
  width: 100%;
  padding: 0;
  border-radius: 4px;
  white-space: nowrap;
}

.file-icon {
  display: inline-block;
  flex-grow: 0;
  flex-shrink: 0;
  width: 1.35em;
  height: 1.35em;
  vertical-align: middle;
  user-select: none;
  margin-inline-end: 2px;
}

.file-content {
  display: inline-block;
  flex: 1 1 0px;
  min-width: 1px;
  vertical-align: middle;
}

.file-name {
  overflow: hidden;
  color: rgb(55, 53, 47);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-link {
  display: block;
  width: 100%;
  padding: 4px 8px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 20ms ease-in;
}

.file-link:hover {
  background: rgba(55, 53, 47, 0.08);
  text-decoration: none;
}

/* SVG Icons */
.arrowPageUp {
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  fill: inherit;
}


.page-link {
  display: block;
  width: 100%;
  padding: 4px 8px;
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
  transition: background 20ms ease-in;
}

.page-link:hover {
  background: rgba(55, 53, 47, 0.08);
}

.page-icon {
  display: inline-block;
  margin-right: 6px;
  font-size: 14px;
  vertical-align: middle;
}

.page-title {
  display: inline-block;
  color: rgb(55, 53, 47);
  font-weight: 500;
  font-size: 14px;
  vertical-align: middle;
}

/* Page mention */
.notion-page-mention {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  color: rgb(55, 53, 47);
  font-weight: 500;
  text-decoration: none;
  transition: background 20ms ease-in;
}

.notion-page-mention:hover {
  background: rgba(55, 53, 47, 0.08);
  text-decoration: none;
}

.page-mention-icon {
  display: inline-block;
  margin-right: 6px;
  font-size: 14px;
  vertical-align: middle;
}

.page-mention-title {
  display: inline-block;
  color: rgb(55, 53, 47);
  font-weight: 500;
  font-size: 14px;
  vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .notion-content {
    max-width: 100%;
    padding: 0 24px;
  }
    
  .notion-column-list {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }
    
  .notion-column {
    width: 100%;
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .notion-content {
    padding: 0 16px;
  }
    
  body {
    padding: 20px 10px;
  }
}

/* Focus states for accessibility */
.notion-file-block:focus,
.notion-text-block:focus {
  outline: 2px solid #2383e2;
  outline-offset: 2px;
}

/* Spacing between sections */
.notion-spacing {
  display: block;
  width: 100%;
  height: 32px;
}

/* Print styles */
@media print {
  .notion-page {
    background: #fff;
  }
    
  .notion-quote-block {
    border: 1px solid #ccc;
    background: #f9f9f9;
  }
    
  .notion-spacing {
    height: 16px;
  }
}

/* Cover Image */
.notion-cover-image {
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.cover-image {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 200px;
  border-radius: 0;
  object-position: center;
}

/* Cover Overlay */
.cover-overlay {
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: transparent;
  text-align: center;
}

.cover-overlay header {
  margin: 0;
  padding: 20px;
}

.cover-overlay .notion-h1 {
  margin-bottom: 8px;
  color: transparent;
  font-size: 36px;
  text-shadow: none;
  /* SEO를 위해 텍스트는 유지하되 시각적으로만 투명 */
}

.cover-overlay .notion-text-small {
  margin: 0;
  color: transparent;
  font-size: 16px;
  text-shadow: none;
  /* SEO를 위해 텍스트는 유지하되 시각적으로만 투명 */
}

/* Image Block */
.notion-image-block {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 1px;
  margin-right: 0;
  margin-bottom: 1px;
  margin-left: 0;
  padding: 0;
  border: 0 none rgb(44, 44, 43);
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0);
}

.banner-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* SEO Header Styles */
header {
  margin-bottom: 32px;
  text-align: center;
}

.notion-h1 {
  margin: 0 0 8px;
  color: rgb(55, 53, 47);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
}

.notion-h2 {
  margin: 0 0 16px;
  color: transparent;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  /* SEO를 위해 HTML 구조는 유지하되 시각적으로만 숨김 */
}

.notion-h3 {
  margin: 0 0 12px;
  color: rgb(55, 53, 47);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
}

/* Section spacing */
section {
  margin-bottom: 24px;
}

/* Print styles for SEO */
@media print {
  header {
    page-break-after: avoid;
  }
    
  .notion-h1,
  .notion-h2,
  .notion-h3 {
    page-break-after: avoid;
  }
}
