/*
 * THEME: MOCHI (SOFT UI) v2
 * Generated for the Rum Review Log
 * - Dialed back "opinionated" Neumorphism for a softer, cleaner feel.
 * - Redesigned tables for better readability.
 */

/* --- FONT IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap');

/* --- ROOT VARIABLES & GLOBAL STYLES --- */
:root {
  /* v2 UPDATE: Switched to a simpler, softer palette */
  --bg-color: #f5f5f5;
  --card-bg-color: #ffffff;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  
  --text-color: #555;
  --heading-color: #222;
  --accent-color: #fa7070; /* A friendly, soft red */

  --border-radius: 20px;
  --main-font: 'Nunito', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--main-font);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY & LINKS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--main-font);
  font-weight: 800;
  color: var(--heading-color);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

a {
  color: var(--accent-color);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease-out;
}

a:hover {
  color: var(--heading-color);
}

/* --- LAYOUT & MAIN CONTAINERS --- */
#site-header, main, footer {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

#site-header {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  
  /* v2 UPDATE: Simplified Soft UI styles */
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

#site-header nav {
  gap: 1.5rem;
}

#site-header nav .site-logo {
    margin-left: 0;
}

#site-header h1 {
    margin: 0;
    margin-right: 0;
    font-size: 1.6rem;
}

#site-header h1 a {
  color: var(--heading-color);
  padding-left: 0;
  margin-left: 0;
}
#site-header h1 a:hover {
  color: var(--accent-color);
}

footer {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #aaa;
}

/* --- POSTS LIST PAGE --- */
.posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  padding: 0;
  margin: 0;
}

article.post-preview {
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);

  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* v2 UPDATE: Changed to a simpler lift-on-hover effect */
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

article.post-preview:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-preview .featured-image-preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.post-preview .post-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.post-preview h3 a {
  color: var(--heading-color);
}

.post-preview h3 a:hover {
  color: var(--accent-color);
}

.post-preview .meta {
  font-size: 0.85rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

/* --- SINGLE POST PAGE --- */
article > header {
  margin-bottom: 2rem;
  text-align: center;
}

article > header .title-with-badge,
article > header .meta {
  text-align: left;
}

article > header .featured-image {
  display: inline-block;
  margin-top: 2rem;
  max-width: 100%;
  width: auto;
  height: auto;
  
  /* v2 UPDATE: Simplified Soft UI styles */
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.rating-badge {
  /* v2 UPDATE: Simplified Soft UI styles */
  box-shadow: var(--shadow) !important;
  border-radius: 20px !important;
  background: var(--card-bg-color) !important;
  
  color: var(--text-color) !important;
  padding: 0.8rem 1.2rem !important;
}

.rating-badge .rb-score {
  color: var(--heading-color);
  font-weight: 800;
}

.review-layout.card {
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: left;
}

.review-layout .content {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* v2 UPDATE: New, cleaner table styling */
table.specs, table.ratings {
  width: 100%;
  margin-bottom: 2rem;
  background: var(--card-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-collapse: collapse;
  overflow: hidden;
}

table.specs th, table.specs td,
table.ratings th, table.ratings td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

table tr:last-child th, table tr:last-child td {
    border-bottom: none;
}

table.specs th {
  width: 30%;
  color: var(--text-color);
  font-weight: 400;
}

/* ============================================= */
/* --- RESPONSIVE ADJUSTMENTS --- */
/* ============================================= */

@media (max-width: 600px) {
  :root {
      --border-radius: 16px;
  }
  
  h1 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }

  #site-header, main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  #site-header {
      padding: 1rem;
  }

  main {
      margin-top: 1rem;
  }

  .posts-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .review-layout.card {
    padding: 1.5rem;
  }
}