@import url('./common/layout.css');
@import url('../component/board/boardItem.css');
@import url('../component/header/header.css');

.boardList {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 16px;
    overflow-y: scroll;
}

.write {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 중앙 정렬에서 시작 정렬로 변경 */
    justify-content: center;
    row-gap: 32px;
    padding: 40px 0 24px 0;
    width: 100%; /* .write 영역이 부모 컨테이너의 전체 너비를 차지하도록 설정 */
}

.write h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: -0.02em;
    color: rgba(69, 72, 84, 1);
    text-align: center;
    width: 100%; /* h2도 중앙 정렬을 유지하도록 설정 */
}

b {
    font-weight: 700;
}

.write a:hover {
    background-color: #7f6aee; /* 여기서 색상을 원하는 색으로 변경하세요 */
}

.wrap {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: transparent !important; /* layout.css 덮어쓰기 */
}

/* 왼쪽 여백 영역 */
.chart-left-space {
    width: 16.66vw; /* 2/12 */
}

/* 차트 영역 */
.chart-wrapper {
    flex: 1;
    width: 66.66vw;
    height: 60vh;
    margin-top: 20vh;
    margin-bottom: 20vh;
    margin-left: 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
}

.chart {
    width: 90%;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart select {
    width: auto;
    align-self: flex-start;
}

.chart canvas {
    flex: 1;
    width: 100% !important;
    height: auto !important;
    display: block;
}

.board-scroll {
    width: 100%; /* ✅ header 기준으로 맞춤 */
    max-width: 423px; /* ✅ 화면이 커져도 제한 */
    height: 100vh;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.95);
    box-sizing: border-box;
    margin-right: 5vw;
}

.board-container {
    width: 100%;
    padding-top: 130px;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.boardItem {
    border: 1px solid rgba(0, 0, 0, 0.9);
}

.write a {
    margin: 0;
    padding: 7px 32px;
    border-radius: 18px;
    background-color: #aca0eb;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-decoration: none;
}

.write-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.write-header span {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}
