/* 
  styles-404.css - Dedicated styles for 404 error page 
  nav-grid may be put to additional use...
*/

/* Error header section */
.error-404-header {
  text-align: center;
  padding: 2rem 0 1rem 0;
}

.error-404-header .error-code {
  font-size: 4rem;
  color: var(--accent-main);
  margin: 0 0 0.5rem 0;
}

.error-404-header .error-title {
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.error-404-header .error-message {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Navigation grid */
.navigation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.nav-card {
  background: #e8e8e8;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.nav-card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.nav-card-icon .section-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-card-icon sl-icon {
  font-size: 3rem;
}

.nav-card h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.nav-card p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-grow: 1;
}

.nav-card .btn {
  margin-top: auto;
}

/* Popular frameworks section */
.popular-frameworks {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
}

.popular-frameworks .frameworks-title {
  margin: 0 0 1.5rem 0;
  color: var(--accent-main);
  font-size: 1.75rem;
}

/* Use blog-row styling for framework entries */
.popular-frameworks .framework-row {
  display: flex;
  background: #e8e8e8;
  flex-direction: column;
  padding: 1.5rem;
  margin-bottom: 0;
  border-radius: 0.4rem;
  border-bottom: 1.5rem solid lightgrey;
}

.popular-frameworks .framework-row:last-child {
  border-bottom: none;
}

.popular-frameworks .framework-row-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

.popular-frameworks .framework-image {
  cursor: pointer;
}

.popular-frameworks .framework-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.3rem;
  transition: transform 0.2s ease;
}


.popular-frameworks .framework-text {
  display: flex;
  flex-direction: column;
}

.popular-frameworks .framework-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.popular-frameworks .framework-text h3 a {
  color: var(--accent-main);
  text-decoration: none;
}


.popular-frameworks .framework-text sl-button {
  align-self: flex-end;
  margin-right: 20px;
}

.popular-frameworks .framework-text p {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Contact message */
.error-contact {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}

.error-contact a {
  color: var(--accent-main);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navigation-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .error-404-header .error-code {
    font-size: 3rem;
  }
  
  .popular-frameworks .framework-row-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .navigation-grid {
    grid-template-columns: 1fr;
  }
}