/*
Theme Name: GoEVDaily
Theme URI: https://goevdaily.com
Author: GoEVDaily Team
Author URI: https://goevdaily.com
Description: A professional EV news publication theme for GoEVDaily.
Version: 8.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: goevdaily
*/

:root {
  --navy: #1b2a3b;
  --navy-light: #263d54;
  --blue: #2a7de1;
  --blue-soft: #e8f1fb;
  --green: #1a8a5a;
  --green-soft: #e6f5ee;
  --bg: #f4f5f7;
  --white: #ffffff;
  --text: #1b2a3b;
  --text-secondary: #5e6d7f;
  --text-muted: #8a96a5;
  --border: #e2e6ec;
  --border-light: #eef0f3;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --max-w: 1320px;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--navy); text-decoration: none; }

/* TICKER */
.goev-ticker-bar { background: var(--navy); height: 34px; display: flex; align-items: center; overflow: hidden; z-index: 100; }
.goev-ticker-label { background: var(--green); color: #fff; font-family: var(--font-condensed); font-weight: 700; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; padding: 0 14px; height: 100%; display: flex; align-items: center; white-space: nowrap; flex-shrink: 0; gap: 6px; }
.goev-ticker-pulse { width: 6px; height: 6px; background: #6fdf9f; border-radius: 50%; animation: goev-blink 1.4s ease-in-out infinite; }
@keyframes goev-blink { 0%,100%{opacity:1} 50%{opacity:.25} }
.goev-ticker-track { overflow: hidden; flex: 1; }
.goev-ticker-inner { display: flex; gap: 48px; white-space: nowrap; animation: goev-ticker 80s linear infinite; }
.goev-ticker-inner:hover { animation-play-state: paused; }
@keyframes goev-ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.t-item { font-size: 12px; font-weight: 500; color: #a8bdd0; display: inline-flex; align-items: center; gap: 8px; }
.t-tag { font-size: 9px; font-family: var(--font-condensed); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; background: rgba(42,125,225,.25); color: #7ab8f5; }

/* HEADER */
#masthead { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 90; }
.goev-header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 20px; position: relative; }
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.goev-logo-icon { width: 36px; height: 36px; background: var(--navy); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.site-title a { font-family: var(--font-condensed); font-weight: 800; font-size: 24px; letter-spacing: -.5px; line-height: 1; color: var(--navy); text-decoration: none; }
.site-title a span { color: var(--blue); }
.site-title a:hover { color: var(--navy); text-decoration: none; }
.site-description { font-size: 8.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

/* NAV */
#site-navigation { display: flex; gap: 1px; align-items: center; }
#site-navigation ul { list-style: none; display: flex; gap: 1px; }
#site-navigation a { font-family: var(--font-condensed); font-weight: 600; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; color: var(--text-secondary); text-decoration: none; padding: 6px 14px; border-radius: 6px; transition: all .15s; }
#site-navigation a:hover, #site-navigation .current-menu-item a { background: var(--navy); color: #fff; }

/* SEARCH */
.search-bar { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; gap: 6px; }
.search-bar input[type="search"] { border: none; background: transparent; font-size: 13px; color: var(--text); outline: none; width: 140px; font-family: var(--font-body); }

/* AD ZONES */
.goev-ad-header { background: var(--white); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 8px; min-height: 106px; }
.goev-ad-sidebar { min-height: 266px; width: 100%; display: flex; align-items: center; justify-content: center; }
.goev-ad-infeed { min-height: 100px; width: 100%; display: flex; align-items: center; justify-content: center; margin: 12px 0; }

/* LAYOUT */
.goev-wrap { max-width: var(--max-w); margin: 0 auto; padding: 28px 24px; display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
#primary { min-width: 0; }

/* CARDS */
.goev-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; border: 1px solid var(--border-light); }
.goev-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

/* HERO GRID */
.goev-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.goev-hero-featured { grid-column: 1 / 3; display: flex; min-height: 300px; overflow: visible; }
.goev-hero-featured .goev-card-img { width: 50%; flex-shrink: 0; border-radius: var(--radius-lg) 0 0 var(--radius-lg); overflow: hidden; }
.goev-hero-featured .goev-card-img img { width: 100%; height: 100%; object-fit: cover; }
.goev-hero-featured .goev-card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.goev-card-img { position: relative; overflow: hidden; }
.goev-card-img img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s ease; }
.goev-card:hover .goev-card-img img { transform: scale(1.03); }
.goev-card-body { padding: 20px 24px; }
.goev-card-body h2, .goev-card-body h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.3; color: var(--text); margin-bottom: 8px; }
.goev-card-body h2 a, .goev-card-body h3 a { color: inherit; text-decoration: none; }
.goev-card-body h2 a:hover, .goev-card-body h3 a:hover { color: var(--blue); }
.goev-hero-featured .goev-card-body h2 { font-size: 26px; line-height: 1.25; }
.goev-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 10px; }

/* CATEGORY TAGS */
.goev-cat-tag { display: inline-block; font-family: var(--font-condensed); font-weight: 700; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; color: #fff; margin-bottom: 10px; position: absolute; top: 12px; left: 12px; z-index: 2; }
.cat-news { background: var(--navy); }
.cat-review, .cat-reviews { background: var(--blue); }
.cat-deal, .cat-lease-deals { background: var(--green); }
.cat-tech, .cat-all-electric { background: #5b5fc7; }
.cat-charging, .cat-ev-gear { background: #c47d1a; }
.cat-hybrid-phev { background: #2a8a7a; }
.cat-tax-credits { background: #7a3db8; }

/* FEED */
.goev-feed-card { display: flex; gap: 16px; padding: 14px; margin-bottom: 10px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: box-shadow .2s, transform .2s; text-decoration: none; color: inherit; }
#goev-live-feed .goev-feed-card, #goev-live-feed-2 .goev-feed-card { opacity: 0; transform: translateY(8px); }
#goev-live-feed .goev-feed-card.visible, #goev-live-feed-2 .goev-feed-card.visible { opacity: 1; transform: translateY(0); transition: opacity .35s ease, transform .35s ease, box-shadow .2s; }
#goev-wp-posts .goev-feed-card { opacity: 1; transform: none; }
.goev-feed-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); text-decoration: none; }
.goev-feed-thumb { width: 120px; height: 82px; border-radius: 6px; flex-shrink: 0; overflow: hidden; }
.goev-feed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.goev-feed-body { flex: 1; min-width: 0; }
.goev-feed-body h4 { font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--text); margin-bottom: 5px; }
.goev-feed-body p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 6px; }
.goev-feed-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* SIDEBAR */
#secondary { display: flex; flex-direction: column; gap: 16px; }
.goev-widget { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); overflow: hidden; }
.goev-widget-title { background: var(--navy); color: #fff; padding: 12px 18px; font-family: var(--font-condensed); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; margin: 0; }
.goev-widget-content { padding: 14px 18px; }

/* BUTTONS */
.cbt { font-family: var(--font-condensed); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--border); background: var(--white); color: var(--text); cursor: pointer; transition: all .15s; }
.cbt:hover, .cbt.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.btn-lm { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); font-family: var(--font-condensed); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 11px 28px; border-radius: 6px; cursor: pointer; transition: all .15s; }
.btn-lm:hover { background: var(--navy); color: #fff; }

/* DEALS */
.deal-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-light); gap: 10px; }
.deal-item:last-child { border-bottom: none; }
.d-car { font-weight: 600; font-size: 13px; color: var(--text); }
.d-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.d-price { font-family: var(--font-condensed); font-weight: 800; font-size: 17px; color: var(--green); white-space: nowrap; text-align: right; }
.d-badge { background: var(--green-soft); color: var(--green); font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 12px; margin-top: 2px; text-align: right; }
.d-updated { font-size: 10px; color: var(--text-muted); margin-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.dl { width: 5px; height: 5px; background: var(--green); border-radius: 50%; animation: goev-blink 1.4s ease-in-out infinite; display: inline-block; margin-right: 4px; }

/* LABELS */
.fcat { font-family: var(--font-condensed); font-weight: 700; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.fcat.g { color: var(--green); }
.fcat.p { color: #7a3db8; }

/* PILLS */
.s-pill { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 12px; font-family: var(--font-condensed); letter-spacing: .5px; cursor: pointer; transition: all .15s; border: 1px solid transparent; display: inline-block; margin: 2px; }
.s-pill.on { background: var(--navy); color: #fff; }
.s-pill.off { background: var(--bg); color: var(--text-muted); border-color: var(--border); }
.new-pill { background: #fff3e0; color: #b86a00; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 12px; font-family: var(--font-condensed); letter-spacing: .5px; text-transform: uppercase; }

/* TOAST */
#goev-toast { position: fixed; top: 80px; right: 20px; z-index: 9999; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 10px 16px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,.15); transform: translateX(130%); transition: transform .3s ease; display: flex; align-items: center; gap: 8px; max-width: 300px; }
#goev-toast.show { transform: translateX(0); }

/* ADMIN */
#goev-fab { position: fixed; bottom: 24px; right: 24px; z-index: 9998; }
#goev-fab:hover { transform: rotate(15deg); }
#goev-drawer { position: fixed; bottom: 90px; right: 24px; z-index: 9998; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 20px; width: 280px; display: none; border: 1px solid var(--border); }
#goev-drawer.open { display: block; }
#goev-drawer h4 { font-family: var(--font-condensed); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text); margin-bottom: 14px; border-bottom: 1px solid var(--border-light); padding-bottom: 10px; }
.dr-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.dr-row label { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; }
.dr-row select, .dr-row input[type=number] { border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; font-size: 12px; color: var(--text); background: var(--bg); outline: none; width: 100px; }
.toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.tslider { position: absolute; inset: 0; background: #ccc; border-radius: 20px; cursor: pointer; transition: .2s; }
.tslider:before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.toggle input:checked + .tslider { background: var(--green); }
.toggle input:checked + .tslider:before { transform: translateX(16px); }

/* SINGLE ARTICLE */
.goev-article-wrap { max-width: 780px; margin: 0 auto; padding: 36px 24px; }
.goev-article-wrap .entry-content { font-size: 16.5px; line-height: 1.8; color: #2c3e50; }
.goev-article-wrap .entry-content p { margin-bottom: 18px; }
.goev-article-wrap .entry-content img { max-width: 100%; margin: 24px auto; border-radius: var(--radius); }
.goev-article-wrap .entry-content h2 { font-family: var(--font-display); font-size: 24px; color: var(--text); margin: 36px 0 14px; line-height: 1.3; }
.goev-article-wrap .entry-content h3 { font-family: var(--font-condensed); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .5px; color: var(--text); margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border-light); }
.goev-article-wrap .entry-content ul, .goev-article-wrap .entry-content ol { margin: 0 0 18px 24px; }
.goev-article-wrap .entry-content li { margin-bottom: 8px; }
.goev-article-wrap .entry-content a { color: var(--blue); }
.goev-article-wrap .entry-content a:hover { text-decoration: underline; }
.goev-article-wrap .entry-content blockquote { border-left: 3px solid var(--blue); padding: 14px 20px; margin: 24px 0; background: var(--blue-soft); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--navy-light); }
.goev-article-wrap .entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.goev-article-wrap .entry-content th { background: var(--navy); color: #fff; padding: 10px 14px; font-family: var(--font-condensed); font-weight: 700; font-size: 12px; text-align: left; letter-spacing: .5px; text-transform: uppercase; }
.goev-article-wrap .entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.goev-article-wrap .entry-content tr:nth-child(even) td { background: #f8f9fb; }
.goev-article-wrap h1 { font-family: var(--font-display); font-size: 34px; line-height: 1.2; color: var(--text); margin-bottom: 14px; }

/* SECTION DIVIDERS */
.sec-label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sec-label h2, .sec-label span { font-family: var(--font-condensed); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); white-space: nowrap; }

/* FOOTER */
footer { background: var(--navy); color: #7a95ad; font-size: 13px; line-height: 1.7; }
footer a { color: #7a95ad; text-decoration: none; transition: color .15s; }
footer a:hover { color: #fff; }
footer h4 { font-family: var(--font-condensed); font-weight: 700; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.goev-footer-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }

/* CONTENT GRID */
.goev-content-grid { max-width: var(--max-w); margin: 0 auto; padding: 28px 24px; display: grid; gap: 32px; align-items: start; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .goev-wrap { grid-template-columns: 1fr; }
  #secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .goev-hero-grid { grid-template-columns: 1fr; }
  .goev-hero-featured { flex-direction: column; overflow: hidden; grid-column: 1; }
  .goev-hero-featured .goev-card-img { width: 100%; height: 240px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .goev-content-grid { grid-template-columns: 1fr !important; padding: 20px 16px; }
}
@media (max-width: 768px) {
  .goev-footer-grid { grid-template-columns: 1fr 1fr !important; }
  #secondary { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .goev-header-inner { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 8px; }
  #site-navigation { display: none; }
  .goev-feed-card { flex-direction: column; }
  .goev-feed-thumb { width: 100% !important; height: 160px; }
  .goev-wrap { padding: 14px 10px; gap: 16px; }
  .goev-article-wrap { padding: 20px 14px; }
  .goev-article-wrap h1 { font-size: 24px; }
  .goev-hero-featured .goev-card-body h2 { font-size: 20px; }
  .goev-footer-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .goev-ticker-bar { height: 30px; }
  .goev-ticker-label { font-size: 9px; padding: 0 10px; }
  .search-bar { display: none !important; }
  .mright { display: none !important; }
  .deal-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .d-price { text-align: left !important; }
  .goev-content-grid { padding: 14px 10px !important; gap: 16px !important; }
  .goev-hero-grid { gap: 12px; margin-bottom: 20px; }
  .goev-card-body { padding: 14px 16px !important; }
  .goev-card-body h2 { font-size: 18px !important; }
  .goev-card-body h3 { font-size: 16px !important; }
  #goev-toast { top: auto; bottom: 16px; right: 10px; left: 10px; max-width: none; }
  #cat-grid { grid-template-columns: 1fr !important; }
}

/* HAMBURGER - disabled */


/* ── HORIZONTAL BANNER AD ── */
.goev-horiz-ad a { color: #fff; text-decoration: none; font-weight: 700; }
.goev-horiz-ad a:hover { text-decoration: underline; }
