:root {
  --primary-color: #6366f1;
  --bg-color: #f9fafb;
  --card-bg: #ffffff;
  --text-color: #1f2937;
  --border-color: #e5e7eb;
  --ad-color: #6b7280;
  --ad-bg-color: #f3f4f6;
}
/* 6b7280 */
body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 220px 20px 220px; /* Added padding for left sidebar */
  position: relative;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

header h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
}

a {
  text-decoration : none;
}

a:link,a:visited {
  color: black;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  opacity: 0.9;
}

.ad-banner {
  width: 100%;
  height: 90px;
  background-color: var(--ad-bg-color);
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--ad-color);
  font-size: 14px;
}

.ad-bottom {
  width: 100%;
  height: 90px;
  background-color: var(--ad-bg-color);
  border-radius: 8px;
  margin-top: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--ad-color);
  font-size: 14px;
}

.ad-banner-mobile {
  display: none;
}

.ad-banner-mobile-bottom {
  display: none;
}

.post-list {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.post-item {
    display: flex;
    padding: 5px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    align-items: center;
    }

.post-item:last-child {
  border-bottom: none;
}

.post-item:hover {
  background-color: #f9fafb;
}

.post-content {
  flex-grow: 1;
}

.post-title {
  max-width: 600px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-color);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.post-title:hover {
  color: var(--primary-color);
}

.post-meta {
  display: flex;
  font-size: 13px;
  color: #6b7280;
  gap: 12px;
}

.post-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #6b7280;
}

.stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-indicators {
  display: flex;
  align-items: center;
  margin-top: 6px;
  gap: 8px;
}

.post-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    margin-right: 16px;
    background-color: #e5e7eb;
    overflow: hidden;
    flex-shrink: 0;
}

    .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.indicator {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
  background-color: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
}

.right-sidebar-ad {
  position: fixed;
  right: 20px;
  top: 120px;
  width: 300px;
  height: 600px;
  background-color: var(--ad-bg-color);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--ad-color);
  font-size: 14px;
}

.left-sidebar-ad {
  position: fixed;
  left: 20px;
  top: 120px;
  width: 160px;
  height: 600px;
  background-color: var(--ad-bg-color);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--ad-color);
  font-size: 14px;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  gap: 8px;
}

.page-link {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
}

.page-link.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.search-box {
  position: relative;
  margin-right: 12px;
}

.search-input {
  padding: 8px 16px 8px 36px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 14px;
  width: 200px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

@media (max-width: 1200px) {
  .container {
    padding: 20px;
  }
  .right-sidebar-ad,
  .left-sidebar-ad {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  .search-box {
    display: none;
  }

  .ad-banner, .ad-bottom {
    display: none;
  }

  .ad-banner-mobile {
    width: 100%;
    height: 50px;
    background-color: var(--ad-bg-color);
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--ad-color);
    font-size: 14px;
  }

  .ad-banner-mobile-bottom {
    width: 100%;
    height: 50px;
    background-color: var(--ad-bg-color);
    border-radius: 8px;
    margin-top: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--ad-color);
    font-size: 14px;
  }
  
  .post-meta {
    gap: 4px;
  }

  .post-title {
    max-width: 200px;
  }
}