/**
 * 글로벌 스타일
 */

// 기존 SCSS 임포트
@import './WrapComponent.scss';
@import './HeaderComponent.scss';
@import './SideComponent.scss';
@import './MainComponent.scss';
@import './ToolComponent.scss';

// 퍼블리시 미리보기 스타일
.publish-wrapper {
  display: flex;
  height: 100vh;
  background: #1a1a2e;
}

.publish-nav {
  width: 250px;
  background: #16213e;
  border-right: 1px solid #0f3460;
  display: flex;
  flex-direction: column;

  .publish-nav-header {
    padding: 16px;
    border-bottom: 1px solid #0f3460;
    display: flex;
    flex-direction: column;
    gap: 8px;

    a {
      color: #e94560;
      text-decoration: none;
      font-size: 14px;

      &:hover {
        text-decoration: underline;
      }
    }

    .publish-title {
      color: #fff;
      font-size: 18px;
      font-weight: bold;
    }
  }

  .publish-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;

    li {
      a {
        display: block;
        padding: 12px 16px;
        color: #aaa;
        text-decoration: none;
        border-bottom: 1px solid #0f3460;
        transition: all 0.2s;

        &:hover {
          background: #0f3460;
          color: #fff;
        }

        &.active {
          background: #e94560;
          color: #fff;
        }
      }
    }
  }
}

.publish-content {
  flex: 1;
  overflow: auto;
  padding: 20px;

  .publish-home {
    max-width: 800px;
    margin: 0 auto;
    color: #fff;

    h1 {
      margin-bottom: 20px;
      color: #e94560;
    }

    h2 {
      margin-top: 30px;
      margin-bottom: 10px;
      color: #fff;
      font-size: 18px;
    }

    p {
      color: #aaa;
    }

    pre {
      background: #0f3460;
      padding: 16px;
      border-radius: 8px;
      overflow-x: auto;
      font-size: 14px;
    }

    ol {
      color: #aaa;
      padding-left: 20px;

      li {
        margin-bottom: 8px;
      }

      code {
        background: #0f3460;
        padding: 2px 6px;
        border-radius: 4px;
        color: #e94560;
      }
    }
  }

  .panel-wrapper {
    background: #1a1a2e;
    min-height: 100%;
  }
}
