/* AI Tool Detail Main Styles */

/* Header Styles */
.tool-header-container {
  display: flex;
  align-items: center;
  border-bottom: 2px solid red;
  padding-bottom: 5px;
  margin-bottom: 20px; /* Add margin to create space below header */
}

.tool-logo {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin-right: 20px;
  border: 1px solid #000000;
}

.tool-name {
  color: red;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0;
}

/* Tool Image Styles */
.tool-image-body {
  margin-top: 30px; /* Add top margin to create space from header */
}

.tool-main-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 1px solid black;
  border-radius: 5%;
  cursor: pointer;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(10px); /* Reduced upward movement */
}

.tool-main-image:hover {
  transform: translateY(5px); /* Reduced hover effect */
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

/* Action Buttons - Improved Layout */
.action-buttons {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 400px;
}

.action-buttons p {
  margin-bottom: 0;
}

.action-buttons .btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.action-buttons .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.action-buttons .btn svg {
  width: 18px;
  height: 18px;
}

/* Fix for bookmark form inside grid */
.action-buttons form {
  margin: 0;
  width: 100%;
}

.action-buttons form .btn {
  width: 100%;
}

/* Ensure last two buttons (bookmark and download) are side by side */
.action-buttons p:nth-last-child(2),
.action-buttons p:nth-last-child(1) {
  grid-column: auto;
}

/* Tags Section - Improved Styling */

.tag-link {
  font-size: 13px;
  margin-bottom: 1px;
}

.tag-link:hover {
  color: #59255F;
  border-color: #59255F;
  background: #f8f9fa;
  text-decoration: none;
}

/* Dark Mode Styles */
body.dark-mode .tool-name {
  color: #ff6b6b;
}

body.dark-mode .tool-logo {
  border-color: #404040;
}

body.dark-mode .tool-main-image {
  border-color: #404040;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tool-name {
    font-size: 1.5rem;
  }
  
  .tool-logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
  }
  
  .tool-main-image {
    height: 250px;
    transform: translateY(5px);
  }
  
  .tool-main-image:hover {
    transform: translateY(2px);
  }
  
  .action-buttons {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  .action-buttons p:last-child {
    grid-column: 1;
  }
}