@charset "UTF-8";
/* ==================== Prompt Library Section ==================== */
.prompt-library-section {
  margin-bottom: 60px;
}

/* ==================== Category Filter ==================== */
.category-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* ==================== Prompts Grid ==================== */
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

/* ==================== Prompt Cards ==================== */
.prompt-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.prompt-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.prompt-card.hidden {
  display: none;
}

/* ==================== Prompt Header ==================== */
.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 15px;
}
.prompt-header h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.category-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  white-space: nowrap;
}

.copy-prompt-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.copy-prompt-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: scale(1.05);
}

/* ==================== Prompt Description ==================== */
.prompt-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ==================== Prompt Features ==================== */
.prompt-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ==================== Category Colors ==================== */
.prompt-card[data-category=business] .category-tag {
  background: rgba(0, 123, 255, 0.2);
  border-color: rgba(0, 123, 255, 0.4);
  color: #7db3ff;
}

.prompt-card[data-category=marketing] .category-tag {
  background: rgba(40, 167, 69, 0.2);
  border-color: rgba(40, 167, 69, 0.4);
  color: #7ed491;
}

.prompt-card[data-category=automation] .category-tag {
  background: rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.4);
  color: #ffd666;
}

.prompt-card[data-category=analysis] .category-tag {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.4);
  color: #ff7a8a;
}

/* ==================== Interactive Prompt Analyzer Styles ==================== */
.prompt-analyzer-section {
  margin-bottom: 60px;
}

.analyzer-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  margin-top: 40px;
}

.analyzer-input-section {
  margin-bottom: 40px;
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.input-header h4 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.char-counter {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

#promptInput {
  width: 100%;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s ease;
  font-family: inherit;
}
#promptInput:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
#promptInput::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.analyzer-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
}

.analysis-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.option-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  user-select: none;
}
.option-label input[type=checkbox] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.option-label input[type=checkbox]:checked + .checkmark {
  background: rgba(0, 123, 255, 0.3);
  border-color: rgba(0, 123, 255, 0.6);
}
.option-label input[type=checkbox]:checked + .checkmark::after {
  content: "✓";
  color: #7db3ff;
  font-size: 12px;
  font-weight: bold;
}

.analyze-button {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.3) 0%, rgba(0, 123, 255, 0.1) 100%);
  border: 1px solid rgba(0, 123, 255, 0.4);
  border-radius: 12px;
  padding: 12px 30px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
}
.analyze-button:hover {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.4) 0%, rgba(0, 123, 255, 0.2) 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
}
.analyze-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.analyze-button.loading .btn-text {
  display: none;
}
.analyze-button.loading .btn-loader {
  display: block;
}

.btn-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.analyzer-results-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.results-header h4 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.overall-score {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.score-value {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.score-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.score-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
}
.score-item .score-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}
.score-item .score-label .icon {
  font-size: 1.2rem;
}

.score-bar {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  height: 8px;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.score-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease;
  width: 0%;
}
.score-fill.structure-score {
  background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
}
.score-fill.clarity-score {
  background: linear-gradient(90deg, #4ecdc4, #7fdbf4);
}
.score-fill.specificity-score {
  background: linear-gradient(90deg, #45b7d1, #68c9f0);
}
.score-fill.effectiveness-score {
  background: linear-gradient(90deg, #96ceb4, #aad4c4);
}

.score-number {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

.analysis-feedback {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
}

.feedback-section,
.improvement-suggestions {
  margin-bottom: 25px;
}
.feedback-section:last-child,
.improvement-suggestions:last-child {
  margin-bottom: 0;
}
.feedback-section h5,
.improvement-suggestions h5 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.feedback-content,
.suggestions-content {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.placeholder-text {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
  .prompts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .category-filter {
    flex-direction: column;
    align-items: center;
  }
  .prompt-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .prompt-features {
    justify-content: flex-start;
  }
  .analyzer-container {
    padding: 25px;
  }
  .analyzer-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .analysis-options {
    justify-content: center;
  }
  .input-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .score-breakdown {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .prompt-card {
    padding: 20px;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .analyzer-container {
    padding: 20px;
  }
  .analysis-options {
    flex-direction: column;
    gap: 10px;
  }
}
