/* Essay Topic Generator - Tool Specific Styles */

/* ========== TOPICS HEADER ========== */
.topics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #e2e8f0;
  gap: 20px;
  flex-wrap: wrap;
}

.topics-header h2,
.topics-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  font-family: 'CircularStd', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.topics-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topics-count {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

#copyAllBtn,
.btn-copy-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #233f8c;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'CircularStd', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 2px 8px rgba(35, 63, 140, 0.2);
  width: auto;
  height: auto;
}

#copyAllBtn:hover,
.btn-copy-all:hover {
  background: #1f46b4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(35, 63, 140, 0.3);
}

#copyAllBtn svg,
.btn-copy-all svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========== TOPICS CONTENT ========== */
.topics-content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
  position: relative;
  min-height: 470px;
  max-height: 470px;
}

/* ========== TOPICS FOOTER ========== */
.topics-footer {
  padding: 24px 32px;
  border-top: 1px solid #e2e8f0;
}

.topics-footer .editors-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  padding: 20px 28px;
  border-radius: 16px;
}

.topics-footer .editors-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.topics-footer .editors-text-large {
  font-size: 15px;
  font-weight: 600;
  color: #075985;
  margin: 0;
}

.topics-footer .btn-polish {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #233f8c;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'CircularStd', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.25);
  flex-shrink: 0;
}

.topics-footer .btn-polish:hover {
  background: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 41, 59, 0.35);
}

.topics-footer .btn-polish svg {
  width: 20px;
  height: 20px;
}

/* ========== TOPICS LIST ========== */
.topics-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topic-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 0;
  transition: all 0.2s ease;
}

.topic-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.topic-item-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.topic-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #117bd4 0%, #2d96ee 100%);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'CircularStd', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.topic-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
  font-weight: 500;
  padding-top: 4px;
  word-wrap: break-word;
}

.topic-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-topic-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-topic-action:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

.btn-topic-action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-topic-action.copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #16a34a;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
  .topics-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }

  .topics-title {
    font-size: 18px;
  }

  .topics-actions {
    width: 100%;
    justify-content: space-between;
  }

  .topics-content {
    padding: 20px;
  }

  .topic-item {
    padding: 16px;
  }

  .topic-number {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .topic-text {
    font-size: 14px;
  }

  .topics-footer {
    padding: 20px;
  }

  .topics-footer .editors-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }

  .topics-footer .editors-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .topics-footer .btn-polish {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .topics-header {
    padding: 14px 16px;
  }

  .topics-content {
    padding: 16px;
    max-height: unset;
    min-height: unset;
  }

  .topics-list {
    gap: 12px;
  }

  .topic-item {
    padding: 14px;
  }

  .topic-item-header {
    gap: 12px;
  }

  .btn-copy-all {
    padding: 8px 12px;
    font-size: 12px;
  }

  .topics-count {
    font-size: 13px;
  }

  .btn-topic-action {
    width: 28px;
    height: 28px;
  }

  .btn-topic-action svg {
    width: 14px;
    height: 14px;
  }
}