/* =========================================================
   bareframe/plates.css
   役割：grid内の「plate」表示のみ
   方針：密度は font/padding/height で制御（transformで歪めない）
   ========================================================= */

.plate{
  position: relative;
  overflow: hidden;

  border: 1px solid var(--line);
  min-height: 52px;
  display: flex;

  /* base plate texture */
  background-image: url("../images/grid-card-back.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.plate__link{
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  z-index: 2;
}

/* thumbnail layer (20%) */
.plate__thumb{
  position: absolute;
  inset: 0;
  z-index: 1;

  background-image: var(--plate-thumb);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: .2;
  pointer-events: none;
}
/* --- title overlay --- */
.plate__title{
  position: relative;
  z-index: 2;

  font-family: var(--mono);
  font-size: 38px;      /* ★指定どおり */
  font-weight: 600;
  color: #fff;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  letter-spacing: .04em;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

/* thumbnail layer (default: 20%) */
.plate__thumb{
  position: absolute;
  inset: 0;
  z-index: 1;

  background-image: var(--plate-thumb);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: .2;          /* 通常：20% */
  pointer-events: none;

  /* hover変化を滑らかに（動きは最小） */
  transition: opacity .16s linear;
}

/* hover：境界の確認＋サムネを少し見やすく（透過を下げる＝濃くする） */
@media (hover:hover){
  .plate:hover{
    border-color: rgba(255,255,255,.28);
  }
  .plate:hover .plate__thumb{
    opacity: .28; /* ★hoverで少し濃く（20%→28%） */
  }
}
.plate__meta{
  display: block;
  margin-bottom: 6px;
}

.plate__type{
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  opacity: .85;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(4px);
}
