@charset "utf-8";

.container { width: 100%; max-width: 100%; margin: 45px auto 0; padding: 0 1rem; background: #f5f5f5; min-height: 100vh; border-radius: 6px; box-shadow: 0 0 5px rgba(0,0,0,0.1); overflow: hidden; }

.list-write { width: 100%; font-size: 1.5rem; margin-bottom: 1rem; text-align: center; }


.search-form-board { display: flex; flex-direction: row; width: 100%; gap: 2%; margin: 0 auto 1rem; }

.search-input { width: 60%; padding: 0.5rem; font-size: 1rem; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; }

.search-category{ width: 27%; padding: 0.5rem; font-size: 1rem; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; }

.search-button { width: 12%; padding: 0.5rem; font-size: 1rem; background: #28a745; color: #fff; border: none; border-radius: 4px; cursor: pointer; text-align: center; }


.select-all { display: flex; justify-content: flex-start; align-items: center; width: 100%; margin: 0 auto 1rem; }

.post-list { list-style: none; padding: 0; margin: 0; }

.post-item { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 5px; align-items: center; border-bottom: 1px solid #ddd; }

.thumb { width: 90px; height: 63px; object-fit: cover; border-radius: 4px; }

.post-summary { display: flex; flex-direction: column; justify-content: center; }

.post-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 6px; color: #111; }

.post-title a { color: #111; text-decoration: none; }


.post-meta { font-size: 0.85rem; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #555; }

.info { color: #666; }

.vote-btn { background: none; border: none; cursor: pointer; font-size: 0.9rem; color: #444; }

.like-count { font-weight: bold; }

.write-btn { display: block; width: 90%; max-width: 400px; margin: 1rem auto; padding: 0.75rem; font-size: 1rem; background: #007bff; color: #fff; text-decoration: none; text-align: center; border-radius: 5px; }

.pagination { margin: 1rem 0; text-align: center; }

.pagination a, .pagination span { display: inline-block; padding: 0.4rem 0.7rem; margin: 0 0.2rem; border: 1px solid #ccc; border-radius: 3px; text-decoration: none; color: #333; }

.pagination .active { background: #007bff; color: #fff; border-color: #007bff; }

@media (min-width: 600px) {
  .search-input { flex: 1; margin-right: 0.5rem; }
  .search-button { flex: 0 0 120px; }
  .post-item { flex-direction: row; align-items: flex-start; padding: 1rem 2rem; }
  .post-item img.thumb { width: 120px; height: 90px; }
  .post-summary { padding: 0 1rem; }
  .post-title a { font-size: 1.1rem; }
}

@media (min-width: 768px) {
  .post-item { grid-template-columns: 120px 1fr; padding: 15px; }
  .thumb { width: 120px; height: 80px; }
  .post-title { font-size: 1.1rem; }
  .post-meta { font-size: 0.95rem; }
}

@media (min-width: 1024px) {
  .main-content { max-width: 1000px; margin: 0 auto; }
  .list-write { font-size: 1.75rem; margin-bottom: 1.5rem; }
  .post-item { padding: 1.5rem 2.5rem; }
  .post-item img.thumb { width: 150px; height: 100px; }
  .post-title a { font-size: 1.2rem; }
  .vote-btn { margin-left: auto; }
}
