/**
 * Inscape SPA - 404 Not Found Page Styles
 *
 * Comprehensive 404 page with product discovery, services,
 * and helpful navigation paths.
 *
 * @package PCC_Woo
 * @since 1.7.0
 */

/* ==================== 404 HERO SECTION ==================== */

/* Use enterprise hero styles - just add 404 specific tweaks */
.notfound-hero.ent-hero {
  min-height: 70vh;
}

/* 404 Visual Display */
.notfound-hero__visual {
  position: relative;
}

.notfound-hero__404-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
}

.notfound-hero__digit {
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ent-blue, #2563eb);
  text-shadow: 4px 4px 0 rgba(37, 99, 235, 0.15);
}

.notfound-hero__digit--chair {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
}

.notfound-hero__chair-svg {
  width: 100%;
  height: 100%;
  animation: chairBounce 3s ease-in-out infinite;
}

@keyframes chairBounce {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

/* Search Form */
.notfound-search-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.notfound-search-input-wrapper {
  flex: 1;
  position: relative;
}

.notfound-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--ent-gray-400, #94a3b8);
  pointer-events: none;
}

.notfound-search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 2px solid var(--ent-gray-200, #e2e8f0);
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.2s ease;
}

.notfound-search-input:focus {
  outline: none;
  border-color: var(--ent-blue, #2563eb);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Quick Links */
.notfound-hero__links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.notfound-hero__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ent-gray-600, #64748b);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.notfound-hero__link svg {
  width: 18px;
  height: 18px;
}

.notfound-hero__link:hover {
  color: var(--ent-blue, #2563eb);
  background: rgba(37, 99, 235, 0.08);
}

/* ==================== CONFIGURATOR CARD ==================== */

.notfound-configurator-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--ent-blue, #2563eb) 0%,
    #1d4ed8 100%
  );
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  color: white;
}

.notfound-configurator-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notfound-configurator-card__icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.notfound-configurator-card__content {
  flex: 1;
}

.notfound-configurator-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.notfound-configurator-card__text {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.notfound-configurator-card__btn {
  flex-shrink: 0;
}

/* ==================== PRODUCTS SECTION ==================== */

.notfound-products__grid {
  display: grid;
  gap: 1.5rem;
}

.notfound-products__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.notfound-products__footer {
  text-align: center;
  margin-top: 2rem;
}

/* Product Card (compact) */
.notfound-product-card {
  display: block;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.notfound-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.notfound-product-card__image {
  aspect-ratio: 1;
  background: var(--ent-gray-100, #f1f5f9);
  position: relative;
  overflow: hidden;
}

.notfound-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.notfound-product-card:hover .notfound-product-card__image img {
  transform: scale(1.05);
}

.notfound-product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ent-gray-300, #cbd5e1);
}

.notfound-product-card__placeholder svg {
  width: 48px;
  height: 48px;
}

.notfound-product-card__content {
  padding: 1rem;
}

.notfound-product-card__brand {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ent-blue, #2563eb);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.notfound-product-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ent-gray-900, #1e293b);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notfound-product-card__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ent-gray-500, #64748b);
  transition: color 0.2s ease;
}

.notfound-product-card:hover .notfound-product-card__link {
  color: var(--ent-blue, #2563eb);
}

/* ==================== CATEGORIES GRID ==================== */

.notfound-categories__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.notfound-category-card {
  display: block;
  text-decoration: none;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.notfound-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.notfound-category-card__image {
  aspect-ratio: 1;
  background: var(--ent-gray-100, #f1f5f9);
  position: relative;
  overflow: hidden;
}

.notfound-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.notfound-category-card:hover .notfound-category-card__image img {
  transform: scale(1.08);
}

.notfound-category-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ent-gray-300, #cbd5e1);
}

.notfound-category-card__placeholder svg {
  width: 40px;
  height: 40px;
}

.notfound-category-card__content {
  padding: 1rem;
  text-align: center;
}

.notfound-category-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ent-gray-900, #1e293b);
  margin-bottom: 0.25rem;
}

.notfound-category-card__count {
  font-size: 0.8125rem;
  color: var(--ent-gray-500, #64748b);
}

/* ==================== SERVICES GRID ==================== */

.notfound-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.notfound-service-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--ent-gray-100, #f1f5f9);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.notfound-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--ent-blue, #2563eb);
}

.notfound-service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    var(--ent-blue, #2563eb) 0%,
    #3b82f6 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.notfound-service-card__icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.notfound-service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ent-gray-900, #1e293b);
  margin-bottom: 0.5rem;
}

.notfound-service-card__text {
  font-size: 0.9375rem;
  color: var(--ent-gray-600, #64748b);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.notfound-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ent-blue, #2563eb);
  transition: gap 0.2s ease;
}

.notfound-service-card:hover .notfound-service-card__link {
  gap: 0.75rem;
}

/* ==================== DUO PRODUCTS (2 at 50% each) ==================== */

.notfound-duo__header {
  margin-bottom: 2rem;
}

.notfound-duo__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.notfound-product-large {
  display: flex;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.notfound-product-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.notfound-product-large__image {
  width: 45%;
  aspect-ratio: 1;
  background: var(--ent-gray-100, #f1f5f9);
  position: relative;
  overflow: hidden;
}

.notfound-product-large__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.notfound-product-large:hover .notfound-product-large__image img {
  transform: scale(1.05);
}

.notfound-product-large__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ent-gray-300, #cbd5e1);
}

.notfound-product-large__placeholder svg {
  width: 64px;
  height: 64px;
}

.notfound-product-large__content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notfound-product-large__brand {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ent-blue, #2563eb);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.notfound-product-large__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ent-gray-900, #1e293b);
  margin-bottom: 0.75rem;
}

.notfound-product-large__desc {
  font-size: 0.9375rem;
  color: var(--ent-gray-600, #64748b);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.notfound-product-large__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ent-blue, #2563eb);
  transition: gap 0.2s ease;
}

.notfound-product-large:hover .notfound-product-large__link {
  gap: 0.75rem;
}

/* ==================== FEATURED BRAND ==================== */

.notfound-brand__container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--ent-gray-900, #1e293b) 0%,
    #0f172a 100%
  );
  border-radius: 24px;
  padding: 4rem;
  color: white;
}

.notfound-brand__content .ent-eyebrow {
  color: var(--ent-blue-light, #60a5fa);
}

.notfound-brand__content .ent-heading-2 {
  color: white;
  margin-bottom: 1rem;
}

.notfound-brand__text {
  font-size: 1.0625rem;
  color: var(--ent-gray-300, #cbd5e1);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.notfound-brand__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
}

.notfound-brand__logo {
  max-width: 200px;
  max-height: 100px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.notfound-brand__logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: white;
}

/* ==================== FULL-WIDTH CAROUSEL (3 products) ==================== */

.ent-container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.notfound-carousel__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.notfound-product-wide {
  display: block;
  text-decoration: none;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.notfound-product-wide:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.notfound-product-wide__image {
  aspect-ratio: 4/3;
  background: var(--ent-gray-100, #f1f5f9);
  position: relative;
  overflow: hidden;
}

.notfound-product-wide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.notfound-product-wide:hover .notfound-product-wide__image img {
  transform: scale(1.05);
}

.notfound-product-wide__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ent-gray-300, #cbd5e1);
}

.notfound-product-wide__placeholder svg {
  width: 64px;
  height: 64px;
}

.notfound-product-wide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(37, 99, 235, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notfound-product-wide:hover .notfound-product-wide__overlay {
  opacity: 1;
}

.notfound-product-wide__btn {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--ent-blue, #2563eb);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.notfound-product-wide:hover .notfound-product-wide__btn {
  transform: translateY(0);
}

.notfound-product-wide__content {
  padding: 1.5rem;
}

.notfound-product-wide__brand {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ent-blue, #2563eb);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.notfound-product-wide__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ent-gray-900, #1e293b);
}

/* ==================== BLOG COMING SOON ==================== */

.notfound-blog__container {
  text-align: center;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e8f4fc 100%);
  border-radius: 24px;
}

.notfound-blog__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--ent-blue, #2563eb);
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.notfound-blog__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ent-gray-900, #1e293b);
  margin-bottom: 1rem;
}

.notfound-blog__text {
  font-size: 1.0625rem;
  color: var(--ent-gray-600, #64748b);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.notfound-blog__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.notfound-blog__topic {
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ent-gray-700, #334155);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.notfound-blog__cta {
  margin: 0 auto;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1200px) {
  .notfound-categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .notfound-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .notfound-carousel__track {
    grid-template-columns: repeat(2, 1fr);
  }

  .notfound-carousel__track > *:nth-child(3) {
    display: none;
  }
}

@media (max-width: 1024px) {
  .notfound-products__grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .notfound-configurator-card {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }

  .notfound-configurator-card__content {
    flex: 1 1 100%;
    order: 2;
    margin-top: 0.5rem;
  }

  .notfound-configurator-card__btn {
    order: 3;
    margin-top: 1rem;
  }

  .notfound-duo__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .notfound-product-large {
    flex-direction: column;
  }

  .notfound-product-large__image {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .notfound-brand__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 3rem 2rem;
  }

  .notfound-brand__text {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .notfound-hero.ent-hero {
    min-height: auto;
  }

  .notfound-hero__digit {
    font-size: 4rem;
  }

  .notfound-hero__digit--chair {
    width: 80px;
    height: 80px;
  }

  .notfound-search-form {
    flex-direction: column;
  }

  .notfound-configurator-card {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1.5rem;
  }

  .notfound-configurator-card__icon {
    width: 48px;
    height: 48px;
  }

  .notfound-configurator-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .notfound-products__grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .notfound-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .notfound-services__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .notfound-service-card {
    padding: 1.5rem;
  }

  /* Duo section mobile layout */
  .notfound-duo__grid {
    gap: 1.25rem;
  }

  .notfound-product-large__content {
    padding: 1.25rem;
  }

  .notfound-product-large__title {
    font-size: 1.125rem;
  }

  .notfound-product-large__desc {
    font-size: 0.875rem;
  }

  .notfound-carousel__track {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .notfound-carousel__track > *:nth-child(2),
  .notfound-carousel__track > *:nth-child(3) {
    display: none;
  }

  .notfound-blog__container {
    padding: 2.5rem 1.5rem;
  }

  .notfound-blog__title {
    font-size: 1.5rem;
  }

  /* Newsletter form in blog section - stack on mobile */
  .notfound-blog__cta .cta-newsletter__form {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .notfound-blog__cta .cta-newsletter__input {
    width: 100%;
  }

  .notfound-blog__cta .cta-newsletter__form button {
    width: 100%;
  }

  .notfound-brand__container {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .notfound-hero__digit {
    font-size: 3rem;
  }

  .notfound-hero__digit--chair {
    width: 60px;
    height: 60px;
  }

  .notfound-products__grid--4 {
    grid-template-columns: 1fr;
  }

  .notfound-categories__grid {
    grid-template-columns: 1fr;
  }

  .notfound-blog__topics {
    flex-direction: column;
    align-items: center;
  }

  .notfound-configurator-card__title {
    font-size: 1rem;
  }

  .notfound-configurator-card__text {
    font-size: 0.875rem;
  }
}
