/*
Theme Name: Minimal Home (Single Page)
Theme URI: https://minimalhome.space
Author: You
Version: 1.2.0
Description: Minimal, modern one-page theme with infinite scroll and affiliate banners. Hero removed; top banner first.
*/

/* Basic reset & layout tokens */
:root { --gap: 16px; --max: 1100px; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans";
  color: #0f172a;
  background: #f8fafc;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Background pattern overlay to separate header/footer */
.bg-pattern {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 400px at 8% 0%, rgba(99,102,241,.10), transparent 60%),
    radial-gradient(900px 450px at 100% 100%, rgba(34,197,94,.10), transparent 60%),
    linear-gradient(#ffffff, #f8fafc);
}

/* Header / navbar */
.header {
  position: fixed; inset: 0 0 auto 0; height: 64px;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
  z-index: 50;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.nav { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.logo img { height: 100%; max-height: 400px; width: auto; display: block; }


/* Subtle header separator */
.header-sep {
  height: 20px;
  background: linear-gradient(to bottom, rgba(148,163,184,.18), transparent);
}

/* Main layout */
.main { padding: 84px 0 160px; }
.grid { display: grid; gap: var(--gap); }

/* Cards and content */
.card {
  border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.card img { width: 100%; height: 260px; object-fit: cover; }
.p { padding: 16px; }
.meta { color: #64748b; font-size: 12px; margin-top: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #e5e7eb; background: #f8fafc;
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
}
.btn:hover { background: #f1f5f9; }

/* Ad blocks */
.ad { border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; background: #fff; }
.ad img { width: 100%; max-height: 300px; object-fit: cover; }
.cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; color: #64748b; font-size: 14px; }

/* Sticky footer (visually separated) */
.sticky-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px; }
.sticky-footer .box {
  max-width: var(--max); margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(99,102,241,.08), rgba(34,197,94,.08)),
    rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border: 1px solid #e5e7eb; border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 14px;
  box-shadow: 0 -8px 24px rgba(15,23,42,.06);
}

/* Modals */
.modal {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25); padding: 20px; z-index: 60;
}
.modal.open { display: flex; }
.modal .inner { max-width: 800px; max-height: 80vh; overflow: auto; background: #fff; border-radius: 16px; padding: 20px; }

/* Contact form */
.form { display: grid; gap: 12px; }
.input, .textarea {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; font: inherit;
  background: #fff;
}
.textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form .hint { color: #64748b; font-size: 12px; }

/* Utilities */
.hidden { display: none; }

.meta {
  display: none !important;
}
