/* ===== TEMPLATES PAGE ===== */
.templates .template-card {
  display: flex;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 30px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.templates .template-card:hover {
  transform: translateY(-6px);
  border: 1px solid rgba(203,108,230,0.3);
  box-shadow: 0 15px 40px rgba(203,108,230,0.15);
}

.template-preview {
  position: relative;
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
}

.template-preview img {
  max-width: 80%;
  padding: 15px;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #46d248;
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
}

.template-info {
  flex: 1;
  padding: 20px;
}

.template-info h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.template-info .tags span {
  background: rgba(203,108,230,0.2);
  color: #cb6ce6;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 5px;
  margin-right: 5px;
}

.template-info p {
  margin: 15px 0;
  opacity: 0.9;
}

.template-actions .btn-primary {
  display: inline-block;
  background: #cb6ce6;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.template-actions .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(203,108,230,0.3);
}

.template-actions .microcopy {
  font-size: 0.75rem;
  color: #bbb;
  margin-top: 8px;
}

/* ===== PAGE HERO ===== */
.page-hero {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  margin: 30px;
}

.page-hero h2 {
  color: #cb6ce6;
  font-size: 2rem;
  margin-bottom: 15px;
}

.page-hero p {
  color: #fff;
  opacity: 0.9;
  font-size: 1.1rem;
}

/* ===== RESPONSIVE ===== */
@media(max-width: 768px){
  .templates .template-card {
    flex-direction: column;
    align-items: center;
  }

  .template-preview {
    width: 100%;
    margin-bottom: 15px;
  }

  .template-info {
    width: 100%;
  }

  .page-hero {
    margin: 15px;
  }
}
