/* Body & Container */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9fafb;  /* soft light gray */
  color: #2c3e50; /* deep blue-gray */
}

.container {
  max-width: 1200px; /* was 700px */
  margin: auto;
  padding: 1rem;
  text-align: center;
}

/* Header */
.site-header {
  background-color: #a8d5ba;  /* soft mint green */
  border-bottom: 1px solid #8fbf94; /* slightly darker mint border */
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  color: #1e3d24; /* dark green text */
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.75rem;
  margin: 0;
  color: #1e3d24; /* dark green */
  font-weight: 700;
  user-select: none;
}

.logo a {
  text-decoration: none;
  color: #1e3d24;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: #357a38; /* darker green on hover */
}

.site-header nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #3c6e47; /* medium green */
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  user-select: none;
}

.site-header nav a:hover {
  color: #357a38;
}

/* Tone selector in header */
.tone-selector-header {
  display: flex;
  align-items: center;
  min-width: 140px;
}

.tone-selector-header label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-right: 8px;
  color: #1e3d24;
  user-select: none;
}

.tone-selector-header select {
  padding: 6px 10px;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #8fbf94;
  background-color: #e6f0e8; /* lighter mint */
  color: #1e3d24;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tone-selector-header select:hover,
.tone-selector-header select:focus {
  background-color: #d4e4d4; /* subtle darker mint */
  border-color: #357a38;
  outline: none;
}

/* Footer */
.site-footer {
  background-color: #ffffff; /* white */
  color: #7f8c8d; /* medium gray */
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
  user-select: none;
}

.site-footer a {
  color: #3498db;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #2c3e50;
  text-decoration: underline;
}

/* Search and emoji container - slight tweaks */
#search {
  border: 1px solid #8fbf94;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 12px;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
  background-color: #e6f0e8; /* match mint theme */
  color: #1e3d24;
}

#search::placeholder {
  color: #4a6a4a;
}

#search:focus {
  border-color: #357a38;
  outline: none;
  background-color: #d4e4d4;
}

#emoji-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); /* was 60px */
  gap: 16px;
  justify-content: center;
  align-items: stretch;
  margin-top: 1rem;
}

/* Keep emoji box consistent */
.emoji-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  transition: box-shadow 0.25s ease;
}

.emoji-box:hover {
  box-shadow: 0 8px 14px rgba(0,0,0,0.15);
}

.emoji {
  font-size: 2.4rem;
  cursor: pointer;
  background: white;
  padding: 10px;
  border-radius: 14px;
  transition: transform 0.25s ease, background-color 0.25s ease;
  user-select: none;
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.emoji:hover {
  transform: scale(1.3);
  background: #ecf0f1;
}

@media screen and (min-width: 1024px) {
  .emoji {
    font-size: 2.8rem;
  }
}

.top-bar {
  background-color: #82c5a3; /* deeper mint green */
  color: white; /* text color updated */
  font-size: 0.9rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.top-bar a {
  color: #ffffff; /* link color updated */
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: #ecf0f1; /* lighter on hover */
}
.blog-section {
  margin-top: 3rem;
  padding: 2rem 1rem;
  background: #ffffff;
  border-top: 1px solid #eee;
  text-align: left;
}

.blog-section h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  text-align: center;
}

.blog-preview-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.blog-card {
  padding: 1rem;
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.blog-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.blog-card a {
  color: #3498db;
  text-decoration: none;
}

.blog-card a:hover {
  text-decoration: underline;
}

.blog-card .summary {
  font-size: 0.95rem;
  color: #555;
}

.blog-readmore {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: bold;
  color: #1e3d24;
  text-decoration: none;
  text-align: center;
}

.blog-readmore:hover {
  text-decoration: underline;
}

@media screen and (min-width: 600px) {
  .blog-preview-list {
    grid-template-columns: 1fr 1fr;
  }
}
#load-more-wrapper {
  text-align: center;
  margin: 30px 0;
}

#load-more-btn {
  display: block;          /* make it behave like a block element */
  margin: 20px auto;       /* top/bottom margin 20px, auto left/right centers it */
  padding: 10px 25px;      /* padding for size */
  font-size: 1.2rem;       /* make text a bit bigger */
  background-color: #007BFF;  /* attractive blue background */
  color: white;            /* white text */
  border: none;            /* no border */
  border-radius: 8px;      /* rounded corners */
  cursor: pointer;         /* pointer cursor on hover */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* subtle shadow */
  transition: background-color 0.3s ease;
}

#load-more-btn:hover {
  background-color: #0056b3; /* darker blue on hover */
}
