/* ---------- صفحهٔ اصلی · «تالار مزایده» داخل پنل نارنجی قوس‌دار + قاب نئونی ---------- */
.ph-hall{
  --phhp-accent:#fc7b26;
  --phhp-accent-deep:color-mix(in srgb, var(--phhp-accent) 78%, #000);
}

/* پنل = شبکهٔ سه‌ستونهٔ همیشه‌ثابت (حتی برای ۱ یا ۲ آگهی) */
.ph-hall .phhp-panel{
  position:relative;
  isolation:isolate;
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:clamp(12px,1.35vw,18px);
  align-items:stretch;
  background-color:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  background-size:100% 100% !important;
  background-repeat:no-repeat !important;
  padding-inline:clamp(18px, 2.4vw, 34px) !important;
}
/* هالهٔ نئونی کوانتومی (نرم و بیرونی) */
.ph-hall .phhp-panel::before{
  content:"";
  position:absolute;
  inset:-2px;
  background-image:var(--phhp-glow);
  background-size:100% 100%;
  background-repeat:no-repeat;
  filter:blur(2px) saturate(1.1);
  opacity:.16;
  pointer-events:none;
  z-index:0;
}
/* خط مویی نئونی */
.ph-hall .phhp-panel::after{
  content:"";
  position:absolute;
  inset:-.35px;
  background-image:var(--phhp-line);
  background-size:100% 100%;
  background-repeat:no-repeat;
  pointer-events:none;
  z-index:2;
}
.ph-hall .phhp-panel > a,
.ph-hall .phhp-panel > .phhp-ghost{
  position:relative;
  z-index:1;
  align-self:stretch;
}

/* ---------- کارت‌ها (یکسان در هر سه تب) ---------- */
#root .ph-hall .phhp-panel > a,
.ph-hall .phhp-panel > a{
  display:flex;
  flex-direction:column;
  background:#fff !important;
  background-image:none !important;
  border-radius:18px !important;
  overflow:hidden;
  box-shadow:0 18px 34px -26px rgba(120,53,15,.62), 0 2px 8px -6px rgba(15,23,42,.16);
  transition:transform .34s cubic-bezier(.22,.61,.36,1), box-shadow .34s ease;
}
#root .ph-hall .phhp-panel > a:hover,
.ph-hall .phhp-panel > a:hover{
  transform:translateY(-4px);
  box-shadow:0 26px 46px -28px rgba(120,53,15,.66), 0 6px 16px -12px rgba(15,23,42,.2);
}
.ph-hall .phhp-panel > a .ph-acard{
  border-radius:18px !important;
  box-shadow:none !important;
  background:transparent !important;
  overflow:hidden;
}
.ph-hall .phhp-panel > a .ph-acard .ph-media{ border-radius:0; }

/* تصویر: کوتاه‌تر و کامل (بدون برش محصول) */
.ph-hall .phhp-panel .ph-media{
  aspect-ratio:16/9 !important;
  max-height:204px;
  overflow:hidden;
}
.ph-hall .phhp-panel .ph-media img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  background:#fff;
  transition:transform .6s cubic-bezier(.22,.61,.36,1);
}
.ph-hall .phhp-panel > a:hover .ph-media img{ transform:scale(1.03); }
.ph-hall .phhp-panel > a .ph-acard > div:last-child{ padding-top:10px !important; padding-bottom:12px !important; }

/* ---------- کارت خالی (قالب خالی) ---------- */
.ph-hall .phhp-ghost{
  display:flex;
  flex-direction:column;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.42);
  border:1.5px dashed rgba(255,255,255,.85);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35), 0 18px 34px -30px rgba(120,53,15,.55);
}
.ph-hall .phhp-ghost-art{
  position:relative;
  display:grid;
  place-items:center;
  aspect-ratio:16/9;
  max-height:204px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.34)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.16) 0 14px, rgba(255,255,255,0) 14px 28px);
}
.ph-hall .phhp-ghost-ico{
  width:52px;height:52px;border-radius:16px;
  display:grid;place-items:center;
  color:#fff;
  background:rgba(255,255,255,.24);
  border:1px solid rgba(255,255,255,.6);
  backdrop-filter:blur(4px);
  box-shadow:0 10px 24px -16px rgba(120,53,15,.8);
}
.ph-hall .phhp-ghost-body{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:center;
  gap:2px;
  padding:12px 16px 16px;
  background:rgba(255,255,255,.9);
}
.ph-hall .phhp-ghost-body b{ font-size:13.5px; font-weight:800; color:#8a5a33; }
.ph-hall .phhp-ghost-body i{ font-style:normal; font-size:12px; color:#a98a6c; }

/* ---------- تب‌ها ---------- */
#root .ph-hall [role="tablist"],
.ph-hall [role="tablist"]{
  background:#fff !important;
  background-image:none !important;
  border:1px solid rgba(15,23,42,.08) !important;
  border-radius:16px !important;
  padding:5px !important;
  gap:2px !important;
  box-shadow:0 12px 30px -26px rgba(15,23,42,.55);
}
.ph-hall [role="tablist"] [role="tab"]{
  border-radius:11px !important;
  color:#475569 !important;
  font-weight:700;
  transition:background .22s ease, color .22s ease, box-shadow .22s ease;
}
.ph-hall [role="tablist"] [role="tab"] svg{ color:currentColor !important; }
#root .ph-hall [role="tablist"] [role="tab"][aria-selected="true"],
.ph-hall [role="tablist"] [role="tab"][aria-selected="true"]{
  background:var(--phhp-accent) !important;
  background-image:none !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 10px 20px -12px var(--phhp-accent), inset 0 1px 0 rgba(255,255,255,.35) !important;
}

/* سرتیتر بخش */
.ph-hall .max-w-7xl > div:first-child .bg-primary-100{
  background:color-mix(in srgb, var(--phhp-accent) 16%, #fff) !important;
}
.ph-hall .max-w-7xl > div:first-child .bg-primary-100 svg{ color:var(--phhp-accent-deep) !important; }
.ph-hall .max-w-7xl > div:first-child h2{ letter-spacing:-.2px; }

/* ---------- شب ---------- */
html.ph-night #root .ph-hall .phhp-panel > a,
html.ph-night .ph-hall .phhp-panel > a{
  background:#151f2f !important;
  box-shadow:0 18px 34px -26px rgba(0,0,0,.85), 0 0 0 1px rgba(148,163,184,.14) inset;
}
html.ph-night #root .ph-hall .phhp-panel .ph-media img,
html.ph-night .ph-hall .phhp-panel .ph-media img{ background:#0f1725; }
html.ph-night #root .ph-hall .phhp-ghost,
html.ph-night .ph-hall .phhp-ghost{ background:rgba(17,26,40,.55); border-color:rgba(148,163,184,.4); }
html.ph-night #root .ph-hall .phhp-ghost-body,
html.ph-night .ph-hall .phhp-ghost-body{ background:rgba(21,31,47,.95); }
html.ph-night #root .ph-hall .phhp-ghost-body b,
html.ph-night .ph-hall .phhp-ghost-body b{ color:#c7b299; }
html.ph-night #root .ph-hall .phhp-ghost-body i,
html.ph-night .ph-hall .phhp-ghost-body i{ color:#8fa0b8; }

/* ---------- پاسخ‌گو ---------- */
@media (max-width:1023.98px){
  #root .ph-hall .phhp-panel,
  .ph-hall .phhp-panel{ grid-template-columns:repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width:719.98px){
  .ph-hall [role="tablist"]{
    padding:4px !important;
    gap:1px !important;
  }
  .ph-hall [role="tablist"] [role="tab"]{
    min-width:0;
    padding-inline:6px !important;
    font-size:11.5px !important;
    gap:4px !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .ph-hall [role="tablist"] [role="tab"] svg{ width:14px !important; height:14px !important; }
  #root .ph-hall .phhp-panel,
  .ph-hall .phhp-panel{ grid-template-columns:minmax(0,1fr) !important; margin-inline:8px; padding-inline:12px !important; }
  .ph-hall .phhp-panel .ph-media,
  .ph-hall .phhp-ghost-art{ max-height:190px; }
  .ph-hall .phhp-panel::before{ inset:-5px; filter:blur(9px) saturate(1.2); }
}

@media (prefers-reduced-motion:reduce){
  .ph-hall .phhp-panel > a,
  .ph-hall .phhp-panel .ph-media img{ transition:none !important; }
  .ph-hall .phhp-panel > a:hover{ transform:none; }
}

/* محافظ: افزونهٔ «هیرو تمام‌عرض» ممکن است این بخش را با هیرو اشتباه بگیرد */
body.ph-hero-full .ph-hall .max-w-7xl,
body.ph-hero-full .ph-hall .ph-hero-wrap{
  max-width:80rem !important;
  width:auto !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:clamp(16px,2.2vw,32px) !important;
  padding-right:clamp(16px,2.2vw,32px) !important;
}
