/* TOOLS MODULE STYLES */

#tools-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tools-hero {
  background: var(--navy);
  color: white;
  padding: 80px 20px 40px;
  text-align: center;
}

.tools-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 3rem;
  margin-bottom: 10px;
}

.tools-hero p {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 30px;
}

.tools-search {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.tools-search input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 30px;
  border: none;
  font-size: 1.1rem;
  outline: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tools-search .icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

/* Categories Filter */
.tools-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px;
  flex-wrap: wrap;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.cat-btn {
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-btn:hover {
  border-color: var(--blue);
}

.cat-btn.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* Tools Grid */
.tools-container {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-grow: 1;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tool-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border-color: var(--blue);
}

.tool-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.tool-card h3 {
  font-family: 'Manrope', sans-serif;
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: var(--navy);
}

.tool-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tool-btn {
  display: inline-block;
  text-align: center;
  padding: 10px;
  background: #f1f5f9;
  color: var(--blue);
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.tool-card:hover .tool-btn {
  background: var(--blue);
  color: white;
}

.tool-coming-soon {
  opacity: 0.6;
  pointer-events: none;
}

.tool-badge {
  display: inline-block;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 10px;
  vertical-align: middle;
}

/* Reusable Tool Page */
.tool-page-header {
  background: var(--navy);
  color: white;
  padding: 60px 20px 40px;
  text-align: center;
}

.tool-page-header h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.tool-workspace {
  max-width: 800px;
  margin: -30px auto 50px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 40px;
  position: relative;
  z-index: 10;
}

.upload-area {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 50px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.upload-area:hover, .upload-area.drag-active {
  border-color: var(--blue);
  background: #f0f7ff;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--blue);
}

.upload-area input[type="file"] {
  display: none;
}

.privacy-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 20px;
}

.privacy-notice svg {
  color: var(--green);
}

/* Responsive */
@media (max-width: 1050px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 790px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tools-hero h1 { font-size: 2rem; }
  .tool-workspace { margin-top: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); padding: 20px; }
}
.tool-card { transform-style: preserve-3d; perspective: 1000px; overflow: visible; }
