/* ========================================================
   CRYWOLF SPECIAL PAGES STYLES (OFFERS & USED PCS)
   ======================================================== */

/* --- Custom Banner / Hero Sections --- */
.specialHero {
  position: relative;
  padding: 3rem 2rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.offersHero {
  background: linear-gradient(135deg, #1e0b11 0%, #3e121b 50%, #61131a 100%);
  background-image: radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.15) 0%, transparent 50%),
                    linear-gradient(135deg, #1e0b11 0%, #3e121b 50%, #61131a 100%);
}

.usedHero {
  background: linear-gradient(135deg, #0b151e 0%, #12213e 50%, #133961 100%);
  background-image: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
                    linear-gradient(135deg, #0b151e 0%, #12213e 50%, #133961 100%);
}

.specialHeroContent {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.specialBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specialTitle {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.specialSubtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* --- Layout Grids --- */
.specialLayout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem 3rem 1rem;
}

.specialGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* --- Premium Offers Card --- */
.dealCard {
  background: var(--secondary-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dealCard:hover {
  transform: translateY(-6px);
  border-color: #ef4444 !important;
  box-shadow: 0 20px 30px -10px rgba(239, 68, 68, 0.2);
}

.dealImgWrap {
  position: relative;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-bottom: 1px solid var(--border-color);
}

.discountBadge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #ef4444;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
  z-index: 3;
}

.dealHotTag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dealImg {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.dealCard:hover .dealImg {
  transform: scale(1.05);
}

.dealContent {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dealCat {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dealTitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main) !important;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  flex-grow: 1;
}

.dealTitle a {
  color: var(--text-main) !important;
}

/* Stock Urgency Bar */
.dealStockWrap {
  margin-bottom: 1.25rem;
}

.dealStockLabel {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted) !important;
  margin-bottom: 0.35rem;
}

.dealStockLabel.low {
  color: #f87171 !important;
  font-weight: 600;
}

.dealStockBar {
  height: 5px;
  background: var(--border-color);
  border-radius: 99px;
  overflow: hidden;
}

.dealStockFill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ef4444);
  border-radius: 99px;
}

.dealPriceRow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  margin-top: auto;
}

.dealPriceWrap {
  display: flex;
  flex-direction: column;
}

.dealOldPrice {
  font-size: 0.85rem;
  color: var(--text-muted) !important;
  text-decoration: line-through;
  margin-bottom: 0.15rem;
}

.dealNewPrice {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ef4444;
  line-height: 1;
}

.dealAddBtn {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dealAddBtn:hover {
  background: #f87171;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* --- Premium Used Card --- */
.usedCard {
  background: var(--secondary-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.usedCard:hover {
  transform: translateY(-6px);
  border-color: #0ea5e9 !important;
  box-shadow: 0 20px 30px -10px rgba(14, 165, 233, 0.2);
}

.usedImgWrap {
  position: relative;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-bottom: 1px solid var(--border-color);
}

.conditionBadge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(14, 165, 233, 0.15);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  z-index: 3;
}

.warrantyBadge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3-rem 0.6rem;
  border-radius: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.usedImg {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.usedCard:hover .usedImg {
  transform: scale(1.05);
}

.usedContent {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.usedTitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main) !important;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.usedTitle a {
  color: var(--text-main) !important;
}

/* Specs Box (Structured Specifications Grid) */
.usedSpecsBox {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.specItem {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.specItem svg {
  width: 14px;
  height: 14px;
  color: #0ea5e9;
  flex-shrink: 0;
}

.usedPriceRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  margin-top: auto;
}

.usedPrice {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0ea5e9;
  line-height: 1;
}

.usedAddBtn {
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.usedAddBtn:hover {
  background: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* --- Spec Filtering Pills (Used PCs page header filters) --- */
.filterPillBox {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.filterPillLabel {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted) !important;
  margin-right: 0.5rem;
}

.filterPill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filterPill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.filterPill.activeUsed {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.25);
}

.filterPill.activeOffers {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

/* --- Empty Grid State --- */
.emptyGridState {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--secondary-bg) !important;
  border: 1px dashed var(--border-color) !important;
  border-radius: 20px;
  color: var(--text-muted) !important;
}

.emptyGridState svg {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.emptyGridState h3 {
  font-size: 1.3rem;
  color: var(--text-main) !important;
  margin-bottom: 0.5rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .specialHero {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }
  
  .specialTitle {
    font-size: 1.85rem;
  }
  
  .specialSubtitle {
    font-size: 0.95rem;
  }
  
  .specialGrid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .filterPillBox {
    gap: 0.5rem;
  }
  
  .filterPill {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}

/* --- Special Deals Main Tab Selector --- */
.specialMainTabWrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding-bottom: 0.5rem;
}

.specialMainTabs {
  display: flex;
  background: var(--secondary-bg) !important;
  border: 1px solid var(--border-color) !important;
  padding: 0.4rem;
  border-radius: 16px;
  gap: 0.5rem;
  max-width: 600px;
  width: 100%;
}

.specialMainTab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  color: var(--text-muted) !important;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.specialMainTab:hover {
  color: var(--text-main) !important;
  background: rgba(255, 255, 255, 0.03);
}

.specialMainTab.activeOffers {
  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px -6px rgba(239, 68, 68, 0.4) !important;
}

.specialMainTab.activeUsed {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px -6px rgba(14, 165, 233, 0.4) !important;
}

.specialMainTabPane {
  display: none;
}

.specialMainTabPane.activePane {
  display: block;
  animation: tabFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
