/* Daily Deal Finder — Premium UI 2.0 Homepage */

:root {
  --v2-bg: #050b14;
  --v2-bg-soft: #0a1424;
  --v2-surface: rgba(17, 29, 49, 0.76);
  --v2-surface-strong: #101c30;
  --v2-text: #f8fafc;
  --v2-muted: #9eacc2;
  --v2-gold: #f5b942;
  --v2-gold-soft: #ffe39a;
  --v2-border: rgba(255, 255, 255, 0.09);
  --v2-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(35, 75, 140, 0.26), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(245, 185, 66, 0.11), transparent 27%),
    linear-gradient(180deg, #050b14 0%, #081221 42%, #050a12 100%);
  color: var(--v2-text);
}

.site-header,
.topbar {
  background: rgba(5, 11, 20, 0.78);
  border-bottom: 1px solid var(--v2-border);
  backdrop-filter: blur(22px);
}

.site-header .brand,
.nav .brand,
.site-header nav a,
.menu a {
  color: var(--v2-text);
}

.site-header nav a:hover,
.menu a:hover {
  color: var(--v2-gold);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--v2-border);
}

.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  top: -280px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.17), transparent 68%);
  pointer-events: none;
}

.hero .container,
.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(245, 185, 66, 0.24);
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.08);
  color: var(--v2-gold-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0 22px;
  color: var(--v2-text);
  font-size: clamp(3.3rem, 7vw, 6.5rem);
  line-height: 0.93;
  letter-spacing: -0.07em;
}

.hero .lead {
  max-width: 680px;
  color: var(--v2-muted);
  font-size: clamp(1.03rem, 1.5vw, 1.22rem);
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.btn {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 15px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, #ffd66d, var(--v2-gold));
  color: #111827;
  box-shadow: 0 15px 36px rgba(245, 185, 66, 0.22);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.055);
  color: var(--v2-text);
  border: 1px solid var(--v2-border);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 27px;
  color: #c3cede;
  font-size: 13px;
  font-weight: 750;
}

.trust span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--v2-gold);
}

.mockup {
  padding: 18px;
  border: 1px solid var(--v2-border);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  box-shadow: var(--v2-shadow);
  backdrop-filter: blur(22px);
}

.deal-card {
  min-height: 235px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 23px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 185, 66, 0.22), transparent 38%),
    linear-gradient(145deg, #172947, #0c1729);
}

.deal-card h2,
.deal-card p {
  color: var(--v2-text) !important;
}

.deal-card p {
  color: var(--v2-muted) !important;
}

.deal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.12);
  color: var(--v2-gold-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price {
  color: var(--v2-gold);
  font-size: 26px;
  font-weight: 950;
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  margin-top: 12px;
}

.mini {
  padding: 17px;
  border: 1px solid var(--v2-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--v2-text);
  transition: 0.22s ease;
}

.mini:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 185, 66, 0.34);
  background: rgba(245, 185, 66, 0.075);
}

.mini strong {
  display: block;
  margin-top: 8px;
}

.mini p {
  margin-bottom: 0;
  color: var(--v2-muted);
  font-size: 12px;
}

.section {
  padding: 82px 0;
}

.section h2 {
  color: var(--v2-text);
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
}

.section .head {
  max-width: 680px;
  color: var(--v2-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.cards,
.product-grid {
  gap: 18px;
}

.card,
.product-card {
  border: 1px solid var(--v2-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  color: var(--v2-text);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(15px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 185, 66, 0.32);
}

.card p,
.product-card p,
.empty {
  color: var(--v2-muted);
}

.card .icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: rgba(245, 185, 66, 0.1);
  font-size: 25px;
}

.panel,
.panel.light {
  border: 1px solid var(--v2-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 185, 66, 0.12), transparent 40%),
    linear-gradient(145deg, #12213a, #0b1525);
  color: var(--v2-text);
  box-shadow: var(--v2-shadow);
}

.panel.light h2,
.panel.light p,
.panel h2,
.panel p {
  color: inherit;
}

.panel p,
.panel.light p {
  color: var(--v2-muted);
}

.footer {
  border-top: 1px solid var(--v2-border);
  background: #03070d;
  color: var(--v2-text);
}

.footer p,
.footer nav a,
.disclosure {
  color: var(--v2-muted);
}

.footer nav a:hover {
  color: var(--v2-gold);
}

@media (max-width: 900px) {
  .hero {
    padding-top: 62px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }
}

@media (max-width: 620px) {
  .site-header,
  .nav {
    padding-inline: 18px;
  }

  .site-header .brand span,
  .nav .brand span {
    font-size: 17px;
  }

  .grid-products {
    grid-template-columns: 1fr;
  }

  .actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 58px 0;
  }
}

/* Premium UI 2.0 — Category product cards */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.product-card {
  overflow: hidden;
  border-radius: 22px;
}

.product-card > a {
  display: block;
  height: 100%;
}

.product-card .product-image-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #0b1525;
}

.product-card .product-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.035);
}

.product-card-body {
  padding: 22px 22px 24px;
}

.product-card .category-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.12);
  color: var(--v2-gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0 0 12px;
  color: var(--v2-text);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.product-card p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .product-card .product-image-wrap {
    height: 220px;
  }

  .product-card-body {
    padding: 20px;
  }

  .product-card h3 {
    font-size: 1.4rem;
  }

  .product-card p {
    font-size: 1rem;
  }
}

/* ===== Premium Header Upgrade ===== */

.site-header,
.topbar {
  padding: 18px 42px;
}

.site-header .brand,
.nav .brand {
  gap: 18px;
}

.site-header .brand img,
.nav .brand img {
  width: 72px;
  height: 72px;
}

.site-header .brand span,
.nav .brand span {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.site-header nav,
.menu {
  gap: 32px;
}

.site-header nav a,
.menu a {
  font-size: 1.08rem;
  font-weight: 800;
}

@media (max-width:768px){

  .site-header .brand img,
  .nav .brand img{
      width:58px;
      height:58px;
  }

  .site-header .brand span,
  .nav .brand span{
      font-size:1.55rem;
  }

  .site-header nav,
  .menu{
      gap:18px;
  }

}

/* ===== Homepage readability upgrade ===== */

/* Logo and brand name */
.site-header .brand img,
.nav .brand img {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
}

.site-header .brand span,
.nav .brand span {
  color: #ffffff;
  font-size: 2.05rem;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

/* Header navigation: Home through Contact */
.site-header nav,
.menu {
  gap: clamp(20px, 2.2vw, 34px);
}

.site-header nav a,
.menu a {
  color: #ffffff;
  opacity: 1;
  font-size: 1.16rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

/* Right-side homepage category tiles */
.mockup .grid-products {
  gap: 14px;
}

.mockup .mini {
  min-height: 142px;
  padding: 22px;
  color: #ffffff;
}

.mockup .mini {
  font-size: 1.75rem;
}

.mockup .mini strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 1.48rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mockup .mini p {
  margin: 8px 0 0;
  color: #e5edf8;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Featured category cards below */
.cards .card h3 {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.2;
}

.cards .card p {
  color: #dce6f3;
  font-size: 1.03rem;
  line-height: 1.6;
}

.cards .card .icon {
  width: 60px;
  height: 60px;
  font-size: 30px;
}

/* Keep header usable on smaller screens */
@media (max-width: 980px) {
  .site-header .brand img,
  .nav .brand img {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .site-header .brand span,
  .nav .brand span {
    font-size: 1.7rem;
  }

  .site-header nav a,
  .menu a {
    font-size: 1rem;
  }
}

@media (max-width: 620px) {
  .mockup .mini {
    min-height: 126px;
    padding: 18px;
  }

  .mockup .mini strong {
    font-size: 1.3rem;
  }

  .mockup .mini p {
    font-size: 1rem;
  }
}

/* ===== Category page readability ===== */

.category-hero h1,
.page-title,
.category-title {
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
}

.category-hero p,
.category-description,
.page-description {
    font-size: 1.22rem;
    line-height: 1.8;
    color: #dce6f3;
}

.category-hero .eyebrow,
.category-hero .kicker {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--v2-gold);
}

.empty-state h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
}

.empty-state p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #dce6f3;
}

/* ===== Category page exact typography ===== */

main.container > .hero {
  padding-top: 72px;
  padding-bottom: 48px;
}

main.container > .hero .eyebrow {
  margin-bottom: 14px;
  color: var(--v2-gold);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#category-title {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

#category-description {
  max-width: 860px;
  margin: 0;
  color: #e1eaf6;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.75;
}

#product-grid .empty-state {
  padding: 38px 0 70px;
}

#product-grid .empty-state h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.18;
}

#product-grid .empty-state p {
  max-width: 760px;
  margin: 0;
  color: #dce6f3;
  font-size: 1.18rem;
  line-height: 1.75;
}

@media (max-width: 620px) {
  main.container > .hero {
    padding-top: 48px;
  }

  #category-title {
    font-size: 2.8rem;
  }

  #category-description {
    font-size: 1.12rem;
  }
}

/* ===== Homepage wider desktop layout ===== */

.home-page .topbar .container,
.home-page main .container {
  width: min(1480px, 95vw);
  max-width: none;
}

.home-page .hero {
  padding-top: 72px;
  padding-bottom: 78px;
}

.home-page .hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, 0.88fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.home-page .hero h1 {
  max-width: 760px;
}

.home-page .mockup {
  width: 100%;
  max-width: 620px;
  justify-self: end;
}

.home-page .cards,
.home-page .product-grid {
  width: 100%;
}

@media (min-width: 1600px) {
  .home-page .topbar .container,
  .home-page main .container {
    width: min(1580px, 94vw);
  }
}

@media (max-width: 980px) {
  .home-page .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-page .mockup {
    max-width: none;
    justify-self: stretch;
  }
}

/* ===== Homepage product card structure fix ===== */

.home-page .product-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.home-page .product-card > a {
  display: block;
  height: auto;
  flex: 0 0 auto;
}

.home-page .product-card .info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 24px;
  color: #ffffff;
}

.home-page .product-card .info .category-tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.14);
  color: var(--v2-gold-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-page .product-card .info h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.home-page .product-card .info h3 a {
  color: #ffffff;
}

.home-page .product-card .info p {
  margin: 0 0 20px;
  color: #dce6f3;
  font-size: 1.03rem;
  line-height: 1.65;
}

.home-page .product-card .info .button {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

.home-page .product-card .info .ad-badge {
  display: block;
  margin-top: 12px;
  color: var(--v2-muted);
  font-size: 0.78rem;
}
