/*
Theme Name: Albums Before You Die
Theme URI: https://example.com
Author: Claude
Author URI: https://example.com
Description: A dark, editorial WordPress theme for an album-review site, with three-column layout, widgetized sidebars, and a bold red-on-black aesthetic. Latest Reviews grid on the homepage, category/year browsing, and recent-comments sidebar out of the box.
Version: 1.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: albums-before-you-die
Tags: blog, grid-layout, two-columns, three-columns, custom-menu, featured-images, widgets, black, red
*/

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #0a0a0a;
  color: #e6e6e6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #e8453c; text-decoration: none; transition: color .15s ease; }
a:hover { color: #ff6a61; }
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: #fff; margin: 0 0 .5em; line-height: 1.2; }
ul { list-style: none; margin: 0; padding: 0; }
hr { border: none; border-top: 1px solid #262626; margin: 1.5em 0; }
::selection { background: #e8453c; color: #fff; }

/* ---------- Layout ---------- */
.site-wrap {
  max-width: 1536px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 230px 1fr 230px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 1100px) {
  .site-wrap { grid-template-columns: 1fr; }
  .sidebar { order: 3; }
}

/* ---------- Header ---------- */
.site-header { grid-column: 1 / -1; text-align: center; margin-bottom: 8px; }
.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto 20px;
}
.site-branding .vinyl {
  width: 90px; height: 90px; flex-shrink: 0;
}
.site-branding .brand-text { text-align: left; }
.site-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 900;
  font-size: 52px;
  letter-spacing: 2px;
  color: #fff;
  margin: 0;
  line-height: 1;
}
.site-title a { color: #fff; }
.site-title a:hover { color: #fff; }
.site-description {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 1px;
  color: #e8453c;
  margin-top: 2px;
  transform: skewX(-8deg);
  display: inline-block;
}
.header-rule {
  height: 3px;
  background: linear-gradient(90deg, transparent, #e8453c 15%, #e8453c 85%, transparent);
  margin-bottom: 22px;
}

/* ---------- Nav ---------- */
.main-nav {
  border-top: 1px solid #262626;
  border-bottom: 1px solid #262626;
  padding: 14px 0;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}
.main-nav ul { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; justify-content: center; }
.main-nav li { position: relative; }
.main-nav a {
  color: #e6e6e6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: #e8453c; }
.main-nav .search-toggle { color: #e6e6e6; margin-left: 10px; }
.main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #141414;
  border: 1px solid #262626;
  min-width: 190px;
  padding: 8px 0;
  z-index: 20;
}
.main-nav li:hover > ul { display: block; }
.main-nav ul ul li { display: block; }
.main-nav ul ul a { display: block; padding: 8px 16px; }

/* ---------- Section heading ---------- */
.section-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  color: #fff;
  border-bottom: 2px solid #e8453c;
  padding-bottom: 10px;
  margin: 8px 0 24px;
  text-transform: uppercase;
}

/* ---------- Content grid (Latest Reviews) ---------- */
.content-main { min-width: 0; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 760px) { .review-grid { grid-template-columns: 1fr; } }

.review-card { display: flex; flex-direction: column; }
.review-card .thumb { border: 1px solid #262626; margin-bottom: 14px; overflow: hidden; }
.review-card .thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s ease; }
.review-card .thumb:hover img { transform: scale(1.04); }
.review-card h2 { font-size: 21px; margin-bottom: 8px; }
.review-card h2 a { color: #fff; }
.review-card h2 a:hover { color: #e8453c; }
.review-meta { font-size: 13px; color: #8a8a8a; margin-bottom: 10px; }
.review-meta a { color: #e8453c; font-weight: 600; }
.review-meta .sep { margin: 0 6px; color: #444; }
.review-card .excerpt { color: #b8b8b8; font-size: 15px; margin-bottom: 10px; flex-grow: 1; }
.read-more { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

.pagination { grid-column: 1/-1; text-align: center; margin-top: 40px; }
.pagination a, .pagination span {
  display: inline-block; padding: 8px 14px; margin: 0 3px;
  border: 1px solid #262626; color: #e6e6e6; font-size: 13px;
}
.pagination .current { background: #e8453c; border-color: #e8453c; color: #fff; }
.pagination a:hover { border-color: #e8453c; color: #e8453c; }

/* ---------- Single post ---------- */
.single-review .thumb { border: 1px solid #262626; margin-bottom: 22px; }
.single-review h1 { font-size: 34px; margin-bottom: 10px; }
.single-review .entry-content { color: #d0d0d0; font-size: 17px; }
.single-review .entry-content p { margin: 0 0 1.2em; }
.rating-badge {
  display: inline-block; background: #141414; border: 1px solid #e8453c;
  color: #e8453c; font-weight: 700; padding: 6px 14px; font-size: 13px;
  letter-spacing: .5px; margin-bottom: 18px;
}

/* ---------- Comments ---------- */
.comments-area { margin-top: 46px; border-top: 1px solid #262626; padding-top: 30px; }
.comment-list { margin-bottom: 30px; }
.comment-list li { padding: 16px 0; border-bottom: 1px solid #1c1c1c; }
.comment-author { color: #fff; font-weight: 700; font-size: 14px; }
.comment-meta { color: #777; font-size: 12px; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; background: #141414; border: 1px solid #262626; color: #e6e6e6;
  padding: 10px 12px; margin-bottom: 12px; font-family: inherit; font-size: 14px;
}
.comment-form textarea { min-height: 130px; }
.comment-form input[type="submit"] {
  background: #e8453c; color: #fff; border: none; padding: 11px 26px;
  font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .5px; cursor: pointer;
}
.comment-form input[type="submit"]:hover { background: #ff6a61; }

/* ---------- Sidebars ---------- */
.sidebar { font-size: 14px; }
.widget { margin-bottom: 34px; }
.widget-title, .sidebar h3 {
  color: #e8453c;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #262626;
}
.sidebar p { color: #b0b0b0; }

/* search widget */
.search-form { display: flex; }
.search-form input[type="search"] {
  flex: 1; background: #141414; border: 1px solid #262626; color: #e6e6e6;
  padding: 9px 10px; font-size: 13px;
}
.search-form button {
  background: #e8453c; border: 1px solid #e8453c; color: #fff; padding: 0 14px; cursor: pointer;
}
.search-form button:hover { background: #ff6a61; }

/* browse-by / categories list */
.sidebar-list li {
  border-bottom: 1px solid #1c1c1c;
}
.sidebar-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 2px; color: #d8d8d8; font-size: 14px;
}
.sidebar-list li a:hover { color: #e8453c; }
.sidebar-list li a::after { content: '\203A'; color: #555; font-size: 16px; }

/* recent reviews (mini list) */
.mini-post-list li {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #1c1c1c;
}
.mini-post-list img { width: 56px; height: 56px; object-fit: cover; border: 1px solid #262626; flex-shrink: 0; }
.mini-post-list .mini-title { color: #e6e6e6; font-size: 13px; font-weight: 600; line-height: 1.35; }
.mini-post-list .mini-title:hover { color: #e8453c; }
.mini-post-list .mini-date { color: #777; font-size: 11px; margin-top: 3px; }

/* top rated */
.rated-list li { padding: 10px 0; border-bottom: 1px solid #1c1c1c; }
.rated-list .stars { color: #e8453c; letter-spacing: 1px; font-size: 13px; margin-bottom: 3px; }
.rated-list a { color: #e6e6e6; font-size: 13.5px; font-weight: 600; }
.rated-list a:hover { color: #e8453c; }

/* follow / social */
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 34px; height: 34px; border: 1px solid #262626; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #e6e6e6;
}
.social-row a:hover { border-color: #e8453c; color: #e8453c; }

/* recent comments */
.recent-comments li { padding: 9px 0; border-bottom: 1px solid #1c1c1c; font-size: 13.5px; color: #b0b0b0; }
.recent-comments a { color: #e6e6e6; font-weight: 600; }
.recent-comments a:hover { color: #e8453c; }

/* ---------- Footer ---------- */
.site-footer {
  grid-column: 1 / -1;
  border-top: 1px solid #262626;
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  color: #666;
  font-size: 13px;
}
.site-footer a { color: #999; }
.site-footer a:hover { color: #e8453c; }

/* ---------- Misc ---------- */
.no-results { padding: 40px 0; color: #999; }
.screen-reader-text { position: absolute; left: -9999px; }
.alignwide { max-width: 100%; }
