/* 
 * circle_list.css
 * サークル一覧ページ用のスタイル
 */

/* サークル一覧セクション */
#secCircleList {
  padding: 60px 0;
  background-color: #f9f9f9;
}

/* 検索ボックス */
.search_box {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search_title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.search_form {
  width: 100%;
}

.search_inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .search_inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .search_inputs {
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: end;
  }
}

.form_group {
  width: 100%;
}

.form_control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form_control:focus {
  outline: none;
  border-color: var(--main);
}

.btn_search {
  width: 100%;
  padding: 0.75rem 2rem;
  background-color: var(--main);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn_search:hover {
  background-color: #c44d8f;
}

.search_clear {
  margin-top: 1rem;
  text-align: center;
}

.clear_link {
  color: var(--main);
  text-decoration: none;
  font-size: 0.875rem;
}

.clear_link:hover {
  text-decoration: underline;
}

/* 検索結果情報 */
.result_info {
  margin-bottom: 2rem;
}

.result_count {
  font-size: 1.1rem;
  color: var(--text);
}

.result_count strong {
  color: var(--main);
  font-size: 1.25rem;
}

/* サークルグリッド */
.circle_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .circle_grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* サークルカード */
.circle_card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.circle_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.circle_link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.circle_link.disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.circle_link.disabled:hover .circle_card {
  transform: none;
}

/* サークル画像 */
.circle_image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.circle_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 性別制限オーバーレイ */
.restriction_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.restriction_text {
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
  padding: 0.5rem 1.5rem;
  border: 2px solid #fff;
  border-radius: 4px;
}

/* サークル情報 */
.circle_info {
  padding: 1.5rem;
}

.circle_name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.4;
}

/* サークルタグ */
.circle_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #e9ecef;
  color: #495057;
  border-radius: 15px;
  font-size: 0.8rem;
}

/* サークルメタ情報 */
.circle_meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.member_count {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.member_count svg {
  width: 16px;
  height: 16px;
}

.gender_limit {
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.gender_limit.male_only {
  background-color: #e3f2fd;
  color: #1976d2;
}

.gender_limit.female_only {
  background-color: #fce4ec;
  color: #c2185b;
}

/* サークル説明 */
.circle_desc {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
}

/* 結果なし */
.no_results {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 8px;
}

.no_results p {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.no_results p:last-child {
  margin-bottom: 0;
}

/* ページネーション */
.pagination_wrapper {
  margin: 3rem 0;
}

/* サークル作成ボックス */
.create_circle_box,
.login_prompt_box {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.create_circle_box h3,
.login_prompt_box h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.create_circle_box p,
.login_prompt_box p {
  color: #6c757d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.prompt_buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.prompt_buttons .button {
  min-width: 200px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  #secCircleList {
    padding: 40px 0;
  }
  
  .search_box {
    padding: 1.5rem;
  }
  
  .circle_grid {
    gap: 1.5rem;
  }
  
  .circle_info {
    padding: 1rem;
  }
  
  .create_circle_box,
  .login_prompt_box {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .circle_grid {
    grid-template-columns: 1fr;
  }
  
  .prompt_buttons {
    flex-direction: column;
  }
  
  .prompt_buttons .button {
    width: 100%;
  }
}