/* =========================================================
   File: /diflow/assets/css/addin-detail.css
   =========================================================
   GOAL:
   - Add-in detail page styles (UnHideElements, later others).
   - Reuses theme.css + style.css + effects.css + service-detail.css.
   - Adds: product hero card, video frame, support form, notifications.
   ========================================================= */

/* =========================================================
   ---------- 1) PRODUCT HERO ----------
   ========================================================= */
.product-hero{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(11,15,20,0.62);
  box-shadow: 0 18px 40px rgba(0,0,0,0.30);
  padding: 16px;
  overflow: hidden;
}

.product-hero__top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.product-hero__badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  font-weight: 700;
  font-size: 12px;
  color: rgba(255,255,255,0.92);
}

.product-hero__pill{
  color: var(--muted);
  font-size: 12px;
}

.product-hero__mid{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.product-hero__logo{
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}

.product-hero__title{
  font-weight: 750;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.94);
  margin-bottom: 6px;
}

.product-hero__text{
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.product-hero__bottom{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
  margin-top: 10px;
}

/* =========================================================
   ---------- 2) VIDEO ----------
   ========================================================= */
.video-frame{
  padding: 14px;
  border-radius: 18px;
}

.video-frame iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
}

/* =========================================================
   ---------- 3) CTA ROW ----------
   ========================================================= */
.cta-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* =========================================================
   ---------- 4) STEPS ----------
   ========================================================= */
.addon-steps{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.86);
  line-height: 1.6;
  font-size: 14px;
}

.addon-steps li{
  margin-bottom: 10px;
}

/* =========================================================
   ---------- 5) SUPPORT FORM ----------
   ========================================================= */
.support-form{
  padding: 16px;
  border-radius: 18px;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 860px){
  .form-row{
    grid-template-columns: 1fr 1fr;
  }
}

.form-group{
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.support-form label{
  color: rgba(255,255,255,0.90);
  font-weight: 650;
  font-size: 13px;
}

.support-form input,
.support-form textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.92);
  outline: none;
}

.support-form input::placeholder,
.support-form textarea::placeholder{
  color: rgba(255,255,255,0.40);
}

.support-form textarea{
  resize: vertical;
  min-height: 140px;
}

.support-submit{
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.support-submit.is-loading{
  opacity: 0.9;
  pointer-events: none;
}

.support-spinner{
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.75);
  border-top-color: transparent;
  border-radius: 999px;
  animation: diflowSpin 0.8s linear infinite;
}

@keyframes diflowSpin{
  to { transform: rotate(360deg); }
}

/* =========================================================
   ---------- 6) NOTIFICATION TOAST ----------
   ========================================================= */
.diflow-toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 540px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(11,15,20,0.90);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  opacity: 0;
  z-index: 9999;
  transition: opacity 240ms ease, transform 240ms ease;
}

.diflow-toast.is-show{
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.diflow-toast--success{
  border-color: rgba(80, 220, 140, 0.32);
}

.diflow-toast--error{
  border-color: rgba(240, 90, 90, 0.35);
}

/* =========================================================
   ---------- 7) FAQ ICON (CENTERED) ----------
   - Fix: "+" centered and changes to "×" when open
   ========================================================= */

.faq-q{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

.faq-q::-webkit-details-marker{ display: none; }

.faq-q__text{
  flex: 1;
  min-width: 0;
}

.faq-q__icon{
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  line-height: 1;
}

/* when open → show × */
.faq-item[open] .faq-q__icon{
  content: "×";
}

/* swap the symbol via CSS (more reliable) */
.faq-item[open] .faq-q__icon::before{ content: "×"; }
.faq-q__icon::before{ content: "+"; }

/* hide the raw text inside the span so we rely on ::before */
.faq-q__icon{ font-size: 0; }
.faq-q__icon::before{
  font-size: 18px;
  line-height: 1;
}
/* ---------- Pricing + Downloads minimal UI ---------- */
.price-row{ display:grid; gap:6px; margin-top:10px; }
.price{ display:flex; align-items:baseline; gap:8px; }
.price__value{ font-size:34px; font-weight:800; letter-spacing:-0.02em; color: rgba(255,255,255,0.96); }
.price__period{ color: var(--muted); font-size:13px; }
.price-note{ color: var(--muted); font-size:12.5px; }

.download-list{ display:grid; gap:10px; margin-top:12px; }
.download-item{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:12px 12px; border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  text-decoration:none;
}
.download-item__title{ font-weight:750; color: rgba(255,255,255,0.94); }
.download-item__meta{ color: var(--muted); font-size:12.5px; margin-top:2px; }
.download-item__right{ color: rgba(255,255,255,0.88); font-weight:650; }
.download-item:hover{ transform: translateY(-1px); }

.mini-hr{
  height:1px; width:100%;
  background: rgba(255,255,255,0.10);
  margin: 14px 0;
}

/* =========================================================
   ---------- FAQ (UPGRADED UI) ----------
   ========================================================= */

.faq-controls{
  display:grid;
  gap:12px;
  margin: 10px 0 18px;
}

.faq-search__input{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.92);
  outline: none;
}

.faq-search__input::placeholder{
  color: rgba(255,255,255,0.45);
}

.faq-search__hint{
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.faq-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.faq-tag{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.86);
  font-weight: 650;
  cursor:pointer;
}

.faq-tag.is-active{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.94);
}

.faq-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 980px){
  .faq-grid{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.faq-item{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  overflow:hidden;
}

.faq-q{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px;
  cursor:pointer;
  list-style:none;
}

.faq-q::-webkit-details-marker{ display:none; }

.faq-q__text{
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  min-width: 0;
}

.faq-a{
  padding: 0 14px 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
}

.faq-a a{
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Centered icon (no text drift) ---------- */
.faq-q__icon{
  width: 28px;
  height: 28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  font-size: 0; /* hide inline text */
}

.faq-q__icon::before{
  content:"+";
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] .faq-q__icon::before{
  content:"×";
}

/* ---------- Empty state ---------- */
.faq-empty{
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.02);
}
/* ---------- FAQ columns: independent height per column ---------- */
@media (min-width: 980px){
  .faq-grid{
    display: block;
    column-count: 2;
    column-gap: 12px;
  }

  .faq-grid > .faq-item{
    display: block;
    width: 100%;
    margin: 0 0 12px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
  }
}
