/* YUKA Read Later front styles. Static CSS only; dynamic values are injected as CSS variables from PHP. */

/* ▼ 右下固定：プリンタアイコンの“上”に配置 */
#yuka-rl-fab{
  position: fixed;
  right: var(--yuka-rl-pc-right);
  bottom: calc(var(--yuka-rl-pc-bottom) + env(safe-area-inset-bottom));
  width: var(--yuka-rl-size);
  height: var(--yuka-rl-size);
  z-index: var(--yuka-rl-z);
  display: block;
}
@media (max-width: 700px){
  #yuka-rl-fab{
    right: var(--yuka-rl-sp-right);
    bottom: calc(var(--yuka-rl-sp-bottom) + env(safe-area-inset-bottom));
  }
}

/* ▼ 枠なし・透過・影なし（プリンタ系に寄せる） */
#yuka-rl-btn{
  width:100%;
  height:100%;
  border:0 !important;
  background: transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:0 !important;

  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* ▼ maskアイコン：通常は指定色、濃さで浮かす（反転なし） */
#yuka-rl-icon{
  width: 22px;
  height: 22px;

  background-color: var(--yuka-rl-color);

  -webkit-mask-image: var(--yuka-rl-icon);
  mask-image: var(--yuka-rl-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;

  transition: background-color .15s ease, filter .15s ease, opacity .15s ease;
  filter: var(--yuka-rl-icon-filter);
}

/* PC hover：少し濃く＋（必要なら）影で“浮き” */
@media (hover:hover){
  #yuka-rl-btn:hover #yuka-rl-icon{
    background-color: var(--yuka-rl-hover);
    opacity: 1;
    filter: var(--yuka-rl-icon-filter);
  }
}

/* 押下：さらに濃く */
#yuka-rl-btn:active #yuka-rl-icon{
  background-color: var(--yuka-rl-active);
  opacity: 1;
  filter: var(--yuka-rl-icon-filter);
}

/* 登録済み：常時ちょい濃く */
#yuka-rl-btn.is-on #yuka-rl-icon{
  background-color: var(--yuka-rl-hover);
  opacity: 1;
  filter: var(--yuka-rl-icon-filter);
}

/* ▼ 操作パネル：プリンタ風ダークUI（v1.3.6） */
#yuka-rl-pop{
  position:absolute;
  bottom: calc(var(--yuka-rl-size) + 10px);
  right: 0;

  min-width: 300px;
  max-width: 360px;

  background: rgba(35,35,35,0.96);
  color: rgba(255,255,255,0.92);

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 60px rgba(0,0,0,0.32);
  padding: 12px;

  display:none;
  backdrop-filter: blur(6px);
}
#yuka-rl-pop.is-open{ display:block; }

.yuka-rl-pop-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
}

.yuka-rl-pop-title{
  display:flex;
  gap:10px;
  align-items:flex-start;
  min-width: 0;
}
.yuka-rl-pop-ico{
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-color: var(--yuka-rl-color);
  -webkit-mask-image: var(--yuka-rl-icon);
  mask-image: var(--yuka-rl-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: 0.95;
}
.yuka-rl-pop-ttltext{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255,255,255,0.95);
}
.yuka-rl-pop-sub{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.70);
}

.yuka-rl-pop-close{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
@media (hover:hover){
  .yuka-rl-pop-close:hover{
    background: rgba(255,255,255,0.10);
  }
}

.yuka-rl-actions{
  display:flex;
  gap:10px;
  margin-top: 12px;
}
.yuka-rl-actions button{
  flex:1;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  padding: 12px 10px;
  cursor:pointer;
  font-size: 13px;
  line-height: 1.2;
}
@media (hover:hover){
  .yuka-rl-actions button:hover{
    background: rgba(255,255,255,0.10);
  }
}

.yuka-rl-toast{
  margin-top:10px;
  font-size:12px;
  color: rgba(255,255,255,0.78);
  display:none;
}
.yuka-rl-toast.is-show{ display:block; }

/* Shortcode UI（カード） */
.yuka-shiori-wrap{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 14px;
  margin: 16px 0;
}
.yuka-shiori-head{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content: space-between; }
.yuka-shiori-tabs{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.yuka-shiori-tab{
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  padding: 8px 12px;
  background:#fff;
  cursor:pointer;
  font-size: 13px;
}
.yuka-shiori-tab.is-active{ background: rgba(0,0,0,0.04); }

.yuka-shiori-tools{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-left:auto; }
.yuka-tool{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.02);
  cursor:pointer;
  font-size: 12px;
  white-space: nowrap;
}
.yuka-tool:hover{ background: rgba(0,0,0,0.04); }

.yuka-privacy-note{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  line-height: 1.6;
}

.yuka-shiori-list{ margin-top: 12px; }

.yuka-card{
  display:flex;
  gap: 14px;
  padding: 12px 6px;
  border-top: 1px solid rgba(0,0,0,0.06);
  align-items: flex-start;
}
.yuka-card:first-child{ border-top: none; }
.yuka-card-thumb{
  width: 90px;
  height: 64px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  overflow: hidden;
  flex: 0 0 auto;
}
.yuka-card-thumb img{ width:100%; height:100%; object-fit: cover; display:block; }
.yuka-card-main{ flex:1; min-width:0; }
.yuka-card-title{ font-size: 16px; line-height: 1.35; margin: 0; }
.yuka-card-title a{ text-decoration:none; }
.yuka-card-excerpt{ margin-top: 6px; font-size: 13px; color: rgba(0,0,0,0.65); }
.yuka-card-meta{ margin-top: 6px; font-size: 12px; color: rgba(0,0,0,0.5); }

.yuka-card-actions{ flex: 0 0 auto; display:flex; align-items:center; gap: 10px; }
.yuka-btn-view, .yuka-copy-trigger, .yuka-del{
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  padding: 8px 12px;
  background:#fff;
  cursor:pointer;
  font-size: 12px;
  white-space: nowrap;
}
.yuka-del{ background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.10); }

.yuka-copy-wrap{ position: relative; }
.yuka-copy-menu{
  position:absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
  padding: 6px;
  display:none;
  min-width: 180px;
  z-index: 50;
}
.yuka-copy-menu button{
  width:100%;
  text-align:left;
  border:0;
  background: transparent;
  padding: 10px 10px;
  border-radius: 8px;
  cursor:pointer;
  font-size: 13px;
}
.yuka-copy-menu button:hover{ background: rgba(0,0,0,0.04); }
.yuka-copy-wrap.is-open .yuka-copy-menu{ display:block; }

.yuka-shiori-empty{ margin-top: 14px; color: rgba(0,0,0,0.6); }

@media (max-width: 700px){
  #yuka-rl-pop{ min-width: 280px; max-width: 340px; }
  .yuka-card{ gap: 12px; }
  .yuka-card-thumb{ width: 78px; height: 56px; }
  .yuka-card-actions{ flex-direction: column; align-items: flex-end; }
  .yuka-btn-view, .yuka-copy-trigger, .yuka-del{ padding: 8px 10px; }
}
