/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ブックマーク機能スタイル
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ブックマークボタン */
.bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  border: 2px solid #e74c3c;
  color: #e74c3c;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
}

.bookmark-btn:hover {
  background: #e74c3c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.bookmark-btn.bookmarked {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

.bookmark-btn.bookmarked:hover {
  background: #c0392b;
  border-color: #c0392b;
}

.bookmark-btn i {
  font-size: 18px;
}

/* 記事ページのブックマークボタンエリア */
.article-bookmark-section {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
  border-radius: 12px;
  border: 2px solid #ffcccc;
  text-align: center;
}

.article-bookmark-section h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: #2c3e50;
  font-weight: 600;
}

.article-bookmark-section p {
  margin: 0 0 20px 0;
  color: #7f8c8d;
  font-size: 14px;
}

/* ヘッダーのブックマークリンク */
.nav-menu .bookmark-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bookmark-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #e74c3c;
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

/* ブックマーク通知 */
.bookmark-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
}

.bookmark-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.bookmark-notification.success {
  border-left: 4px solid #27ae60;
}

.bookmark-notification.success i {
  color: #27ae60;
  font-size: 20px;
}

.bookmark-notification.info {
  border-left: 4px solid #3498db;
}

.bookmark-notification.info i {
  color: #3498db;
  font-size: 20px;
}

.bookmark-notification span {
  font-size: 15px;
  font-weight: 500;
  color: #2c3e50;
}

/* ブックマーク一覧ページ */
.bookmarks-page {
  padding: 80px 0 60px;
  min-height: calc(100vh - 200px);
}

.bookmarks-header {
  text-align: center;
  margin-bottom: 50px;
}

.bookmarks-header h1 {
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 15px;
  font-family: 'Noto Serif JP', serif;
}

.bookmarks-header p {
  font-size: 16px;
  color: #7f8c8d;
}

.bookmarks-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff5f5;
  border: 2px solid #e74c3c;
  border-radius: 20px;
  color: #e74c3c;
  font-weight: 600;
  margin-top: 15px;
}

.bookmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.bookmark-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.bookmark-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bookmark-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.bookmark-card-content {
  padding: 20px;
}

.bookmark-card-category {
  display: inline-block;
  padding: 4px 12px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  font-weight: 500;
}

.bookmark-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bookmark-card-excerpt {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bookmark-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #ecf0f1;
}

.bookmark-card-date {
  font-size: 12px;
  color: #95a5a6;
}

.bookmark-remove-btn {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.bookmark-remove-btn:hover {
  background: #e74c3c;
  color: #fff;
}

/* 空の状態 */
.bookmarks-empty {
  text-align: center;
  padding: 80px 20px;
}

.bookmarks-empty-icon {
  font-size: 80px;
  color: #ddd;
  margin-bottom: 20px;
}

.bookmarks-empty h2 {
  font-size: 24px;
  color: #7f8c8d;
  margin-bottom: 10px;
}

.bookmarks-empty p {
  font-size: 16px;
  color: #95a5a6;
  margin-bottom: 30px;
}

.bookmarks-empty-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #3498db;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.bookmarks-empty-btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .bookmark-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }

  .bookmarks-header h1 {
    font-size: 28px;
  }

  .bookmarks-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-bookmark-section {
    padding: 20px;
  }

  .bookmark-btn {
    width: 100%;
    justify-content: center;
  }
}
