/* ===============================
   기본 스타일 초기화
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
}

body {
  background-color: #fefbf3; /* 라이트 기본 배경 */
  color: #222;
  line-height: 1.6;
}

.a {
  color: #d96f35;
  text-decoration: none;
  font-weight: 500;
}
.a:hover {
  color: #ff7f50;
}

/* ===============================
   헤더 / 내비게이션
=============================== */
header {
  background-color: #f8e3b2;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .logo h1 {
  font-size: 1.8rem;
  color: #d96f35;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #d96f35;
}

/* ===============================
   메인 섹션 공통
=============================== */
main section {
  padding: 80px 50px;
}

/* ===============================
   홈 / 배너
=============================== */
#home {
  text-align: center;
  background-color: #fff8e1;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.hero-text {
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 25px 40px;
  border-radius: 12px;
  max-width: 80%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translate(-50%, 20px);
  animation: fadeInUp 1s forwards;
}

.hero-text h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}

.hero-text p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ===============================
   카드 스타일
=============================== */
.card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}
/* ===========================
   about.html 전용 라이트/다크 통합 스타일
=========================== */

/* 공통 구조 */
#about {
  padding: 60px 50px;
  text-align: center;
}

#about h2 {
  font-size: 2.4rem;
  margin-bottom: 25px;
}

.about-sub {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.about-block {
  border-radius: 12px;
  padding: 25px 20px;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.about-block h3 {
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.about-block ul {
  list-style: disc inside;
  font-size: 1.1rem;
}

.about-block ul li {
  margin-bottom: 8px;
}

/* -------- 라이트 테마 -------- */
body.light-mode #about {
  background-color: #fff8e1;
  color: #222;
}

body.light-mode .about-sub {
  color: #333;
}

body.light-mode .about-block {
  background-color: #fefbf3;
  color: #222;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

body.light-mode .about-block h3 {
  color: #d96f35;
}

body.light-mode .about-block ul li {
  color: #555;
}

/* -------- 다크 테마 -------- */
body.dark-mode #about {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body.dark-mode .about-sub {
  color: #ccc;
}

body.dark-mode .about-block {
  background-color: #2a2a2a;
  color: #f0f0f0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

body.dark-mode .about-block h3 {
  color: #ffcc66;
}

body.dark-mode .about-block ul li {
  color: #ddd;
}

/* -------- 반응형 -------- */
@media (max-width: 768px) {
  #about {
    padding: 50px 20px;
  }

  .about-block {
    padding: 20px 15px;
  }

  .about-block h3 {
    font-size: 1.4rem;
  }

  .about-block ul li {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #about {
    padding: 40px 15px;
  }

  .about-block h3 {
    font-size: 1.3rem;
  }

  .about-block ul li {
    font-size: 0.95rem;
  }
}
/* ===============================
   갤러리
=============================== */
#gallery h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

/* ===============================
   마인크래프트 서버
=============================== */
#server-info, #minecraft {
  background-color: #1e1e1e;
  color: #f0f0f0;
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

#server-info h2, #minecraft h2 {
  color: #ffcc00;
  margin-bottom: 12px;
}

#server-info ul {
  list-style: none;
  padding-left: 0;
}

#server-info ul li {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

#mc-status p {
  margin: 6px 0;
  font-size: 1rem;
}

#mc-status strong {
  color: #ffdd55;
}

#mc-status span {
  font-weight: bold;
}

#mc-status small {
  color: #999;
}

#mc-status p:nth-child(4) {
  font-style: italic;
  color: #a0e0ff;
}

/* ===============================
   푸터
=============================== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #f8e3b2;
  color: #555;
  margin-top: 40px;
}

/* ===============================
   다크 모드
=============================== */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #eee;
  }

  header {
    background-color: #1f1f1f;
  }

  header .logo h1 {
    color: #ffa500;
  }

  nav ul li a {
    color: #eee;
  }

  nav ul li a:hover {
    color: #ffb84d;
  }

  #home {
    background-color: #181818;
  }

  .hero-text {
    background: rgba(0,0,0,0.75);
    color: #fff;
  }

  .card {
    background-color: #1e1e1e;
    color: #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  }

  #server-info, #minecraft {
    background-color: #1e1e1e;
    color: #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  }

  #mc-status p:nth-child(4) {
    color: #88dfff;
  }

  footer {
    background-color: #1f1f1f;
    color: #ccc;
  }

  .gallery-item img {
    box-shadow: 0 3px 10px rgba(255,255,255,0.1);
  }

  .gallery-item img:hover {
    box-shadow: 0 5px 20px rgba(255,255,255,0.2);
  }
}

/* ===============================
   반응형
=============================== */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
  }

  header .logo h1 {
    font-size: 1.5rem;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  main section {
    padding: 60px 20px;
  }

  .hero img {
    max-height: 250px;
  }

  .hero-text {
    bottom: 10%;
    padding: 15px 20px;
  }

  .hero-text h2 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }

  header .logo h1 {
    font-size: 1.3rem;
  }

  nav ul li a {
    font-size: 0.9rem;
  }

  .hero img {
    max-height: 180px;
  }

  .hero-text {
    bottom: 8%;
    padding: 12px 15px;
  }

  .hero-text h2 {
    font-size: 1.4rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  main section {
    padding: 50px 15px;
  }
}
