/*
Theme Name: Auto Elite
Description: Clean white affiliate blog - melissajanelee.com inspired colors
Version: 4.0.0
Author: Claude AI
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Lato:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
  /* Exact melissajanelee.com palette */
  --white:        #ffffff;
  --off-white:    #fafafa;
  --light-gray:   #f5f5f5;
  --border:       #e8e8e8;
  --border-light: #f0f0f0;
  --text:         #1c1c1c;
  --text-light:   #4a4a4a;
  --muted:        #999999;
  --footer-pink:  #f2ddd8;   /* melissajanelee footer exact color */
  --accent-pink:  #d4a5a0;   /* soft rose accent */
  --link:         #c0392b;   /* red used for category labels */
  --nav-bg:       #2b2b2b;   /* dark nav bar */
  --nav-text:     #ffffff;
  --heading-font: 'Playfair Display', Georgia, serif;
  --body-font:    'Lato', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--heading-font);
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--text-light); margin-bottom: 1rem; line-height: 1.8; }
a  { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }

.container    { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 760px;  margin: 0 auto; padding: 0 20px; }

/* ── SITE HEADER — centered like melissajanelee ── */
#site-header { background: var(--white); position: sticky; top: 0; z-index: 999; }

.header-logo-bar {
  text-align: center;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.site-logo {
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: .5px;
  display: inline-block;
  line-height: 1.1;
}
.site-tagline {
  font-family: var(--body-font);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Dark nav bar — like melissajanelee */
.header-nav {
  background: var(--nav-bg);
  position: relative;
}
.main-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 0; list-style: none; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
}
.main-nav li a {
  display: block;
  font-family: var(--body-font);
  font-size: .72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  padding: 12px 14px;
  transition: color .2s, background .2s;
}
.main-nav li a:hover { color: #fff; background: rgba(255,255,255,.08); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* ── FEATURED POST — large image + overlay title ── */
.hero-featured {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.hero-featured-inner {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 36px; align-items: center;
}
.hero-featured-img {
  aspect-ratio: 3/4; overflow: hidden;
  border-radius: 2px;
}
.hero-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-featured-img:hover img { transform: scale(1.03); }

.hero-featured-body .cat-label {
  font-size: .65rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--link);
  margin-bottom: 12px; display: block;
}
.hero-featured-body h2 {
  font-family: var(--heading-font);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 14px; line-height: 1.25;
  font-style: italic;
}
.hero-featured-body h2 a { color: var(--text); }
.hero-featured-body h2 a:hover { color: var(--link); }
.hero-featured-body .excerpt { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.hero-featured-body .read-btn {
  font-size: .7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text);
  border-bottom: 2px solid var(--text); padding-bottom: 2px;
  display: inline-block; transition: all .2s;
}
.hero-featured-body .read-btn:hover { color: var(--link); border-color: var(--link); }

/* ── SECTION TITLES ── */
.section-title {
  font-family: var(--heading-font);
  font-size: 1.35rem; font-weight: 700;
  font-style: italic;
  color: var(--text);
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text);
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.section-head .view-all {
  font-size: .68rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
}
.section-head .view-all:hover { color: var(--link); }

/* ── CARD GRID ── */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.cards-grid.col2 { grid-template-columns: repeat(2,1fr); }

.card { background: var(--white); }
.card-img {
  aspect-ratio: 3/4; overflow: hidden; margin-bottom: 12px;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }

.card .cat-label {
  font-size: .62rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--link); margin-bottom: 6px; display: block;
}
.card h3 {
  font-family: var(--heading-font); font-size: .95rem;
  line-height: 1.35; margin-bottom: 6px; font-style: italic;
}
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--link); }
.card .card-meta { font-size: .7rem; color: var(--muted); margin-top: 6px; }

/* ── POST LIST (sidebar style) ── */
.post-list { list-style: none; }
.post-list-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.post-list-item:first-child { padding-top: 0; }
.post-list-img {
  width: 80px; height: 80px; flex-shrink: 0; overflow: hidden;
}
.post-list-img img { width: 100%; height: 100%; object-fit: cover; }
.post-list-body h3 {
  font-family: var(--heading-font);
  font-size: .88rem; line-height: 1.35; font-weight: 600;
  font-style: italic; margin-bottom: 4px;
}
.post-list-body h3 a { color: var(--text); }
.post-list-body h3 a:hover { color: var(--link); }
.post-list-body .meta { font-size: .68rem; color: var(--muted); }

/* ── MAIN LAYOUT ── */
.main-layout {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 48px; padding: 40px 0 60px;
}

/* ── SIDEBAR ── */
.sidebar-widget { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.sidebar-widget:last-child { border-bottom: none; }
.widget-title {
  font-family: var(--heading-font); font-size: 1.1rem;
  font-weight: 700; font-style: italic;
  display: inline-block; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--text);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb .container {
  display: flex; gap: 6px; font-size: .73rem;
  color: var(--muted); flex-wrap: wrap; align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb .current { color: var(--link); }

/* ── SINGLE POST ── */
.post-header { padding: 36px 0 28px; text-align: center; }
.post-header .cat-label {
  font-size: .65rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--link); margin-bottom: 12px; display: block;
}
.post-header h1 {
  font-style: italic; max-width: 700px;
  margin: 0 auto 14px;
}
.post-header .post-meta {
  font-size: .73rem; color: var(--muted);
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.post-header .post-meta span { display: flex; align-items: center; gap: 6px; }

.post-featured-img { margin: 0 0 36px; overflow: hidden; }
.post-featured-img img { width: 100%; max-height: 480px; object-fit: cover; }

.post-body { font-size: .97rem; line-height: 1.85; color: var(--text-light); }
.post-body h2 { font-family: var(--heading-font); font-size: 1.4rem; margin: 2.2rem 0 .9rem; font-style: italic; color: var(--text); }
.post-body h3 { font-family: var(--heading-font); font-size: 1.1rem; margin: 1.8rem 0 .7rem; color: var(--text); }
.post-body p  { margin-bottom: 1.1rem; }
.post-body ul, .post-body ol { padding-left: 20px; margin-bottom: 1.1rem; }
.post-body ul li, .post-body ol li { margin-bottom: .4rem; }
.post-body strong { color: var(--text); font-weight: 700; }
.post-body a { color: var(--link); text-decoration: underline; }
.post-body figure { margin: 2rem 0; }
.post-body figure img { width: 100%; }
.post-body figure figcaption { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 6px; font-style: italic; }

/* Disclosure box */
.disclosure-box {
  background: #fff8f0; border-left: 3px solid #e67e22;
  padding: 12px 16px; margin-bottom: 28px;
  font-size: .82rem; color: var(--muted); line-height: 1.6;
}
.disclosure-box strong { color: #e67e22; }

/* ── CATEGORY TILES ── */
.cats-page-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2px;
  margin-bottom: 40px;
}
.cat-tile { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; filter: brightness(.9); }
.cat-tile:hover img { transform: scale(1.04); filter: brightness(1); }
.cat-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
}
.cat-tile h3 { color: #fff; font-size: 1rem; margin-bottom: 2px; font-style: italic; }
.cat-tile span { font-size: .65rem; color: rgba(255,255,255,.7); letter-spacing: 2px; text-transform: uppercase; }

/* ── NEWSLETTER — pink like melissajanelee ── */
.newsletter {
  background: var(--footer-pink);
  padding: 60px 20px; text-align: center;
}
.newsletter h2 { font-family: var(--heading-font); font-size: 1.9rem; font-style: italic; margin-bottom: 8px; }
.newsletter p { color: var(--text-light); margin-bottom: 24px; font-size: .9rem; max-width: 440px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; border: 1px solid #ccc; background: var(--white);
  padding: 11px 14px; font-family: inherit; font-size: .88rem; outline: none;
}
.newsletter-form input:focus { border-color: var(--accent-pink); }
.newsletter-form button {
  background: var(--text); color: var(--white); border: none;
  font-family: var(--body-font); font-weight: 700; font-size: .72rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 11px 18px; cursor: pointer; white-space: nowrap; transition: background .2s;
}
.newsletter-form button:hover { background: #333; }

/* ── FOOTER ── */
#site-footer {
  background: var(--footer-pink);
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 48px 20px 24px;
}
.footer-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
.footer-brand .site-logo { font-size: 1.5rem; }
.footer-brand p { font-size: .82rem; color: var(--text-light); margin-top: 10px; }
.footer-col h5 {
  font-family: var(--body-font); font-size: .65rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text);
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(0,0,0,.1);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: .82rem; color: var(--text-light); transition: color .2s; }
.footer-col ul li a:hover { color: var(--link); }
.footer-bottom {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  padding-top: 18px; border-top: 1px solid rgba(0,0,0,.08);
  font-size: .72rem; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 1px;
}

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 4px; margin: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); font-size: .85rem; color: var(--muted);
  padding: 0 10px; transition: all .2s; font-family: var(--body-font);
}
.pagination a:hover { border-color: var(--text); color: var(--text); }
.pagination .current { background: var(--text); border-color: var(--text); color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-featured-inner { grid-template-columns: 1fr; }
  .hero-featured-img { aspect-ratio: 16/9; }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .cats-page-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; flex-direction: column; padding: 8px 0; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { padding: 11px; }
}
