/* ═══════════════════════════════════════════
   404 LUXURY CANVAS SETUP
   ═══════════════════════════════════════════ */
.fresh-404-canvas {
  background-color: #f0f4fb; /* Smooth light blue background matched */
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  box-sizing: border-box;
  font-family: inherit;
}

.error-404-premium {
  max-width: 650px;
  width: 100%;
  text-align: center;
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 24px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

/* Big 3D Typography Visual */
.error-visual {
  position: relative;
  margin-bottom: 20px;
}

.glitch-404 {
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
}

/* --- TYPOGRAPHY --- */
.error-subtitle {
  font-size: 13px;
  font-weight: 800;
  color: #eab308; /* Theme Gold */
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

.error-main-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 15px 0;
}

.error-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 35px 0;
}

/* --- WOW CTA ACTIONS BUTTONS --- */
.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}

.btn-404-primary,
.btn-404-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: none;
}

/* Main Interactive CTA Button */
.btn-404-primary {
  background-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.3);
}

.btn-404-primary:hover {
  background-color: #eab308;
  color: #0f172a;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px -6px rgba(234, 179, 8, 0.4);
}

/* Secondary Button */
.btn-404-secondary {
  background-color: #f1f5f9;
  color: #475569;
}

.btn-404-secondary:hover {
  background-color: #e2e8f0;
  color: #0f172a;
  transform: translateY(-3px);
}

/* --- MINIMAL SEARCH SYSTEM --- */
.error-search-box {
  border-top: 1px dashed #cbd5e1;
  padding-top: 30px;
}

.search-help-text {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

/* Fixing Default WordPress Search Input Form inside 404 */
.error-search-box form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  gap: 8px;
}

.error-search-box input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  background-color: #f8fafc;
  outline: none;
  transition: border-color 0.3s ease;
}

.error-search-box input[type="search"]:focus {
  border-color: #eab308;
}

.error-search-box input[type="submit"],
.error-search-box button[type="submit"] {
  background-color: #0f172a;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   RESPONSIVE DESIGN FOR MOBILE & TABLETS
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {
  .error-404-premium {
    padding: 35px 20px;
  }
  .glitch-404 {
    font-size: 80px;
  }
  .error-main-title {
    font-size: 24px;
  }
  .error-actions {
    flex-direction: column-reverse; /* Put primary CTA on top for mobile fingers */
    gap: 12px;
  }
  .btn-404-primary,
  .btn-404-secondary {
    width: 100%;
    padding: 14px 20px;
  }
}

/* ═══════════════════════════════════════════
   SEARCH CANVAS GRID LAYOUT
   ═══════════════════════════════════════════ */
.search-premium-canvas {
  background-color: #f0f4fb; /* Smooth light blue tone synced */
  min-height: 80vh;
  padding: 60px 0;
  box-sizing: border-box;
}

.search-container-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- HEADER DESIGNS --- */
.search-page-header {
  text-align: center;
  margin-bottom: 50px;
}

.search-badge {
  font-size: 12px;
  font-weight: 800;
  color: #eab308;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.search-page-title {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 25px 0;
}

.search-page-title span {
  color: #eab308;
  font-style: italic;
}

.search-bar-re-query {
  max-width: 500px;
  margin: 0 auto;
}

/* --- PREMIUM CARD GRIDS --- */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.search-result-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.search-result-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
}

/* Card Visuals & Badges */
.src-card-visual {
  position: relative;
  height: 180px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.src-thumb,
.src-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.src-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: rgba(234, 179, 8, 0.8);
}

.src-thumb-fallback span {
  font-size: 48px;
}

.src-type-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Card Typography Content */
.src-card-meta {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.src-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.src-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.src-result-card:hover .src-title a,
.src-title a:hover {
  color: #eab308;
}

.src-excerpt {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.src-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.src-result-card:hover .src-read-more {
  gap: 10px;
  color: #eab308;
}

.src-read-more span {
  font-size: 16px;
}

/* --- MODERN PAGINATION SYSTEMS --- */
.search-pagination-wrapper .pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.search-pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
  transition: all 0.3s ease;
}

.search-pagination-wrapper .page-numbers.current,
.search-pagination-wrapper .page-numbers:hover {
  background: #0f172a;
  color: #ffffff;
}

/* --- NO RESULTS CONSOLE --- */
.search-no-results {
  max-width: 550px;
  margin: 40px auto 0 auto;
  background: #ffffff;
  padding: 50px 30px;
  text-align: center;
  border-radius: 24px;
  box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.05);
}

.no-results-icon {
  width: 80px;
  height: 80px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: #64748b;
}

.no-results-icon span {
  font-size: 40px;
}

.search-no-results h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.search-no-results p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 25px 0;
}

.no-results-search-form {
  max-width: 400px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   RESPONSIVE LAYOUT RESPONSES
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .search-page-title {
    font-size: 26px;
  }
  .search-results-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .src-card-visual {
    height: 160px;
  }
}
