@font-face {
  font-family: 'RIDIBatang';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/RIDIBatang.woff') format('woff');
  font-display: swap;
}

body {
  font-family: 'RIDIBatang', sans-serif;
  margin: 0;
  padding: 0;
  background: #fffdf6;
  color: #2f3e2f;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 122, 162, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(121, 194, 103, 0.13) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 241, 191, 0.14) 0%, transparent 50%);
  background-size: 500px 500px, 300px 300px, 400px 400px;
  background-position: 0 0, 100px 100px, 200px 200px;
  pointer-events: none;
  opacity: 0.7;
  z-index: -1;
}

.bookmarks-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.bookmarks-header {
  text-align: left;
  margin-bottom: 30px;
}

.bookmarks-header .back-link {
  display: flex;
  width: fit-content;
  margin-bottom: 8px;
}

.bookmarks-header h1 {
  font-size: 2rem;
  margin: 10px 0;
}

.bookmarks-header p {
  color: #6c757d;
  font-size: 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2f3e2f;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.back-link:hover {
  color: #4c51bf;
}

.login-prompt {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e9ecef;
}

.login-prompt-icon {
  margin-bottom: 16px;
}

.login-prompt h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #333;
}

.login-prompt p {
  color: #888;
  font-size: 14px;
  margin: 0 0 24px;
}

.bookmarks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bookmark-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.85);
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #e9ecef;
  transition: box-shadow 0.2s, transform 0.2s;
}

.bookmark-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.bookmark-word {
  color: #2f3e2f;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

.bookmark-word:hover {
  color: #2f3e2f;
}

.bookmark-remove {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
}

.bookmark-remove:hover {
  color: #e53e3e;
  background: #fef2f2;
}

.bookmarks-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.bookmarks-empty p {
  font-size: 16px;
  margin: 16px 0 4px;
  color: #666;
}

.bookmarks-empty span {
  font-size: 13px;
  color: #aaa;
}

.bookmarks-search-form {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.bookmarks-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.bookmarks-search-input:focus {
  border-color: #2f3e2f;
}

.bookmarks-search-btn {
  background: #2f3e2f;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.bookmarks-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

[data-theme="dark"] .bookmarks-search-input {
  background: #2a2a3e;
  border-color: #444;
  color: #e0e0e0;
}

[data-theme="dark"] .bookmarks-search-input:focus {
  border-color: #2f3e2f;
}
