/* Templates Page Styles - New Design */
.templates-page {
  background: linear-gradient(135deg, #ffeef8 0%, #fff5f0 100%);
  min-height: 100vh;
}

/* Hero Section */
.templates-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.templates-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.templates-hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
}

.templates-hero-deco {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  opacity: 0.1;
  font-size: 3rem;
}

.deco-heart {
  animation: float 4s ease-in-out infinite;
}

.deco-heart:nth-child(2) {
  animation-delay: 1s;
}

.deco-heart:nth-child(3) {
  animation-delay: 2s;
}

.templates-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.templates-hero-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.templates-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.2;
}

.templates-hero-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Filter Section */
.templates-filter-wrap {
  padding: 60px 0;
  text-align: center;
  background: white;
}

.templates-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: #333;
  font-size: 1rem;
}

.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 20px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 25px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pill:hover {
  border-color: #ff6b9d;
  color: #ff6b9d;
}

.pill-active {
  background: #ff6b9d;
  border-color: #ff6b9d;
  color: white;
}

/* Templates Gallery */
.templates-gallery {
  padding: 60px 0;
  background: #f8f9fa;
}

.gallery-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.template-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.template-preview {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Template Preview Styles */
.template-preview-1 {
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.template-preview-2 {
  background: linear-gradient(135deg, #feca57 0%, #ff6b9d 100%);
}

.template-preview-3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.template-preview-4 {
  background: linear-gradient(135deg, #ffd93d 0%, #ff6bcb 100%);
}

.template-preview-5 {
  background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
}

.template-preview-6 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.template-preview-7 {
  background: linear-gradient(135deg, #ffd700 0%, #ff6b9d 100%);
}

.template-preview-8 {
  background: linear-gradient(135deg, #ff9ff3 0%, #feca57 100%);
}

.template-preview-9 {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff9ff3 100%);
}

.template-preview-10 {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff9ff3 100%);
}

.template-preview-11 {
  background: linear-gradient(135deg, #667eea 0%, #ff6b9d 100%);
}

.template-preview-12 {
  background: linear-gradient(135deg, #ffd93d 0%, #ff6b9d 100%);
}

.preview-icon {
  font-size: 3rem;
  color: white;
  opacity: 0.8;
  animation: pulse 2s ease-in-out infinite;
}

.template-card-body {
  padding: 25px;
}

.template-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.template-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ff6b9d;
  margin-bottom: 12px;
}

.template-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-card {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
}

/* No Results Message */
.templates-no-results {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: #666;
  background: white;
  border-radius: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* CTA Section */
.templates-cta {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.templates-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.templates-cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-icon {
  font-size: 3rem;
  color: white;
  margin-bottom: 20px;
  opacity: 0.8;
}

.templates-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

.templates-cta-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: white;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn-cta-gold {
  background: linear-gradient(135deg, #ffd700 0%, #ff6b9d 100%);
  color: white;
  padding: 15px 30px;
  font-size: 1rem;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-cta-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.footer-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .templates-hero-title {
    font-size: 2.5rem;
  }
  
  .templates-hero-sub {
    font-size: 1rem;
  }
  
  .templates-filter {
    flex-direction: column;
    gap: 15px;
  }
  
  .filter-pills {
    justify-content: center;
  }
  
  .gallery-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .template-card {
    margin: 0 10px;
  }
  
  .templates-cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .templates-hero {
    height: 50vh;
    min-height: 350px;
  }
  
  .templates-hero-title {
    font-size: 2rem;
  }
  
  .templates-hero-tagline {
    font-size: 0.9rem;
  }
  
  .templates-hero-sub {
    font-size: 0.9rem;
  }
  
  .filter-pills {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .pill {
    font-size: 0.8rem;
    padding: 6px 15px;
  }
}
