/* ImgCub site styles - Kawaii Bear Theme */
.hero {
  text-align: left;
  padding: 48px 20px 36px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1::after {
  content: ' 🛡️';
  -webkit-text-fill-color: initial;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.8;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.tool-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  text-align: left;
}

.tool-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  background: var(--surface-hover);
}

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

.tool-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  display: block;
}

.tool-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.badge {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.seo-content ul {
  list-style: disc;
  padding-left: 20px;
}

.seo-content li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* Legal page styles */
.legal-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 24px 0 12px;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 8px;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content li {
  color: var(--text-muted);
  margin-bottom: 6px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Beautiful tool cards (matching main homepage design) */
.tools-section {
  padding: 80px 0;
  text-align: left;
  background: linear-gradient(135deg, #F0E8F5, #F5F0F8);
}

.tools-section h2 {
  font-size: 3em;
  color: #4A3050;
  margin-bottom: 60px;
  font-weight: 700;
}

.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 0 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.tool-card {
  cursor: pointer;
  background-color: white;
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(144, 112, 176, 0.2), 0 0 0 3px #F0E8F5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #E8DFF0;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: #D07070;
  transition: height 0.3s ease;
  z-index: 1;
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(144, 112, 176, 0.3), 0 0 0 3px #D8A080;
}

.tool-card:hover::before {
  height: 100%;
  opacity: 0.1;
}

.tool-card .tool-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  background-color: #70B870;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5em;
  color: white;
  box-shadow: 0 5px 15px rgba(112, 184, 112, 0.4);
  border: 2px solid #D8A080;
  position: relative;
  z-index: 2;
}

.tool-card .tool-icon svg {
  fill: currentColor;
  width: 60%;
  height: 60%;
}

.tool-card h3 {
  font-size: 1.8em;
  color: #4A3050;
  margin-bottom: 15px;
  font-weight: 700;
  z-index: 2;
}

.tool-card p {
  font-size: 1.1em;
  color: #4A3050;
  line-height: 1.6;
  z-index: 2;
}

@media (max-width: 600px) {
  .tools-section h2 {
    font-size: 2.2em;
  }
  .tool-cards {
    grid-template-columns: 1fr;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 28px 12px;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
}

/* Tool cards: icon+name centered, description left */
.tool-card {
  align-items: center;
  text-align: center;
}
.tool-card p {
  text-align: left;
  align-self: stretch;
}
