/*
Theme Name: 4x4Auto Theme
Theme URI: https://4x4auto.pk
Author: 4x4Auto.pk
Author URI: https://4x4auto.pk
Description: Latest Hybrid Cars, 4x4 SUVs, EV News & Auto Reviews — Pakistan's premier auto news and buying guide theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: x4auto
*/

:root {
  --bg: #071016;
  --card: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.16);
  --text: #f5f7fb;
  --muted: #aab6c5;
  --neon: #00f5ff;
  --green: #51ff7a;
  --orange: #ffb347;
  --red: #ff4b6e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background:
    radial-gradient(circle at top left, rgba(0,245,255,0.22), transparent 35%),
    radial-gradient(circle at top right, rgba(81,255,122,0.16), transparent 35%),
    linear-gradient(135deg, #071016, #111827 45%, #050708);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(18px);
  background: rgba(5,10,15,0.78);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1180px;
  margin: auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo { font-size: 24px; font-weight: 900; letter-spacing: 1px; }
.logo span { color: var(--neon); text-shadow: 0 0 18px var(--neon); }

.menu { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--muted); }
.menu a:hover { color: var(--neon); }

/* ── HERO ── */
.hero {
  max-width: 1180px;
  margin: auto;
  padding: 70px 20px 35px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--green);
  font-size: 13px;
  margin-bottom: 16px;
}

h1 { font-size: clamp(34px,6vw,66px); line-height: 1.02; margin-bottom: 18px; }
h1 span { color: var(--neon); text-shadow: 0 0 25px rgba(0,245,255,0.7); }

.hero p { color: var(--muted); font-size: 18px; line-height: 1.7; margin-bottom: 24px; }

.searchBox { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.searchBox input {
  flex: 1; min-width: 230px; padding: 15px 16px;
  border-radius: 14px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.08); color: white; outline: none;
}

.btn {
  padding: 15px 20px; border-radius: 14px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--neon), var(--green));
  color: #001016; font-weight: 800; box-shadow: 0 0 25px rgba(0,245,255,0.25);
}

.heroCard {
  border: 1px solid var(--border); border-radius: 26px;
  background: rgba(255,255,255,0.08); padding: 24px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.35);
}

.stat { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 16px; }
.statBox {
  padding: 18px; border-radius: 18px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--border);
}
.statBox strong { display: block; font-size: 26px; color: var(--neon); }

/* ── TICKER ── */
.ticker { max-width: 1180px; margin: 10px auto 35px; padding: 0 20px; }
.tickerInner {
  overflow: hidden; border: 1px solid var(--border); border-radius: 18px;
  background: rgba(0,0,0,0.32); white-space: nowrap;
}
.tickerText {
  display: inline-block; padding: 14px 0;
  animation: moveTicker 42s linear infinite;
  color: var(--green); font-weight: 700;
}
@keyframes moveTicker {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* ── SECTIONS ── */
section { max-width: 1180px; margin: auto; padding: 35px 20px; }

.sectionTitle { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 20px; }
.sectionTitle h2 { font-size: 32px; }
.sectionTitle p { color: var(--muted); max-width: 560px; line-height: 1.6; }

.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }

/* ── CARDS ── */
.card {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 22px; padding: 20px; transition: 0.25s; min-height: 220px;
}
.card:hover {
  transform: translateY(-6px); border-color: var(--neon);
  box-shadow: 0 0 30px rgba(0,245,255,0.18);
}

.tag {
  display: inline-block; padding: 6px 10px; border-radius: 999px;
  background: rgba(0,245,255,0.12); color: var(--neon); font-size: 12px; margin-bottom: 12px;
}

.card h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.35; }
.card p  { color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.card a  { color: var(--green); font-weight: 800; }

/* ── AD BOX ── */
.adBox { max-width: 1180px; margin: 25px auto; padding: 25px 20px; }
.adInner {
  min-height: 110px; border: 1px dashed rgba(255,255,255,0.35);
  border-radius: 20px; display: grid; place-items: center;
  color: var(--muted); background: rgba(255,255,255,0.05);
}

/* ── TOOLS ── */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calculator {
  border: 1px solid var(--border); border-radius: 22px;
  padding: 22px; background: rgba(255,255,255,0.08);
}
.calculator input, .calculator select {
  width: 100%; padding: 14px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(0,0,0,0.25);
  color: white; margin: 8px 0 12px; outline: none;
}
.result {
  padding: 14px; border-radius: 14px;
  background: rgba(81,255,122,0.12); color: var(--green);
  font-weight: 800; margin-top: 10px;
}

/* ── PARTS ZONE ── */
.parts-zone { max-width: 1180px; margin: auto; padding: 50px 20px; color: #fff; }
.parts-zone h2 { font-size: 36px; margin-bottom: 10px; }
.parts-zone > p { color: #aab6c5; margin-bottom: 25px; }

.parts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }

.part-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px; padding: 20px; min-height: 250px; transition: 0.25s;
}
.part-card:hover {
  transform: translateY(-6px); border-color: #00f5ff;
  box-shadow: 0 0 25px rgba(0,245,255,0.20);
}
.part-card span {
  display: inline-block; color: #51ff7a;
  border: 1px solid rgba(81,255,122,0.35); padding: 6px 10px;
  border-radius: 999px; font-size: 12px; margin-bottom: 12px;
}
.part-card h3 { font-size: 21px; margin-bottom: 10px; }
.part-card p  { color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.part-card a {
  display: inline-block; margin: 8px 8px 0 0; padding: 10px 13px;
  border-radius: 12px; background: linear-gradient(135deg,#00f5ff,#51ff7a);
  color: #001016; font-weight: 800;
}

/* ── CHATBOT ── */
#autoBot {
  position: fixed; right: 18px; bottom: 18px; width: 340px; max-width: 92%;
  background: #081018; color: white;
  border: 1px solid rgba(0,245,255,0.45); border-radius: 18px;
  overflow: hidden; z-index: 9999;
  box-shadow: 0 0 35px rgba(0,245,255,0.25); font-family: Arial, sans-serif;
}
#botHeader {
  padding: 14px; font-weight: 900;
  background: linear-gradient(135deg,#00f5ff,#51ff7a); color: #001016;
}
#botMessages { height: 280px; overflow-y: auto; padding: 14px; font-size: 14px; }
.botMsg, .userMsg { padding: 10px 12px; border-radius: 14px; margin-bottom: 10px; line-height: 1.5; }
.botMsg  { background: rgba(255,255,255,0.10); }
.userMsg { background: rgba(0,245,255,0.18); text-align: right; }
#botInputBox { display: flex; border-top: 1px solid rgba(255,255,255,0.15); }
#botInput {
  flex: 1; padding: 12px; border: none; outline: none;
  background: #111827; color: white;
}
#botInputBox button {
  padding: 12px 14px; border: none;
  background: #51ff7a; color: #001016; font-weight: 800; cursor: pointer;
}

/* ── FOOTER ── */
footer {
  margin-top: 40px; border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.4); padding: 30px 20px;
  text-align: center; color: var(--muted);
}
footer p { margin-bottom: 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding-top: 42px; }
  .grid, .tools, .parts-grid { grid-template-columns: 1fr; }
  .menu { display: none; }
}
