/* /public/css/mygun2.css */
/* 대시보드 탭 전용: .mygun2-wrap 아래로만 스타일 적용 (다크 럭셔리 톤) */

:root{
  --mygun2-bg: #0b0c10;
  --mygun2-panel: #12141a;
  --mygun2-panel2: #161a22;
  --mygun2-line: rgba(255,255,255,0.10);
  --mygun2-line2: rgba(255,255,255,0.14);

  --mygun2-text: #eef0f6;
  --mygun2-muted: rgba(238,240,246,0.62);

  --mygun2-accent: #ff3b3b;
  --mygun2-accent2: #ffb4b4;

  --mygun2-chip: rgba(255,255,255,0.07);
  --mygun2-chipHover: rgba(255,255,255,0.11);
  --mygun2-chipActive: rgba(255,255,255,0.18);

  --mygun2-shadow: 0 18px 45px rgba(0,0,0,0.55);
  --mygun2-shadow2: 0 10px 24px rgba(0,0,0,0.45);
}

.mygun2-wrap{
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 14px 26px;

  color: var(--mygun2-text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;

  /* ✅ 핵심: 탭 영역 자체를 다크 패널로 만든다 (대시보드 라이트 테마에서도 선명) */
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(900px 520px at 80% 10%, rgba(255,59,59,0.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 55%),
    var(--mygun2-bg);
  box-shadow: var(--mygun2-shadow);
}

/* 상단 바 */
.mygun2-wrap .mygun2-topbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;

  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: var(--mygun2-shadow2);
}

.mygun2-wrap .mygun2-title{
  font-weight: 950;
  letter-spacing: 0.2px;
  font-size: 16px;
}

.mygun2-wrap .mygun2-sub{
  font-weight: 650;
  color: rgba(238,240,246,0.70);
  font-size: 12px;
}

/* 세트 탭 */
.mygun2-wrap .set-tabs{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.mygun2-wrap .set-tab{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.10);
  background: var(--mygun2-chip);
  color: rgba(238,240,246,0.90);

  padding: 8px 12px;
  border-radius: 999px;

  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.mygun2-wrap .set-tab:hover{
  transform: translateY(-1px);
  background: var(--mygun2-chipHover);
  border-color: rgba(255,255,255,0.18);
}

.mygun2-wrap .set-tab.active{
  background: linear-gradient(180deg, rgba(255,59,59,0.18), rgba(255,255,255,0.14));
  border-color: rgba(255,59,59,0.45);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.mygun2-wrap .section-title{
  margin: 18px 2px 12px;
  font-size: 18px;
  font-weight: 950;
  color: var(--mygun2-accent);
  letter-spacing: 0.1px;
  text-shadow: 0 6px 14px rgba(0,0,0,0.45);
}

.mygun2-wrap .empty-box{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(18,20,26,0.9);
  border-radius: 14px;
  padding: 14px 14px;
  color: var(--mygun2-muted);
}

/* 무기 그리드 */
.mygun2-wrap .weapon-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mygun2-wrap .weapon-card{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--mygun2-panel);
  overflow: hidden;
  box-shadow: var(--mygun2-shadow2);
}

.mygun2-wrap .weapon-frame{
  height: 168px;
  display:flex;
  align-items:center;
  justify-content:center;

  background:
    radial-gradient(600px 220px at 50% 0%, rgba(255,255,255,0.06), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.00));
  border-bottom: 1px solid rgba(255,255,255,0.09);
  position: relative;
}

.mygun2-wrap .weapon-frame img{
  max-width: 92%;
  max-height: 125px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.55));
}

/* 이미지 없을 때 표시 */
.mygun2-wrap .weapon-placeholder{
  position:absolute;
  inset: 0;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 5px;

  opacity: 0;
  color: rgba(238,240,246,0.68);
}
.mygun2-wrap .weapon-frame.img-missing .weapon-placeholder{
  opacity: 1;
}

.mygun2-wrap .ph-title{
  font-weight: 950;
  letter-spacing: 0.2px;
  color: rgba(238,240,246,0.80);
}
.mygun2-wrap .ph-sub{
  font-size: 12px;
  color: rgba(238,240,246,0.55);
}

.mygun2-wrap .weapon-caption{
  padding: 12px 12px 14px;
  font-size: 13px;
  color: rgba(238,240,246,0.82);
  text-align:center;
  line-height: 1.35;
}

/* 세트효과 테이블 */
.mygun2-wrap .effects-table{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--mygun2-panel);
  box-shadow: var(--mygun2-shadow2);
}

/* ✅ 보상(이미지) 컬럼을 넓힘: 220px -> 300px */
.mygun2-wrap .effects-head,
.mygun2-wrap .effects-row{
  display:grid;
  grid-template-columns: 140px 300px 1fr;
}

.mygun2-wrap .effects-head{
  background: rgba(255,255,255,0.07);
  font-weight: 950;
  color: rgba(238,240,246,0.92);
}
.mygun2-wrap .effects-head > div{
  padding: 12px 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.mygun2-wrap .effects-head > div:last-child{ border-right: none; }

.mygun2-wrap .effects-row{
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mygun2-wrap .effects-row > div{
  padding: 12px 12px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.mygun2-wrap .effects-row > div:last-child{ border-right:none; }

.mygun2-wrap .col-set{
  font-weight: 950;
  color: rgba(238,240,246,0.92);
}

.mygun2-wrap .reward-box{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 10px;
}

/* ✅ 핵심: 무기 PNG는 가로로 길어서 정사각형에서 너무 작아짐
   -> 가로형 카드로 변경 + 대비/테두리/그림자 강화 */
.mygun2-wrap .reward-img{
  width: 196px;
  height: 104px;
  padding: 10px;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);

  background:
    radial-gradient(140px 90px at 30% 20%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(180px 110px at 80% 30%, rgba(255,59,59,0.12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));

  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
  overflow:hidden;

  box-shadow:
    0 14px 28px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.06);

  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.mygun2-wrap .reward-img img{
  width: 100%;
  height: 100%;
  object-fit: contain;

  /* ✅ 어두운 무기 이미지가 배경에 묻히는 문제 해결 */
  filter:
    drop-shadow(0 14px 18px rgba(0,0,0,0.70))
    brightness(1.18)
    contrast(1.14)
    saturate(1.08);
}

/* 행에 마우스 올리면 보상 이미지가 살짝 튀어나오게 */
.mygun2-wrap .effects-row:hover .reward-img{
  transform: translateY(-1px);
  border-color: rgba(255,59,59,0.35);
  box-shadow:
    0 18px 34px rgba(0,0,0,0.62),
    inset 0 0 0 1px rgba(255,59,59,0.14);
}

.mygun2-wrap .reward-ph{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  color: rgba(238,240,246,0.62);
  opacity: 0;
}
.mygun2-wrap .reward-img.img-missing .reward-ph{
  opacity: 1;
}

.mygun2-wrap .reward-name{
  font-size: 12px;
  font-weight: 900;
  color: rgba(238,240,246,0.78);
  text-align:center;
}

.mygun2-wrap .col-feat ul{
  margin: 0;
  padding-left: 18px;
  color: rgba(238,240,246,0.84);
}
.mygun2-wrap .col-feat li{
  margin: 4px 0;
  line-height: 1.35;
}

.mygun2-wrap .foot-note{
  margin-top: 12px;
  color: var(--mygun2-muted);
  font-size: 12px;
}

/* 반응형 */
@media (max-width: 860px){
  .mygun2-wrap .weapon-grid{ grid-template-columns: 1fr; }

  /* ✅ 모바일에서도 보상 컬럼이 너무 찌그러지지 않게 */
  .mygun2-wrap .effects-head, .mygun2-wrap .effects-row{
    grid-template-columns: 120px 260px 1fr;
  }

  .mygun2-wrap .reward-img{
    width: 178px;
    height: 98px;
  }
}

@media (max-width: 640px){
  .mygun2-wrap{ padding: 14px 10px 22px; }
  .mygun2-wrap .effects-head, .mygun2-wrap .effects-row{ grid-template-columns: 1fr; }
  .mygun2-wrap .effects-head > div,
  .mygun2-wrap .effects-row > div{
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .mygun2-wrap .effects-head > div:first-child{ border-top:none; }

  /* ✅ 스택 구조에서 보상 이미지는 너무 크지 않게만 */
  .mygun2-wrap .reward-img{
    width: min(100%, 320px);
    height: 112px;
  }
}
