/* Competitive Analysis Component Styles */
.competitive-analysis-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.competitive-analysis-header {
  text-align: center;
  margin-bottom: 30px;
}

.competitive-analysis-header h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.competitive-analysis-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Form Sections */
.form-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.form-section h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section h3 .material-icons {
  color: #3498db;
  font-size: 1.4rem;
}

/* Industry Selection */
.industry-select-group {
  position: relative;
}

.industry-select-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.industry-select-group select:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Competitors Input */
.competitors-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
}

.competitors-textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.competitors-help {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-top: 5px;
}

/* Analysis Scope and Depth */
.analysis-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .analysis-options {
    grid-template-columns: 1fr;
  }
}

.scope-depth-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e9ecef;
}

.scope-depth-card h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.scope-depth-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background-color: #ffffff;
}

/* Features Checkbox Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.feature-checkbox-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-checkbox-item:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.feature-checkbox-item.selected {
  background: #e3f2fd;
  border-color: #3498db;
}

.feature-checkbox-item input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

.feature-checkbox-item label {
  cursor: pointer;
  font-weight: 500;
  color: #2c3e50;
  margin: 0;
}

/* Results Section */
.analysis-results {
  margin-top: 30px;
}

.swot-analysis {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin: 20px 0;
  border-left: 5px solid #e74c3c;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.swot-analysis h3 {
  color: #e74c3c;
  margin-bottom: 15px;
}

.swot-content {
  line-height: 1.6;
}

.feature-matrix {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin: 20px 0;
  border-left: 5px solid #f39c12;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.feature-matrix h3 {
  color: #f39c12;
  margin-bottom: 15px;
}

.matrix-content {
  overflow-x: auto;
}

.matrix-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.matrix-content th,
.matrix-content td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.matrix-content th {
  background: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

.strategic-recommendations {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin: 20px 0;
  border-left: 5px solid #27ae60;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.strategic-recommendations h3 {
  color: #27ae60;
  margin-bottom: 15px;
}

.recommendations-content {
  line-height: 1.6;
}

.recommendations-content ul {
  padding-left: 20px;
}

.recommendations-content li {
  margin-bottom: 8px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-competitive {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-competitive:hover {
  background: linear-gradient(135deg, #2980b9, #3498db);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
  background: #6c757d;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error and Success Messages */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .competitive-analysis-container {
    padding: 15px;
  }
  
  .competitive-analysis-header h1 {
    font-size: 2rem;
  }
  
  .form-section {
    padding: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-competitive,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
  .competitive-analysis-container {
    background: #1a1a1a;
    color: #ffffff;
  }
  
  .form-section {
    background: #2d3748;
    border-color: #4a5568;
  }
  
  .form-section h3 {
    color: #e2e8f0;
  }
  
  .industry-select-group select,
  .competitors-textarea,
  .scope-depth-card select {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
  }
  
  .feature-checkbox-item {
    background: #4a5568;
    border-color: #718096;
  }
  
  .feature-checkbox-item label {
    color: #e2e8f0;
  }
  
  .swot-analysis,
  .feature-matrix,
  .strategic-recommendations {
    background: #2d3748;
    border-color: #4a5568;
  }
} 