/* MyShortlist 現代化樣式 */

/* 容器樣式 */
.myshortlist_container_modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.breadcrumb {
    display: none!important;
}
/* 列表頁面樣式 */
.myshortlist_item_page_modern {
  border-bottom: none !important;
  margin-bottom: 0;
}

/* 網格樣式 */
.myshortlist_grid_modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* 頁面標題 */
.myshortlist_page_title {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.myshortlist_page_title_text {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* 卡片樣式 */
.myshortlist_item_card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.myshortlist_item_card:not(:last-child) {
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.myshortlist_item_card:last-child {
  margin-bottom: 0;
}

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

/* 圖片樣式 */
.myshortlist_item_image_modern {
  width: 100% !important;
  margin-right: 0 !important;
  margin-bottom: 15px;
  float: none !important;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.myshortlist_card_image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.myshortlist_item_card:hover .myshortlist_card_image {
  transform: scale(1.05);
}

/* 文字包裝器 */
.myshortlist_text_wrapper_modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  flex-wrap: wrap;
}

.myshortlist_item_left_modern {
  flex: 1;
  min-width: 0;
}

/* 標題樣式 */
.myshortlist_item_title_modern {
  margin-bottom: 10px;
}

.myshortlist_link_modern {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  transition: color 0.3s ease;
}

.myshortlist_link_modern:hover {
  color: #0066cc;
  text-decoration: none;
}

.myshortlist_title_text {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  display: block;
}

/* 分類標籤 */
.myshortlist_category_badge {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-top: 8px;
  font-weight: normal;
}

/* 引文樣式 */
.myshortlist_item_introtext {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 加入時間樣式 */
.myshortlist_item_date_added {
  color: #999;
  font-size: 12px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.myshortlist_date_label {
  color: #999;
  font-weight: normal;
}

.myshortlist_date_value {
  color: #666;
  font-weight: 500;
}

/* 按鈕容器 */
.myshortlist_item_right_modern {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 統一按鈕基礎樣式 */
.myshortlist_pdf_btn_modern,
.myshortlist_delete_btn_modern {
  background: #0066cc !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

/* PDF 按鈕特定樣式 */
.myshortlist_pdf_btn_modern {
  background: #0066cc !important;
  box-shadow: 0 2px 4px rgba(0, 102, 204, 0.3);
}

.myshortlist_pdf_btn_modern:hover {
  background: #0052a3 !important;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 102, 204, 0.4);
  text-decoration: none !important;
}

.myshortlist_pdf_btn_modern:active {
  transform: scale(0.95);
}

/* 刪除按鈕特定樣式 */
.myshortlist_delete_btn_modern {
  background: #ff4444 !important;
  box-shadow: 0 2px 4px rgba(255, 68, 68, 0.3);
}

.myshortlist_delete_btn_modern:hover {
  background: #cc0000 !important;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(255, 68, 68, 0.4);
}

.myshortlist_delete_btn_modern:active {
  transform: scale(0.95);
}

/* 統一圖標樣式 */
.myshortlist_pdf_btn_modern span,
.myshortlist_delete_btn_modern span {
  font-size: 14px !important;
  line-height: 1 !important;
  color: white !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 覆蓋 Bootstrap 和其他框架的樣式 */
.myshortlist_pdf_btn_modern.btn,
.myshortlist_delete_btn_modern.btn,
.myshortlist_pdf_btn_modern.btn-mini,
.myshortlist_delete_btn_modern.btn-mini,
.myshortlist_pdf_btn_modern.btn-default,
.myshortlist_delete_btn_modern.btn-default {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 空狀態 */
.myshortlist_empty_state {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 12px;
  margin: 40px 0;
}

.myshortlist_empty_icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.myshortlist_empty_text {
  font-size: 18px;
  color: #666;
  margin: 0;
}

/* 分頁樣式 */
.myshortlist_pagination_modern {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0 20px;
  padding: 20px;
  flex-wrap: wrap;
}

.myshortlist_pagination_label {
  color: #666;
  font-size: 14px;
  margin-right: 10px;
}

.myshortlist_page_modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.myshortlist_page_modern:hover {
  background: #f5f5f5;
  border-color: #0066cc;
  color: #0066cc;
  text-decoration: none;
}

.myshortlist_page_modern.active {
  background: #0066cc;
  border-color: #0066cc;
  color: white;
  font-weight: 600;
}

.myshortlist_page_modern.active:hover {
  background: #0052a3;
  border-color: #0052a3;
  color: white;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .myshortlist_container_modern {
    padding: 15px;
  }

  .myshortlist_grid_modern {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .myshortlist_item_card {
    padding: 15px;
    margin-bottom: 15px;
  }

  .myshortlist_link_modern,
  .myshortlist_title_text {
    font-size: 16px;
  }

  .myshortlist_text_wrapper_modern {
    flex-direction: column;
  }

  .myshortlist_item_right_modern {
    align-self: flex-end;
  }

  .myshortlist_pagination_modern {
    gap: 6px;
    padding: 15px;
  }

  .myshortlist_page_modern {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .myshortlist_container_modern {
    padding: 10px;
  }

  .myshortlist_item_card {
    padding: 12px;
  }

  .myshortlist_empty_state {
    padding: 40px 15px;
  }

  .myshortlist_empty_icon {
    font-size: 48px;
  }

  .myshortlist_empty_text {
    font-size: 16px;
  }
}

/* 清除浮動 */
.myshortlist_clr {
  clear: both;
}

