/* 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: #405d79;
  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: #567ca0;
  text-decoration: none;
  background-color: #355777;
  padding: 6px 18px;
  border-radius: 14px;
  border: 3px solid #567ca0;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 10px rgba(86, 124, 173, 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: #446481;
  color: #2b445c;
  box-shadow: 0 6px 12px rgba(86, 124, 173, 0.5);
  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: 1rem;
  color: #f5f5f5;
  cursor: pointer;
  background-color: #3a3b40;
  border-radius: 6px;
}

.select-selected {
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
}

.select-selected:after {
  content: "▼";
  float: right;
  margin-left: 8px;
  font-size: 0.7rem;
  line-height: 1rem;
  color: #ccc;
}

.select-items {
  position: absolute;
  background-color: #3a3b40;
  top: 100%;
  left: 0;
  right: 0;
  border-radius: 0 0 6px 6px;
  max-height: 150px;
  overflow-y: auto;
  z-index: 99;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  margin-top: 0.1rem;
  padding: 0;
  list-style: none;
}

.select-items li {
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.select-items li:hover {
  background-color: #4b4c52;
}

.select-hide {
  display: none;
}

.same-as-selected {
  background-color: #4b4c52;
}


/* Main */

/* 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;
  margin-bottom: 800px;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

p {
  font-size: 1.2rem;
  color: #b0b0b0;
}

/* Footer */

/* 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;
  }

}






