/* Items page styles - extends quiz/style.css base */
@import url("/quiz/style.css?v=20260517");

.jp { font-family: "Noto Sans JP", sans-serif; }

/* Filters */
.filters { padding: 14px; }
.filters input[type="search"] {
  width: 100%; padding: 12px 14px; background: #0f1117; border: 1px solid #2d3748;
  border-radius: 10px; color: #e2e8f0; font-size: 0.95rem; margin-bottom: 12px;
}
.filters input[type="search"]:focus { outline: none; border-color: #63b3ed; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.ftab {
  padding: 6px 14px; border-radius: 18px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  border: 1px solid #2d3748; background: #0f1117; color: #a0aec0; transition: all 0.15s;
}
.ftab:hover { border-color: #4a5568; }
.ftab.active { background: #2c4a7c; border-color: #63b3ed; color: #fff; }
#jlpt-select {
  padding: 7px 12px; background: #0f1117; border: 1px solid #2d3748; border-radius: 8px;
  color: #e2e8f0; font-size: 0.85rem; cursor: pointer;
}

/* Items grid */
.items-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.item-card {
  background: #1a202c; border: 1px solid #2d3748; border-radius: 12px; padding: 14px;
  text-decoration: none; color: inherit; transition: all 0.15s; display: block;
}
.item-card:hover { border-color: #63b3ed; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.ic-top { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.ic-title { font-size: 1.4rem; font-weight: 700; color: #e2e8f0; margin-bottom: 4px; word-break: break-word; }
.ic-reading { font-size: 0.85rem; color: #a0aec0; margin-bottom: 6px; font-family: "Noto Sans JP", sans-serif; }
.ic-meaning {
  font-size: 0.85rem; color: #cbd5e0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ic-hv-wrap { margin-top: 8px; }
.ic-hv { font-size: 0.7rem; color: #b794f4; background: #2d1f4a; padding: 2px 8px; border-radius: 8px; font-weight: 600; }

/* Type badges (extends .badge) */
.badge.vocabulary { background: #1a3a5c; color: #63b3ed; }
.badge.grammar    { background: #2d1f4a; color: #b794f4; }
.badge.kanji      { background: #3d2a0a; color: #f6ad55; }
.badge.jlpt       { background: #1a2e1a; color: #68d391; }

/* Detail page */
.detail-card { padding: 20px; }
.dt-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid #252d3a; align-items: start;
}
.dt-row:last-child { border-bottom: none; }
.dt-label { font-size: 0.78rem; color: #718096; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding-top: 4px; }
.dt-value { font-size: 1rem; color: #e2e8f0; line-height: 1.6; word-break: break-word; }
.dt-value.jp { font-family: "Noto Sans JP", sans-serif; font-size: 1.1rem; }
.dt-meta { margin-top: 14px; padding-top: 14px; border-top: 1px solid #2d3748; font-size: 0.78rem; color: #718096; }

.dt-input {
  width: 100%; padding: 8px 12px; background: #0f1117; border: 1px solid #2d3748;
  border-radius: 8px; color: #e2e8f0; font-size: 0.95rem; font-family: inherit; resize: vertical;
}
.dt-input.jp { font-family: "Noto Sans JP", sans-serif; }
.dt-input:focus { outline: none; border-color: #63b3ed; }

.btn-danger { background: #3a1f1f; border-color: #fc8181; color: #fc8181; }
.btn-danger:hover { background: #4a2828; }

@media (max-width: 560px) {
  .dt-row { grid-template-columns: 1fr; gap: 4px; }
  .items-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ic-title { font-size: 1.2rem; }
}
