/*
 Theme Name:   GP Child
 Template:     generatepress
*/
/* Core container */
.ai-tool-container {
	background: #fff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Top section layout */
.ai-tool-top-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

/* Intro (left column) */
.ai-tool-intro {
  flex: 1;
  min-width: 300px;
}

/* Video (right column) */
.ai-tool-video {
  flex: 1;
  min-width: 300px;
}

/* Logo and title row */
.intro-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tool-title {
  font-size: 1.8rem;
  margin: 0;
}

/* Short description */
.tool-short-desc {
  margin: 10px 0;
  font-size: 1rem;
  color: #555;
}

/* Category + tags on the same line */
.tool-category-tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.tool-category a {
  color: #888;
  font-weight: bold;
  text-decoration: none;
}

.tool-tag a {
  color: #555;
  text-decoration: none;
  background: #f2f2f2;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Pricing ribbon and visit button */
.tool-pricing-and-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.pricing-ribbon {
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: capitalize;
}

.pricing-ribbon.free {
  background: #d1f7d1;
  color: #2a7f2a;
}

.pricing-ribbon.paid {
  background: #ffe2e2;
  color: #b30000;
}

.visit-site-btn {
  padding: 6px 12px;
  background: #5b2f91;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.visit-site-btn:hover {
  background: #431e6d;
}

/* Content and sticky screenshot */
/* Content section (flipped = screenshot left, content right) */
.ai-tool-content-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.ai-tool-content-section.flipped {
  flex-direction: row;
}

.tool-screenshot {
  flex: 1;
  min-width: 300px;
  position: sticky;
  top: 100px;
}

.tool-screenshot img {
  width: 100%;
  border-radius: 8px;
}

.tool-content {
  flex: 2;
  min-width: 300px;
}

/* Responsive stacking */
@media (max-width: 768px) {
  .ai-tool-content-section,
  .ai-tool-content-section.flipped {
    flex-direction: column;
  }

  .tool-screenshot {
    position: relative;
    top: auto;
  }
}

/* Related tools section */
.tool-related-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 60px;
}

.tool-related-section h3 {
  width: 100%;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.tool-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  flex: 3;
}

.tool-related-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 10px;
  transition: transform 0.2s;
}

.tool-related-card:hover {
  transform: translateY(-4px);
}

.tool-related-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.related-title {
  font-size: 0.95rem;
  margin-top: 8px;
}

.tool-sidebar {
  flex: 1;
}

/* Video fallback */
.video-placeholder {
  background: #eee;
  padding: 40px;
  text-align: center;
  color: #777;
  font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
  .ai-tool-top-section,
  .ai-tool-content-section,
  .tool-related-section {
    flex-direction: column;
  }

  .tool-pricing-and-link {
    flex-direction: column;
    align-items: flex-start;
  }
}
