/**
 * AI Search Simulator Tool Styles
 * Modern, visually appealing styling for the AI search simulator tool
 */

/* Main container styles */
.ai-search-simulator {
  padding: 3rem 0;
}

.ai-search-simulator .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero section */
.simulator-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.simulator-hero::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background-image: url('../images/simulator/ai-simulator-illustration.svg');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
  opacity: 0.85;
}

.simulator-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  max-width: 60%;
}

.simulator-hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  max-width: 60%;
  opacity: 0.9;
}

/* Simulator container */
.sim-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

/* Input section */
.sim-input {
  padding: 2rem;
  background-color: #f8fafc;
  border-bottom: 1px solid #e9eef6;
}

.sim-input textarea {
  width: 100%;
  min-height: 150px;
  padding: 1rem;
  border: 1px solid #d0dae9;
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.sim-input textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-secondary {
  background-color: #e9eef6;
  color: #64748b;
}

.btn-secondary:hover {
  background-color: #d8e2f3;
}

/* Results section */
.sim-results {
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sim-results.hidden {
  display: none;
}

/* Tabs */
.sim-tabs {
  display: flex;
  border-bottom: 1px solid #e9eef6;
  background-color: #f8fafc;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
}

/* Tab content */
.tab-content {
  padding: 2rem;
  animation: fadeIn 0.3s ease forwards;
}

.tab-content.hidden {
  display: none;
}

.tab-content h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #1e293b;
  font-size: 1.5rem;
}

/* Entity map */
.entity-map {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.entity {
  background-color: #f0f7ff;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 4px solid var(--primary-color);
}

.entity:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.entity span {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

.entity-person {
  border-left-color: #ec4899;
}

.entity-person span {
  background-color: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.entity-organization {
  border-left-color: #8b5cf6;
}

.entity-organization span {
  background-color: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.entity-topic {
  border-left-color: #0ea5e9;
}

.entity-topic span {
  background-color: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}

.entity-location {
  border-left-color: #10b981;
}

.entity-location span {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

/* Intent analysis */
.intent-score {
  margin-bottom: 1.5rem;
}

.intent-label {
  font-weight: 500;
  color: #475569;
  margin-bottom: 0.25rem;
}

.intent-value {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.score-bar {
  height: 8px;
  width: 100%;
  background-color: #e9eef6;
  border-radius: 8px;
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 8px;
  transition: width 1s ease-in-out;
}

/* Relevance metrics */
.relevance-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.relevance-metric {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.relevance-metric:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.metric-name {
  font-weight: 500;
  color: #475569;
  margin-bottom: 0.75rem;
}

.metric-score {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .simulator-hero::before {
    display: none;
  }
  
  .simulator-hero h1,
  .simulator-hero p {
    max-width: 100%;
  }
  
  .relevance-metrics {
    grid-template-columns: 1fr;
  }
  
  .sim-tabs {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
  }
}
