/* ===========================
   AUTO TOOLS AI PRO - STYLE
   =========================== */

body {
  font-family: system-ui, sans-serif;
  background: #fafafa;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: auto;
  padding: 20px;
}

.hero {
  background: linear-gradient(135deg, #0073e6, #0099ff);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.hero.small { padding: 30px 20px; }
.hero h1 { margin: 0; font-size: 2rem; }
.hero p { margin-top: 10px; opacity: 0.9; }
.hero .back {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.cat-card, .tool-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: #222;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  transition: all .2s ease;
}
.cat-card:hover, .tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}
.tool-card p { margin: 6px 0; color: #444; font-size: 0.9rem; }
.tool-card .cat { font-size: 0.8rem; color: #777; }

/* TOOL PAGE */
.tool-body {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 1px 5px rgba(0,0,0,.08);
}

.tool-frame {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.08);
}

.tool-guide h2, .related-tools h2 {
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 10px;
}
.tool-guide p {
  background: #f9f9f9;
  border-left: 4px solid #0073e6;
  padding: 10px 14px;
  border-radius: 5px;
  font-size: 0.95rem;
}

.related-tools .grid a {
  display: block;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #eee;
  text-decoration: none;
  color: #0073e6;
  transition: 0.2s;
}
.related-tools .grid a:hover {
  background: #f0f7ff;
}

.ads-block {
  text-align: center;
  margin: 20px 0;
}

.back-home {
  text-align: center;
  margin-top: 30px;
}
.btn-home {
  display: inline-block;
  padding: 10px 20px;
  background: #0073e6;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.2s;
}
.btn-home:hover { background: #005bb5; }

/* FOOTER */
.footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 25px 10px;
  margin-top: 40px;
  font-size: 0.9rem;
}
.footer a { color: #aaa; text-decoration: none; }

/* MOBILE */
@media(max-width:600px){
  .hero h1{font-size:1.5rem;}
  .tool-frame{height:480px;}
}