/*
Theme Name: Past Due Perfect
Theme URI: https://pastduereviews.com
Author: James
Description: Hip hop & R&B album review blog with rating chart front page.
Version: 1.0
Text Domain: past-due-perfect
*/

/* GLOBAL */

body {
  margin: 0;
  font-family: Inter, Helvetica, Arial, sans-serif;
  background: #050505;
  color: #f5f5f5;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* LAYOUT */

.pdr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER + NAV */

.pdr-header {
  background: #0b0b0b;
  border-bottom: 3px solid #d7263d;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.pdr-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdr-site-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pdr-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.pdr-nav a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: 0.2s ease;
}

.pdr-nav a:hover {
  border-bottom-color: #d7263d;
  color: #d7263d;
}

/* HERO */

.pdr-hero {
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(180deg, #101010 0%, #050505 100%);
}

.pdr-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.pdr-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* RATING CHART */

.pdr-rating-chart {
  margin: 40px auto 60px;
  background: #101010;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.pdr-rating-chart h2 {
  margin-bottom: 16px;
}

.pdr-rating-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pdr-rating-table th,
.pdr-rating-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #2a2a2a;
}

.pdr-rating-table th {
  text-align: left;
  font-weight: 700;
}

.pdr-rating-label {
  font-weight: 700;
  text-transform: uppercase;
}

/* Rating colors */

.pdr-rating-past-due { color: #ff4b5c; }
.pdr-rating-on-time { color: #f5f5f5; }
.pdr-rating-early { color: #4b7bec; }
.pdr-rating-slightly-late { color: #f7b731; }
.pdr-rating-delayed { color: #fa8231; }
.pdr-rating-missed { color: #eb3b5a; }
.pdr-rating-archival { color: #8854d0; }

/* FEATURED ARTICLES */

.pdr-section {
  margin: 40px 0;
}

.pdr-section h2 {
  margin-bottom: 20px;
}

.pdr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pdr-card {
  background: #101010;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  transition: 0.2s ease;
}

.pdr-card:hover {
  transform: translateY(-3px);
}

.pdr-card-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.pdr-card-meta {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

/* FOOTER */

.pdr-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 0.85rem;
  opacity: 0.7;
  border-top: 1px solid #1a1a1a;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .pdr-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pdr-hero h1 {
    font-size: 2.1rem;
  }
}

/* ABOUT PAGE (combined + cleaned) */

.pdr-about-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
  color: #f2f2f2;
  background: #111;
}

.pdr-about-hero {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 20px;
  background: #1a1a1a;
  border-radius: 12px;
  border: 1px solid #222;
}

.pdr-about-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fbc02d;
}

.pdr-about-tagline {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 10px;
}

.pdr-about-section {
  margin-top: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}

.pdr-about-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #d32f2f;
  margin-bottom: 15px;
}

.pdr-dropcap:first-letter {
  float: left;
  font-size: 3.5rem;
  line-height: 1;
  padding-right: 10px;
  padding-top: 5px;
  font-weight: 700;
  color: #fbc02d;
}

.pdr-about-section p {
  line-height: 1.7;
  color: #e6e6e6;
  font-size: 1.05rem;
}

.pdr-about-list {
  list-style: none;
  padding-left: 0;
}

.pdr-about-list li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  color: #e6e6e6;
}

.pdr-about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #d32f2f;
  font-size: 1.4rem;
  line-height: 1;
}

/* NAV DROPDOWN */

.pdr-nav ul li {
  position: relative;
}

.pdr-nav ul .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  padding: 10px 0;
  list-style: none;
  min-width: 240px;
  border: 1px solid #222;
  border-radius: 6px;
  z-index: 999;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pdr-nav ul li:hover > .sub-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.pdr-nav ul .sub-menu li a {
  display: block;
  padding: 10px 15px;
  color: #f2f2f2;
  white-space: nowrap;
  font-size: 0.95rem;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.pdr-nav ul .sub-menu li a:hover {
  background: #d32f2f;
  color: #fff;
  padding-left: 20px;
}

.pdr-nav ul .sub-menu {
  max-height: 350px;
  overflow-y: auto;
}

.pdr-nav ul .sub-menu::-webkit-scrollbar {
  width: 6px;
}

.pdr-nav ul .sub-menu::-webkit-scrollbar-thumb {
  background: #d32f2f;
  border-radius: 3px;
}

.pdr-nav ul .sub-menu::-webkit-scrollbar-track {
  background: #222;
}

/* HOMEPAGE RATING SYSTEM */

.pdr-rating-home {
  margin: 60px auto;
  padding: 40px 20px;
  max-width: 1000px;
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
}

.pdr-rating-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fbc02d;
  text-align: center;
  margin-bottom: 10px;
}

.pdr-rating-subtitle {
  text-align: center;
  color: #ccc;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.pdr-rating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.pdr-rating-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #222;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pdr-rating-card:hover {
  transform: translateY(-4px);
  border-color: #d32f2f;
}

.pdr-rating-card h3 {
  color: #d32f2f;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.pdr-rating-card p {
  color: #e6e6e6;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* PLAYLIST SECTION */

.pdr-playlist {
  margin: 80px auto;
  padding: 50px 20px;
  max-width: 900px;
  background: #111;
  border: 1px solid #222;
  border-radius: 14px;
  text-align: center;
}

.pdr-playlist-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fbc02d;
  margin-bottom: 25px;
}

.pdr-playlist-frame iframe {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.45);
}

/* COMMENTS + STAR RATING */

.pdr-comments {
  margin-top: 60px;
  padding: 40px;
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
}

.pdr-comments-title {
  color: #fbc02d;
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 25px;
}

/* Average Rating */

.pdr-average-rating {
  margin-bottom: 40px;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 10px;
  border: 1px solid #222;
}

.pdr-average-stars {
  font-size: 1.4rem;
  color: #fbc02d;
}

.pdr-average-number {
  color: #ccc;
  font-size: 1rem;
}

/* Star Input */

.pdr-star-input {
  margin-bottom: 25px;
}

.pdr-star-input label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 600;
}

.pdr-stars span {
  font-size: 2rem;
  cursor: pointer;
  color: #444;
  transition: 0.2s;
  margin-right: 5px;
}

.pdr-stars span.active {
  color: #fbc02d;
}

/* Comment Rating Display */

.pdr-comment-rating {
  font-size: 1.2rem;
  color: #fbc02d;
  margin-bottom: 8px;
}

/* Comment List */

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #222;
}

.comment-content {
  color: #ddd;
}

/* Comment Form */

#commentform textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}

#commentform input[type="submit"] {
  background: #ff4b5c;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

#commentform input[type="submit"]:hover {
  background: #ff2f45;
}
/* FORCE STAR RATING FIELD TO BE VISIBLE */
.pdr-star-input {
  display: block !important;
  margin-top: 20px !important;
  margin-bottom: 25px !important;
}

.pdr-star-input label {
  color: #fff !important;
  font-size: 1rem !important;
  display: block !important;
  margin-bottom: 8px !important;
}

.pdr-stars {
  display: flex !important;
  gap: 6px !important;
}

.pdr-stars span {
  font-size: 2rem !important;
  color: #444 !important;
  cursor: pointer !important;
  user-select: none !important;
}

.pdr-stars span.active {
  color: #fbc02d !important;
}
.pdr-artist-dropdown {
    max-height: 350px;
    overflow-y: auto;
}

.pdr-artist-search input {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
}
.pdr-star-rating {
  margin: 15px 0;
}

.pdr-stars span {
  font-size: 28px;
  cursor: pointer;
  color: #444;
  transition: color 0.2s;
}

.pdr-stars span.active,
.pdr-stars span:hover,
.pdr-stars span:hover ~ span {
  color: gold;
}
