---
// src/pages/resources/tutorials.astro
import BaseLayout from '../../layouts/BaseLayout.astro';
import Header from '../../components/Header.astro';
import Footer from '../../components/Footer.astro';

const title = "Tutorials | LaForceIT";
const description = "Step-by-step tutorials on DevOps, Kubernetes, home lab setup, infrastructure automation, and more.";
---

<BaseLayout title={title} description={description}>
  <Header slot="header" />
  
  <div class="container">
    <div class="page-header">
      <h1>Tutorials</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" width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
            <path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path>
            <path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>
          </svg>
        </div>
        <h2>Tutorials Coming Soon</h2>
        <p class="description">
          This section will feature comprehensive, step-by-step tutorials on a wide range of DevOps, infrastructure automation, and home lab topics. Each tutorial will include detailed explanations, code samples, diagrams, and real-world examples to help you master these technologies.
        </p>
        
        <div class="featured-tutorials">
          <div class="featured-header">
            <div class="featured-title">Featured Tutorials Preview</div>
            <div class="featured-subtitle">Coming Soon</div>
          </div>
          
          <div class="tutorials-grid">
            <div class="tutorial-card">
              <div class="tutorial-top">
                <div class="tutorial-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="M21 10H3M21 6H3M21 14H3M21 18H3"></path>
                  </svg>
                </div>
                <div class="tutorial-tags">
                  <span class="tutorial-tag">Kubernetes</span>
                  <span class="tutorial-tag">Beginner</span>
                </div>
              </div>
              <h3 class="tutorial-title">Setting Up a Kubernetes Cluster with K3s</h3>
              <p class="tutorial-excerpt">
                A comprehensive guide to setting up a lightweight Kubernetes cluster using K3s on minimal hardware.
              </p>
              <div class="tutorial-meta">
                <div class="tutorial-duration">
                  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                    <circle cx="12" cy="12" r="10"></circle>
                    <polyline points="12 6 12 12 16 14"></polyline>
                  </svg>
                  <span>30 min read</span>
                </div>
                <span class="tutorial-status">Coming Soon</span>
              </div>
            </div>
            
            <div class="tutorial-card">
              <div class="tutorial-top">
                <div class="tutorial-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="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="7.5 4.21 12 6.81 16.5 4.21"></polyline>
                    <polyline points="7.5 19.79 7.5 14.6 3 12"></polyline>
                    <polyline points="21 12 16.5 14.6 16.5 19.79"></polyline>
                    <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>
                <div class="tutorial-tags">
                  <span class="tutorial-tag">Terraform</span>
                  <span class="tutorial-tag">AWS</span>
                </div>
              </div>
              <h3 class="tutorial-title">Infrastructure as Code with Terraform on AWS</h3>
              <p class="tutorial-excerpt">
                Learn how to provision and manage AWS infrastructure using Terraform modules and best practices.
              </p>
              <div class="tutorial-meta">
                <div class="tutorial-duration">
                  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                    <circle cx="12" cy="12" r="10"></circle>
                    <polyline points="12 6 12 12 16 14"></polyline>
                  </svg>
                  <span>45 min read</span>
                </div>
                <span class="tutorial-status">Coming Soon</span>
              </div>
            </div>
            
            <div class="tutorial-card">
              <div class="tutorial-top">
                <div class="tutorial-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="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path>
                    <path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path>
                    <path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path>
                    <path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path>
                    <path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>
                  </svg>
                </div>
                <div class="tutorial-tags">
                  <span class="tutorial-tag">GitOps</span>
                  <span class="tutorial-tag">ArgoCD</span>
                </div>
              </div>
              <h3 class="tutorial-title">Setting Up GitOps Workflows with ArgoCD</h3>
              <p class="tutorial-excerpt">
                A step-by-step guide to implementing GitOps principles using ArgoCD for
                <h3 class="tutorial-title">Setting Up GitOps Workflows with ArgoCD</h3>
                <p class="tutorial-excerpt">
                  A step-by-step guide to implementing GitOps principles using ArgoCD for continuous deployment to Kubernetes clusters.
                </p>
                <div class="tutorial-meta">
                  <div class="tutorial-duration">
                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                      <circle cx="12" cy="12" r="10"></circle>
                      <polyline points="12 6 12 12 16 14"></polyline>
                    </svg>
                    <span>50 min read</span>
                  </div>
                  <span class="tutorial-status">Coming Soon</span>
                </div>
              </div>
              
              <div class="tutorial-card">
                <div class="tutorial-top">
                  <div class="tutorial-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="M22 12H2"></path>
                      <path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>
                      <line x1="6" y1="16" x2="6.01" y2="16"></line>
                      <line x1="10" y1="16" x2="10.01" y2="16"></line>
                    </svg>
                  </div>
                  <div class="tutorial-tags">
                    <span class="tutorial-tag">Networking</span>
                    <span class="tutorial-tag">Home Lab</span>
                  </div>
                </div>
                <h3 class="tutorial-title">Building a Secure Home Lab Network</h3>
                <p class="tutorial-excerpt">
                  Learn how to design and implement a secure, segmented network for your home lab environment with VLANs and proper firewall rules.
                </p>
                <div class="tutorial-meta">
                  <div class="tutorial-duration">
                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                      <circle cx="12" cy="12" r="10"></circle>
                      <polyline points="12 6 12 12 16 14"></polyline>
                    </svg>
                    <span>35 min read</span>
                  </div>
                  <span class="tutorial-status">Coming Soon</span>
                </div>
              </div>
            </div>
          </div>
          
          <div class="topic-categories">
            <h3 class="categories-title">Tutorial Categories</h3>
            <div class="categories-grid">
              <div class="category-pill">
                <div class="category-icon">🚢</div>
                <span class="category-name">Kubernetes</span>
              </div>
              <div class="category-pill">
                <div class="category-icon">🏠</div>
                <span class="category-name">Home Lab</span>
              </div>
              <div class="category-pill">
                <div class="category-icon">🔄</div>
                <span class="category-name">CI/CD</span>
              </div>
              <div class="category-pill">
                <div class="category-icon">📦</div>
                <span class="category-name">Docker</span>
              </div>
              <div class="category-pill">
                <div class="category-icon">🌐</div>
                <span class="category-name">Networking</span>
              </div>
              <div class="category-pill">
                <div class="category-icon">🔒</div>
                <span class="category-name">Security</span>
              </div>
              <div class="category-pill">
                <div class="category-icon">📊</div>
                <span class="category-name">Monitoring</span>
              </div>
              <div class="category-pill">
                <div class="category-icon">⚙️</div>
                <span class="category-name">Automation</span>
              </div>
            </div>
          </div>
          
          <div class="newsletter-signup">
            <div class="newsletter-content">
              <h3 class="newsletter-title">Get Notified About New Tutorials</h3>
              <p class="newsletter-text">Subscribe to receive notifications when new tutorials are published.</p>
            </div>
            <div class="newsletter-form">
              <input type="email" placeholder="Enter your email" class="newsletter-input" />
              <button class="newsletter-button">Subscribe</button>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  
  <Footer slot="footer" />
</BaseLayout>

<style>
  .page-header {
    margin: 3rem 0 4rem;
    position: relative;
  }
  
  h1 {
    font-size: var(--font-size-4xl);
    background: linear-gradient(90deg, var(--accent-tertiary), var(--accent-primary));
    -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-tertiary), var(--accent-primary));
    border-radius: 2px;
  }
  
  .coming-soon-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0 4rem;
  }
  
  .coming-soon-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 800px;
    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 50% 50%, rgba(139, 92, 246, 0.1), transparent 70%);
    pointer-events: none;
  }
  
  .icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-tertiary);
  }
  
  h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
  }
  
  .description {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    line-height: 1.7;
  }
  
  .featured-tutorials {
    margin-top: 2rem;
  }
  
  .featured-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
  }
  
  .featured-title {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    font-weight: 600;
  }
  
  .featured-subtitle {
    font-size: var(--font-size-sm);
    color: var(--accent-tertiary);
  }
  
  .tutorials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .tutorial-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .tutorial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-tertiary);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.1);
  }
  
  .tutorial-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
  
  .tutorial-icon {
    color: var(--accent-tertiary);
  }
  
  .tutorial-tags {
    display: flex;
    gap: 0.5rem;
  }
  
  .tutorial-tag {
    font-size: var(--font-size-xs);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-tertiary);
    border: 1px solid rgba(139, 92, 246, 0.2);
  }
  
  .tutorial-title {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
  }
  
  .tutorial-excerpt {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
  }
  
  .tutorial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
  }
  
  .tutorial-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: var(--font-size-xs);
  }
  
  .tutorial-status {
    font-size: var(--font-size-xs);
    color: var(--accent-primary);
  }
  
  .topic-categories {
    margin-bottom: 2.5rem;
  }
  
  .categories-title {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: 1.25rem;
  }
  
  .categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .category-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-secondary);
    border-radius: 50px;
    transition: all 0.3s ease;
  }
  
  .category-pill:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-2px);
    border-color: var(--accent-tertiary);
  }
  
  .category-icon {
    font-size: 1.25rem;
  }
  
  .category-name {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
  }
  
  .newsletter-signup {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .newsletter-content {
    flex: 1;
  }
  
  .newsletter-title {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
  }
  
  .newsletter-text {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
  }
  
  .newsletter-form {
    display: flex;
    gap: 0.75rem;
  }
  
  .newsletter-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    min-width: 250px;
  }
  
  .newsletter-input:focus {
    outline: none;
    border-color: var(--accent-tertiary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
  }
  
  .newsletter-button {
    background: linear-gradient(90deg, var(--accent-tertiary), var(--accent-primary));
    color: var(--bg-primary);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
  }
  
  @media (max-width: 768px) {
    .tutorials-grid {
      grid-template-columns: 1fr;
    }
    
    .newsletter-signup {
      flex-direction: column;
      align-items: stretch;
      gap: 1.5rem;
    }
    
    .newsletter-form {
      flex-direction: column;
    }
    
    .coming-soon-card {
      padding: 2rem 1.5rem;
    }
    
    h1 {
      font-size: var(--font-size-3xl);
    }
    
    h2 {
      font-size: var(--font-size-2xl);
    }
  }
</style>