/* ==================================================
   PREVIEW MODE: HIDE SCOUT AUTH-ONLY ELEMENTS
   ================================================== */

/* Hide Material Expert Helpdesk section */
#scout-helpdesk-btn,
.scout-helpdesk-note,
#material-concierge-btn,
.material-expert-section,
.helpdesk-section {
  display: none !important;
}

/* Hide search count on AI tab */
.scout-search-count,
#scout-searches-remaining,
#scout-rate-limit,
#scout-rate-limit-text {
  display: none !important;
}

/* PREVIEW MODE: All other styles remain identical to scout-styles.css */
/* Copy all remaining CSS from scout-styles.css below this line */
/* Scout Styles */

/* Tab Container */
.sf-tab-container {
  margin-bottom: 24px;
  border-bottom: 2px solid #e0e0e0;
}

.sf-tabs {
  display: flex;
  gap: 0;
}

.sf-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  transition: all 0.2s ease;
  position: relative;
}

.sf-tab:hover {
  color: #2157ac;
  background: rgba(33, 87, 172, 0.05);
}

.sf-tab-active {
  color: #2157ac;
  border-bottom-color: #2157ac;
  background: rgba(33, 87, 172, 0.05);
}

.sf-tab-icon {
  font-size: 18px;
}

.sf-tab-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: linear-gradient(135deg, #245a99 0%, #163d7a 100%);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tab Content */
.sf-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.sf-tab-content-active {
  display: block;
}

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

/* Scout Container */
.scout-container {
  max-width: 100%;
}

/* Scout Header */
.scout-header {
  margin-bottom: 24px;
}

.scout-header h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  background: linear-gradient(135deg, #245a99 0%, #163d7a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.scout-subtitle {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #666;
}

.scout-info-box {
  display: flex;
  flex-direction: column; /* Changed from default row to column */
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(36, 90, 153, 0.1) 0%, rgba(22, 61, 122, 0.1) 100%);
  border-left: 4px solid #245a99;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.scout-info-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.scout-info-text strong {
  color: #245a99;
  font-weight: 600;
}

.scout-info-text strong.scout-unvetted-text {
  color: #e74c3c !important;
  font-weight: 700 !important;
}

/* Scout Form */
.scout-search-form {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.scout-form-group {
  margin-bottom: 18px;
}

.scout-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #2c3e50;
}

.scout-form-group .required {
  color: #e74c3c;
}

.scout-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scout-input:focus {
  outline: none;
  border-color: #245a99;
  box-shadow: 0 0 0 3px rgba(36, 90, 153, 0.1);
}

.scout-textarea {
  resize: vertical;
  min-height: 80px;
}

.scout-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Rate Limit */
.scout-rate-limit {
  margin: 16px 0;
  padding: 10px 14px;
  background: white;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}

.rate-limit-ok {
  color: #27ae60;
  font-weight: 600;
}

.rate-limit-exceeded {
  color: #e74c3c;
  font-weight: 600;
}

/* Scout Buttons */
.scout-search-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #245a99 0%, #163d7a 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scout-search-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 90, 153, 0.3);
}

.scout-search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.scout-btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.scout-btn-primary {
  padding: 10px 20px;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scout-btn-primary:hover {
  background: #229954;
  transform: translateY(-1px);
}

.scout-btn-secondary {
  padding: 10px 20px;
  background: white;
  color: #245a99;
  border: 2px solid #245a99;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scout-btn-secondary:hover {
  background: #245a99;
  color: white;
}

.scout-btn-link {
  padding: 8px 16px;
  background: transparent;
  color: #e74c3c;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Results */
.scout-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.scout-results-title h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #2c3e50;
}

.scout-results-count {
  font-size: 14px;
  color: #666;
}

/* Loading text styling */
.scout-btn-loader .loading-text {
  display: inline-block;
  margin-left: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.scout-btn-loader .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Outreach Preview */
.scout-outreach-preview {
  background: #f0f7ff;
  border: 2px solid #245a99;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.scout-outreach-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.scout-outreach-title {
  font-weight: 600;
  font-size: 15px;
  color: #2c3e50;
}

.scout-outreach-actions {
  display: flex;
  gap: 10px;
}

.scout-outreach-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scout-outreach-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: white;
  border-radius: 6px;
  font-size: 13px;
}

.scout-outreach-name {
  font-weight: 600;
  color: #2c3e50;
  flex: 1;
}

.scout-outreach-email {
  color: #666;
  margin-left: 12px;
  flex: 1;
}

.scout-outreach-remove {
  background: #e74c3c;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.scout-outreach-remove:hover {
  background: #c0392b;
}

/* Lead Cards */
.scout-results-grid {
  display: grid;
  gap: 16px;
}

.scout-lead-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scout-lead-card:hover {
  border-color: #245a99;
  box-shadow: 0 4px 12px rgba(36, 90, 153, 0.1);
}

.scout-lead-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.scout-lead-title {
  flex: 1;
}

.scout-lead-title h4 {
  margin: 0 0 4px 0;
  font-size: 18px;
  color: #2c3e50;
}

.scout-confidence-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.scout-confidence-high {
  background: #d4edda;
  color: #155724;
}

.scout-confidence-medium {
  background: #fff3cd;
  color: #856404;
}

.scout-confidence-low {
  background: #f8d7da;
  color: #721c24;
}

.scout-confidence-very-low {
  background: #e0e0e0;
  color: #666;
}

.scout-lead-expand {
  background: transparent;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  color: #245a99;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.scout-lead-expand:hover {
  color: #163d7a;
}

.expand-text {
  font-size: 11px;
  letter-spacing: 0.5px;
}

.expand-icon {
  font-size: 14px;
}

.scout-lead-body {
  margin-bottom: 14px;
}

.scout-lead-location {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.scout-lead-description {
  font-size: 14px;
  color: #2c3e50;
  line-height: 1.5;
  margin-bottom: 12px;
}

.scout-lead-details {
  background: #f8f9fa;
  padding: 14px;
  border-radius: 6px;
  margin-top: 12px;
}

.scout-detail-row {
  display: flex;
  margin-bottom: 10px;
  font-size: 13px;
}

.scout-detail-row:last-child {
  margin-bottom: 0;
}

.scout-detail-label {
  font-weight: 600;
  color: #666;
  min-width: 70px;
}

.scout-link {
  color: #245a99;
  text-decoration: none;
}

.scout-link:hover {
  text-decoration: underline;
}

.scout-email {
  color: #27ae60;
  font-weight: 600;
}

.scout-no-email {
  color: #e74c3c;
  font-style: italic;
}

.scout-scoring-info {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
}

.scout-scoring-title {
  font-weight: 600;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scout-scoring-reasons {
  margin: 0;
  padding-left: 20px;
  font-size: 12px;
  color: #666;
  text-align: left;
}

.scout-scoring-reasons li {
  margin-bottom: 4px;
  text-align: left;
}

.scout-lead-footer {
  display: flex;
  gap: 10px;
}

.scout-btn-add-outreach {
  flex: 1;
  padding: 10px 16px;
  background: #245a99;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scout-btn-add-outreach:hover:not(:disabled) {
  background: #163d7a;
}

.scout-btn-add-outreach.scout-btn-added {
  background: #27ae60;
}

.scout-btn-add-outreach:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.scout-btn-visit-site {
  flex: 1;
  padding: 10px 16px;
  background: white;
  color: #245a99;
  border: 2px solid #245a99;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scout-btn-visit-site:hover {
  background: #245a99;
  color: white;
}

/* Empty State */
.scout-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.scout-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.scout-empty-state h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #2c3e50;
}

.scout-empty-state p {
  margin: 0;
  font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sf-tab {
    font-size: 11px;
    padding: 10px 8px;
    gap: 4px;
  }
  
  .sf-tab-text {
    display: inline;
    font-size: 11px;
    line-height: 1.2;
  }
  
  .sf-tab-icon {
    display: none;
  }
  
  .sf-tab-badge {
    font-size: 8px;
    padding: 2px 4px;
    white-space: nowrap;
  }
  
  .scout-form-row {
    grid-template-columns: 1fr;
  }
  
  .scout-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .scout-outreach-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .scout-outreach-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .scout-outreach-email {
    margin-left: 0;
  }
  
  .scout-lead-footer {
    flex-direction: column;
  }
}

/* Nested Tip Box (inside What is SCOUT box) */
.scout-tip-nested {
  background: #f0f7ff;
  border: 1px solid #d1e7ff;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 12px 0 0 0; /* Removed side margins */
  font-size: 13px;
  line-height: 1.5;
  color: #004085;
  text-align: center; /* Center the text */
}

.scout-tip-nested strong {
  color: #002752;
  font-weight: 600;
}

/* Helper text for New Search button */
.scout-new-search-note {
  margin: 5px 0 0 0;
  font-size: 12px;
  color: #666;
  font-style: italic;
  text-align: right;
}

/* Persistence note above Outreach List */
.scout-outreach-persistence-note {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  font-style: italic;
}
