/* ==========================================
   1. 기본 배경 및 글꼴 설정
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
  background-color: #0f1923; /* 발로란트 다크 배경색 */
  color: #ece8e1;
}

/* ==========================================
   2. 상단 가로 메뉴바 (Header Navigation)
   ========================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111111;
  padding: 18px 8%;
  border-bottom: 2px solid #ff4655; /* 발로란트 레드 포인트 */
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: #ff4655;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: #ece8e1;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ff4655;
}

/* ==========================================
   3. 메인 컨텐츠 영역
   ========================================== */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  border-left: 4px solid #ff4655;
  padding-left: 12px;
  color: #ffffff;
}

/* ==========================================
   4. 카드 슬라이더 (최신 소식)
   ========================================== */
.slider-section {
  margin-bottom: 50px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border: 1px solid #2a3540;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 25, 35, 0.95) 0%, rgba(15, 25, 35, 0.3) 70%, rgba(15, 25, 35, 0.1) 100%);
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.badge {
  background-color: #ff4655;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.card-content h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
  line-height: 1.2;
}

.card-content p {
  color: #c7c8c9;
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================
   5. 스킨 정보 섹션 (텍스트 중심 카드)
   ========================================== */
.skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skin-card {
  background-color: #17212b;
  border: 1px solid #2a3540;
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.skin-card:hover {
  transform: translateY(-5px);
  border-color: #ff4655;
}

.skin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.skin-tier {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  color: #fff;
}

/* 스킨 등급별 색상 */
.skin-tier.ultra { background-color: #f59e0b; }
.skin-tier.exclusive { background-color: #d946ef; }
.skin-tier.premium { background-color: #3b82f6; }

.skin-price {
  font-size: 14px;
  font-weight: 700;
  color: #ff4655;
}

.skin-card h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 6px;
}

.skin-weapon {
  font-size: 13px;
  color: #ff4655;
  font-weight: 600;
  margin-bottom: 12px;
}

.skin-desc {
  font-size: 14px;
  color: #a3a3a3;
  line-height: 1.5;
}

/* ==========================================
   6. 하단 푸터 (Footer)
   ========================================== */
.footer {
  background-color: #0b1118;
  border-top: 1px solid #2a3540;
  padding: 30px 20px;
  margin-top: 60px;
  text-align: center;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.creator-info {
  font-size: 15px;
  color: #ece8e1;
  margin-bottom: 8px;
}

.creator-info strong {
  color: #ff4655;
}

.copyright {
  font-size: 13px;
  color: #7e8c9b;
}
/* ==========================================
   7. 게임 팁 & 가이드 페이지 전용 스타일
   ========================================== */
.section-desc {
  color: #a3a3a3;
  font-size: 15px;
  margin-top: -10px;
  margin-bottom: 30px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* 화면이 넓으면 2열, 좁으면 1열 */
  gap: 20px;
}

.tip-card {
  background-color: #17212b;
  border: 1px solid #2a3540;
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-5px);
  border-color: #ff4655;
}

.tip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tip-number {
  font-size: 13px;
  font-weight: 800;
  color: #ff4655;
  letter-spacing: 1px;
}

.tip-tag {
  background-color: #2a3540;
  color: #ece8e1;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.tip-card h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 10px;
}

.tip-card p {
  font-size: 14px;
  color: #c7c8c9;
  line-height: 1.6;
}

/* 모바일 화면 대응 */
@media (max-width: 600px) {
  .tips-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================
   8. 요원 공략 페이지 전용 스타일
   ========================================== */
  
.filter-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: #17212b;
  color: #ece8e1;
  border: 1px solid #2a3540;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #ff4655;
  border-color: #ff4655;
  color: #ffffff;
}

/* 요원 그리드 시스템 */
.agents-grid, .agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

/* 요원 카드 기본 디자인 */
.agent-card {
  background-color: #18222b;
  border: 1px solid #2a3540;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 카드 상단 포인트 테두리 선 */
.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.agent-card.duelist::before { background-color: #ff4655; }
.agent-card.initiator::before { background-color: #e2b714; }
.agent-card.controller::before { background-color: #00aeef; }
.agent-card.sentinel::before { background-color: #00cca3; }

.agent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border-color: #ff4655;
}

/* 요원 카드 상단 헤더 영역 */
.agent-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* 선명한 작은 네모 역할군 뱃지 */
.agent-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
  color: #ffffff;
}

.agent-role.duelist { background-color: #ff4655; }
.agent-role.initiator { background-color: #c9a006; }
.agent-role.controller { background-color: #0088cc; }
.agent-role.sentinel { background-color: #00a884; }

.agent-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.agent-card p {
  font-size: 0.85rem;
  color: #a3b2c2;
  margin-bottom: 15px;
  line-height: 1.4;
  flex-grow: 1;
}

/* 맵 그리드 & 카드 스타일 */
.maps-grid, .map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.map-card {
  background-color: #18222b;
  border: 1px solid #2a3540;
  border-radius: 8px;
  padding: 20px;
}

.map-card h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 10px;
  border-bottom: 1px solid #2a3540;
  padding-bottom: 8px;
}

.map-card p {
  font-size: 0.85rem;
  color: #a3b2c2;
  margin-bottom: 8px;
  line-height: 1.5;
}

.map-card strong {
  color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================
   9. 발로란트 소식 페이지 전용 스타일
   ========================================== */
.news-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}




.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.news-card {
  background-color: #17212b;
  border: 1px solid #2a3540;
  border-radius: 8px;
  padding: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: #ff4655;
}

.news-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: #ffffff;
  margin-bottom: 8px;
}

.news-badge.patch { background-color: #ff4655; }
.news-badge.esports { background-color: #3b82f6; }
.news-badge.event { background-color: #10b981; }

.news-date {
  font-size: 12px;
  color: #7e8b9b;
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card p {
  font-size: 13px;
  color: #a3a3a3;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 15px;
}

.read-more {
  font-size: 12px;
  font-weight: 700;
  color: #ff4655;
}

/* 모달 (팝업창) 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #17212b;
  border: 1px solid #2a3540;
  border-radius: 10px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #7e8b9b;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #ff4655;
}

.modal-divider {
  border: 0;
  height: 1px;
  background-color: #2a3540;
  margin: 15px 0;
}

.modal-body-text {
  color: #ece8e1;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .news-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box input {
    width: 100%;
  }
}

/* ==========================================
   10. 요원 역할군 설명 상자 스타일
   ========================================== */
.role-guide-box {
  background-color: #111a24;
  border: 1px solid #2a3540;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-info p {
  font-size: 13px;
  color: #c7c8c9;
  line-height: 1.4;
}

.role-info p strong {
  color: #ffffff;
}

@media (max-width: 600px) {
  .role-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
/* ==========================================
   11. 게임 팁 모달 & 카드 스타일 추가
   ========================================== */
.tip-card {
  cursor: pointer; /* 마우스를 올리면 손가락 모양 표시 */
}

.tip-card .read-more {
  display: inline-block;
  margin-top: 15px;
  font-size: 13px;
  font-weight: 700;
  color: #ff4655;
  transition: transform 0.2s ease;
}

.tip-card:hover .read-more {
  transform: translateX(5px);
}
/* ==========================================
   소식 카드 & 모달 팝업 이미지 스타일
   ========================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.news-card {
  background-color: #17212b;
  border: 1px solid #2a3540;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: #ff4655;
  box-shadow: 0 8px 20px rgba(255, 70, 85, 0.2);
}

.card-img-box {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .card-img-box img {
  transform: scale(1.05);
}

.card-body-box {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: #ffffff;
  margin-bottom: 8px;
}

.news-badge.patch { background-color: #ff4655; }
.news-badge.esports { background-color: #3b82f6; }
.news-badge.event { background-color: #10b981; }

.news-date {
  font-size: 12px;
  color: #7e8b9b;
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card p {
  font-size: 13px;
  color: #a3a3a3;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 15px;
}

.read-more {
  font-size: 12px;
  font-weight: 700;
  color: #ff4655;
}

/* 모달 (팝업창) 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #17212b;
  border: 1px solid #2a3540;
  border-radius: 10px;
  padding: 25px;
  width: 90%;
  max-width: 550px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.modal-img-box {
  width: 100%;
  height: 200px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 15px;
}

.modal-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: #ffffff;
  cursor: pointer;
  z-index: 10;
}

.close-btn:hover {
  color: #ff4655;
}

.modal-divider {
  border: 0;
  height: 1px;
  background-color: #2a3540;
  margin: 15px 0;
}

.modal-body-text {
  color: #ece8e1;
  font-size: 14px;
  line-height: 1.7;
}
/* ==========================================
   모달 (팝업창) 정중앙배치 보정 스타일
   ========================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 9999;
  
  /* 화면 정중앙 정렬 속성 */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #17212b;
  border: 1px solid #ff4655;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  margin: 0 !important; /* 이전의 위치 치우침(margin) 초기화 */
}