/* Common styles for all tool types */
:root {
  --otsm-primary-color: #007cba;
  --otsm-primary-hover: #006ba1;
  --otsm-text-color: #1a1a1a;
  --otsm-text-light: #666;
  --otsm-border-color: #eef0f5;
  --otsm-bg-light: #f8f9fa;
  --otsm-tag-bg: #f0f7ff;
  --otsm-tag-color: #0066cc;
  --otsm-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  --otsm-transition: all 0.3s ease;
}

/* Base tool container styles */
.otsm-shortcode {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: var(--otsm-shadow);
}

.otsm-shortcode h3 {
  margin: 0 0 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--otsm-border-color);
  color: var(--otsm-text-color);
  font-size: 1.6em;
  font-weight: 600;
}

/* Tool item styles */
.tool-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--otsm-border-color);
  padding-bottom: 20px;
  transition: var(--otsm-transition);
}

.tool-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.tool-item:hover {
  transform: translateY(-3px);
}

/* Tool icon styles */
.tool-icon {
  flex: 0 0 60px;
}

.tool-icon img {
  width: 60px;
  height: 60px;
  border: 1px solid var(--otsm-primary-color);
  border-radius: 8px;
  padding: 2px;
  object-fit: cover;
}

/* Tool content styles */
.tool-content {
  flex: 1;
}

.tool-title {
  margin: 0 0 10px;
  font-size: 1.2em;
  line-height: 1.3;
  font-weight: 600;
}

.tool-title a {
  color: var(--otsm-text-color);
  text-decoration: none;
  transition: var(--otsm-transition);
}

.tool-title a:hover {
  color: var(--otsm-primary-color);
}

.tool-description {
  color: var(--otsm-text-light);
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.tool-description p {
  margin: 0;
}

/* Tool meta styles */
.tool-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.tool-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--otsm-tag-bg);
  color: var(--otsm-tag-color);
  border-radius: 15px;
  font-size: 12px;
  text-decoration: none;
  transition: var(--otsm-transition);
}

.category-tag:hover {
  background: var(--otsm-primary-color);
  color: #ffffff;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 15px;
  background: var(--otsm-primary-color);
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.9em;
  text-decoration: none !important;
  transition: var(--otsm-transition);
}

.tool-link:hover {
  background: var(--otsm-primary-hover);
  color: #ffffff;
  transform: translateX(3px);
}

.tool-link .arrow {
  margin-left: 5px;
}

/* Views and date badges */
.tool-views,
.tool-date {
  font-size: 0.85em;
  color: var(--otsm-text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.views-count {
  color: #28a745;
  font-weight: 600;
}
.new-badge {
  color: #ffffff;
  font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
  .otsm-shortcode {
    padding: 20px;
  }

  .tool-item {
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  .tool-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .tool-link {
    width: 100%;
    justify-content: center;
  }
}

/* Grid layouts */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.tool_archive_page .breadcrumb-item.current {
  display: none;
}

@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}
