/**
 * Solved Page Styles
 *
 * @package WPFixBoard
 * @since 1.0.0
 */

.solved-hero{
  --solved:#3EA860;
  --solved-strong:#16a34a;
  --solved-bg:#f0fdf4;
  --solved-soft:#dcfce7;
  --solved-grad:linear-gradient(135deg,#22c55e 0%,#16a34a 100%);

  background:linear-gradient(180deg,#f0fdf4 0%,#ffffff 100%);
  padding:56px 0 64px;
  position:relative;
  overflow:hidden;
}
.solved-hero-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:40px;
}
.solved-hero-left{max-width:520px;}
.solved-hero-left h2{
  font-size:38px;
  font-weight:800;
  color:var(--ink);
  letter-spacing:-0.02em;
  line-height:1.1;
  margin-bottom:16px;
}
.solved-hero-left h2 .accent{color:var(--solved-strong);}
.solved-hero-lead{
  font-size:15.5px;
  color:var(--gray-600);
  line-height:1.65;
  margin-bottom:36px;
}

/* Hero features */
.solved-hero-features{
  display:flex;
  gap:28px;
  flex-wrap:wrap;
}
.solved-feature{
  display:flex;
  flex-direction:column;
  max-width:150px;
}
.solved-feature-icon{
  width:46px; height:46px;
  border-radius:50%;
  background:var(--solved-soft);
  color:var(--solved-strong);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:13px;
}
.solved-feature-icon svg{width:20px; height:20px;}
.solved-feature-text h4{font-size:14.5px; font-weight:700; color:var(--ink); margin-bottom:4px;}
.solved-feature-text p{font-size:12.5px; color:var(--gray-600); line-height:1.45;}

/* Hero right / mockup */
.solved-hero-right{
  position:relative;
  width:440px;
  flex-shrink:0;
}
.solved-mock-card{
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  padding:26px;
  position:relative;
  z-index:2;
}
.solved-mock-dots{display:flex; gap:6px; margin-bottom:22px;}
.solved-mock-dots span{width:9px; height:9px; border-radius:50%; background:#E2E4EA;}
.solved-mock-wp{
  width:44px; height:44px;
  background:var(--primary-100);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--primary);
  margin-bottom:22px;
}
.solved-mock-wp svg{width:24px; height:24px;}
.solved-mock-bars{display:flex; flex-direction:column; gap:9px; margin-bottom:24px;}
.solved-mock-bar{height:9px; background:var(--border-soft); border-radius:5px;}
.solved-mock-bar.w1{width:90%;}
.solved-mock-bar.w2{width:60%;}
.solved-mock-check{
  width:76px; height:76px;
  background:#22c55e;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  margin:22px auto 18px;
  box-shadow:0 8px 20px rgba(34,197,94,0.35);
}
.solved-mock-check svg{width:36px; height:36px;}
.solved-mock-status{
  text-align:center;
  font-size:19px;
  font-weight:800;
  color:var(--ink);
  margin-bottom:22px;
}
.solved-mock-bar-final{height:9px; background:var(--border-soft); border-radius:5px; width:100%;}

/* Floating card */
.solved-floating-card{
  position:absolute;
  right:-26px;
  top:54px;
  background:#fff;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg);
  padding:16px 20px;
  z-index:3;
  width:172px;
}
.solved-floating-card .label{font-size:12px; color:var(--gray-600); margin-bottom:6px;}
.solved-floating-card .number{font-size:23px; font-weight:800; color:var(--solved-strong); margin-bottom:8px;}
.solved-floating-card .chart-icon{color:var(--solved-strong); margin-top:6px;}
.solved-floating-card .chart-icon svg{width:26px; height:26px;}
.solved-floating-card .sub{font-size:11px; color:var(--gray-500);}

.solved-dot-decor{
  position:absolute;
  width:9px; height:9px;
  background:#22c55e;
  border-radius:50%;
  opacity:0.5;
}
.solved-dot-decor.d1{top:-10px; left:170px;}
.solved-dot-decor.d2{bottom:26px; left:-18px; width:6px; height:6px;}

/* ===== STATS BAR ===== */
.solved-stats-bar{
  margin-bottom:-8px;
}
.solved-stats-bar .wrap{
  position:relative;
  z-index:4;
}
.solved-stats-inner{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  display:flex;
  justify-content:space-between;
  padding:24px 30px;
  transform:translateY(-26px);
}
.solved-stat{
  display:flex;
  align-items:center;
  gap:13px;
  flex:1;
  justify-content:center;
  border-right:1px solid var(--border-soft);
}
.solved-stat:last-child{border-right:none;}
.solved-stat-icon{
  width:42px; height:42px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.solved-stat-icon svg{width:18px; height:18px;}
.solved-stat-icon.green{background:var(--solved-soft); color:var(--solved-strong);}
.solved-stat-icon.blue{background:#DBEAFE; color:#2563eb;}
.solved-stat-icon.orange{background:#FFEDD5; color:#ea580c;}
.solved-stat-icon.purple{background:#EDE9FE; color:#7c3aed;}
.solved-stat-icon.indigo{background:var(--primary-100); color:var(--primary);}
.solved-stat-text .num{font-size:21px; font-weight:800; color:var(--ink); line-height:1.2;}
.solved-stat-text .desc{font-size:12px; color:var(--gray-600);}

/* ===== MAIN LAYOUT ===== */
.solved-page{padding:0 0 24px;}
.solved-layout{
  display:flex;
  gap:24px;
  align-items:flex-start;
}

/* Sidebar */
.solved-sidebar{
  width:268px;
  flex-shrink:0;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px;
}
.solved-sidebar h3{font-size:16.5px; font-weight:700; color:var(--ink); margin-bottom:22px;}
.solved-filter-group{margin-bottom:20px;}
.solved-cats{margin-top:28px;}
.solved-field-label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--ink-soft);
  margin-bottom:9px;
}
.solved-search-box{position:relative;}
.solved-search-box input{
  width:100%;
  padding:10px 38px 10px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  font-size:13px;
  font-family:inherit;
  outline:none;
  transition:border-color .15s ease;
}
.solved-search-box input:focus{border-color:var(--primary);}
.solved-search-box svg{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  width:15px; height:15px;
  color:var(--gray-500);
}
.solved-select{
  width:100%;
  padding:10px 36px 10px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  font-size:13px;
  font-family:inherit;
  color:var(--ink-soft);
  background:#fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size:15px;
  appearance:none;
  cursor:pointer;
}
.solved-tags{display:flex; flex-direction:column; gap:6px;}
.solved-tag-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  color:var(--ink-soft);
  padding:10px 13px;
  border:1px solid transparent;
  border-radius:var(--radius-sm);
  background:var(--bg-soft);
  transition:background-color .15s ease, border-color .15s ease, color .15s ease;
}
.solved-tag-row:hover{
  background:#fff;
  border-color:var(--border);
  color:var(--ink);
}
.solved-tag-row.is-active{
  background:#fff;
  border-color:var(--primary);
  color:var(--primary);
  font-weight:600;
}
.solved-tag-row.is-active .count{color:var(--primary);}
.solved-tag-row .count{color:var(--gray-500); font-size:12px;}
.solved-view-tags{
  display:inline-block;
  margin-top:10px;
  font-size:13px;
  font-weight:600;
  color:var(--primary);
}
.solved-view-tags:hover{text-decoration:underline;}
.solved-clear-btn{
  width:100%;
  padding:10px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:#fff;
  font-size:13px;
  font-weight:600;
  color:var(--ink-soft);
  display:flex; align-items:center; justify-content:center; gap:8px;
  transition:background .15s ease;
}
.solved-clear-btn svg{width:15px; height:15px;}
.solved-clear-btn:hover{background:var(--bg-soft);}

/* ===== ISSUES LIST ===== */
.solved-content{flex:1; min-width:0;}
.solved-content-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}
.solved-content-top h3{font-size:16.5px; font-weight:700; color:var(--ink);}
.solved-controls{display:flex; gap:12px;}
.solved-control-btn{
  display:flex; align-items:center; gap:8px;
  padding:9px 15px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:#fff;
  font-size:13px;
  font-weight:500;
  color:var(--ink-soft);
  transition:background .15s ease;
}
.solved-control-btn svg{width:15px; height:15px;}
.solved-control-btn:hover{background:var(--bg-soft);}

/* Issue card */
.solved-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:16px 20px;
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:12px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.solved-card:hover{border-color:#D4D6E4; box-shadow:var(--shadow-sm);}
.solved-card-icon{
  width:40px; height:40px;
  background:var(--primary-100);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--primary);
  flex-shrink:0;
}
.solved-card-icon svg{width:21px; height:21px;}
.solved-card-main{flex:1; min-width:0;}
.solved-card-main h4{
  font-size:14.5px;
  font-weight:700;
  color:var(--ink);
  margin-bottom:5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.solved-card-meta{
  font-size:12px;
  color:var(--gray-500);
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.solved-card-meta span{display:inline-flex; align-items:center; gap:5px;}
.solved-card-meta svg{width:13px; height:13px;}

.solved-card-category{
  font-size:12px;
  font-weight:600;
  color:var(--primary);
  background:var(--primary-100);
  padding:5px 12px;
  border-radius:20px;
  white-space:nowrap;
}
.solved-card-badge{
  font-size:12px;
  font-weight:600;
  color:var(--solved-strong);
  background:var(--solved-soft);
  padding:5px 12px;
  border-radius:20px;
  display:inline-flex; align-items:center; gap:6px;
  white-space:nowrap;
}
.solved-card-badge svg{width:13px; height:13px;}
.solved-card-time{
  text-align:right;
  font-size:12px;
  color:var(--gray-500);
  white-space:nowrap;
  flex-shrink:0;
}
.solved-card-time .comments{
  display:flex; align-items:center; gap:4px;
  justify-content:flex-end;
  margin-bottom:3px;
  color:var(--gray-600);
  font-weight:600;
}
.solved-card-time .comments svg{width:13px; height:13px;}
.solved-card-time .posted{font-size:11.5px;}

/* Pagination */
.solved-pagination{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:22px;
  padding:0 4px;
  flex-wrap:wrap;
  gap:12px;
}
.solved-showing{font-size:13px; color:var(--gray-600);}
.solved-page-nums{display:flex; gap:6px; align-items:center;}
.solved-page-btn{
  min-width:34px; height:34px;
  padding:0 8px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  font-size:13px;
  font-weight:600;
  color:var(--ink-soft);
  background:#fff;
  transition:background .15s ease;
}
.solved-page-btn svg{width:15px; height:15px;}
.solved-page-btn.active{background:var(--primary); color:#fff; border-color:var(--primary);}
.solved-page-btn:hover:not(.active){background:var(--bg-soft);}
.solved-page-ellipsis{color:var(--gray-500); padding:0 2px;}

/* ===== CTA BANNER ===== */
.solved-cta{margin:32px 0;}
.solved-cta-inner{
  background:var(--solved-bg);
  border:1px solid var(--solved-soft);
  border-radius:var(--radius-lg);
  padding:30px 38px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
}
.solved-cta-left{display:flex; align-items:center; gap:18px;}
.solved-cta-icon{
  width:52px; height:52px;
  background:#22c55e;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  flex-shrink:0;
  box-shadow:0 6px 16px rgba(34,197,94,0.30);
}
.solved-cta-icon svg{width:24px; height:24px;}
.solved-cta-text h3{font-size:18.5px; font-weight:700; color:var(--ink); margin-bottom:5px;}
.solved-cta-text p{font-size:13.5px; color:var(--gray-600);}
.solved-cta-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 22px;
  border:1.5px solid #22c55e;
  border-radius:var(--radius-sm);
  color:var(--solved-strong);
  font-weight:600;
  font-size:14.5px;
  background:#fff;
  white-space:nowrap;
  transition:background .15s ease;
}
.solved-cta-btn svg{width:16px; height:16px;}
.solved-cta-btn:hover{background:var(--solved-bg);}

/* ===== TESTIMONIALS ===== */
.solved-testimonials{
  background:var(--bg-soft);
  padding:56px 0;
}
.solved-testimonials-title{text-align:center; margin-bottom:36px;}
.solved-testimonials-title h2{font-size:26px; font-weight:800; color:var(--ink); margin-bottom:8px;}
.solved-testimonials-title p{font-size:14px; color:var(--gray-600);}
.solved-testimonials-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin-bottom:30px;
}
.solved-testimonial-card{
  background:#fff;
  border-radius:var(--radius-lg);
  padding:26px;
  border:1px solid var(--border);
}
.solved-quote{width:24px; height:24px; color:var(--border); margin-bottom:14px; display:block;}
.solved-review{font-size:14.5px; color:var(--ink-soft); line-height:1.65; margin-bottom:16px;}
.solved-stars{color:#FBBF24; font-size:14px; letter-spacing:2px; margin-bottom:16px;}
.solved-user{display:flex; align-items:center; gap:12px;}
.solved-user img{width:40px; height:40px; border-radius:50%; object-fit:cover;}
.solved-user h5{font-size:14px; font-weight:700; color:var(--ink);}
.solved-user span{font-size:12px; color:var(--gray-500);}
.solved-view-all-wrap{text-align:center;}
.solved-view-all{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 26px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  font-size:14px;
  font-weight:600;
  color:var(--ink-soft);
  transition:border-color .15s ease, color .15s ease;
}
.solved-view-all svg{width:16px; height:16px;}
.solved-view-all:hover{border-color:var(--primary); color:var(--primary);}

/* ===== RESPONSIVE ===== */
@media (max-width:1100px){
  .solved-hero-right{display:none;}
  .solved-hero-left{max-width:640px;}
  .solved-stat:nth-child(5){display:none;}
}

@media (max-width:980px){
  .solved-hero-inner{flex-direction:column;}
  .solved-hero-right{display:block; width:100%; max-width:440px; margin:0 auto;}
  .solved-stats-inner{flex-wrap:wrap; transform:none; padding:20px 18px;}
  .solved-stat{flex:1 1 33%; padding:10px 0; border-right:none;}
  .solved-stat:nth-child(5){display:flex;}
  .solved-layout{flex-direction:column;}
  .solved-sidebar{width:100%;}
  .solved-testimonials-grid{grid-template-columns:repeat(2,1fr);}
}

@media (max-width:640px){
  .solved-hero{padding:40px 0 44px;}
  .solved-hero-left h2{font-size:30px;}
  .solved-hero-features{gap:20px;}
  .solved-feature{max-width:none; flex:1 1 140px;}

  .solved-stats-inner{flex-direction:column; gap:8px;}
  .solved-stat{flex:1 1 100%; justify-content:flex-start; padding:14px 0; border-bottom:1px solid var(--border-soft);}
  .solved-stat:last-child{border-bottom:none;}

  .solved-content-top{flex-direction:column; align-items:flex-start; gap:12px;}

  /* Each card keeps a complete border on all four sides; the card's own
     content scrolls horizontally so the page width never exceeds the
     viewport. */
  .solved-content{width:100%; max-width:100%;}
  .solved-card{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding:16px 20px;
    gap:16px;
  }
  .solved-card-category,
  .solved-card-badge{flex-shrink:0;}
  .solved-card-main{flex:0 1 auto; min-width:160px;}
  .solved-card-time{text-align:right;}

  .solved-cta-inner{flex-direction:column; align-items:flex-start; text-align:left;}
  .solved-cta-btn{width:100%; justify-content:center;}

  .solved-testimonials{padding:44px 0;}
  .solved-testimonials-grid{grid-template-columns:1fr;}
  .solved-pagination{flex-direction:column; align-items:flex-start;}
}
