/* Tool Detail Page Styles */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-muted: #f8fafc;
  --bg-white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
}

.dark {
  --primary: #a78bfa;
  --primary-hover: #8b5cf6;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --bg-muted: #1e293b;
  --bg-white: #0f172a;
  --success: #34d399;
  --warning: #fbbf24;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif, Georgia, serif);
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumbs li:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Back Navigation */
.back-nav {
  margin: 1rem 0;
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  margin: 2rem 0;
}

.hero-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tool-logo {
  width: 80px;
  height: 80px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  flex-shrink: 0;
  overflow: hidden;
}

.tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.logo-placeholder {
  font-size: 2.5rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  color: #fbbf24;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.rating-value {
  font-weight: 600;
  font-size: 1.125rem;
}

.review-count {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Quick Info Grid */
.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.info-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
}

.info-icon {
  font-size: 1.5rem;
}

.info-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.info-value {
  font-weight: 600;
}

/* Content Layout */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  margin: 3rem 0;
}

@media (max-width: 968px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar {
    order: 2;
  }
}

/* Main Content */
.main-content {
  min-width: 0;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.content-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.content-section a {
  color: var(--primary);
  font-weight: 500;
}

.content-section a:hover {
  text-decoration: underline;
}

.content-section ul {
  list-style: none;
  padding: 0;
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* Pricing Info */
.pricing-info {
  padding: 2rem;
  background: var(--bg-muted);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pricing-info h3 {
  margin-top: 0;
  color: var(--success);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.sidebar-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sidebar-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--bg-muted);
  border-radius: 6px;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.tag:hover {
  border-color: var(--primary);
  background: var(--bg-white);
}

.tag-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tag-primary:hover {
  opacity: 0.9;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

/* Similar Tools Section */
.similar-tools-section {
  margin: 4rem 0;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

.view-all-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-header {
    flex-direction: column;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .action-buttons {
    width: 100%;
  }

  .btn {
    flex: 1;
    justify-content: center;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .content-section h3 {
    font-size: 1.25rem;
  }
}

/* Print Styles */
@media print {
  .action-buttons,
  .sidebar,
  .back-nav,
  .breadcrumbs {
    display: none;
  }
}
