/* Project Template CSS - Global styles for project showcase pages */
/* Following app.css patterns and reusable across multiple project pages */

/* Smooth scroll behavior for anchor navigation */
html {
  scroll-behavior: smooth;
}

/* Top anchor for scroll-to-top navigation */
#top {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  visibility: hidden;
}

/* Project page container - can be used with any project ID */
.project-page {
  overflow: hidden;
}

.project-page section {
  position: relative;
  padding: 2rem 0;
}

.project-page section:first-child {
  padding-top: 1rem;
}

/* Reuse text-style class pattern from Home.razor */
.project-page .text-style {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 200;
}

/* Project header */
.project-header {
  margin-bottom: 2rem;
}

.project-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 200;
  margin-top: 0;
}

/* Project links */
.project-links {
  margin: 2rem 0 3rem 0;
  display: flex;
  flex-wrap: wrap;
}

.project-links .btn {
  margin: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.project-links .btn-text:hover {
  text-decoration: underline;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 1.5rem;
}

.feature-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.feature-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.feature-card li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Tech stack section */
.tech-stack-section,
.architecture-section,
.api-response-section,
.project-footer {
  margin: 3rem 0;
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.tech-category h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: var(--primary-color);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* API response examples */
.response-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.response-example {
  background: var(--bg-secondary);
  overflow: hidden;
}

.response-example h4 {
  background: var(--primary-color);
  color: var(--text-secondary);
  margin: 0;
  padding: 1rem;
  font-size: 1rem;
}

.response-example pre {
  margin: 0;
  padding: 1rem;
  background: var(--bg-secondary);
  border: none;
}

.response-example code {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.api-docs-note {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--bg-secondary);
}

.api-docs-note code {
  background: var(--bg-primary);
  padding: 0.25rem 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Demo section styles */
.demo-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary-color);
}

.demo-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.demo-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-info p {
  margin: 0;
}

.integration-note {
  background: var(--bg-secondary);
  padding: 1.5rem;
  margin: 2rem 0;
}

.integration-note h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Headings follow app.css pattern */
.project-page h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  margin-top: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .project-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .response-examples {
    grid-template-columns: 1fr;
  }
  
  .tech-categories {
    grid-template-columns: 1fr;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .project-links .btn {
    margin: 0.25rem 0;
  }
  
  .demo-section {
    padding: 1rem;
  }
}

/* Custom icon mappings */
.bi-refinedgithub {
    background-image: url("../logos/refinedgithub.svg");
}