/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header styles */
header {
  background: white;
  padding: 2rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

header .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #f8f9fa;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: #e9ecef;
  color: #333;
  transform: translateY(-1px);
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  margin: 0;
}

/* Main content styles */
main {
  flex: 1;
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.template-detail {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  margin: 0 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #f1f3f4;
}

.template-preview {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  border: 1px solid #f1f3f4;
}

.template-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.template-detail p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
  font-weight: 400;
}

/* Footer styles */
footer {
  background: white;
  color: #666;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #f1f3f4;
  font-size: 0.95rem;
}

/* Responsive design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .template-detail {
    margin: 0 1rem;
    padding: 2rem;
  }
  
  main {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .back-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .template-detail {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .template-detail p {
    font-size: 1rem;
  }
}