/* EV Compare India — additions.css (light theme) */

/* COOKIE BANNER */
#cookieBanner {
  position: fixed; bottom: 20px; left: 20px; z-index: 9999;
  max-width: 480px; width: calc(100% - 40px);
  background: #ffffff; border: 1px solid rgba(0,0,0,0.1);
  border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(130px); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.3,0.64,1), opacity 0.3s ease;
}
#cookieBanner.cookie-visible { transform: translateY(0); opacity: 1; }
.cookie-inner { padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.cookie-icon  { font-size: 26px; flex-shrink: 0; margin-top: 2px; }
.cookie-text  { flex: 1; min-width: 200px; }
.cookie-text strong { color: #1a1410; font-size: 15px; display: block; margin-bottom: 5px; }
.cookie-text p { color: #8c7b6e; font-size: 13px; line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; align-items: center; width: 100%; margin-top: 6px; }
.cookie-btn-accept  { background: #1db954; color: #fff; border: none; padding: 10px 22px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.cookie-btn-accept:hover  { background: #17a248; }
.cookie-btn-outline { background: transparent; color: #8c7b6e; border: 1.5px solid rgba(0,0,0,0.12); padding: 10px 18px; border-radius: 10px; font-size: 13px; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.cookie-btn-outline:hover { border-color: #8c7b6e; color: #1a1410; }
.cookie-close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: #b8a99a; font-size: 16px; cursor: pointer; padding: 4px; }
.cookie-close:hover { color: #1a1410; }

/* SUBSCRIBE */
.subscribe-section { padding: 80px 0; background: #f4f1ec; border-top: 1px solid rgba(0,0,0,0.07); }
.subscribe-box { max-width: 600px; margin: 0 auto; text-align: center; }
.subscribe-box .section-tag { margin-bottom: 18px; }
.subscribe-box h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(30px,4.5vw,48px); color: #1a1410; margin-bottom: 14px; font-style: italic; font-weight: 700; line-height: 1.05; }
.subscribe-box p { color: #8c7b6e; font-size: 17px; margin-bottom: 28px; }
.subscribe-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.subscribe-form input { flex: 1; background: #fff; border: 1.5px solid rgba(0,0,0,0.12); color: #1a1410; padding: 13px 16px; border-radius: 10px; font-size: 15px; outline: none; font-family: inherit; transition: border-color 0.15s; }
.subscribe-form input:focus { border-color: #1db954; }
.subscribe-form input::placeholder { color: #b8a99a; }
.subscribe-perks { display: flex; justify-content: center; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.subscribe-perks span { font-size: 13px; color: #8c7b6e; }
.subscribe-inline { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; padding: 28px; }
.subscribe-inline h4 { color: #1a1410; font-size: 17px; margin-bottom: 8px; }
.subscribe-inline p { color: #8c7b6e; font-size: 14px; margin-bottom: 16px; }
.subscribe-inline form { display: flex; flex-direction: column; gap: 10px; }
.subscribe-inline input { background: #faf8f5; border: 1.5px solid rgba(0,0,0,0.1); color: #1a1410; padding: 11px 14px; border-radius: 10px; font-size: 14px; outline: none; width: 100%; font-family: inherit; transition: border-color 0.15s; }
.subscribe-inline input:focus { border-color: #1db954; }
.subscribe-inline input::placeholder { color: #b8a99a; }

/* BLOG */
.blog-section { padding: 100px 0; background: #faf8f5; }
.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { padding: 9px 20px; border-radius: 100px; font-size: 14px; font-weight: 500; border: 1.5px solid rgba(0,0,0,0.12); background: transparent; color: #8c7b6e; cursor: pointer; transition: all 0.15s; }
.filter-btn.active, .filter-btn:hover { border-color: #1db954; color: #1db954; background: rgba(29,185,84,0.06); }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-featured { grid-column: span 3; }
.blog-card { background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: 20px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.blog-card.featured-card { flex-direction: row; }
.blog-img { width: 100%; height: 220px; object-fit: cover; flex-shrink: 0; }
.blog-card.featured-card .blog-img { width: 50%; height: 100%; min-height: 300px; }
.blog-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-category { display: inline-block; background: rgba(29,185,84,0.1); color: #1db954; font-size: 11px; padding: 4px 10px; border-radius: 20px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 12px; align-self: flex-start; }
.blog-category.cat-review  { background: rgba(124,58,237,0.08); color: #7c3aed; }
.blog-category.cat-guide   { background: rgba(14,165,233,0.08); color: #0ea5e9; }
.blog-category.cat-finance { background: rgba(245,158,11,0.08); color: #f59e0b; }
.blog-category.cat-coral   { background: rgba(240,92,58,0.08);  color: #f05c3a; }
.blog-title { font-size: 19px; font-weight: 600; color: #1a1410; margin-bottom: 10px; line-height: 1.35; }
.blog-card.featured-card .blog-title { font-size: 24px; }
.blog-excerpt { font-size: 16px; color: #8c7b6e; line-height: 1.65; flex: 1; margin-bottom: 20px; }
.blog-meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #8c7b6e; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.05); }
.blog-meta-left { display: flex; align-items: center; gap: 8px; }
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #b8a99a; }
.blog-read-more { color: #1db954; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 4px; transition: gap 0.15s; }
.blog-card:hover .blog-read-more { gap: 8px; }

/* BLOG POST PAGE */
.blog-post-hero { padding: 120px 0 56px; background: #f4f1ec; border-bottom: 1px solid rgba(0,0,0,0.07); }
.blog-post-hero h1 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(36px,5vw,64px); color: #1a1410; line-height: 1.05; margin-bottom: 20px; font-style: italic; font-weight: 700; }
.post-meta-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: #8c7b6e; font-size: 16px; }
.blog-post-body { max-width: 740px; margin: 0 auto; padding: 60px 24px; }
.blog-post-body h2 { font-family: 'Fraunces', Georgia, serif; font-size: 32px; color: #1a1410; margin: 40px 0 16px; font-style: italic; }
.blog-post-body p { color: #4a3f35; font-size: 18px; line-height: 1.8; margin-bottom: 20px; }
.blog-post-body ul { color: #4a3f35; font-size: 17px; line-height: 1.85; padding-left: 24px; margin-bottom: 20px; }
.blog-post-body strong { color: #1a1410; }
.blog-post-body blockquote { border-left: 3px solid #1db954; margin: 28px 0; padding: 16px 24px; background: rgba(29,185,84,0.05); border-radius: 0 10px 10px 0; color: #4a3f35; font-style: italic; font-size: 17px; }
.blog-post-img { width: 100%; border-radius: 16px; margin: 32px 0; height: 400px; object-fit: cover; }
.related-post-card { background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: 16px; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.related-post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.09); }
.bpcard { background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: 20px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; display: flex; flex-direction: column; }
.bpcard:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.bpcard-img { width: 100%; height: 200px; object-fit: cover; }
.bpcard.main .bpcard-img { height: 260px; }
.bpcard-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.bpcard-cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; background: rgba(29,185,84,0.1); color: #1db954; margin-bottom: 12px; }
.bpcard-title { font-size: 18px; color: #1a1410; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.bpcard.main .bpcard-title { font-size: 22px; }
.bpcard-excerpt { font-size: 15px; color: #8c7b6e; line-height: 1.65; flex: 1; }
.bpcard-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.05); font-size: 13px; color: #8c7b6e; }

/* CSV IMPORT */
.csv-upload-zone { border: 2px dashed rgba(0,0,0,0.12); border-radius: 14px; padding: 44px 32px; text-align: center; cursor: pointer; transition: all 0.15s; background: #f4f1ec; }
.csv-upload-zone:hover, .csv-upload-zone.drag-over { border-color: #1db954; background: rgba(29,185,84,0.04); }
.csv-upload-zone input { display: none; }
.csv-upload-icon { font-size: 40px; margin-bottom: 14px; }
.csv-upload-zone h4 { font-size: 17px; color: #1a1410; margin-bottom: 8px; }
.csv-upload-zone p { font-size: 14px; color: #8c7b6e; margin-bottom: 18px; }
.csv-preview { margin-top: 18px; background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: 14px; overflow: hidden; }
.csv-preview-header { padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,0.06); display: flex; justify-content: space-between; align-items: center; }
.csv-preview-header h4 { font-size: 14px; color: #1a1410; }
.csv-preview table { width: 100%; border-collapse: collapse; font-size: 13px; }
.csv-preview th { background: #f4f1ec; padding: 10px 14px; text-align: left; color: #8c7b6e; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.csv-preview td { padding: 10px 14px; border-bottom: 1px solid rgba(0,0,0,0.05); color: #4a3f35; }
.template-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(0,0,0,0.12); background: transparent; color: #8c7b6e; padding: 10px 20px; border-radius: 10px; font-size: 14px; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.template-btn:hover { border-color: #1db954; color: #1db954; }

/* SECTION TABS (admin) */
.section-tabs { display: flex; gap: 4px; background: #f4f1ec; border-radius: 10px; padding: 4px; margin-bottom: 28px; overflow-x: auto; }
.section-tab { padding: 9px 18px; border-radius: 8px; font-size: 13px; cursor: pointer; color: #8c7b6e; white-space: nowrap; transition: all 0.15s; background: none; border: none; font-family: inherit; font-weight: 500; }
.section-tab.active { background: #fff; color: #1a1410; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* IMPORT HISTORY */
.import-history { background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: 14px; overflow: hidden; }
.import-history-item { padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.import-history-item:last-child { border: none; }
.import-history-item .ih-type { font-weight: 600; color: #1a1410; }
.import-history-item .ih-meta { color: #8c7b6e; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured { grid-column: span 1; }
  .blog-card.featured-card { flex-direction: column; }
  .blog-card.featured-card .blog-img { width: 100%; height: 220px; }
  #cookieBanner { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .subscribe-form { flex-direction: column; }
}
