/*
Theme Name: Avtos Tech
Author: AI Designer
Description: A high-performance, dark-mode automotive theme with cyber-industrial aesthetics.
Version: 1.1
*/

:root {
  /* Colors */
  --c-bg: #0E1014;
  --c-surface: #16191F;
  --c-surface-hover: #1E2229;
  --c-text: #FFFFFF;
  --c-text-muted: #9CA3AF;
  --c-accent: #C4F934; /* Acid Green */
  --c-accent-hover: #A3D91A;
  --c-border: #2A2E37;
  --c-error: #FF4444;

  /* Typography */
  --f-display: 'Space Grotesk', sans-serif;
  --f-body: 'Manrope', sans-serif;
  
  /* Spacing */
  --s-container: 1400px;
  --s-header: 100px;
  --gap-grid: 2rem;
  
  /* Effects */
  --shadow-card: 0 10px 30px rgba(0,0,0,0.3);
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul { list-style: none; }

/* UTILS */
.container {
  max-width: var(--s-container);
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--c-accent);
  color: var(--c-bg);
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--c-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(196, 249, 52, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}
.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
    color: #fff;
    box-shadow: none;
}

.btn-dark {
    background: var(--c-bg);
    color: var(--c-text);
}
.btn-dark:hover {
    background: #000;
    color: var(--c-accent);
}

/* HEADER */
.site-header {
  height: var(--s-header);
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(to bottom, rgba(14, 16, 20, 0.9), rgba(14, 16, 20, 0));
  backdrop-filter: blur(5px);
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--c-text);
  z-index: 10;
  margin-right: 4rem; /* Added spacing */
}

.brand-logo span { color: var(--c-accent); }

.main-nav {
  margin-left: auto; /* Push to right */
}

.main-nav ul {
  display: flex;
  gap: 4rem; /* Increased spacing */
}

.main-nav a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--c-text-muted);
  position: relative;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--c-text);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after { width: 100%; }

/* HERO */
.hero-section {
  position: relative;
  padding: 180px 0 100px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, #1a1f26 0%, var(--c-bg) 60%);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-tag {
  display: inline-block;
  color: var(--c-accent);
  font-family: var(--f-display);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  border: 1px solid var(--c-accent);
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: -2px;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--c-text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* SECTION TOPICS (New) */
.section-topics {
    padding: 4rem 0;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.topic-card {
    padding: 2rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: 0.3s;
}

.topic-card:hover {
    border-color: var(--c-accent);
    transform: translateY(-5px);
}

.topic-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.topic-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.topic-card p {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    margin-bottom: 1.5rem;
}

.topic-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--c-accent);
}

/* SECTION STATS (New) */
.section-stats {
    padding: 3rem 0;
    border-bottom: 1px solid var(--c-border);
}

.stats-wrap {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--f-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-text-muted);
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--c-border);
    transform: skewX(-20deg);
}

/* SECTION PROMO (New) */
.section-promo {
    padding: 6rem 0;
    background: var(--c-accent);
    color: var(--c-bg);
    margin-top: 4rem;
    overflow: hidden;
}

.promo-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo-content {
    max-width: 600px;
}

.promo-content h2 {
    color: var(--c-bg);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.promo-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.promo-visual {
    position: relative;
    width: 300px;
    height: 300px;
}

.promo-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    position: relative;
}

.promo-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
}

/* SECTION CTA (New) */
.section-cta {
    padding: 6rem 0;
    text-align: center;
}

.cta-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    position: relative;
}

.cta-wrap h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-wrap p {
    color: var(--c-text-muted);
    margin-bottom: 2rem;
}

.cta-form {
    display: flex;
    gap: 1rem;
}

.cta-form input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    background: var(--c-bg);
    color: #fff;
    font-family: var(--f-body);
}

.cta-form input:focus {
    border-color: var(--c-accent);
    outline: none;
}

/* SECTION HEADER (Common) */
.section-header {
    margin-bottom: 3rem;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.section-line {
    width: 60px;
    height: 4px;
    background: var(--c-accent);
}

/* CARDS GRID */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: var(--gap-grid);
}

.post-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--c-accent);
}

.card-thumb-link {
  position: relative;
  padding-top: 60%; /* Aspect Ratio */
  overflow: hidden;
}

.card-thumb-link img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .card-thumb-link img {
  transform: scale(1.05);
}

.card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 1rem;
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-cat {
  color: var(--c-accent);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.card-title a:hover {
  color: var(--c-accent);
}

.card-excerpt {
  color: var(--c-text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.read-more:hover {
  color: var(--c-accent);
}

/* PAGINATION */
.avtos-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 4rem 0;
}

.avtos-pagination .page-item a,
.avtos-pagination .page-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-text);
  font-weight: 600;
  transition: 0.2s;
}

.avtos-pagination .page-item .current {
  background: var(--c-accent);
  color: var(--c-bg);
  border-color: var(--c-accent);
}

.avtos-pagination .page-item a:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* FOOTER */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 6rem 0 2rem;
  margin-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--c-text-muted);
  max-width: 350px;
}

.footer-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: var(--c-text);
}

.footer-nav li { margin-bottom: 1rem; }
.footer-nav a { color: var(--c-text-muted); }
.footer-nav a:hover { color: var(--c-accent); }

.contact-list li {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--c-text-muted);
  letter-spacing: 1px;
}

.contact-val {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-text);
}

.contact-val:hover { color: var(--c-accent); }

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-title { font-size: 4rem; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-divider { display: none; }
}

@media (max-width: 768px) {
  .site-header { position: relative; background: var(--c-bg); }
  .header-wrap { flex-direction: column; gap: 1rem; }
  .main-nav ul { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
  .brand-logo { margin-right: 0; }
  
  .hero-section { padding: 4rem 0; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-btns { justify-content: center; }
  
  .posts-grid { grid-template-columns: 1fr; }
  
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  
  .promo-box { flex-direction: column; text-align: center; }
  .promo-visual { margin-top: 2rem; }
  .cta-form { flex-direction: column; }
}
