/* 전체 스타일을 Intel 다운로드 스타일을 참고하여 재구성합니다. */
/* 컬러 팔레트: 요청하신 색상 반영 */
:root{
  --c1: #65CEF7;
  --c2: #6572F7;
  --c3: #65A0F7;
  --c4: #65A0F7;
  --c5: #8865F7;
  --c6: #83B3FA;

  --bg: #f7fbff;
  --surface: #ffffff;
  --muted: #5b647a;
  --text: #07203a;
  --border: rgba(100,115,230,0.16);
  --accent-grad: linear-gradient(90deg,var(--c1),var(--c2));
}

/* 기본 리셋/타이포 */
*{box-sizing:border-box}
body{
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color:var(--text);
  margin:0;
  padding:0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* 컨테이너 수정 */
.container-fluid.py-4{ padding-top:1.25rem; padding-bottom:1.25rem; }

/* 레이아웃: 좌측 사이드, 우측 콘텐츠 */
.download-layout{ display:flex; gap:1.25rem; align-items:flex-start; }
.download-aside{ width:270px; }
.download-main{ flex:1 1 auto; }

/* 사이드바 카드 */
.aside-card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  padding:1rem;
  box-shadow: 0 6px 18px rgba(13,34,80,0.04);
}
.aside-card h6{ margin:0 0 0.6rem 0; font-weight:700; color:var(--text); }
.filter-item{ margin-bottom:0.8rem; }
.filter-item label{ display:block; font-size:0.88rem; color:var(--muted); margin-bottom:0.35rem; }

/* 추가: 사이드바 로고 스타일 */
.aside-logo {
  text-align: center;
  margin-bottom: 0.75rem;
}
.aside-logo img {
  max-width: 160px;
  width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(14,30,80,0.06);
}

/* 모바일에서 로고 크기 보정 */
@media (max-width: 576px) {
  .aside-logo img {
    max-width: 140px;
  }
}

/* 메인 히어로(상단 요약) */
.hero {
  background: linear-gradient(90deg, rgba(101,206,247,0.08), rgba(136,101,247,0.03));
  border:1px solid rgba(101,130,200,0.12);
  border-radius:12px;
  padding:1rem;
  margin-bottom:1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.hero .title{ font-size:1.1rem; font-weight:800; color:var(--c2); margin:0; }
.hero .subtitle{ color:var(--muted); font-size:0.92rem; }

/* 액션바: 정렬 / 보기 토글 등 */
.action-bar{
  display:flex;
  gap:0.75rem;
  align-items:center;
  justify-content:space-between;
  margin-bottom:0.8rem;
}
.action-bar-left{ display:flex; gap:0.5rem; align-items:center; }
.action-bar-right{ display:flex; gap:0.5rem; align-items:center; }

/* 그룹 카드: 제품 코드별 묶음 */
.group-card {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(100,115,230,0.14);
  background: linear-gradient(180deg, rgba(101,172,247,0.03), rgba(131,179,250,0.01));
  box-shadow: 0 10px 28px rgba(20,40,80,0.04);
}
.group-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:0.9rem 1rem;
  border-bottom:1px solid rgba(100,115,230,0.06);
}
.group-header .title { font-weight:800; color:var(--c2); font-size:1rem; }
.group-header .meta { color:var(--muted); font-size:0.9rem; }

/* group body */
.group-body{ padding:0.9rem 1rem; }

/* 컬럼 헤더 - grid 정렬 (데스크탑) */
.group-columns-header {
  display: grid;
  grid-template-columns: 110px 1fr 160px;
  gap: 1rem;
  padding: 0.75rem; /* row-card와 패딩 일치화 */
  margin-bottom: 0.6rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.65);
  color:#23304a;
  font-weight:700;
  border: 1px solid rgba(100,115,230,0.06);
  align-items: start; /* 헤더와 행을 위쪽 정렬로 통일해 라인 정렬 문제 해결 */
}
/* 헤더의 마지막 컬럼(다운로드 레이블)을 오른쪽 중앙 정렬 */
.group-columns-header > div:last-child {
  justify-self: end;
  display: flex;
  align-items: center;
}

/* 행 카드: grid로 정렬, 경계 진하게 */
.row-card {
  display: grid;
  grid-template-columns: 110px 1fr 160px;
  align-items: start; /* 설명(릴리즈 노트)이 여러 줄일 경우 헤더와 컬럼 라인이 맞도록 상단 정렬 */
  gap: 1rem;
  background: var(--surface);
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(100,115,230,0.10); /* 진한 경계선 */
  box-shadow: 0 6px 18px rgba(12,30,80,0.03);
  color: var(--text);
}

/* 버전 칸도 상단 정렬로 */
.row-ver{ font-weight:700; color:var(--c2); align-self: start; }

/* 릴리즈 노트: 줄바꿈 허용, 라인 간격 조정, 상단 정렬로 변경 */
.row-desc {
  white-space: normal;
  word-break: break-word;
  color:#07203a;
  line-height:1.35;
  font-size:0.96rem;
  max-height: calc(1.35rem * 6);
  overflow:auto;
  padding-right:0.25rem;
  align-self: start;
}

/* 액션 그룹(다운로드 버튼)은 각 행 높이에 맞춰 수직 가운데에 위치 */
.action-group { display:flex; gap:0.5rem; justify-content:flex-end; align-items:center; align-self: center; }

/* 다운로드 버튼 스타일 */
.btn-download {
  background: var(--accent-grad);
  color:#fff;
  border:none;
  padding:0.45rem 0.8rem;
  border-radius:8px;
  font-weight:700;
  box-shadow: 0 8px 22px rgba(101,134,240,0.12);
}
.btn-download i{ margin-right:6px; }
.btn-download:hover{ transform: translateY(-2px); }

/* 반응형: 모바일에서는 세로 스택 (모바일에선 위쪽 정렬 유지) */
@media (max-width: 991px) {
  .download-layout{ flex-direction:column; }
  .download-aside{ width:100%; order:2; }
  .download-main{ order:1; }
  .group-columns-header{ display:none; }
  .row-card{ grid-template-columns: 1fr; align-items: start; } /* 모바일에서는 설명 가독성을 위해 상단 정렬 */
  .action-group{ justify-content:flex-start; width:100%; }
}

/* 작은 세부 스타일 */
.kv { color:var(--muted); font-weight:700; font-size:0.90rem; }
.separator{ height:1px; background:rgba(100,115,230,0.05); margin:0.6rem 0; }

/* 접근성 포커스 */
a:focus, button:focus{ outline:3px solid rgba(101,134,240,0.14); outline-offset:2px; }

/* 유틸: empty state */
.empty-note{ text-align:center; padding:2rem; color:var(--muted); background:transparent; border-radius:8px; }

/* 기타 기존 유틸/호환성 유지 */
/* ...existing code... */
