/* pdf-to-image.css – shared styles for: PDF to image, image hub.
   Loaded after /assets/css/site.css. Replaces: pdf-to-images.css, image-tools.css, image-convertor.css */

.tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3666d1, #2b4c94);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.tool-icon-fa {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3666d1;
    background: linear-gradient(135deg, #3666d1, #2b4c94);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.tool-description {
    font-size: 0.95rem;
    color: #5b6b80;
    line-height: 1.5;
    margin-bottom: 0;
}

.tool-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #38a169;
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.tool-preview-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid #e2e8f0;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.preview-image {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.preview-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(54, 102, 209, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.preview-label.after {
    background: rgba(56, 161, 105, 0.9);
    left: auto;
    right: 10px;
}

@media (max-width: 768px) {
  .preview-container {
      grid-template-columns: 1fr;
      gap: 1rem;
  }
}

.feature-highlight {
    background: linear-gradient(135deg, #3666d1 0%, #2b4c94 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    color: white;
    text-align: center;
}

.feature-highlight h2 {
    color: white;
    margin-bottom: 1rem;
}

.feature-highlight p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.comparison-table tr:hover {
    background: #f8fafc;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.step-number {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #3666d1;
    color: white;
    line-height: 36px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.info-box {
    background: #e6fffa;
    border-left: 4px solid #4fd1c5;
    padding: 1rem 1.5rem;
    border-radius: 0 6px 6px 0;
}

.warning-box {
    background: #fff5f5;
    border-left: 4px solid #fc8181;
    padding: 1rem 1.5rem;
    border-radius: 0 6px 6px 0;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.faq-question {
    background: #f7fafc;
}

.faq-answer {
    border-top: 1px solid #e2e8f0;
}

.format-comparison {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.comparison-card {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid;
}

.comparison-card.jpg {
    border-left-color: #c53030;
}

.comparison-card.png {
    border-left-color: #276749;
}

.comparison-card.bmp {
    border-left-color: #9c4221;
}

.comparison-card.tiff {
    border-left-color: #285e61;
}

.page-header {
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #5b6b80;
    margin-bottom: 1.5rem;
}

.security-alert {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #e6fffa, #b2f5ea);
    border: 2px solid #4fd1c5;
    border-radius: 12px;
    color: #234e52;
}

@media (max-width: 768px) {
  .tools-grid {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
  }
  
  .tool-card {
      padding: 1.25rem;
  }
  
  .page-header h1 {
      font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .tools-grid {
      grid-template-columns: 1fr;
  }
  
  .page-header h1 {
      font-size: 1.75rem;
  }
}

.breadcrumb {
    font-size: 0.9rem;
    color: #5b6b80;
}

.breadcrumb a {
    color: #3666d1;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #2b4c94;
    text-decoration: underline;
}

.breadcrumb span {
    color: #2d3748;
    font-weight: 500;
}

.tools {
    padding: 4rem 0;
    background: #f8f9fa;
}

.tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

@media (max-width: 480px) {
  .comparison-table {
      font-size: 0.9rem;
  }
  
  .comparison-table th,
    .comparison-table td {
      padding: 0.75rem 0.5rem;
  }
}
