/* File: css/keyword_research.css */

/* Progress Bar */
.progress-bar-wrapper {
  margin: 20px 0;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar .progress {
  width: 0;
  height: 100%;
  background-color: #0d6efd;
  animation: progress-animation 2s infinite linear;
}

@keyframes progress-animation {
  0% {
    width: 0;
    margin-left: 0;
  }
  50% {
    width: 50%;
    margin-left: 25%;
  }
  100% {
    width: 0;
    margin-left: 100%;
  }
}

.progress-status {
  color: #6c757d;
  font-size: 0.9em;
}

/* Results Tabs */
.results-tabs {
  margin-top: 30px;
}

.nav-tabs {
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 20px;
}

.nav-tabs .nav-link {
  color: #495057;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  padding: 8px 16px;
  cursor: pointer;
}

.nav-tabs .nav-link:hover {
  border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs .nav-link.active {
  color: #0d6efd;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
}

/* Keywords List */
.keyword-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.keyword-item {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.keyword-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.keyword-text {
  font-size: 1.1em;
  color: #212529;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy-keyword {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.copy-keyword:hover {
  opacity: 1;
}

.keyword-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Badges */
.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
}

.badge-volume {
  background-color: #cfe2ff;
  color: #084298;
}

.badge-difficulty {
  background-color: #d1e7dd;
  color: #0a3622;
}

.badge-searches {
  background-color: #fff3cd;
  color: #664d03;
}

/* Action Buttons */
.keyword-actions {
  margin: 20px 0;
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #0d6efd;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #0b5ed7;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
  border: none;
}

.btn-secondary:hover {
  background-color: #5c636a;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.9em;
  z-index: 1000;
  opacity: 0;
  animation: toast-in-out 3s ease;
}

.toast-info {
  background-color: #0dcaf0;
}

.toast-success {
  background-color: #198754;
}

.toast-error {
  background-color: #dc3545;
}

@keyframes toast-in-out {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  15% {
    transform: translateY(0);
    opacity: 1;
  }
  85% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Topics Section */
.topics-section {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.topics-section h4 {
  margin-bottom: 16px;
  color: #212529;
}

.topics-list,
.intent-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.topics-list li,
.intent-list li {
  padding: 8px 12px;
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* Error Message */
.error-message {
  background-color: #f8d7da;
  color: #842029;
  padding: 12px;
  border-radius: 4px;
  margin: 20px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .keyword-list {
    grid-template-columns: 1fr;
  }

  .keyword-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Add to css/keyword_research.css */

.generate-keywords-btn {
  margin: 20px 0;
  padding: 10px 20px;
}

.generate-keywords-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.progress-bar-wrapper {
  display: none;
  margin: 20px 0;
  text-align: center;
}

.error-message {
  display: none;
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}

.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 1000;
  animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 1; }
}