/* 
 * event_list.css
 * イベント一覧ページ用のスタイル
 */

/* イベント一覧セクション */
#secEventList {
  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 2fr 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);
}

/* 日付範囲入力 */
.date_group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date_separator {
  flex-shrink: 0;
  color: #6c757d;
}

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

/* イベント一覧 */
.event_list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* イベントカード */
.event_card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  transition: all 0.3s;
}

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

/* 日付バッジ */
.event_date_badge {
  flex-shrink: 0;
  width: 100px;
  background-color: var(--main);
  color: #fff;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.event_date_badge .month {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.event_date_badge .day {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.event_date_badge .weekday {
  font-size: 0.875rem;
}

/* イベントコンテンツ */
.event_content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* イベント画像 */
.event_image {
  position: relative;
  width: 200px;
  flex-shrink: 0;
  overflow: hidden;
}

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

/* 開催形式ラベル */
.event_type_label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
}

.event_type_label.online {
  background-color: #28a745;
}

.event_type_label.offline {
  background-color: #007bff;
}

.event_type_label.hybrid {
  background-color: #6f42c1;
}

/* 性別制限オーバーレイ */
.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: 0.875rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border: 2px solid #fff;
  border-radius: 4px;
  text-align: center;
}

/* イベント情報 */
.event_info {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.event_name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.event_name a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.event_name a:hover {
  color: var(--main);
}

.event_name a.disabled {
  color: #6c757d;
  cursor: not-allowed;
}

/* イベントメタ情報 */
.event_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #6c757d;
}

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

.meta_item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* イベント説明 */
.event_desc {
  flex: 1;
  font-size: 0.95rem;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* イベントアクション */
.event_actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn_detail {
  padding: 0.5rem 1.5rem;
  background-color: var(--main);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: bold;
  transition: background-color 0.2s;
}

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

.login_required {
  color: #6c757d;
  font-size: 0.875rem;
}

/* 結果なし */
.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_event_box,
.info_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_event_box h3,
.info_box h3,
.login_prompt_box h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.create_event_box p,
.info_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: 992px) {
  .event_card {
    flex-direction: column;
  }
  
  .event_date_badge {
    width: 100%;
    padding: 1rem;
    flex-direction: row;
    gap: 1rem;
  }
  
  .event_content {
    flex-direction: column;
  }
  
  .event_image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  #secEventList {
    padding: 40px 0;
  }
  
  .search_box {
    padding: 1.5rem;
  }
  
  .date_group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .date_separator {
    display: none;
  }
  
  .event_info {
    padding: 1rem;
  }
  
  .event_meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .create_event_box,
  .info_box,
  .login_prompt_box {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .prompt_buttons {
    flex-direction: column;
  }
  
  .prompt_buttons .button {
    width: 100%;
  }
}