/**
 * Mobile Anpassungen für Cyberpunk Icons und Layout
 * Erweiterte Version mit verbesserten Korrekturen für Showcase und Features
 * Letzte Aktualisierung: 05.06.2025 - Enhanced Agent Showcase Integration
 */

/* Enhanced Agent Showcase Mobile Optimization */
@media (max-width: 1200px) {
  .agent-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 2rem !important;
  }
  
  .agent-showcase-card {
    padding: 2rem 1.5rem !important;
  }
}

@media (max-width: 992px) {
  /* Agent Showcase specific mobile optimizations */
  .agent-showcase-section {
    padding: 3rem 1.5rem !important;
  }
  
  .agent-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
  }
  
  .agent-showcase-card {
    padding: 1.5rem 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .agent-card-icon {
    width: 70px !important;
    height: 70px !important;
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
  }
  
  .agent-capability-title {
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
  }
  
  .agent-capability-description {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }
  
  .agent-capability-features {
    margin-bottom: 1rem !important;
  }
  
  .agent-capability-feature {
    font-size: 0.85rem !important;
    padding: 0.3rem 0 !important;
  }

  /* Allgemeine mobile Anpassungen */
  @media (max-width: 992px) {
    /* Optimiertes Layout für alle Showcase-Items */
    .showcase-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 20px;
      width: 100%;
      margin-bottom: 30px;
      box-sizing: border-box;
      overflow: visible;
    }
    
    .showcase-image {
      width: 100px;
      height: 100px;
      margin: 0 auto 20px;
    }
    
    .showcase-content {
      width: 100%;
      padding: 0 10px;
    }
    
    /* Verbesserte Anzeige für Feature-Tags */
    .feature-tag {
      padding: 6px 12px;
      margin: 5px;
    }
    
    /* Drei Feature-Karten pro Reihe */
    .feature-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
    }
    
    .feature-card {
      margin-bottom: 20px;
      width: 100%;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  }

  /* Spezielle Model Studio Karten-Korrektur */
  .showcase-item:nth-child(2) {
    display: flex;
    width: 100%;
    overflow: visible;
  }

  .showcase-item:nth-child(2) .showcase-content {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Tablet-Anpassungen */
  @media (max-width: 768px) {
    /* Kleinere Icons auf Tablets */
    .showcase-image {
      width: 90px;
      height: 90px;
    }
    
    .cyberpunk-icon {
      width: 70%;
      height: 70%;
    }
    
    /* Anpassung für Feature-Tag-Icons */
    .feature-tag .cyberpunk-feature-icon {
      width: 16px;
      height: 16px;
      display: inline-block;
      vertical-align: middle;
    }
    
    /* Kleinere Pulsringe für mobile Geräte */
    .pulse-ring {
      border-width: 1px;
    }
    
    /* Optimiertes Feature-Grid für Tablets */
    .feature-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    /* Sorgt dafür, dass der Text in den Feature-Karten vollständig sichtbar ist */
    .feature-card h3 {
      font-size: 1.2rem;
      line-height: 1.3;
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
    }
    
    .feature-card p {
      font-size: 0.9rem;
      line-height: 1.4;
    }
  }

  /* Smartphone-Anpassungen */
  @media (max-width: 576px) {
    /* Noch kleinere Icons auf Smartphones */
    .showcase-image {
      width: 80px;
      height: 80px;
    }
    
    /* Vertikal zentrierte Feature-Tags */
    .feature-tag {
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 4px;
      padding: 4px 8px;
      font-size: 0.85rem;
    }
    
    .feature-tag .cyberpunk-feature-icon {
      margin-right: 3px;
      width: 14px;
      height: 14px;
    }
    
    /* Eine Feature-Karte pro Reihe auf kleinen Geräten */
    .feature-grid {
      grid-template-columns: 1fr;
      padding: 0 15px;
      box-sizing: border-box;
      max-width: 450px;
    }
    
    /* Verbessert die Darstellung der Model Studio Karte */
    .showcase-item:nth-child(2) {
      padding: 10px;
      margin-left: 0;
      margin-right: 0;
      width: 100%;
    }
    
    .showcase-item:nth-child(2) .showcase-content h3,
    .showcase-item:nth-child(2) .showcase-content p {
      width: 100%;
      text-align: center;
      padding: 0 10px;
      box-sizing: border-box;
    }
    
    /* Verbesserte Textdarstellung in den Showcasekarten */
    .showcase-content h3 {
      font-size: 1.4rem;
      margin-bottom: 0.75rem;
      line-height: 1.2;
    }
    
    .showcase-content p {
      font-size: 0.9rem;
      margin-bottom: 1rem;
      line-height: 1.5;
    }
    
    /* Verbesserte Darstellung für Aktionsbuttons */
    .showcase-actions {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }
    
    .action-button {
      width: 100%;
      margin: 5px 0;
      text-align: center;
      padding: 8px 16px;
      font-size: 0.9rem;
    }
    
    /* Sorgt für mittige Ausrichtung der Texte */
    .showcase-features {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      margin-bottom: 15px;
    }
  }

  /* Zusätzliche Anpassungen für sehr kleine Geräte */
  @media (max-width: 360px) {
    .showcase-content h3 {
      font-size: 1.2rem;
    }
    
    .showcase-content p {
      font-size: 0.85rem;
    }
    
    .feature-tag {
      font-size: 0.8rem;
      padding: 3px 6px;
    }
  }

  @media (max-width: 768px) {
    /* Single column layout for agent showcase */
    .agent-showcase-grid {
      grid-template-columns: 1fr !important;
      gap: 1.5rem !important;
    }
    
    .agent-showcase-section {
      padding: 2rem 1rem !important;
    }
    
    .agent-heading h2 {
      font-size: 2rem !important;
      margin-bottom: 1rem !important;
    }
    
    .agent-heading p {
      font-size: 1rem !important;
      margin-bottom: 2rem !important;
    }
    
    .agent-showcase-card {
      padding: 1.5rem !important;
      border-radius: 12px !important;
    }
    
    .agent-card-icon {
      width: 60px !important;
      height: 60px !important;
      font-size: 1.8rem !important;
    }
    
    .rotating-circle {
      border-width: 1.5px !important;
    }
  }

  @media (max-width: 480px) {
    /* Ultra mobile optimization */
    .agent-showcase-section {
      padding: 1.5rem 0.75rem !important;
    }
    
    .agent-showcase-card {
      padding: 1rem !important;
      border-radius: 8px !important;
    }
    
    .agent-card-icon {
      width: 50px !important;
      height: 50px !important;
      font-size: 1.5rem !important;
      margin-bottom: 0.75rem !important;
    }
    
    .agent-capability-title {
      font-size: 1.1rem !important;
    }
    
    .agent-capability-description {
      font-size: 0.8rem !important;
    }
    
    .agent-capability-feature {
      font-size: 0.75rem !important;
    }
  }
