/**
 * board_audio/css/list.css
 * List page styles
 * Mobile First, Single Breakpoint: 768px
 */

/* =========================================
   Base Styles (Mobile)
   ========================================= */

.container {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  margin: 50px auto 0;
  padding: 0 1rem;
  background: #f2f2f2;
}

/* Board Title */
.list-write {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

/* =========================================
   Search Form
   ========================================= */

.search-form-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto 1rem;
}

.search-input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-category {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-button {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  box-sizing: border-box;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}

.search-button:hover {
  background: #218838;
}

/* =========================================
   Admin Controls
   ========================================= */

.select-all {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0 auto 1rem;
}

.checkbox {
  margin-bottom: 5px;
}

/* =========================================
   Post List
   ========================================= */

.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-title a:hover {
  color: #007bff;
}

.post-meta {
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: #555;
}

.info {
  color: #666;
}

.icons {
  color: #888;
  font-size: 0.85rem;
  text-decoration: none;
}

/* =========================================
   Buttons
   ========================================= */

.vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: #444;
}

.vote-btn.active {
  color: #007bff;
}

.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;
}

.write-btn:hover {
  background: #0056b3;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn:hover {
  background: #0056b3;
}

/* =========================================
   Pagination
   ========================================= */

.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 a:hover {
  background: #f0f0f0;
}

.pagination .active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* =========================================
   Desktop Styles (768px+)
   ========================================= */

@media (min-width: 768px) {
  .container {
    max-width: 1200px;
  }

  /* Search Form - Horizontal */
  .search-form-board {
    flex-direction: row;
    gap: 0.5rem;
  }

  .search-input {
    flex: 1;
    width: auto;
    margin-right: 0.5rem;
  }

  .search-category {
    width: 200px;
  }

  .search-button {
    width: 120px;
    flex: 0 0 120px;
  }

  /* Post Item - Larger */
  .post-item {
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1rem 2rem;
  }

  .thumb {
    width: 120px;
    height: 80px;
  }

  .post-summary {
    padding: 0 1rem;
  }

  .post-title {
    font-size: 1.1rem;
  }

  .post-title a {
    font-size: 1.1rem;
  }

  .post-meta {
    font-size: 0.95rem;
  }

  .list-write {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .vote-btn {
    margin-left: auto;
  }
}
