/*
Theme Name: Zohari Cars
Theme URI: https://www.youtube.com/@zoharicars
Author: Mike Zohari & ChatGPT
Description: Automotive media + WooCommerce theme with ads, news, articles, reviews, galleries, videos, brands/models, and auto shows.
Version: 1.2.0
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: zohari-cars
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --zc-black:#000;
  --zc-white:#fff;
  --zc-yellow:#ffd000;
  --zc-accent: var(--zc-yellow);
  --zc-bg:#0b0b0b;
  --zc-text:#f5f5f5;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--zc-bg);
  color: var(--zc-text);
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .site-title {
  font-family: 'Oswald', sans-serif;
  letter-spacing: .3px;
}

.container { width: min(1200px, 94%); margin: 0 auto; }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media(max-width:992px){ .grid.cols-4,.grid.cols-3{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px){ .grid.cols-4,.grid.cols-3,.grid.cols-2{ grid-template-columns:1fr; } }

/* === HEADER === */
.zc-header {
  position: sticky; top: 0; z-index: 1000;
  background: #111; border-bottom: 2px solid var(--zc-accent);
}
.zc-header-inner {
  display: grid;
  grid-template-columns: 160px 1fr 200px;
  align-items: center;
  padding: .5rem 0;
}
.zc-left { display:flex; align-items:center; gap:.5rem; }
.hamburger { width:28px; height:22px; cursor:pointer; display:inline-flex; flex-direction:column; justify-content:space-between; }
.hamburger span { display:block; height:3px; background:var(--zc-accent); }
.zc-logo a { color:var(--zc-accent); font-weight:800; text-decoration:none; }
.zc-center { text-align:center; }
.site-title { margin:.1rem 0 0; font-size:1.2rem; color:var(--zc-white); }
.site-slogan { margin:0; font-size:.85rem; color:#cfcfcf; }
.zc-right { display:flex; justify-content:flex-end; gap:.7rem; align-items:center; }
.zc-right a { color:var(--zc-accent); text-decoration:none; }
.zc-right a .fa-brands { font-size:1.05rem; }

/* === Drawer (Hamburger Menu) === */
#zc-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;              /* smaller width on desktop */
  max-width: 85vw;
  height: 100%;
  background: #0f0f0f;
  border-right: 2px solid var(--zc-accent);
  transform: translateX(-100%);
  transition: transform 0.25s ease-in-out;
  z-index: 2000;
  padding: 1rem 1.5rem 2rem 1rem;
  overflow-y: auto;
  box-shadow: 4px 0 12px rgba(0,0,0,0.6);
}
#zc-drawer.open {
  transform: translateX(0);
}

#zc-drawer #drawer-close {
  background: none;
  border: none;
  color: var(--zc-accent);
  font-size: 1.6rem;
  position: absolute;
  top: 10px;
  right: 12px;
  cursor: pointer;
}

#zc-drawer a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 0;
  font-size: 1rem;
  border-bottom: 1px solid #1a1a1a;
}
#zc-drawer a:hover {
  color: var(--zc-accent);
}

/* keep it smaller even on wide desktop screens */
@media (min-width: 1200px) {
  #zc-drawer {
    width: 240px;
  }
}


/* === CARDS === */
.card {
  background: #121212;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  overflow: hidden;
}
.card .media img { width: 100%; height: auto; display: block; }
.card .body { padding: .95rem; }
.card .title a { color: #fff; text-decoration: none; }
.card .meta { color: #aaa; font-size: .85rem; }

/* === TABS === */
.tabs { display:flex; border-bottom:2px solid #222; }
.tabs button {
  background: transparent; color:#bbb;
  border:0; padding:.6rem .9rem; cursor:pointer;
  font-weight:700;
}
.tabs button.active {
  color: var(--zc-accent);
  border-bottom: 2px solid var(--zc-accent);
}

/* === FOOTER === */
.zc-footer {
  background: #0f0f0f;
  border-top: 2px solid var(--zc-accent);
  padding: 1.8rem 0 1.4rem;
  color: #ddd;
}
.zc-footer .top {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid #222;
  padding-bottom: 1rem;
}
.zc-footer .left { display:flex; flex-direction:column; gap:.8rem; }
.zc-footer .live-search input {
  width:100%; padding:.6rem .8rem;
  border-radius:6px; border:1px solid #333;
  background:#141414; color:#fff;
}
.zc-footer .newsletter form { display:flex; gap:.5rem; }
.zc-footer .newsletter input[type=email] {
  flex:1; padding:.6rem .8rem;
  border:1px solid #333; border-radius:4px;
  background:#141414; color:#eee;
}
.zc-footer .newsletter button {
  background:var(--zc-accent); border:0;
  border-radius:4px; color:#000; font-weight:700;
  cursor:pointer; padding:.6rem 1rem;
}
.zc-footer .center { text-align:center; }
.zc-footer .footer-menu {
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:.7rem 1.2rem; list-style:none; padding:0; margin:0;
}
.zc-footer .footer-menu li a {
  color:#ddd; text-decoration:none; font-size:.95rem;
}
.zc-footer .footer-menu li a:hover { color:var(--zc-accent); }
.zc-footer .right { text-align:right; }
.zc-footer .right a {
  margin-left:.6rem; color:var(--zc-accent);
  text-decoration:none; font-weight:600;
}
.zc-footer .right a .fa-brands { font-size:1.1rem; }
.zc-footer .bottom { text-align:center; margin-top:1rem; }
.zc-footer .copyright { color:#888; font-size:.85rem; margin:0; }

@media(max-width:900px){
  .zc-footer .top { grid-template-columns:1fr; text-align:center; }
  .zc-footer .right { text-align:center; margin-top:1rem; }
}

/* === SCROLL BUTTON === */
#scroll-btn {
  position: fixed;
  right: 14px; bottom: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--zc-accent);
  color: #000; border: 0;
  cursor: pointer; font-weight: 800;
  z-index: 9999; display:flex; align-items:center; justify-content:center;
}

/* === RESPONSIVE EMBED === */
.responsive-embed { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; }
.responsive-embed iframe { position:absolute; top:0; left:0; width:100%; height:100%; }

/* === GENERAL === */
img.nodownload { -webkit-user-drag:none; user-drag:none; pointer-events:none; }
a, button { transition: all .2s ease; }
a:hover { color: var(--zc-accent); }

/* === LIVE SEARCH === */
#live-search-results {
  background:#111;
  border:1px solid #222;
  margin-top:.3rem;
  border-radius:6px;
}
#live-search-results a {
  display:block;
  padding:.4rem .6rem;
  color:#ddd;
  text-decoration:none;
}
#live-search-results a:hover {
  background:#181818;
  color:#fff;
}
.notice {
  background:#092;
  color:#fff;
  padding:.6rem .8rem;
  border-radius:6px;
}
/* Zohari Cars Contact Form Focus Effect */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form input[type="password"],
.contact-form input[type="search"],
.contact-form textarea {
  transition: all 0.3s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ffcc00 !important;
  box-shadow: 0 0 10px #ffcc00;
}
