/* RULES 페이지 전용 스타일 */

/* 내비게이션 스타일 */
.navbar {
  position: fixed;
  top: 0;
  z-index: 999;
  width: 100%;
  background-color: #000000;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.navbar li {
  margin-top: 4px;
}

.navbar li a {
  text-decoration: none;
  color: rgb(255, 200, 0);
  font-size: 24px;
}

.navbar li a:hover {
  color: white;
}

.navbar li a.active {
  color: white;
  font-weight: bold;
}

.navbar img {
  height: 40px;
  width: auto;
}

/* 컨테이너 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 히어로 섹션 */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 200, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 200, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 200, 0, 0.05) 0%, transparent 50%);
  animation: patternMove 20s ease-in-out infinite;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

@keyframes patternMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-10px, -10px) rotate(1deg); }
  50% { transform: translate(10px, -5px) rotate(-1deg); }
  75% { transform: translate(-5px, 10px) rotate(1deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 80px;
  color: rgb(255, 200, 0);
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(255, 200, 0, 0.5);
  letter-spacing: 3px;
}

@keyframes titleGlow {
  from { text-shadow: 0 0 30px rgba(255, 200, 0, 0.5); }
  to { text-shadow: 0 0 50px rgba(255, 200, 0, 0.8); }
}

.hero-subtitle {
  font-size: 40px;
  color: white;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  animation: subtitleSlide 1s ease-out 0.5s both;
}

@keyframes subtitleSlide {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-description {
  font-size: 24px;
  color: #ccc;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  margin-bottom: 50px;
  animation: descriptionFade 1s ease-out 1s both;
}

@keyframes descriptionFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 언어 전환 버튼 */
.language-toggle {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  animation: buttonAppear 1s ease-out 1.5s both;
}

@keyframes buttonAppear {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-btn {
  background: rgb(255, 200, 0);
  border: 2px solid rgb(255, 200, 0);
  color: black;
  padding: 15px 30px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lang-btn:hover {

  transform: translateY(-2px);
}

.lang-btn.active {
  background: rgb(255, 200, 0);
  color: #000;
}

/* 룰 섹션 */
.rules-section {
  background-color: #000000;
  padding: 100px 0;
  color: white;
}

.rules-content {
  max-width: 1000px;
  margin: 0 auto;
}

/* 룰 카테고리 */
.rule-category {
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.rule-category.visible {
  opacity: 1;
  transform: translateY(0);
}

.rule-title {
  text-align: center;
  font-size: 50px;
  color: rgb(255, 200, 0);
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.rule-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: rgb(255, 200, 0);
}

/* 룰 리스트 */
.rule-list {
  display: grid;
  gap: 30px;
}

/* 룰 아이템 */
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 200, 0, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.rule-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 200, 0, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 200, 0, 0.1);
}

.rule-number {
  background: rgb(255, 200, 0);
  color: #000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

.rule-text {
  flex: 1;
}

.rule-text h3 {
  font-size: 28px;
  color: rgb(255, 200, 0);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rule-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #ccc;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 50px;
  }
  
  .hero-subtitle {
    font-size: 24px;
  }
  
  .hero-description {
    font-size: 18px;
  }
  
  .rule-item {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .rule-number {
    align-self: center;
  }
  
  .rule-title {
    font-size: 36px;
  }
  
  .rule-text h3 {
    font-size: 24px;
  }
  
  .rule-text p {
    font-size: 16px;
  }
  
  .language-toggle {
    flex-direction: column;
    align-items: center;
  }
  
  .lang-btn {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .rule-item {
    padding: 20px;
  }
} 