/*
Theme Name: DealYou Automatic V15
Author: DealYou
Description: Automatic affiliate/deals/reviews/comparisons WordPress theme for DealYou.in. Homepage is forced by the theme; posts are displayed automatically by category.
Version: 15.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dealyou
*/
:root{--navy:#1d3b73;--blue:#1768bd;--orange:#ff641f;--gold:#f5a900;--ink:#14213a;--muted:#697586;--bg:#f7f9fc;--line:#e1e7ef;--card:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.55}a{text-decoration:none;color:inherit}img{max-width:100%;height:auto;display:block}.container{width:min(1180px,calc(100% - 32px));margin:auto}
.site-header{background:#fff;border-bottom:1px solid #e7ebf0;position:sticky;top:0;z-index:100}.head-row{min-height:60px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{font-weight:900;font-size:28px;letter-spacing:-1px}.brand .a{color:#1768b8}.brand .b{color:#f2a500}.head-links{display:flex;gap:20px;color:#536074;font-size:14px}.nav-wrap{border-top:1px solid #f0f2f5}.nav{display:flex;justify-content:center;overflow:auto}.nav a{padding:12px 19px;font-weight:700;color:#1d2a42;border-bottom:2px solid transparent;white-space:nowrap}.nav a:hover,.nav a.active{color:var(--blue);border-bottom-color:var(--blue)}
.hero{background:linear-gradient(115deg,#1e2a5e 0%,#24386f 55%,#1a2f60 100%);color:#fff}.hero-inner{min-height:330px;padding:46px 0;display:grid;grid-template-columns:1fr 1.15fr;align-items:center;gap:34px}.hero h1{margin:0 0 12px;color:#fff;font-size:44px;line-height:1.08}.hero p{font-size:19px;margin:0 0 22px;color:#eef3ff}.btn{display:inline-block;padding:11px 22px;border-radius:5px;font-weight:800}.btn-blue{background:var(--blue);color:#fff}.btn-orange{background:var(--orange);color:#fff}.hero-art{height:250px;border-radius:22px;background:#fff;position:relative;overflow:hidden;box-shadow:0 18px 45px rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.7)}.hero-banner-img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.section{padding:38px 0}.alt{background:var(--bg)}.title{text-align:center;color:var(--navy);font-size:30px;margin:0 0 25px;font-weight:900}.title:before,.title:after{content:"";display:inline-block;width:75px;border-top:2px solid #dce3eb;margin:0 18px;vertical-align:middle}.stores{display:flex;justify-content:center;gap:55px;flex-wrap:wrap;font-weight:900;font-size:24px;color:#1768b8;margin-bottom:18px}.stores span:nth-child(2){color:#2b78c8}.stores span:nth-child(3){color:#e12f45}.stores span:nth-child(4){color:#e66b22}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}.card{background:var(--card);border:1px solid var(--line);border-radius:8px;overflow:hidden;box-shadow:0 5px 20px #172b4910}.card-img{height:150px;background:linear-gradient(135deg,#dff1ff,#ffe0cf);display:flex;align-items:center;justify-content:center;overflow:hidden}.card-img img{width:100%;height:100%;object-fit:cover}.placeholder{font-size:56px}.card-body{padding:15px}.card h3{font-size:18px;line-height:1.25;margin:0 0 8px;color:var(--ink)}.card p{font-size:14px;color:var(--muted);margin:0 0 13px}.rating{color:#f2a400;font-weight:900;margin-bottom:8px}.card .btn{font-size:14px;padding:9px 16px}
.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.feature{background:#fff;border:1px solid var(--line);border-radius:8px;padding:22px}.feature h3{color:var(--navy);font-size:22px;margin:0 0 12px}.feature ol{margin:0 0 15px;padding-left:25px;line-height:1.8}
.newsletter{background:#eef2f8;padding:34px 0}.newsletter-inner{display:flex;align-items:center;justify-content:space-between;gap:30px}.newsletter h2{margin:0;color:var(--navy)}.newsletter p{margin:4px 0 0}.newsletter form{display:flex;min-width:420px}.newsletter input{flex:1;padding:12px;border:1px solid #cbd4df;border-radius:4px 0 0 4px}.newsletter button{padding:12px 20px;border:0;background:var(--orange);color:#fff;font-weight:800;border-radius:0 4px 4px 0}
.site-footer{border-top:1px solid var(--line);padding:25px 0;text-align:center;background:#fff}.footer-links{display:flex;justify-content:center;gap:25px;flex-wrap:wrap;font-size:14px}.footer-links a:hover{color:var(--blue)}.copy{color:#7b8491;font-size:13px;margin-top:8px}
.content-wrap{padding:45px 0}.content-wrap h1{color:var(--navy)}.entry{font-size:17px}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.empty{padding:30px;border:1px dashed var(--line);background:var(--bg);text-align:center}
@media(max-width:900px){.hero-inner{grid-template-columns:1fr}.grid4{grid-template-columns:repeat(2,1fr)}.grid3,.grid2,.feature-grid{grid-template-columns:1fr}.newsletter-inner{display:block}.newsletter form{min-width:0;margin-top:18px}.title:before,.title:after{width:40px}}
@media(max-width:560px){.container{width:min(100% - 24px,1180px)}.head-links{display:none}.brand{font-size:24px}.nav{justify-content:flex-start}.nav a{padding:10px 13px}.hero-inner{padding:34px 0}.hero h1{font-size:32px}.hero p{font-size:17px}.grid4,.grid3{grid-template-columns:1fr}.stores{gap:22px;font-size:20px}.section{padding:30px 0}.title{font-size:24px}.title:before,.title:after{display:none}.newsletter form{min-width:0}}


/* Amazon CTA */
.amazon-cta{margin:28px 0;padding:20px;background:#fff8ec;border:1px solid #f2a93b;border-radius:12px;text-align:center}
.amazon-btn{display:inline-block;min-width:220px;text-align:center;font-weight:800}
.amazon-note{margin-top:8px;font-size:12px;color:#666}
@media(max-width:640px){.amazon-btn{width:100%;box-sizing:border-box}}

.feature-comparisons{min-width:0}
.comparison-mini-grid{margin-top:16px}
.comparison-mini-grid .card{margin:0}
.comparison-mini-grid .card-img{height:170px}
.comparison-mini-grid .card-body{padding:14px}
.comparison-mini-grid h3{font-size:18px}

.guide-mini-grid{margin-top:16px}.guide-mini-grid .card{margin:0}.guide-mini-grid .card-img{height:170px}.guide-mini-grid .card-body{padding:14px}.guide-mini-grid h3{font-size:18px}

/* Section card counts: Deals 4, Reviews 4, Buying Guides 3, Comparisons 3 */
.three-cards{display:grid;grid-template-columns:1fr;gap:18px}
@media(max-width:900px){.three-cards{grid-template-columns:1fr}}


/* V10 responsive card layout: mobile cards become image-left / text-right */
@media(max-width:640px){
  .post-grid{display:grid;grid-template-columns:1fr;gap:14px}
  .grid4,.grid3,.grid2,.three-cards{grid-template-columns:1fr;gap:14px}
  .post-grid .card,
  .site-main .grid4 .card,
  .site-main .grid3 .card,
  .site-main .grid2 .card,
  .site-main .three-cards .card{
    display:flex;
    flex-direction:row;
    align-items:stretch;
    min-height:148px;
  }
  .post-grid .card-img,
  .site-main .grid4 .card-img,
  .site-main .grid3 .card-img,
  .site-main .grid2 .card-img,
  .site-main .three-cards .card-img{
    width:38%;
    min-width:38%;
    height:auto;
    min-height:148px;
    border-radius:0;
  }
  .post-grid .card-body,
  .site-main .grid4 .card-body,
  .site-main .grid3 .card-body,
  .site-main .grid2 .card-body,
  .site-main .three-cards .card-body{
    width:62%;
    padding:13px 14px;
  }
  .post-grid .card h3,
  .site-main .grid4 .card h3,
  .site-main .grid3 .card h3,
  .site-main .grid2 .card h3,
  .site-main .three-cards .card h3{
    font-size:17px;
    line-height:1.28;
    margin-bottom:7px;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:4;
    overflow:hidden;
  }
  .post-grid .card p,
  .site-main .grid4 .card p,
  .site-main .grid3 .card p,
  .site-main .grid2 .card p,
  .site-main .three-cards .card p{
    font-size:13px;
    line-height:1.45;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
    margin-bottom:10px;
  }
  .post-grid .card .btn,
  .site-main .grid4 .card .btn,
  .site-main .grid3 .card .btn,
  .site-main .grid2 .card .btn,
  .site-main .three-cards .card .btn{
    font-size:13px;
    padding:8px 13px;
  }
  .site-main .three-cards .card-img{height:auto}
  .hero-art{height:190px;border-radius:28px;box-shadow:0 14px 30px rgba(0,0,0,.12)}
  .hero-art .item{border-radius:14px;box-shadow:0 8px 18px rgba(21,35,59,.16)}
  .hero-art .camera{left:6%;bottom:15%;width:41%;height:64%}
  .hero-art .headphones{right:6%;top:10%;width:41%;height:58%}
  .hero-art .earbuds{right:23%;bottom:2%;width:27%;height:38%}
  .hero-art img{padding:5px}
}

/* V11 hero banner */
.hero-art{background:#fff}
@media(max-width:900px){.hero-inner{grid-template-columns:1fr;gap:22px}.hero-art{height:230px}}
@media(max-width:560px){.hero-inner{padding:34px 0}.hero-art{height:190px;border-radius:18px}.hero-banner-img{object-fit:cover}}



/* V12: compact mobile spacing without changing desktop layout */
@media(max-width:640px){
  .section{padding:16px 0}
  .section + .section{padding-top:10px}
  .stores{margin-bottom:10px;gap:14px;font-size:18px}
  .title{font-size:23px;margin:0 0 14px;line-height:1.2}
  .feature-grid{gap:14px}
  .feature{padding:16px}
  .feature h3{font-size:20px;margin-bottom:9px}
  .post-grid,.grid4,.grid3,.grid2,.three-cards{gap:10px}
  .post-grid .card,
  .site-main .grid4 .card,
  .site-main .grid3 .card,
  .site-main .grid2 .card,
  .site-main .three-cards .card{
    min-height:124px;
  }
  .post-grid .card-img,
  .site-main .grid4 .card-img,
  .site-main .grid3 .card-img,
  .site-main .grid2 .card-img,
  .site-main .three-cards .card-img{
    width:34%;
    min-width:34%;
    min-height:124px;
  }
  .post-grid .card-body,
  .site-main .grid4 .card-body,
  .site-main .grid3 .card-body,
  .site-main .grid2 .card-body,
  .site-main .three-cards .card-body{
    width:66%;
    padding:11px 12px;
  }
  .post-grid .card h3,
  .site-main .grid4 .card h3,
  .site-main .grid3 .card h3,
  .site-main .grid2 .card h3,
  .site-main .three-cards .card h3{
    font-size:16px;
    -webkit-line-clamp:3;
    margin-bottom:5px;
  }
  .post-grid .card p,
  .site-main .grid4 .card p,
  .site-main .grid3 .card p,
  .site-main .grid2 .card p,
  .site-main .three-cards .card p{
    font-size:12.5px;
    -webkit-line-clamp:2;
    margin-bottom:7px;
  }
  .post-grid .card .btn,
  .site-main .grid4 .card .btn,
  .site-main .grid3 .card .btn,
  .site-main .grid2 .card .btn,
  .site-main .three-cards .card .btn{
    font-size:12px;
    padding:7px 11px;
  }
  .guide-mini-grid .card-img,
  .comparison-mini-grid .card-img{height:auto}
  .guide-mini-grid,.comparison-mini-grid{margin-top:10px}
  .newsletter{padding:24px 0}
}


/* V13: category-named pages automatically list their matching post category */
.category-page-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:20px}
.category-page-grid .card-img{height:190px;background:#f3f5f8}
.category-page-grid .card-img img{width:100%;height:100%;object-fit:cover;object-position:center}
.category-page-grid .card-body{padding:16px}
.category-page-grid .card h3{font-size:20px;line-height:1.28}
@media(max-width:900px){.category-page-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){
  .category-page-grid{grid-template-columns:1fr;gap:12px}
  .category-page-grid .card{display:flex;flex-direction:row;align-items:stretch;min-height:126px}
  .category-page-grid .card-img{width:34%;min-width:34%;height:auto;min-height:126px}
  .category-page-grid .card-body{width:66%;padding:11px 12px}
  .category-page-grid .card h3{font-size:16px;line-height:1.28;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin-bottom:6px}
  .category-page-grid .card p{font-size:12.5px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-bottom:7px}
  .category-page-grid .card .btn{font-size:12px;padding:7px 11px}
  .category-page-grid .card-img img{object-fit:cover}
}

/* V13: keep the supplied seasonal hero banner crisp without blank overlay panels */
.hero-art{background:#f4f5f7;border:1px solid rgba(255,255,255,.65)}
.hero-banner-img{object-fit:cover;object-position:center}
@media(max-width:560px){.hero-art{height:180px}.hero-banner-img{object-fit:cover;object-position:center}}
