/*
Theme Name: DealStation Minimal
Theme URI: https://dealstation.in
Author: Srikanth Rawlo
Author URI: https://dealstation.in
Description: Ultra-fast minimal theme for DealStation.in — affiliate review & deals site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: dealstation
*/

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

:root {
  --red:       #E24B4A;
  --red-dark:  #b83837;
  --tg:        #229ED9;
  --text:      #1a1a1a;
  --text-2:    #555;
  --text-3:    #888;
  --border:    #e8e8e8;
  --bg:        #fff;
  --bg-2:      #f7f7f5;
  --radius:    8px;
  --radius-lg: 12px;
  --sans:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max:       1080px;
  --col:       680px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

/* =============================================
   SKIP LINK
============================================= */
.skip-link {
  position: absolute; top: -999px; left: 8px;
  background: var(--red); color: #fff;
  padding: 6px 12px; border-radius: var(--radius);
  font-size: 13px; z-index: 9999;
}
.skip-link:focus { top: 8px; }

/* =============================================
   LAYOUT WRAPPERS
============================================= */
.wrap       { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap--col  { max-width: var(--col); margin: 0 auto; padding: 0 20px; }

/* =============================================
   HEADER & NAV
============================================= */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 20px;
}

.site-logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span { color: var(--red); }

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  font-size: 13px;
  color: var(--text-2);
  padding: 5px 9px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--text); background: var(--bg-2); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed; inset: 56px 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  font-size: 15px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.mobile-nav a:last-child { border-bottom: none; }

/* =============================================
   TELEGRAM STRIP
============================================= */
.tg-strip {
  background: #EFF9FF;
  border-bottom: 1px solid #B5D4F4;
  padding: 9px 0;
  font-size: 13px;
}
.tg-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tg-strip-text { color: #185FA5; }
.tg-strip-text strong { font-weight: 600; }
.tg-strip-btn {
  background: var(--tg);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 5px;
  flex-shrink: 0;
  transition: opacity .15s;
}
.tg-strip-btn:hover { opacity: .88; }

/* =============================================
   HERO (homepage)
============================================= */
.site-hero {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.hero-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}
.hero-title em { font-style: normal; color: var(--red); }
.hero-sub {
  font-size: 15px;
  color: var(--text-2);
  max-width: 460px;
  margin-bottom: 22px;
  line-height: 1.65;
}

/* =============================================
   CATEGORY PILLS
============================================= */
.cat-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cat-pills a {
  font-size: 12px;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all .15s;
  white-space: nowrap;
}
.cat-pills a:hover { border-color: #bbb; color: var(--text); }
.cat-pills a.active,
.cat-pills a[aria-current="page"] {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* =============================================
   SECTION LABEL
============================================= */
.section-label {
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 20px 0 12px;
}

/* =============================================
   CARD GRID
============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding-bottom: 32px;
}

.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.post-card:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.post-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
.post-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.03); }

.post-card__body { padding: 11px 14px 14px; }
.post-card__tag {
  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 5px;
}
.post-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 7px;
}
.post-card__meta {
  font-size: 11px;
  color: var(--text-3);
}

/* =============================================
   ARCHIVE PAGE
============================================= */
.archive-header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.archive-header h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.archive-header p { font-size: 14px; color: var(--text-2); margin-top: 5px; }

/* =============================================
   SINGLE POST
============================================= */
.single-wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.post-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.post-header__cat {
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 10px;
}
.post-header h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.4px;
  margin-bottom: 14px;
}
.post-header__meta {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.post-featured-img {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.post-featured-img img { width: 100%; }

/* Post Content Typography */
.post-content { font-size: 16px; line-height: 1.75; color: var(--text); }
.post-content h2 {
  font-size: 21px; font-weight: 700;
  margin: 36px 0 14px;
  letter-spacing: -.3px;
  line-height: 1.25;
}
.post-content h3 {
  font-size: 17px; font-weight: 600;
  margin: 28px 0 10px;
}
.post-content h4 {
  font-size: 15px; font-weight: 600;
  margin: 22px 0 8px;
}
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol {
  margin: 0 0 18px 20px;
  list-style: revert;
}
.post-content li { margin-bottom: 6px; }
.post-content strong { font-weight: 600; }
.post-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.post-content a:hover { text-decoration: none; }
.post-content blockquote {
  border-left: 3px solid var(--red);
  margin: 20px 0;
  padding: 10px 16px;
  background: var(--bg-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-2);
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 20px;
}
.post-content th {
  background: var(--bg-2);
  text-align: left;
  padding: 9px 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  font-size: 13px;
}
.post-content td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.post-content tr:nth-child(even) td { background: var(--bg-2); }
.post-content img {
  border-radius: var(--radius);
  margin: 4px 0 20px;
}
.post-content figure { margin: 20px 0; }
.post-content figcaption {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 6px;
}

/* Table of Contents */
.toc-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 0 0 28px;
  font-size: 14px;
}
.toc-box__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: 10px;
  color: var(--text-3);
  text-transform: uppercase;
}
.toc-box ol { list-style: decimal; margin-left: 18px; }
.toc-box li { margin-bottom: 5px; }
.toc-box a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.toc-box a:hover { text-decoration: none; }

/* Amazon CTA Button */
.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FF9900;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background .15s;
  margin: 8px 0 18px;
}
.btn-amazon:hover { background: #e68a00; }
.btn-amazon svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Flipkart CTA Button */
.btn-flipkart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #2874F0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background .15s;
  margin: 8px 0 18px;
}
.btn-flipkart:hover { background: #1a5fc8; }

/* Product Card (inside post) */
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: 20px 0 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.product-card__img {
  width: 100px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.product-card__img img { width: 100%; }
.product-card__info { flex: 1; min-width: 0; }
.product-card__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}
.product-card__price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 6px;
}
.product-card__bullets {
  font-size: 13px;
  color: var(--text-2);
  list-style: disc;
  margin: 0 0 12px 16px;
}
.product-card__bullets li { margin-bottom: 3px; }

/* Share row */
.share-row {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  margin: 28px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}
.share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--bg);
  cursor: pointer;
  transition: all .15s;
}
.share-btn:hover { border-color: #bbb; color: var(--text); }

/* Related posts */
.related-posts { padding: 24px 0 36px; border-top: 1px solid var(--border); margin-top: 8px; }
.related-posts h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

/* =============================================
   SIDEBAR (optional right rail)
============================================= */
.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0,1fr) 280px;
  gap: 32px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.sidebar { position: sticky; top: 72px; }

.sidebar-widget {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.sidebar-widget__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.sidebar-tg {
  background: #EFF9FF;
  border-color: #B5D4F4;
  text-align: center;
  padding: 18px 16px;
}
.sidebar-tg__icon { font-size: 28px; margin-bottom: 8px; }
.sidebar-tg__title {
  font-size: 15px; font-weight: 700;
  color: var(--text); margin-bottom: 5px;
}
.sidebar-tg__sub { font-size: 13px; color: var(--text-2); margin-bottom: 14px; line-height: 1.5; }
.sidebar-tg__btn {
  display: block;
  background: var(--tg); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 9px 16px;
  border-radius: 6px;
  text-align: center;
  transition: opacity .15s;
}
.sidebar-tg__btn:hover { opacity: .88; }

/* Sidebar recent posts */
.sidebar-post { display: flex; gap: 10px; margin-bottom: 12px; }
.sidebar-post:last-child { margin-bottom: 0; }
.sidebar-post__thumb {
  width: 56px; height: 42px;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
  background: var(--border);
}
.sidebar-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post__title {
  font-size: 13px; font-weight: 500;
  line-height: 1.3; color: var(--text);
}
.sidebar-post__title:hover { color: var(--red); }
.sidebar-post__date { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* =============================================
   PAGINATION
============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 0 36px;
}
.pagination a, .pagination span {
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  transition: all .15s;
}
.pagination a:hover { border-color: #bbb; color: var(--text); }
.pagination .current {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* =============================================
   404 PAGE
============================================= */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}
.error-404__code { font-size: 72px; font-weight: 700; color: var(--border); letter-spacing: -4px; }
.error-404__title { font-size: 22px; font-weight: 700; margin: 10px 0 12px; }
.error-404__text { font-size: 15px; color: var(--text-2); margin-bottom: 24px; }
.btn-home {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius);
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 28px 0;
  margin-top: 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-col__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 7px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--text); }
.footer-col p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  font-size: 13px; color: var(--text-3);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  transition: all .15s;
}
.footer-social a:hover { color: var(--text); border-color: #bbb; }

/* =============================================
   SEARCH BAR
============================================= */
.search-form {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 14px;
  font-size: 14px;
  background: transparent;
  color: var(--text);
}
.search-form input::placeholder { color: var(--text-3); }
.search-form button {
  background: var(--bg-2);
  border: none;
  border-left: 1px solid var(--border);
  padding: 9px 14px;
  cursor: pointer;
  color: var(--text-2);
  transition: background .15s;
}
.search-form button:hover { background: var(--border); }

/* =============================================
   AFFILIATE DISCLOSURE
============================================= */
.affiliate-notice {
  background: #FFF9E6;
  border: 1px solid #F0D070;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 12px;
  color: #7a6200;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .hero-title { font-size: 24px; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .post-header h1 { font-size: 22px; }
  .product-card { flex-direction: column; }
  .product-card__img { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .tg-strip .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 400px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* =============================================
   PRINT
============================================= */
@media print {
  .site-header, .tg-strip, .cat-pills,
  .sidebar, .share-row, .related-posts,
  .site-footer, .nav-toggle { display: none !important; }
  .post-content a { text-decoration: underline; }
  .btn-amazon, .btn-flipkart {
    border: 1px solid #ccc !important;
    color: #000 !important;
    background: none !important;
  }
}
