/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark: #1a6b3c;
  --green-main: #2d9a5f;
  --green-light: #4dc47e;
  --green-pale: #e8f5ee;
  --green-xpale: #f4fbf7;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.10);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-main); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gray-900);
  white-space: nowrap;
}
.logo-icon { font-size: 1.4rem; }
.logo-accent { color: var(--green-main); }
.logo:hover { color: var(--gray-900); }

/* Nav */
.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: var(--green-main);
  background: var(--green-pale);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 8px;
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 60%, var(--green-light) 100%);
  color: var(--white);
  padding: 80px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.hero p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.btn-white:hover { background: var(--green-pale); color: var(--green-dark); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-green {
  background: var(--green-main);
  color: var(--white);
  border-color: var(--green-main);
}
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ===== CATEGORIES SECTION ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-50); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.section-header p { color: var(--gray-600); font-size: 1rem; max-width: 520px; margin: 0 auto; }
.section-divider {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--green-main), var(--green-light));
  border-radius: 2px;
  margin: 16px auto 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  transition: all var(--transition);
  color: var(--gray-800);
}
.category-card:hover {
  border-color: var(--green-main);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--green-dark);
}
.category-card .cat-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.category-card h3 { font-size: 0.9rem; font-weight: 600; }

/* ===== POSTS GRID ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--green-light);
}
.post-card-thumb {
  background: linear-gradient(135deg, var(--green-pale), var(--green-xpale));
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.post-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.post-category {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.post-category:hover { background: var(--green-main); color: var(--white); }
.post-date { font-size: 0.78rem; color: var(--gray-400); }
.post-card-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.post-card-body h2 a { color: inherit; }
.post-card-body h2 a:hover { color: var(--green-main); }
.post-card-body p { font-size: 0.88rem; color: var(--gray-600); flex: 1; margin-bottom: 16px; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-main);
}
.read-more:hover { color: var(--green-dark); gap: 8px; }

/* ===== ADSENSE PLACEHOLDER ===== */
.adsense-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  margin: 40px 0;
}
.adsense-placeholder strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }

/* ===== POST LAYOUT ===== */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
}
.post-header { margin-bottom: 36px; }
.post-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-800);
}
.post-content h2 { font-size: 1.4rem; font-weight: 700; margin: 36px 0 14px; color: var(--gray-900); }
.post-content h3 { font-size: 1.15rem; font-weight: 600; margin: 28px 0 10px; color: var(--gray-900); }
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content strong { color: var(--gray-900); font-weight: 600; }
.post-content blockquote {
  border-left: 4px solid var(--green-main);
  background: var(--green-xpale);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--green-dark);
}

/* Sidebar */
.sidebar { position: sticky; top: 88px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
}
.sidebar-posts li { margin-bottom: 12px; }
.sidebar-posts a { font-size: 0.88rem; color: var(--gray-700); font-weight: 500; }
.sidebar-posts a:hover { color: var(--green-main); }
.sidebar-posts .sp-date { display: block; font-size: 0.75rem; color: var(--gray-400); margin-top: 2px; }

/* ===== PRODUCTS PAGE ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-thumb {
  background: var(--green-xpale);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-badge {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.product-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.product-body p { font-size: 0.85rem; color: var(--gray-600); flex: 1; margin-bottom: 16px; }
.product-rating { color: #f59e0b; font-size: 0.85rem; margin-bottom: 12px; }
.btn-amazon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ff9900;
  color: var(--white);
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-amazon:hover { background: #e68a00; color: var(--white); }

/* ===== PAGE LAYOUT ===== */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 10px; }
.page-hero p { opacity: .85; font-size: 1rem; max-width: 500px; margin: 0 auto; }

.page-content { padding: 56px 0; }
.page-content-inner { max-width: 800px; margin: 0 auto; }

/* ===== CATEGORY PAGE ===== */
.category-hero { padding: 56px 0; text-align: center; }
.category-hero .cat-emoji { font-size: 3.5rem; margin-bottom: 12px; display: block; }
.category-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; color: var(--gray-900); margin-bottom: 10px; }
.category-hero p { color: var(--gray-600); max-width: 480px; margin: 0 auto; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.footer-about p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { font-size: 0.88rem; color: var(--gray-400); transition: color var(--transition); }
.footer-col a:hover { color: var(--green-light); }
.footer-form { display: flex; gap: 8px; margin-top: 8px; }
.footer-form input {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--white);
  outline: none;
  font-family: var(--font);
}
.footer-form input::placeholder { color: var(--gray-400); }
.footer-form button {
  background: var(--green-main);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  transition: background var(--transition);
}
.footer-form button:hover { background: var(--green-dark); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; }
.disclaimer { opacity: .6; font-size: 0.78rem !important; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--green-main); color: var(--green-main); }
.pagination .current { background: var(--green-main); color: var(--white); border-color: var(--green-main); }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.tag { display: inline-block; background: var(--green-pale); color: var(--green-dark); padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; margin: 3px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    padding: 16px 24px;
    z-index: 99;
  }
  .main-nav.open { display: block; }
  .main-nav .nav-list { flex-direction: column; align-items: flex-start; gap: 2px; }
  .dropdown { position: static; box-shadow: none; border: none; padding: 0 0 0 12px; display: none; }
  .has-dropdown.open .dropdown { display: block; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
}
