/* Page-specific styles for Article.html
   (Home styles: menu, hero base, etc. are in home-style.css) */

body{
  background:
    radial-gradient(1000px 700px at 20% 30%, rgba(31,214,194,0.35), transparent 60%),
    radial-gradient(900px 600px at 80% 25%, rgba(120,170,255,0.30), transparent 60%),
    linear-gradient(135deg, #123a52 0%, #0f2f4a 55%, #0c253d 100%);
}

/* Caja principal tipo glass */
.article-shell{
  max-width:1320px;
  margin:0 auto;
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(20,34,50,0.08);
  backdrop-filter:blur(10px);
  box-shadow:0 20px 60px rgba(0,0,0,0.35);
}

.article-notice{
  margin:16px 16px 0;
  border-radius:14px;
  padding:12px 14px;
  font-weight:800;
}

.article-notice-ok{
  background:rgba(36,208,200,0.18);
  border:1px solid rgba(36,208,200,0.38);
}

.article-notice-error{
  background:rgba(255,120,120,0.16);
  border:1px solid rgba(255,120,120,0.32);
}

/* Centro: imagen grande */
.article-main{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.article-image{
  width:100%;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(0,0,0,0.12);
  min-height:420px;
}

.article-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Descripción */
.article-desc{
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(28,46,68,0.82);
  padding:16px;
}

.article-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}

.article-title{
  margin:0;
  font-size:26px;
  letter-spacing:-0.3px;
  color:rgba(255,255,255,0.92);
}

.article-price{
  font-size:22px;
  font-weight:800;
  color:rgba(255,255,255,0.92);
  white-space:nowrap;
}

.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:12px;
}

.meta-pill{
  font-size:12px;
  letter-spacing:0.2px;
  border-radius:999px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
  color:rgba(255,255,255,0.82);
}

.meta-pill-status--active{
  background:rgba(36,208,200,0.16);
  border-color:rgba(36,208,200,0.38);
  color:#fff;
}

.meta-pill-status--reserved{
  background:rgba(255,216,74,0.14);
  border-color:rgba(255,216,74,0.30);
  color:#fff;
}

.meta-pill-status--sold,
.meta-pill-status--archived{
  background:rgba(255,120,120,0.14);
  border-color:rgba(255,120,120,0.30);
  color:#fff;
}

.article-text{
  margin:0;
  color:rgba(255,255,255,0.78);
  line-height:1.55;
}

/* Derecha: vendedor */
.article-side{
  display:flex;
  flex-direction:column;
}

.seller-card{
  position:relative;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
  padding:16px;
}

.article-report-menu{
  position:absolute;
  top:14px;
  right:14px;
  z-index:2;
}

.article-report-menu summary{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.08);
  color:#fff;
  font-size:26px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  list-style:none;
}

.article-report-menu summary::-webkit-details-marker{
  display:none;
}

.article-report-options{
  position:absolute;
  top:44px;
  right:0;
  min-width:190px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(6,24,43,0.96);
  box-shadow:0 18px 40px rgba(0,0,0,0.34);
  padding:8px;
}

.article-report-options button{
  width:100%;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#fff;
  cursor:pointer;
  font-weight:800;
  padding:10px 12px;
  text-align:left;
}

.article-report-options button:hover{
  background:rgba(255,255,255,0.10);
}

.report-modal{
  position:fixed;
  inset:0;
  z-index:30;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,0.46);
  padding:20px;
}

.report-modal[hidden]{
  display:none;
}

.report-box{
  width:min(460px, 100%);
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(13,42,67,0.96);
  box-shadow:0 24px 80px rgba(0,0,0,0.42);
  padding:18px;
}

.report-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.report-head strong{
  font-size:20px;
}

.report-head button{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.08);
  color:#fff;
  cursor:pointer;
  font-size:22px;
}

.report-box label{
  display:grid;
  gap:7px;
  margin-bottom:12px;
  color:rgba(255,255,255,0.78);
  font-weight:800;
}

.report-box select,
.report-box textarea{
  width:100%;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.24);
  background:rgba(255,255,255,0.12);
  color:#fff;
  padding:11px 12px;
  font:inherit;
}

.report-box select option{
  color:#10273d;
}

.seller-top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.seller-avatar{
  width:44px;
  height:44px;
  border-radius:14px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.18);
}

.seller-name{
  font-weight:800;
  color:rgba(255,255,255,0.92);
}

.seller-inline-link{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid rgba(34,211,197,0.55);
}

.seller-inline-link:hover{
  color:#9ff6ea;
}

.seller-sub{
  font-size:12px;
  color:rgba(255,255,255,0.70);
}

.seller-info{
  display:grid;
  gap:8px;
  margin:14px 0 16px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,0.10);
}

.info-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.info-k{
  font-size:12px;
  color:rgba(255,255,255,0.65);
}

.info-v{
  font-size:12px;
  color:rgba(255,255,255,0.88);
}

/* Botones */
.seller-actions{
  display:grid;
  gap:10px;
}

.btn{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.20);
  background:rgba(255,255,255,0.12);
  color:rgba(255,255,255,0.92);
  font-weight:800;
  cursor:pointer;
}

.action-buy{
  background:rgba(36,208,200,0.20);
  border:1px solid rgba(36,208,200,0.35);
}

.action-report-submit{
  background:rgba(36,208,200,0.20);
  border:1px solid rgba(36,208,200,0.35);
}

.action-fav.is-on{
    background:rgba(34,211,197,0.18);
    border:1px solid rgba(34,211,197,0.58);
    color:#fff;
    box-shadow:0 0 24px rgba(34,211,197,0.14);
  }

.owner-panel{
  display:grid;
  gap:12px;
}

.owner-panel-title{
  color:rgba(255,255,255,0.78);
  font-size:13px;
  font-weight:800;
}

.action-edit{
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:rgba(36,208,200,0.20);
  border-color:rgba(36,208,200,0.38);
}

.owner-status{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.owner-status form{
  margin:0;
}

.status-btn{
  width:100%;
  min-height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(255,255,255,0.08);
  color:rgba(255,255,255,0.86);
  font-weight:800;
  cursor:pointer;
}

.btn:disabled{
  cursor:not-allowed;
  opacity:0.62;
  filter:saturate(0.75);
}

.status-btn:hover{
  border-color:rgba(36,208,200,0.40);
  background:rgba(36,208,200,0.12);
}

.status-btn.is-current,
.status-btn:disabled{
  cursor:default;
  background:rgba(36,208,200,0.22);
  border-color:rgba(36,208,200,0.56);
  color:#fff;
}

/* SIMILARES */
.similar-shell{
  max-width:1320px;
  margin:18px auto 0;
  padding:0 2px;
}

.similar-title{
  margin:18px 0 12px;
  color:rgba(255,255,255,0.90);
  letter-spacing:-0.2px;
}

.similar-row{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding-bottom:8px;
}

.similar-card{
  min-width:210px;
  max-width:210px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
  text-decoration:none;
  overflow:hidden;
}

.similar-empty{
  width:100%;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
  color:rgba(255,255,255,0.76);
  padding:18px;
}

.similar-img{
  height:140px;
  background:rgba(0,0,0,0.12);
}

.similar-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.similar-body{ padding:12px; }

.similar-price{
  font-weight:900;
  color:rgba(255,255,255,0.92);
  margin-bottom:6px;
}

.similar-name{
  font-size:13px;
  color:rgba(255,255,255,0.78);
}

/* Responsive */
@media (max-width:1100px){
  .article-grid{ grid-template-columns:92px 1fr; }
  .article-side{ grid-column:1 / -1; }
}

/* Hover / active: resalta la thumb */
.article-thumbs .thumb:hover,
.article-thumbs .thumb.is-active{
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.10) inset;
}

/*------------------------------------------------------*/

/* GRID: 2 filas -> (imagen arriba) + (descripción abajo) */
.article-grid{
  display:grid;
  grid-template-columns:110px 1fr 340px;
  grid-template-rows:auto auto;
  gap:22px;
  padding:22px;
  align-items:start;
}

/* MINIATURAS: columna fija y con scroll (ROJO) */
.article-thumbs{
  grid-column:1;
  grid-row:1 / span 2;           /* ocupa alto de imagen + desc */
  display:flex;
  flex-direction:column;
  gap:15px;

  width:120px;   /* antes 92px */
  height:420px;  /* antes 420px */

  overflow:hidden;
  padding-right:6px;
}

/* Scrollbar discreta 
.article-thumbs::-webkit-scrollbar{ width:10px; }
.article-thumbs::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}*/

/* Imagen principal (centro) */
.article-main{
  grid-column:2;
  grid-row:1;
}

/* DESCRIPCIÓN (AMARILLO): ocupa thumbs + centro */
.article-desc{
  grid-column:1 / 3;             /* columnas 1 y 2 */
  grid-row:2;

  border-radius:18px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(28,46,68,0.82);
  padding:16px;
}

/* Vendedor derecha */
.article-side{
  grid-column:3;
  grid-row:1 / span 2;
}


/* Botones flecha (glass) */


/* Ventana que recorta lo que “se pase” */
.thumbs-viewport{
  flex:1;
  overflow:auto;              /* permite scroll */
  scroll-behavior:smooth;
  padding-right:2px;
  scrollbar-width:thin;
}
.thumbs-viewport::-webkit-scrollbar{ width:10px; }
.thumbs-viewport::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

/* Lista interna */
.thumbs-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}


/* --- ESTÉTICA THUMBS (igual que tu glass) --- */


.thumb{
  width:100%;
  height:90px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(0,0,0,0.10);
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* Miniatura con efecto glass + contorno suave 
.thumb{
  border-radius:5px;
  height: 90px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(0,0,0,0.10);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}*/

/* Tamaño consistente y “cover” 
.thumb img{
  height:90px;           
  object-fit:cover;
  filter: saturate(1.05) contrast(1.02);
}*/

/* Hover / activo: resalta como tus cards */
.thumb:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 12px 22px rgba(0,0,0,0.22);
}
.thumb.is-active{
  border-color: rgba(36,208,200,0.55);
  box-shadow:
    0 0 0 2px rgba(36,208,200,0.18) inset,
    0 14px 28px rgba(0,0,0,0.24);
}

@media (max-width:1100px){
  .article-grid{
    grid-template-columns:92px 1fr;
  }

  .article-side{
    grid-column:1 / -1;
    grid-row:auto;
  }
}

@media (max-width:720px){
  .article-shell{
    margin:0 14px;
  }

  .article-grid{
    grid-template-columns:1fr;
    gap:16px;
    padding:14px;
  }

  .article-thumbs{
    grid-column:1;
    grid-row:auto;
    width:100%;
    height:auto;
    flex-direction:row;
    overflow:auto;
    padding:0 0 8px;
  }

  .thumb{
    flex:0 0 86px;
    width:86px;
    height:70px;
  }

  .article-main,
  .article-desc,
  .article-side{
    grid-column:1;
    grid-row:auto;
  }

  .article-image{
    min-height:260px;
    border-radius:18px;
  }

  .article-title-row{
    flex-direction:column;
  }

  .article-side{
    width:100%;
  }

  .seller-card{
    padding:14px;
  }

  .seller-actions,
  .owner-status{
    gap:10px;
  }
}
