/* Examples Page Styles */
/* Examples Grid */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
/* Example Card */
.example-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.example-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.example-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.05) 100%);
}
/* Example Preview */
.example-preview {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.example-card.featured .example-preview {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
}
.preview-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  display: flex;
  justify-content: center;
}
.preview-icon:before {
  font-size: 4rem;
}
.preview-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.example-card.featured .preview-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff;
}
/* Example Content */
.example-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.example-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-main);
}
.example-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
}
/* Example Tags */
.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-accent);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.2s ease;
}
.tag:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}
/* Example Actions */
.example-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.example-actions .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.example-actions .btn-primary {
  background: var(--primary);
  color: white;
  border: none;
}
.example-actions .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}
.example-actions .btn:not(.btn-primary) {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--color-border);
}
.example-actions .btn:not(.btn-primary):hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--text-accent);
}
.example-actions .btn span[class^="icon-"]:before {
  font-size: 1rem;
}
/* Code Section */
.code-section {
  margin-bottom: 50px;
}
.code-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-main);
}
.code-section h3 span[class^="icon-"]:before {
  font-size: 1.5rem;
  color: var(--text-accent);
}
.code-section pre {
  margin: 0;
  border: 1px solid var(--color-border);
}
.code-section:last-child {
  margin-bottom: 0;
}
/* Responsive */
@media (max-width: 768px) {
  .examples-grid {
    grid-template-columns: 1fr;
  }
  .example-preview {
    height: 160px;
  }
  .preview-icon {
    font-size: 3rem;
  }
  .preview-icon:before {
    font-size: 3rem;
  }
  .example-actions {
    flex-direction: column;
  }
  .example-actions .btn {
    width: 100%;
  }
}
/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.example-card {
  animation: fadeInUp 0.5s ease-out;
}
.example-card:nth-child(1) {
  animation-delay: 0.1s;
}
.example-card:nth-child(2) {
  animation-delay: 0.2s;
}
.example-card:nth-child(3) {
  animation-delay: 0.3s;
}
.example-card:nth-child(4) {
  animation-delay: 0.4s;
}