/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;     /* IE/Edge */
  user-select: none; 
}

body {
  background-color: #2b5f33;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #30363d;
  position: fixed;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.logo {
  text-decoration: none;
  color: #58a6ff;
  font-size: 1.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #79c0ff;
}





.back-button {
  position: absolute;
  top: 105px; /* 로고 바로 아래 */
  left: 20px;
  font-weight: 900;
  font-size: 28px;
  color: #427542;
  text-decoration: none;
  background-color: #305e30;
  padding: 6px 18px;
  border-radius: 14px;
  border: 3px solid #488548;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 10px rgba(98, 171, 82, 0.5);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-button:hover {
  background-color: #3e773e;
  color: #305e30;
  box-shadow: 0 6px 12px rgba(98, 171, 82, 0.8);
  transform: translateX(-4px);
}





.controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 커스텀 셀렉트 박스 */
.custom-select {
  position: relative;
  user-select: none;
  width: 110px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #f0f6fc;
  cursor: pointer;
  background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
  border-radius: 8px;
  border: 1px solid #30363d;
  transition: all 0.3s ease;
}

.custom-select:hover {
  border-color: #58a6ff;
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.1);
}

.select-selected {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.select-selected:after {
  content: "▼";
  font-size: 0.7rem;
  color: #8b949e;
  transition: transform 0.3s ease;
}

.custom-select:hover .select-selected:after {
  transform: translateY(-1px);
}

.select-items {
  position: absolute;
  background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
  top: 100%;
  left: 0;
  right: 0;
  border-radius: 0 0 8px 8px;
  max-height: 150px;
  overflow-y: auto;
  z-index: 99;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid #30363d;
  border-top: none;
  margin-top: 0;
  padding: 0;
  list-style: none;
}

.select-items li {
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.select-items li:hover {
  background-color: #30363d;
  border-left-color: #58a6ff;
}

.select-hide {
  display: none;
}

.same-as-selected {
  background-color: #30363d;
  border-left-color: #58a6ff;
}


/* Main */
main {
  flex: 1;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.hero {
  margin-top: 400px;
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

p {
  font-size: 1.2rem;
  color: #b0b0b0;
}



.add-bot {
  margin-top: 400px;
  padding: 1rem 1.7rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: #345a34;
  color: #fff;
  border: 2px solid #4c8d4c;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-bot:hover {
  background-color: #3d6d3d;
  transform: translateY(-2px);
}

.help-toggle {
  margin-top: 100px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: #426c42;
  color: #fff;
  border: 2px solid #5ca15c;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.help-toggle:hover {
  background-color: #4e844e;
  transform: translateY(-2px);
}

.help-content {
  margin-top: 1rem;
  background-color: #1e2c1e;
  padding: 0 1.5rem;
  border-radius: 12px;
  border: 1px solid #375437;
  max-width: 600px;
  width: 100%;
  text-align: left;

  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.help-content.open {
  padding: 1rem 1.5rem;
  max-height: 1000px; /* 충분히 큰 값 */
}

.help-content h2 {
  font-size: 1.3rem;
  color: #b6ffb6;
  margin-bottom: 0.8rem;
}

.help-content ul {
  padding-left: 1rem;
}

.help-content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: #d4d4d4;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}






/* 통계 섹션 스타일 */
.stats-section {
  margin-top: 2rem;
  background-color: #1e2c1e;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #375437;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.stats-section h2 {
  font-size: 1.4rem;
  color: #b6ffb6;
  margin-bottom: 1rem;
  text-align: center;
}

.stats-summary {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(35, 45, 35, 0.8);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #4a6b4a;
  min-width: 150px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #b0b0b0;
  margin-bottom: 0.5rem;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4ade80;
}

.stat-value.removed {
  color: #f87171;
}

.chart-container {
  position: relative;
  height: 400px;
  background: rgba(35, 45, 35, 0.5);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #4a6b4a;
}







/* Footer */
footer {
  background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
  padding: 3rem 2rem 2rem;
  display: flex;
  justify-content: center;
  gap: 4rem;
  border-top: 1px solid #30363d;
  color: #8b949e;
  flex-wrap: wrap;

  /* 이 줄 추가 */
  position: relative;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 150px;
}

.footer-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f0f6fc;
  border-bottom: 2px solid #58a6ff;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  font-weight: 500;
}

.footer-section ul li {
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.footer-section ul li:hover {
  color: #f0f6fc;
}

.footer-section.discord a {
  text-decoration: none;
  color: #7c3aed;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #3b3546;
  display: inline-block;
  text-align: center;
}

.footer-section.discord a:hover {
  background-color: #7c3aed;
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-section.reserved p {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 12px;
  color: #8b949e;
}



/* 1. 모바일 반응형 */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .controls {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.5rem;
    gap: 0.5rem;
  }

  main {
    padding: 2rem 1rem;
  }

  .bot-list {
    flex-direction: column;
    gap: 1rem;
  }

  footer {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .footer-section {
    min-width: auto;
    width: 100%;
  }

  .custom-select {
    width: 100%;
  }

  .login-btn {
    flex: 1;
    padding: 0.6rem 0;
  }

  .stats-summary {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-card {
    width: 100%;
    max-width: 200px;
  }
  
  .chart-container {
    height: 300px;
    padding: 0.5rem;
  }

}



