/* Tool Detail Page Styles */
.tool-detail-section {
  padding: 2rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.tool-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.tool-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Theme-based images (brand and footer only) */
[data-theme="dark"] img#brandLogo.theme-img,
[data-theme="dark"] .footer-logo img.theme-img {
  content: url("../assets/dr.png");
}

[data-theme="light"] img#brandLogo.theme-img,
[data-theme="light"] .footer-logo img.theme-img {
  content: url("../assets/li.png");
}

/* Tool icon theme switching - Only apply to specific images */
[data-theme="dark"] .footer-logo img.theme-img {
  content: url("../assets/dr.png");
}

[data-theme="light"] .footer-logo img.theme-img {
  content: url("../assets/li.png");
}

/* Tool images for light and dark themes */
[data-theme="dark"] .tool-icon-img[data-tool="interchange"] {
  content: url("../assets/T11.png") !important;
}

[data-theme="light"] .tool-icon-img[data-tool="interchange"] {
  content: url("../assets/T1.png") !important;
}

[data-theme="dark"] .tool-icon-img[data-tool="workhours"] {
  content: url("../assets/T22.png") !important;
}

[data-theme="light"] .tool-icon-img[data-tool="workhours"] {
  content: url("../assets/T2.png") !important;
}

[data-theme="dark"] .tool-icon-img[data-tool="merchant"] {
  content: url("../assets/T33.png") !important;
}

[data-theme="light"] .tool-icon-img[data-tool="merchant"] {
  content: url("../assets/T3.png") !important;
}

[data-theme="dark"] .tool-icon-img[data-tool="erp"] {
  content: url("../assets/T44.png") !important;
}

[data-theme="light"] .tool-icon-img[data-tool="erp"] {
  content: url("../assets/T4.png") !important;
}

.tool-title-section {
  flex: 1;
}

.tool-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.tool-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.tool-description {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.tool-features {
  margin-bottom: 2rem;
}

.tool-features h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.features-list {
  list-style-type: none;
  padding: 0;
}

.features-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.tool-screenshots {
  margin-bottom: 2rem;
}

.tool-screenshots h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.screenshot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.screenshot:hover .screenshot-img {
  transform: scale(1.05);
}

.tool-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.tool-actions .btn {
  text-decoration: none;
}

.tool-actions .btn:hover {
  text-decoration: none;
}

/* Header actions improvements */
.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
}

.header-actions .btn i {
  margin: 0;
}

/* Mobile Optimizations for header actions */
@media (max-width: 767px) {
  .header-actions {
    gap: 0.3rem;
  }

  .header-actions .btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .app-header {
    padding: 0.75rem 1rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .app-title {
    font-size: 1.2rem;
  }
}

/* RTL Support */
[dir="rtl"] .tool-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .features-list li {
  padding-left: 0;
  padding-right: 1.5rem;
}

[dir="rtl"] .features-list li::before {
  left: auto;
  right: 0;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .tool-detail-section {
    padding: 1rem 0;
  }

  .tool-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .tool-icon {
    width: 60px;
    height: 60px;
  }

  .tool-title {
    font-size: 1.5rem;
  }

  .tool-subtitle {
    font-size: 1rem;
  }

  .tool-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .tool-features h3,
  .tool-screenshots h3 {
    font-size: 1.25rem;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}