/* ==========================================
   Kenny's Healthy Living Rewards
   KH THEME CSS
========================================== */

:root{
  --primary:#2E7D32;
  --primary-dark:#1B5E20;
  --secondary:#8BC34A;
  --accent:#D4AF37;

  --cream:#FFFDF5;
  --light:#F4F8F1;
  --white:#ffffff;

  --navy:#172017;
  --text:#2D3436;
  --muted:#6B7280;
  --line:#E4E9DF;

  --shadow:0 12px 30px rgba(46,125,50,.12);
}

/* HEADER */

.appHeader{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding-top:12px;
}

.appHeader h1{
  margin:0;
  color:var(--primary);
  font-size:33px;
  line-height:1;
  letter-spacing:-1px;
}

.appHeader h1 span{
  color:var(--primary-dark);
  font-size:42px;
}

.appHeader p{
  margin-top:7px;
  font-size:15px;
  color:var(--text);
}

.bellBtn{
  position:relative;
  background:#fff;
  color:var(--primary-dark);
  font-size:24px;
}

.bellBtn span{
  position:absolute;
  top:1px;
  right:1px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#ef4444;
}

/* HERO */

.heroCard{
  margin-top:22px;
  min-height:122px;
  border-radius:22px;
  color:#234018;
  padding:22px 16px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.4), transparent 28%),
    linear-gradient(135deg,#FFFDF5 0%,#EAF6D9 45%,#A5D66D 100%);
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:1fr 115px 1fr;
  gap:8px;
  align-items:center;
}

.heroCard p{
  font-size:12px;
  font-weight:800;
  color:var(--primary-dark);
}

.pointsBlock h2{
  margin-top:8px;
  font-size:44px;
  line-height:1;
  color:#0f172a;
}

.pointsBlock span,
.nextReward span{
  font-size:15px;
  color:#234018;
}

.pointsBlock button{
  margin-top:12px;
  border:1px solid rgba(46,125,50,.25);
  background:rgba(255,255,255,.55);
  color:var(--primary-dark);
  border-radius:999px;
  padding:8px 10px;
  font-weight:700;
}

.circleBox{
  width:108px;
  height:108px;
  border-radius:50%;
  background:conic-gradient(#4CAF50 0 72%, rgba(76,175,80,.20) 72% 100%);
  display:flex;
  align-items:center;
  justify-content:center;
}

.circleInner{
  width:80px;
  height:80px;
  background:white;
  color:var(--primary-dark);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  box-shadow:inset 0 0 0 1px rgba(46,125,50,.08);
}

.circleInner span{
  font-size:18px;
}

.circleInner strong{
  font-size:28px;
  line-height:1;
}

.circleInner small{
  font-size:12px;
}

.nextReward h3{
  margin-top:8px;
  font-size:20px;
  color:#0f172a;
}

.nextReward button{
  margin-top:12px;
  background:linear-gradient(135deg,var(--primary-dark),var(--primary));
  color:white;
  border-radius:999px;
  padding:10px 16px;
  font-weight:800;
}

/* QUICK GRID */

.quickGrid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:18px;
}

.quickGrid article{
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  min-height:92px;
  text-align:center;
  padding:13px 8px;
  box-shadow:var(--shadow);
}

.quickGrid div{
  color:white;
  width:38px;
  height:38px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 8px;
  font-size:22px;
}

.quickGrid article:nth-child(1) div{
  background:#4CAF50;
}

.quickGrid article:nth-child(2) div{
  background:#8BC34A;
}

.quickGrid article:nth-child(3) div{
  background:#D4AF37;
}

.quickGrid article:nth-child(4) div{
  background:#66BB6A;
}

.quickGrid h3{
  font-size:13px;
  margin-bottom:5px;
  color:var(--navy);
}

.quickGrid p{
  font-size:11px;
  line-height:1.35;
  color:var(--muted);
}

/* SECTION HEADERS */

.sectionHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:24px;
}

.sectionHeader h2{
  font-size:22px;
  color:#111827;
}

.sectionHeader a,
.sectionHeader button{
  color:var(--primary);
  font-weight:800;
  background:none;
}

/* REWARD CARDS */

.rewardCard,
.restaurantCard{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow);
  position:relative;
}

.rewardCard{
  flex:0 0 150px;
}

.restaurantCard{
  flex:0 0 180px;
}

.foodImg,
.restImg{
  height:70px;
  background-size:cover;
  background-position:center;
}

.rewardCard span{
  position:absolute;
  top:8px;
  right:8px;
  background:var(--primary);
  color:white;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}

.rewardCard h3,
.restaurantCard h3{
  margin:10px 9px 4px;
  font-size:14px;
  line-height:1.2;
  color:var(--navy);
}

.rewardCard p,
.restaurantCard p{
  margin:0 9px 12px;
  font-size:12px;
  line-height:1.35;
  color:var(--muted);
}

/* RESTAURANTS */

.restImg{
  height:82px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
}

.restImg b{
  background:white;
  color:var(--primary-dark);
  border-radius:50%;
  width:70px;
  height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:12px;
  padding:6px;
}

.restaurantCard a,
.viewRestaurant{
  display:block;
  margin:0 9px 12px;
  color:var(--primary);
  font-weight:800;
  font-size:13px;
}

.restaurantCard{
  cursor:pointer;
}

.restaurantCard[data-page]{
  cursor:pointer !important;
  position:relative;
  z-index:5;
}

.restaurantCard[data-page]:hover{
  transform:translateY(-5px);
  box-shadow:0 15px 35px rgba(46,125,50,.18);
}

.restaurantCard[data-page] .viewRestaurant{
  display:block;
  margin:0 14px 15px;
  color:var(--primary);
  font-weight:800;
  font-size:13px;
  pointer-events:none;
}

/* ACTIVITY */

.activityDropdown{
  margin:24px 0 20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.activityDropdown summary{
  list-style:none;
  cursor:pointer;
  padding:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight:800;
  color:var(--navy);
}

.activityDropdown summary::-webkit-details-marker{
  display:none;
}

.activityDropdown summary span{
  font-size:20px;
}

.activityDropdown summary small{
  color:var(--primary);
  font-size:13px;
}

.activityDropdown[open] summary{
  border-bottom:1px solid var(--line);
}

.activityDropdown[open] summary small{
  font-size:0;
}

.activityDropdown[open] summary small::after{
  content:"Hide Activity ▲";
  font-size:13px;
}

.activityList{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px;
}

.activityList article{
  background:white;
  border:1px solid var(--line);
  border-radius:15px;
  padding:11px 12px;
  display:grid;
  grid-template-columns:38px 1fr auto;
  gap:10px;
  align-items:center;
}

.activityList span{
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--primary);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
}

.activityList span.red{
  background:#ef4444;
}

.activityList h4{
  font-size:13px;
  color:var(--navy);
}

.activityList p{
  font-size:12px;
  color:var(--muted);
}

.activityList strong{
  color:var(--primary);
  font-size:14px;
}

.activityList .minus{
  color:#ef4444;
}

/* PROMOS */

.promo{
  margin-top:16px;
  border-radius:16px;
  min-height:90px;
  padding:18px;
  display:flex;
  align-items:center;
  gap:18px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
  width:100%;
}

.promoBlue{
  color:white;
  background:
    linear-gradient(rgba(27,94,32,.25),rgba(27,94,32,.25)),
    url("promo.jpg") center center / cover no-repeat;
}

.promoLight{
  background:
    linear-gradient(rgba(46,125,50,.25),rgba(46,125,50,.25)),
    url("promo-banner.jpg") center center/cover no-repeat;
  color:white;
}

.promoIcon{
  width:56px;
  height:56px;
  border-radius:50%;
  background:rgba(255,255,255,.20);
  backdrop-filter:blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  flex-shrink:0;
}

.promoContent{
  position:relative;
  z-index:2;
}

.promo::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.18);
  z-index:1;
}

.promo > div{
  position:relative;
  z-index:2;
}

.promo div:first-child{
  font-size:30px;
}

.promo h3{
  margin-bottom:5px;
  color:white;
}

.promo p{
  color:rgba(255,255,255,.92);
}

/* BOTTOM NAV */

.bottomNav{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:100%;
  max-width:430px;
  height:82px;
  background:white;
  border-radius:26px 26px 0 0;
  box-shadow:0 -12px 30px rgba(46,125,50,.14);
  display:grid;
  grid-template-columns:repeat(5,1fr);
  align-items:center;
  padding:8px 12px 12px;
  z-index:50;
}

.bottomNav a,
.bottomNav button{
  background:none;
  color:var(--navy);
  font-size:25px;
  text-align:center;
}

.bottomNav small{
  display:block;
  font-size:12px;
  margin-top:3px;
}

.bottomNav .active{
  color:var(--primary);
}

.bottomNav button{
  width:64px;
  height:64px;
  border-radius:50%;
  color:white;
  background:linear-gradient(135deg,var(--primary-dark),var(--primary));
  margin:0 auto;
  transform:translateY(-18px);
  box-shadow:0 10px 25px rgba(46,125,50,.35);
}

/* IMAGES */

.drink{background-image:url("https://images.unsplash.com/photo-1621263764928-df1444c5e859?auto=format&fit=crop&w=600&q=80")}
.burger{
    background-image:url("../images/khstore.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}
.dessert{
    background-image:url("../images/tonic.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}
.pizza{background-image:url("https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?auto=format&fit=crop&w=600&q=80")}
.bowlReward{background-image:url("https://images.unsplash.com/photo-1512621776951-a57141f2eefd?auto=format&fit=crop&w=600&q=80")}
.coffee{background-image:url("https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=600&q=80")}
.smoothie{background-image:url("https://images.unsplash.com/photo-1553530666-ba11a7da3888?auto=format&fit=crop&w=600&q=80")}
.mystery{
    background-image:url("../images/mystery.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.bowl{background-image:url("https://images.unsplash.com/photo-1512621776951-a57141f2eefd?auto=format&fit=crop&w=600&q=80")}
.taco{
    background-image:url("../images/kshop.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}
.fish{
    background-image:url("../images/juicead.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}
.spice{
    background-image:url("../images/wellsoap.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}
.seafood{background-image:url("grilled salmon.jpg")}
.cocinita{background-image:url("taco.jpg")}
.irie{background-image:url("friedgood.jpg")}
.coming{background-image:url("multi.jpg")}

/* PROFILE PANEL */

.profileOverlay{
  position:fixed;
  inset:0;
  background:rgba(7,23,53,.45);
  z-index:80;
  opacity:0;
  pointer-events:none;
  transition:.25s ease;
}

.profilePanel{
  position:fixed;
  top:0;
  right:0;
  width:100%;
  max-width:390px;
  height:100vh;
  background:#fff;
  z-index:90;
  transform:translateX(100%);
  transition:.3s ease;
  padding:24px;
  box-shadow:-20px 0 40px rgba(15,23,42,.18);
  overflow-y:auto;
}

.profilePanel.open{
  transform:translateX(0);
}

.profileOverlay.open{
  opacity:1;
  pointer-events:auto;
}

.closeProfile{
  position:absolute;
  top:18px;
  right:18px;
  width:38px;
  height:38px;
  border-radius:50%;
  background:#F1F8E9;
  color:var(--primary);
  font-size:28px;
}

.profileTop{
  text-align:center;
  padding:48px 0 24px;
}

.profileAvatar{
  width:82px;
  height:82px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--primary-dark),var(--primary));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:38px;
  margin:0 auto 14px;
}

.profileTop h2{
  color:var(--navy);
  font-size:24px;
}

.profileTop p{
  color:var(--muted);
  margin-top:5px;
}

.profileStats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:22px;
}

.profileStats div{
  background:#F8FBF5;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  text-align:center;
}

.profileStats strong{
  display:block;
  color:var(--primary);
  font-size:24px;
}

.profileStats span{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.profileMenu{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.profileMenu button{
  width:100%;
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  text-align:left;
  font-weight:800;
  color:var(--navy);
}

.logoutBtn{
  width:100%;
  margin-top:24px;
  height:52px;
  border-radius:999px;
  background:#ef4444;
  color:white;
  font-weight:900;
  font-size:16px;
}

/* SLIDER */

.slideBtn{
  pointer-events:auto;
}

.cardScroll{
  position:relative;
  z-index:1;
}

/* DESKTOP SLIDER ARROW FIX */

@media(min-width:900px){
  .sliderWrap{
    position:relative !important;
    overflow:hidden !important;
  }

  .slideBtn{
    display:flex !important;
    position:absolute !important;
    top:44% !important;
    transform:translateY(-50%) !important;
    z-index:50 !important;
    pointer-events:auto !important;
    background:white;
    color:var(--primary);
    box-shadow:var(--shadow);
  }

  .slideBtn.left{
    left:4px !important;
  }

  .slideBtn.right{
    right:4px !important;
  }

  .cardScroll{
    overflow-x:auto !important;
    scroll-behavior:smooth !important;
    scroll-snap-type:none !important;
    padding-left:54px !important;
    padding-right:54px !important;
  }
}

/* MOBILE */

.mobileSwipeNote{
  display:none;
}

@media(max-width:768px){
  .mobileSwipeNote{
    display:block;
    margin:6px 0 12px;
    color:#6b7280;
    font-size:12px;
    font-weight:700;
    text-align:center;
  }

  .slideBtn{
    display:none !important;
  }

  .cardScroll{
    overflow-x:auto !important;
    scroll-snap-type:none !important;
    -webkit-overflow-scrolling:touch !important;
  }

  .promo{
    min-height:130px;
    padding:18px;
    align-items:flex-end;
  }

  .promoBlue,
  .promoLight{
    background-size:cover !important;
    background-position:center top !important;
  }

  .promo div:first-child{
    font-size:34px;
    width:54px;
    height:54px;
    border-radius:50%;
    background:rgba(255,255,255,.22);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
  }

  .promo h3{
    font-size:17px;
  }

  .promo p{
    font-size:13px;
  }
}

/* SMALL PHONES */

@media(max-width:420px){
  .heroCard{
    grid-template-columns:1fr;
    text-align:center;
  }

  .circleBox{
    margin:auto;
  }

  .quickGrid{
    grid-template-columns:repeat(2,1fr);
  }

  .promo{
    min-height:145px;
    border-radius:18px;
  }

  .promoBlue,
  .promoLight{
    background-position:center center !important;
  }
}

/* FAVORITES BADGE */

#favoriteRestaurantsBtn{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

#favoritesBadge{
  flex-shrink:0;
  background:#D4AF37;
  color:#1B5E20;
  font-size:10px;
  font-weight:900;
  padding:4px 8px;
  border-radius:999px;
}

#favoritesBadge.read{
  display:none;
}.promoLink{
    display:block;
    text-decoration:none;
    color:inherit;
}

.promoLink:hover .promo{
    transform:translateY(-3px);
    transition:.25s ease;
    cursor:pointer;
}