body {
  background-color: #2d2d2d;
  color: #d3d3d3;
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  padding: 0;
}

h1, h2, h3 {
  color: #e0e0e0;
  margin-top: 0;
}

a {
  color: #87ceeb;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  text-decoration: none;
  color: #add8e6;
}

.site-header {
  background-color: #1c1c1c;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.site-header h1 {
  font-size: 2.2rem;
  margin: 0;
  letter-spacing: 1px;
}

.site-tagline {
  color: #888;
  margin: 5px 0 0;
  font-style: italic;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.category-card {
  background-color: #3c3c3c;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.category-title {
  background-color: #1e1e1e;
  color: #fff;
  padding: 15px;
  margin: 0;
  border-bottom: 3px solid #4a4a4a;
  font-size: 1.3rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon {
  margin-right: 10px;
  font-size: 1.4rem;
}

.subcategory-list {
  padding: 10px;
}

.subcategory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  margin: 5px 0;
  background-color: #333;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.subcategory-link:hover .subcategory-item {
  background-color: #444;
}

.subcategory-arrow {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.subcategory-link:hover .subcategory-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.subcategory-header {
  background-color: #1c1c1c;
  padding: 15px 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.subcategory-header h1 {
  font-size: 1.8rem;
  margin: 10px 0 0;
}

.breadcrumb {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.breadcrumb a {
  color: #87ceeb;
}

.breadcrumb .current {
  color: #d3d3d3;
  font-weight: bold;
}

.sorting-controls {
  display: flex;
  align-items: center;
  background-color: #333;
  padding: 10px 20px;
  margin: 0 auto 20px;
  border-radius: 5px;
  max-width: 900px;
}

.sort-label {
  font-weight: bold;
  margin-right: 15px;
  color: #aaa;
}

.sort-options {
  display: flex;
  gap: 15px;
}

.sort-option {
  color: #87ceeb;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sort-option:hover {
  background-color: #444;
}

.sort-option.active {
  background-color: #1e1e1e;
  color: #fff;
  font-weight: bold;
}

.thread-list-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.thread-card {
  display: block;
  background-color: #3c3c3c;
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.thread-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background-color: #444;
}

.thread-title {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: #e0e0e0;
  border-bottom: 1px solid #4a4a4a;
  padding-bottom: 8px;
}

.thread-preview {
  margin-bottom: 15px;
}

.preview-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.preview-author {
  font-weight: bold;
  color: #f0f0f0;
}

.preview-date {
  color: #888;
}

.preview-content {
  color: #c0c0c0;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-left: 0;
  padding-left: 10px;
  border-left: 2px solid #4a4a4a;
}

.thread-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #4a4a4a;
  padding-top: 8px;
}

.reply-count {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 2px 8px;
  font-weight: bold;
}

.thread-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.thread {
  background-color: #3c3c3c;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.post {
  margin: 15px 0;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.post-op {
  background-color: #2a2a2a;
  border-left: 3px solid #87ceeb;
}

.post-reply {
  margin-top: 15px;
  margin-bottom: 15px;
}

.post-even {
  background-color: #333333;
}

.post-odd {
  background-color: #3a3a3a;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #4a4a4a;
}

.user-op {
  color: #87ceeb;
  font-size: 1.05em;
}

.timestamp {
  color: #888;
  font-size: 0.9em;
}

.post-content {
  margin-left: 0;
  line-height: 1.6;
}

strong {
  color: #f0f0f0;
}

.site-footer {
  background-color: #1c1c1c;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  color: #888;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .site-header h1 {
    font-size: 1.8rem;
  }
  
  .category-icon {
    font-size: 1.2rem;
  }
  
  .thread-title {
    font-size: 1.2rem;
  }
  
  .thread-card {
    padding: 12px;
  }
  
  .thread-stats {
    flex-direction: column;
    gap: 5px;
  }
  
  .sorting-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sort-label {
    margin-bottom: 8px;
  }
  
  .sort-options {
    width: 100%;
    justify-content: space-between;
  }
}
