---
// src/pages/projects/infrastructure-templates.astro
import BaseLayout from '../../layouts/BaseLayout.astro';
import Header from '../../components/Header.astro';
import Footer from '../../components/Footer.astro';

const title = "Infrastructure as Code Templates | ArgoBox";
const description = "Curated collection of reusable Terraform, Ansible, and Kubernetes manifests for building modern infrastructure environments.";
---

<BaseLayout title={title} description={description}>
  <Header slot="header" />
  
  <div class="container">
    <div class="page-header">
      <h1>Infrastructure as Code Templates</h1>
      <div class="header-accent"></div>
    </div>
    
    <div class="coming-soon-container">
      <div class="coming-soon-card">
        <div class="icon-container">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="60" height="60" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
            <polyline points="16 18 22 12 16 6"></polyline>
            <polyline points="8 6 2 12 8 18"></polyline>
            <line x1="12" y1="2" x2="12" y2="22"></line>
          </svg>
        </div>
        <h2>IaC Templates Coming Soon</h2>
        <p class="description">
          This section will provide a comprehensive collection of reusable Infrastructure as Code templates for building modern tech environments. These templates are designed to help you accelerate your infrastructure deployments with best practices built in.
        </p>
        
        <div class="template-categories">
          <div class="template-category">
            <div class="category-icon">
              <svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
                <rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect>
                <rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect>
                <line x1="6" y1="6" x2="6.01" y2="6"></line>
                <line x1="6" y1="18" x2="6.01" y2="18"></line>
              </svg>
            </div>
            <div class="category-content">
              <h3>Terraform Modules</h3>
              <p>Modular infrastructure components for cloud providers and on-premises environments.</p>
              <ul class="template-list">
                <li>Multi-cloud networking templates</li>
                <li>Kubernetes cluster provisioning</li>
                <li>Database deployment patterns</li>
                <li>Security & compliance configurations</li>
              </ul>
            </div>
          </div>
          
          <div class="template-category">
            <div class="category-icon">
              <svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
                <path d="M18 20V10"></path>
                <path d="M12 20V4"></path>
                <path d="M6 20v-6"></path>
                <path d="M18 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"></path>
                <path d="M12 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"></path>
                <path d="M6 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"></path>
              </svg>
            </div>
            <div class="category-content">
              <h3>Ansible Playbooks</h3>
              <p>Automation workflows for system configuration and application deployment.</p>
              <ul class="template-list">
                <li>Server hardening & compliance</li>
                <li>Application deployment patterns</li>
                <li>Monitoring setup automation</li>
                <li>Disaster recovery procedures</li>
              </ul>
            </div>
          </div>
          
          <div class="template-category">
            <div class="category-icon">
              <svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
                <path d="M22 12H2"></path>
                <path d="M5 12l3-3"></path>
                <path d="M5 12l3 3"></path>
                <path d="M19 12l-3-3"></path>
                <path d="M19 12l-3 3"></path>
              </svg>
            </div>
            <div class="category-content">
              <h3>Kubernetes Manifests</h3>
              <p>Production-ready configurations for containerized applications.</p>
              <ul class="template-list">
                <li>Application deployment blueprints</li>
                <li>GitOps-ready repository structure</li>
                <li>Security policies & network configurations</li>
                <li>Stateful workload templates</li>
              </ul>
            </div>
          </div>
        </div>
        
        <div class="cta-container">
          <a href="/blog?tag=infrastructure-as-code" class="cta-button secondary">
            <span>Read Related Articles</span>
            <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
              <line x1="5" y1="12" x2="19" y2="12"></line>
              <polyline points="12 5 19 12 12 19"></polyline>
            </svg>
          </a>
          <button class="cta-button primary">
            <span>Notify Me When Available</span>
            <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
              <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path>
              <path d="M13.73 21a2 2 0 0 1-3.46 0"></path>
            </svg>
          </button>
        </div>
      </div>
    </div>
    
    <!-- Related Projects Section -->
    <div class="related-projects">
      <h2 class="section-title">Related Projects</h2>
      <div class="projects-grid">
        <a href="/projects/github" class="related-project">
          <div class="project-icon">
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
              <path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
            </svg>
          </div>
          <h3>GitHub Repositories</h3>
          <p>Open-source infrastructure code and automation scripts.</p>
          <span class="project-link">View Project <span class="arrow">→</span></span>
        </a>
        
        <a href="/projects/tech-stack" class="related-project">
          <div class="project-icon">
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
              <line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line>
              <path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>
              <polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline>
              <line x1="12" y1="22.08" x2="12" y2="12"></line>
            </svg>
          </div>
          <h3>Tech Stack</h3>
          <p>Explore the technologies used in the ArgoBox infrastructure.</p>
          <span class="project-link">View Project <span class="arrow">→</span></span>
        </a>
        
        <a href="/homelab" class="related-project">
          <div class="project-icon">
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
              <rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect>
              <rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect>
              <line x1="6" y1="6" x2="6.01" y2="6"></line>
              <line x1="6" y1="18" x2="6.01" y2="18"></line>
            </svg>
          </div>
          <h3>Home Lab Infrastructure</h3>
          <p>Enterprise-grade home lab environment with production services.</p>
          <span class="project-link">View Project <span class="arrow">→</span></span>
        </a>
      </div>
    </div>
  </div>
  
  <Footer slot="footer" />
</BaseLayout>

<style>
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding, 1.5rem);
  }
  
  .page-header {
    margin: 3rem 0 4rem;
    position: relative;
  }
  
  h1 {
    font-size: var(--font-size-4xl, 2.5rem);
    background: linear-gradient(90deg, var(--accent-secondary, #3b82f6), var(--accent-primary, #06b6d4));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    margin-bottom: 0.5rem;
  }
  
  .header-accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-secondary, #3b82f6), var(--accent-primary, #06b6d4));
    border-radius: 2px;
  }
  
  .coming-soon-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0 4rem;
  }
  
  .coming-soon-card {
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--card-border, #334155);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
  }
  
  .coming-soon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1), transparent 70%);
    pointer-events: none;
  }
  
  .icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-secondary, #3b82f6);
  }
  
  h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: var(--font-size-3xl, 1.875rem);
    color: var(--text-primary, #f1f5f9);
  }
  
  .description {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-secondary, #cbd5e1);
    font-size: var(--font-size-lg, 1.125rem);
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .template-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .template-category {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-primary, #334155);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .template-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-secondary, #3b82f6);
  }
  
  .category-icon {
    color: var(--accent-secondary, #3b82f6);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
  }
  
  .category-content {
    flex: 1;
  }
  
  .category-content h3 {
    font-size: var(--font-size-xl, 1.25rem);
    margin-bottom: 1rem;
    color: var(--text-primary, #f1f5f9);
    text-align: center;
  }
  
  .category-content p {
    color: var(--text-secondary, #cbd5e1);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: var(--font-size-md, 1rem);
  }
  
  .template-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .template-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.1);
    color: var(--text-tertiary, #94a3b8);
    font-size: var(--font-size-sm, 0.875rem);
    position: relative;
    padding-left: 1.5rem;
  }
  
  .template-list li:last-child {
    border-bottom: none;
  }
  
  .template-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary, #06b6d4);
  }
  
  .cta-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .cta-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: var(--font-size-md, 1rem);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
  }
  
  .cta-button.primary {
    background: linear-gradient(90deg, var(--accent-secondary, #3b82f6), var(--accent-primary, #06b6d4));
    color: var(--bg-primary, #0f172a);
    border: none;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
  }
  
  .cta-button.secondary {
    background: transparent;
    border: 1px solid var(--accent-secondary, #3b82f6);
    color: var(--accent-secondary, #3b82f6);
  }
  
  .cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  }
  
  .cta-button.secondary:hover {
    transform: translateY(-3px);
    background: rgba(59, 130, 246, 0.1);
  }
  
  /* Related Projects Section */
  .related-projects {
    margin: 4rem 0;
  }
  
  .section-title {
    font-size: var(--font-size-2xl, 1.5rem);
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-secondary, #3b82f6), var(--accent-primary, #06b6d4));
    border-radius: 2px;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .related-project {
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--border-primary, #334155);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .related-project:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary, #06b6d4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }
  
  .project-icon {
    color: var(--accent-primary, #06b6d4);
    margin-bottom: 1rem;
  }
  
  .related-project h3 {
    font-size: var(--font-size-lg, 1.125rem);
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 0.75rem;
  }
  
  .related-project p {
    color: var(--text-tertiary, #94a3b8);
    font-size: var(--font-size-sm, 0.875rem);
    margin-bottom: 1.5rem;
  }
  
  .project-link {
    color: var(--accent-secondary, #3b82f6);
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 500;
    display: flex;
    align-items: center;
  }
  
  .arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
  }
  
  .related-project:hover .arrow {
    transform: translateX(5px);
  }
  
  @media (max-width: 768px) {
    .template-categories {
      grid-template-columns: 1fr;
    }
    
    .cta-container {
      flex-direction: column;
    }
    
    .coming-soon-card {
      padding: 2rem 1.5rem;
    }
    
    h1 {
      font-size: var(--font-size-3xl, 1.875rem);
    }
    
    h2 {
      font-size: var(--font-size-2xl, 1.5rem);
    }
  }
</style>