/*
Theme Name: GroDeals Theme
Theme URI: https://grodeals.com
Author: GroDeals
Description: Lightweight custom theme for GroDeals Offers + Coupons platform.
Version: 1.0.0
Text Domain: grodeals-theme
*/

:root{
  --gd-blue:#1d4ed8;
  --gd-blue-2:#2563eb;
  --gd-bg:#f7f9fc;
  --gd-text:#0f172a;
  --gd-muted:#64748b;
  --gd-card:#ffffff;
  --gd-border:#e5e7eb;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--gd-bg);
  color:var(--gd-text);
  line-height:1.6;
}

a{color:var(--gd-blue);text-decoration:none}
a:hover{text-decoration:underline}

.container{
  width:min(1100px,92%);
  margin:0 auto;
}

/* ================= HEADER ================= */

.site-header{
  background:#fff;
  border-bottom:1px solid var(--gd-border);
  position:sticky;
  top:0;
  z-index:50;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  color:var(--gd-text);
}

.logo-dot{
  width:14px;
  height:14px;
  border-radius:999px;
  background:var(--gd-blue);
  display:inline-block;
}

.nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
}

.nav a{
  padding:8px 10px;
  border-radius:10px;
  color:var(--gd-text);
}

.nav a:hover{
  background:#eff6ff;
  text-decoration:none;
}

/* ================= HERO ================= */

.hero{
  padding:38px 0 18px;
}

.hero-card{
  background:linear-gradient(135deg,#ffffff,#eff6ff);
  border:1px solid var(--gd-border);
  border-radius:18px;
  padding:22px;
  box-shadow:0 8px 18px rgba(15,23,42,0.06);
}

.hero h1{
  margin:0 0 8px;
  font-size:30px;
}

.hero p{
  margin:0;
  color:var(--gd-muted);
}

/* ================= GRID / CARDS ================= */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
  margin:18px 0 34px;
}

.card{
  background:var(--gd-card);
  border:1px solid var(--gd-border);
  border-radius:16px;
  padding:14px;
  box-shadow:0 8px 18px rgba(15,23,42,0.04);
}

.post-card img{
  width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid var(--gd-border);
}

/* ================= BUTTONS ================= */

.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  background:var(--gd-blue);
  color:#fff !important;
  border:1px solid rgba(0,0,0,0.05);
}

.btn:hover{
  background:var(--gd-blue-2);
  text-decoration:none;
}

.btn-outline{
  background:transparent;
  color:var(--gd-blue) !important;
  border:1px solid #bfdbfe;
}

.btn-outline:hover{
  background:#eff6ff;
}

/* ================= CONTENT ================= */

.content{
  padding:18px 0 34px;
}

.site-footer{
  border-top:1px solid var(--gd-border);
  padding:20px 0;
  color:var(--gd-muted);
  background:#fff;
}

/* ================= FORMS ================= */

input,
select,
textarea,
button{
  font:inherit;
}

input,
select,
textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--gd-border);
  border-radius:12px;
  background:#fff;
}

button{
  cursor:pointer;
}

/* ===================================================
   Offer Page – Mobile Featured Image Logic (FINAL)
   =================================================== */

.gd-mobile-featured{
  display:none;
  margin:14px 0;
  border-radius:16px;
  overflow:hidden;
}

.gd-mobile-featured img{
  width:100%;
  height:auto;
  display:block;
}

@media (max-width:900px){
  .gd-mobile-featured{
    display:block;
  }

  /* Hide desktop right image on mobile */
  .gd-offer-right .gd-offer-img{
    display:none;
  }
}
