body{
  background:#0b0f1a;
  color:white;
  font-family:Arial;
  margin:0;
  padding:20px;
}

.title{
  text-align:center;
  margin-bottom:20px;
  font-size:32px;
  color:#ff4655;
}

.filter-bar{
  display:flex;
  justify-content:space-between;
  margin-bottom:20px;
}

.weapon-filter button{
  margin-right:6px;
  padding:8px 12px;
  background:#222;
  border:1px solid #ff4655;
  color:white;
  cursor:pointer;
}

.weapon-filter button:hover{
  background:#ff4655;
}

#sortSelect{
  padding:8px;
  background:#222;
  color:white;
  border:1px solid #ff4655;
}

/* === GRID === */
.skin-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:8px;

  /* CLS 방지용 높이 확보 */
  min-height:1200px;
}

/* === CARD === */
.skin-card{
  background:#111;
  border-radius:16px;
  padding:10px;
  text-align:center;
  cursor:pointer;
  transition:0.2s;
  border:2px solid transparent;

  /* CLS 방지 */
  height:250px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.skin-card:hover{
  transform:scale(1.05);
  border-color:#ff4655;
}
.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* 이미지 레이아웃 고정 */
.skin-card img{
  width:100%;
  height:240px;        /* 카드 안에서 고정 높이 */
  object-fit:contain;   /* 빈 공간 없이 꽉 채움 */
  border-radius:6px;
}

/* 텍스트 */
.skin-name{
  margin-top:3px;
  font-size:14px;
}

.skin-rating{
  font-size:13px;
  color:#ffc107;
}

/* 햄버거 버튼 */
.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1001;
}

.hamburger span {
  height: 4px;
  background: white;
  border-radius: 2px;
}

/* 사이드 메뉴 */


.sidebar.active {
  left: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  color: #fa6471;
  font-weight: bold;
  padding: 12px 0;
  border-bottom: 1px solid #444;
  font-size: 13px;
}
  
.sidebar-menu {
  position: fixed;
  top: 0;
  left: -100%; /* 시작 시 숨김 */
  width: 250px;
  height: 100vh;
  background-color: #111;
  color: white;
  overflow-y: auto;
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 999;
  border-right: 1px solid #2c2c52;
}

.sidebar-menu.show {
  left: 0;
}

.sidebar-menu ul {
  list-style: none;
  padding: 0;
}
.sidebar-menu li.main-category {
  color: #fa6471;
  font-weight: bold;
  padding: 15px 0;
  border-bottom: 1px solid #444;
  list-style: disc;
  list-style-position: inside;
  font-size: 15px;
}

.sidebar-menu a {
  color: white;
  font-size: 15px;
  text-decoration: none;
}

.sidebar-menu a:hover {
  color: #00ffcc;
}
footer.copyright {
  text-align: center;
  padding: 50px 20;
  margin-top: 40px;
  color: #aaa;
  font-size: 12px;

 
  
}

/* === 로딩 스켈레톤 === */
.skeleton{
  background:linear-gradient(90deg,#111,#1a1a1a,#111);
  animation:shimmer 1.4s infinite;
}

@keyframes shimmer{
  0%{background-position:-200px 0}
  100%{background-position:200px 0}
}

/* === FOOTER === */
footer.copyright {
  text-align: center;
  padding: 50px 20px;
  margin-top: 40px;
  color: #aaa;
  font-size: 12px;
}

/* ===== 반응형 ===== */

/* PC */
#skinGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* 태블릿 */
@media (max-width: 1024px) {
  #skinGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 모바일 */
@media (max-width: 768px) {
  #skinGrid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
 .skin-card img{
    height:160px;      /* 모바일에 맞게 줄임 */
    object-fit:contain; /* PC와 동일 */
  }
  .weapon-filter button {
    font-size: 12px;
    padding: 6px 8px;
    margin: 3px;
    border-radius: 6px;
  }
.skin-card{
    height:160px;      /* 모바일은 자동 높이 */
  }
  #sortSelect {
    font-size: 12px;
    padding: 6px 8px;
    height: 32px;
  }

  .filter-bar, 
  .weapon-filter {
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }

  .weapon-filter button,
  #sortSelect {
    white-space: nowrap;
  }
}



