/* 전체 리셋 및 기본 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* 헤더 영역 */
.header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background-color: #2AABEE;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.telegram-icon:before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 12px;
  background-color: white;
  clip-path: polygon(0 0, 100% 35%, 80% 100%, 70% 65%, 0 100%);
}

.top-nav ul {
  display: flex;
}

.top-nav li {
  margin-left: 15px;
}

.top-nav a:hover {
  color: #b82f3d;
}

/* 메인 타이틀 */
.main-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.main-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  text-align: center;
}

.date-time {
  font-size: 0.9rem;
  text-align: right;
  color: #666;
}

/* 배너 영역 */
.banner-container {
  margin: 20px 0;
}

.banner-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.banner-item {
  flex: 1;
  margin: 0 5px;
  text-align: center;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s;
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.banner-item:hover {
  transform: translateY(-5px);
}

.banner-content {
  z-index: 1;
  padding: 10px;
}

.banner-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.banner-content p {
  font-size: 0.9rem;
}

.banner-red {
  background: linear-gradient(135deg, #b82f3d, #ff4757);
}

.banner-blue {
  background: linear-gradient(135deg, #1e90ff, #0066cc);
}

.banner-green {
  background: linear-gradient(135deg, #40b49f, #2e8b57);
}

.banner-purple {
  background: linear-gradient(135deg, #9370db, #6a0dad);
}

.banner-orange {
  background: linear-gradient(135deg, #ff9f43, #ee5a24);
}

.banner-yellow {
  background: linear-gradient(135deg, #ffd700, #ff9f1a);
}

.banner-teal {
  background: linear-gradient(135deg, #20b2aa, #008080);
}

.banner-pink {
  background: linear-gradient(135deg, #ff6b95, #ff0066);
}

.banner-brown {
  background: linear-gradient(135deg, #a0522d, #8b4513);
}

.banner-gray {
  background: linear-gradient(135deg, #778ca3, #4b6584);
}

/* 먹튀사이트 조회 */
.mukti-search {
  background-color: #fff;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mukti-search h2 {
  color: #ff6b95;
  font-size: 1.5rem;
}

/* SNS 링크 */
.sns-links {
  background-color: #fff;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo-icon {
  width: 30px;
  height: 30px;
  background-color: #b82f3d;
  border-radius: 5px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.site-icon-text {
  line-height: 1;
}

.sns-icons {
  display: flex;
  flex-wrap: wrap;
}

.sns-icon {
  display: flex;
  align-items: center;
  margin: 0 10px;
  font-size: 0.9rem;
}

.sns-icon img {
  height: 20px;
  margin-right: 5px;
}

/* 카테고리 영역 */
.category-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.category {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-title {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
}

.badge {
  background-color: #ff4757;
  color: #fff;
  padding: 2px 8px;
  border-radius: 50%;
  font-size: 0.8rem;
  margin-right: 10px;
}

.category-icon {
  height: 25px;
  margin-right: 10px;
}

.category-title h3 {
  flex-grow: 1;
  font-size: 1.2rem;
}

.click-icon {
  height: 20px;
}

.site-list {
  padding: 10px;
}

.site-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s;
}

.site-item:hover {
  background-color: #f9f9f9;
}

.site-item.hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.banner-item.flash {
  animation: flash-glow 0.3s;
}

@keyframes flash-glow {
  0% { box-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 24px 8px rgba(255,215,0,0.6); }
  100% { box-shadow: 0 0 0 rgba(255,255,255,0); }
}

.rank-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  background-color: #ddd;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 0.8rem;
  font-weight: bold;
}

.rank1 .rank-icon {
  background-color: #ffd700;
  color: #fff;
}

.rank2 .rank-icon {
  background-color: #c0c0c0;
  color: #fff;
}

.rank3 .rank-icon {
  background-color: #cd7f32;
  color: #fff;
}

.site-name {
  font-size: 0.95rem;
}

/* 푸터 영역 */
footer {
  margin-top: 50px;
  padding: 20px 0;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
  }

  .top-nav {
    margin-top: 10px;
  }

  .top-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-title {
    flex-direction: column;
  }

  .banner-row {
    flex-direction: column;
  }

  .banner-item {
    margin-bottom: 10px;
  }

  .sns-links {
    flex-direction: column;
  }

  .sns-icons {
    margin-top: 10px;
    justify-content: center;
  }

  .category-container {
    grid-template-columns: 1fr;
  }
}
