/* 1. 메인 컨테이너 레이아웃 */
.trends-container {
    display: flex;
    gap: 50px;
    padding: 120px 8% 60px; /* 상단 padding을 늘려 헤더 공간 확보 */
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start; /* Sticky 작동을 위한 필수 속성 */
    overflow: visible;       /* 자식 요소의 고정을 방해하지 않음 */
}

/* 2. 사이드바 영역 */
.trends-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* 📌 3. 카테고리 고정 (Sticky) 최적화 */
.year-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    
    position: -webkit-sticky;
    position: sticky;
    
    /* 헤더 높이(약 80px)를 고려하여 그 바로 아래에 고정 */
    top: 100px; 
    
    /* 잘림 방지: 화면 높이에서 top 값을 뺀 만큼 충분히 확보 */
    max-height: calc(100vh - 120px); 
    padding: 5px;
    
    /* 스크롤바가 필요할 때만 생성하고 평소엔 숨김 */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

.year-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* 4. 버튼 디자인 (디테일 수정) */
.year-btn, .sub-btn {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-size: 1rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    white-space: nowrap; /* 글자 줄바꿈 방지 */
}

.year-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    color: #2563eb;
}

.year-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* 5. 2026년 하위 메뉴 */
.sub-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0 8px 15px;
}

.sub-btn {
    padding: 12px 15px;
    font-size: 0.95rem;
    background: #f1f5f9;
}

.sub-btn.active {
    background: #eef2ff;
    color: #2563eb;
    border: 1px solid #2563eb;
}

/* 6. 본문 리포트 디자인 */
.trends-main-display {
    flex-grow: 1;
    min-height: 600px;
}

.report-title {
    font-family: 'JetBrains Mono', 'Noto Sans KR', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 30px;
}

.placeholder-box {
    background: #fff;
    border-radius: 24px;
    padding: 80px 40px;
    border: 2px dashed #e2e8f0;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.report-container {
    animation: fadeIn 0.5s ease-out;
}