/* 1. 변수 설정 (다크/라이트 전환용) */
:root {
    --bg-color: #000;
    --text-main: #fff;
    --text-dim: rgba(255, 255, 255, 0.3);
    --text-label: rgba(255, 255, 255, 0.8);
}

/* 배경 클릭 시 자바스크립트로 추가될 클래스 */
body.light-mode {
    --bg-color: #fff;
    --text-main: #000;
    --text-dim: rgba(0, 0, 0, 0.2);
    --text-label: rgba(0, 0, 0, 0.6);
}

/* 2. 기본 스타일 */
* {
    font-family: "Pretendard", sans-serif;
    font-weight: 700;
    margin: 0; padding: 0; box-sizing: border-box;
    letter-spacing: -0.01em;
    line-height: 1.4;
    /* 중요: 배경색을 여기서 고정하지 말고 투명하게 두어야 합니다 */
    background-color: transparent; 
}

body {
    font-size: 30px;
    width: 100vw; 
    min-height: 100vh;
    background-color: var(--bg-color); /* 이제 여기서 색 조절 */
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 0;
    transition: background-color 0.4s ease, color 0.4s ease;
    cursor: pointer;
}

.main-title {
    margin-bottom: 60px;       /* 제목과 리스트 사이의 간격을 넉넉히 */
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.05em;   /* 글자가 커지면 자간을 살짝 줄여야 더 세련돼 보입니다 */
    margin-bottom: 80px;
    text-align: center;
    cursor: default; /* 제목 위에서는 화살표 커서 */
}
/* 링크가 되어도 글자색이 변하지 않도록 설정 */
    .title-link {
        text-decoration: none; /* 밑줄 제거 */
        color: inherit;       /* 부모의 색상을 그대로 가져옴 */
        display: block;        /* 클릭 영역을 한 줄 전체로 확장 */
    }

    /* 마우스를 올렸을 때의 효과는 title-new(민트색)에만 줄 수도 있고 전체에 줄 수도 있습니다 */
    .title-link:hover .title-new {
        color: #00FFCC;
    }

.title-old { color: var(--text-dim); }
.title-divider { color: var(--text-main); margin: 0 10px; }
/* 1. 기본 상태 */
.title-new {
    color: var(--text-main);
    transition: color 0.2s;
}

/* 2. 전체 제목에 마우스 올렸을 때 '새로운 질서' 민트색으로 */
.title-link:hover .title-new {
    color: #00FFCC;
}

/* 3. [핵심] '채연'에 마우스가 올라갔을 때는 '새로운 질서'를 원래 색으로 강제 고정 */
/* .title-link 내부에 .info-link가 호버 상태라면, .title-new의 색상을 유지함 */
.title-link:has(.info-link:hover) .title-new {
    color: var(--text-main) !important;
}

/* 4. '채연' 자체의 보라색 효과 */
.info-link:hover {
    color: #BF00FF !important;
    text-decoration: none;
}


.container {
    display: flex;
    flex-direction: column;
    gap: 45px;
    width: 90%;
    max-width: 1200px;
    cursor: default; /* 리스트 영역 안에서는 화살표 커서 */
}

.row {
    display: flex;
    flex-direction: column;
    width: 100%;
    cursor: pointer;
}

.label { 
    color: var(--text-label); 
    margin-bottom: 4px; 
    transition: opacity 0.2s;
}

.old { color: var(--text-dim); }
.new { display: none; }

/* 3. 인터랙션 */
.row:hover .new {
    display: inline;
    color: var(--point-color);
}
.row:hover .label { 
    color: var(--text-main);
    opacity: 1; 
}

.show-all .new {
    display: inline;
    color: var(--point-color);
}
.show-all .label {
    color: var(--text-main);
    opacity: 1;
}
/* 본문 내 링크 스타일 (기존 텍스트와 동일하게 유지) */
.inline-link {
    color: inherit;         /* 부모의 색상(흰색 또는 검정)을 그대로 따름 */
    text-decoration: none;  /* 밑줄 제거 */
    cursor: pointer;
}

/* 마우스를 올렸을 때만 살짝 강조하고 싶다면 (선택사항) */
.inline-link:hover {
    text-decoration: underline; /* 마우스 올렸을 때만 밑줄 */
}

/* 제목 내 '채연' 링크의 기본 상태 */
.info-link {
    color: var(--text-main); 
    text-decoration: none;
    transition: color 0.3s ease; /* 부드럽게 색이 변하도록 */
}

.back-link {
    /* 화면 오른쪽 상단에 고정 */
    position: absolute;
    top: 100px;
    right: 40px;
    
    /* 디자인 설정 */
    font-size: 18px;
    opacity: 0.5;
    text-decoration: none;
    color: var(--text-main);
    text-transform: lowercase;
    transition: all 0.2s ease;
    z-index: 100; /* 다른 요소보다 위에 보이도록 */
}

.back-link:hover { 
    opacity: 1;
   
}