/* Templates Page Styles */
.templates-hero {
  padding: 6rem 0;
  background: var(--primary-mix);
  text-align: center;
}

.templates-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.templates-hero h2 {
  font-size: 3rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.templates-hero p {
  font-size: 1.25rem;
  color: var(--text-light);
}

/* Template Preview Section */
.template-preview {
  padding: 4rem 0;
  background: white;
}

.template-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.template-header {
  padding: 2rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.template-header h3 {
  font-size: 1.5rem;
  color: var(--text-color);
}

.template-actions {
  display: flex;
  gap: 1rem;
}

.template-body {
  padding: 2rem;
}

.cover-letter {
  font-family: var(--font-stack);
  line-height: 1.6;
  color: var(--text-color);
}

.letter-header,
.letter-footer {
  margin-bottom: 1.5rem;
}

.letter-content {
  margin-bottom: 2rem;
}

.letter-content p {
  margin-bottom: 1rem;
}

.letter-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.letter-content li {
  margin-bottom: 0.5rem;
}

/* Template Features Section */
.template-features {
  padding: 4rem 0;
  background: var(--bg-light);
}

.template-features h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-item h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.feature-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Template Tips Section */
.template-tips {
  padding: 4rem 0;
  background: white;
}

.template-tips h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 3rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tip-item {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.tip-item:hover {
  transform: translateY(-5px);
}

.tip-item h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.tip-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: var(--primary-mix);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .templates-hero h2,
  .template-features h2,
  .template-tips h2,
  .cta-content h2 {
    font-size: 2rem;
  }

  .template-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .template-actions {
    width: 100%;
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .templates-hero,
  .template-preview,
  .template-features,
  .template-tips,
  .cta-section {
    padding: 3rem 0;
  }

  .template-content {
    border-radius: 0;
  }

  .feature-item,
  .tip-item {
    padding: 1.5rem;
  }
}

.proposal-interface {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 2rem 0;
}

.interface-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--primary-mix);
  color: #fff;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-icon {
  font-size: 1.5rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.interface-content {
  padding: 1.5rem;
}

.input-section {
  margin-bottom: 1.5rem;
}

.input-section label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.text-area {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.generation-status {
  margin-bottom: 1.5rem;
}

.status-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress {
  height: 100%;
  background: var(--primary-color);
  width: 0;
  animation: progress 2s ease-in-out infinite;
}

.status-text {
  color: #666;
  font-size: 0.9rem;
}

.proposal-preview {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.match-rate {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.match-percentage {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.match-label {
  font-size: 0.8rem;
  color: #666;
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-line {
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  animation: shimmer 2s infinite;
}

.interface-footer {
  padding: 1.5rem;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
}

.metrics {
  display: flex;
  justify-content: space-around;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.metric-label {
  font-size: 0.8rem;
  color: #666;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes progress {
  0% {
    width: 0;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.preview-line {
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}
