/* 404 Error Page Styles */
.error-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.error-404__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-404__container {
  max-width: 1200px;
  width: 100%;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.error-404__text {
  text-align: center;
}

.error-404__title {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-404__subtitle {
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 1rem 0;
}

.error-404__description {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin: 0 0 2rem 0;
  line-height: 1.6;
}

.error-404__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-404__search {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-404__search-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.error-404__search-form {
  display: flex;
  gap: 0.5rem;
  position: relative;
}

.error-404__search-label {
  position: absolute;
  left: -9999px;
}

.error-404__search-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: white;
}

.error-404__search-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.error-404__search-button {
  padding: 0.875rem 1.25rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-404__search-button:hover {
  background-color: #2980b9;
}

.error-404__suggestions {
  background-color: #fff;
  padding: 3rem 0;
  margin-top: 2rem;
}

.error-404__suggestions-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 2rem 0;
  text-align: center;
}

.error-404__posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.error-404__post {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.error-404__post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.error-404__post-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.error-404__post-link {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.error-404__post-link:hover {
  color: #3498db;
}

.error-404__post-date {
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .error-404__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .error-404__title {
    font-size: 6rem;
  }

  .error-404__subtitle {
    font-size: 1.5rem;
  }

  .error-404__actions {
    flex-direction: column;
    align-items: center;
  }

  .error-404__button {
    width: 100%;
    max-width: 300px;
  }

  .error-404__search-form {
    flex-direction: column;
  }

  .error-404__posts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .error-404 {
    padding: 1rem 0;
  }

  .error-404__title {
    font-size: 4rem;
  }

  .error-404__subtitle {
    font-size: 1.25rem;
  }

  .error-404__search {
    padding: 1.5rem;
  }

  .error-404__post {
    padding: 1rem;
  }
}

/* Screen reader only text */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
