
/*
Theme Name: Lifestyle Finds
Theme URI: https://example.com/lifestyle-finds
Author: Saahithi + ChatGPT
Author URI: https://example.com
Description: A lightweight, Pinterest-friendly WordPress theme for Amazon affiliate websites. Includes a hero section, featured categories, recent posts, and an Amazon Picks grid via shortcode.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lifestyle-finds
*/

/* Base reset */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #2b2b2b;
  background: #faf9f7; /* soft beige background */
  line-height: 1.6;
}

/* Color palette (Pastel Cozy Vibes) */
:root {
  --lf-bg: #faf9f7;         /* soft beige */
  --lf-ink: #2b2b2b;
  --lf-muted: #6d6b69;
  --lf-accent-1: #f6e7e9;   /* blush */
  --lf-accent-2: #e7f1ec;   /* sage */
  --lf-accent-3: #f2efe9;   /* warm ivory */
  --lf-primary: #799e8b;    /* muted sage green for buttons/links */
}

/* Layout */
.container { width: min(1100px, 92%); margin: 0 auto; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Header */
.site-header { background: var(--lf-accent-3); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #e7e3dc; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.site-title { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.2px; }
.site-title a { text-decoration: none; color: var(--lf-ink); }
.site-tagline { color: var(--lf-muted); font-size: 0.9rem; }
.nav a { text-decoration: none; color: var(--lf-ink); padding: 0.5rem 0.75rem; border-radius: 999px; }
.nav a:hover { background: var(--lf-accent-2); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--lf-accent-2), var(--lf-accent-3)); padding: 3rem 0; }
.hero .title { font-size: 2.25rem; margin: 0 0 0.5rem; }
.hero .subtitle { color: var(--lf-muted); margin: 0 0 1.25rem; }
.btn {
  display: inline-block; background: var(--lf-primary); color: white; text-decoration: none;
  padding: 0.75rem 1.1rem; border-radius: 999px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.btn:hover { opacity: 0.95; transform: translateY(-1px); }

/* Cards */
.card {
  background: white; border-radius: 18px; padding: 1rem; border: 1px solid #eee9e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.card a { text-decoration: none; color: inherit; }
.card img { width: 100%; height: 200px; object-fit: cover; border-radius: 14px; }
.card .meta { color: var(--lf-muted); font-size: 0.85rem; }

/* Sections */
.section { padding: 2.25rem 0; }
.section .head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.section .head h2 { margin: 0; font-size: 1.4rem; }
.section .sub { color: var(--lf-muted); font-size: 0.95rem; }

/* Post list */
.post-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.post-list .post { background: white; border: 1px solid #eee9e1; border-radius: 16px; overflow: hidden; }
.post-list .post .thumb { height: 180px; background: #ddd; }
.post-list .post .content { padding: 0.9rem; }
.post-list .post .content h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.post-list .post .content .more { color: var(--lf-primary); font-weight: 600; }

/* Amazon picks grid */
.lf-amazon-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lf-amazon-card { background: white; border-radius: 16px; padding: 0.9rem; border: 1px solid #eee9e1; text-align: center; }
.lf-amazon-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
.lf-amazon-card .title { font-weight: 600; margin: 0.6rem 0; }
.lf-amazon-card .price { color: var(--lf-muted); margin-bottom: 0.75rem; }
.lf-amazon-card .btn { display: inline-block; }

/* Footer */
.site-footer { background: var(--lf-accent-3); padding: 2rem 0; border-top: 1px solid #e7e3dc; color: var(--lf-muted); }
.site-footer a { color: var(--lf-ink); text-decoration: none; }
.site-footer .credits { font-size: 0.85rem; }

/* Forms */
input[type="email"], input[type="text"], textarea {
  width: 100%; padding: 0.7rem 0.8rem; border: 1px solid #ddd3c9; border-radius: 12px; background: #fff;
}
label { font-weight: 600; display: block; margin-bottom: 0.4rem; }
button, input[type="submit"] { background: var(--lf-primary); color: #fff; border: none; padding: 0.7rem 1rem; border-radius: 12px; cursor: pointer; }
button:hover, input[type="submit"]:hover { opacity: 0.95; }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.center { text-align: center; }
.hide { display: none; }

@media (max-width: 720px) {
  .hero .title { font-size: 1.6rem; }
}
