/* ==================================================================
   CUSTOM FUNCTIONS STYLES
   Pull all inline styles from functions/custom_functions.php here
   ==================================================================*/

/* Generic widget container */
.cf-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
}
.cf-box__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.cf-box img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay badges */
.cf-badge {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: gold;
  font-weight: bold;
  padding: 6px 10px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.cf-badge--topleft {
  top: 8px;
  left: 8px;
}
.cf-badge--bottomright {
  bottom: 8px;
  right: 8px;
}

/* Placeholder when no data */
.cf-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #222;
  color: gold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  border: 2px dashed red;
}

/* Section wrapper for lists, rankings, quotes, etc. */
.cf-section {
  padding: 16px;
  background-color: #1a1a1a;
  color: #f5f5f5;
  border-left: 4px solid gold;
  font-family: Arial, sans-serif;
}
.cf-section-header {
  font-weight: bold;
  font-size: 1.1rem;
  color: gold;
  margin-bottom: 8px;
}
.cf-section a {
  color: gold;
  text-decoration: none;
}

/* Empty state inside sections */
.cf-empty-block {
  border: 2px dashed #555;
  padding: 16px;
  background-color: #222;
  color: #ccc;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* Quote and Fact blocks */
.cf-quote-block,
.cf-fact-block {
  padding: 16px;
  background-color: #1a1a1a;
  color: #f5f5f5;
  border-left: 4px solid gold;
  font-family: Arial, sans-serif;
}
.cf-quote-block blockquote,
.cf-fact-block blockquote {
  margin: 0 0 8px;
  font-style: italic;
  color: #ddd;
}
.cf-quote-block p {
  margin: 0;
  text-align: right;
  font-weight: bold;
  color: gold;
}
.cf-fact-block p:first-of-type {
  margin: 0 0 8px;
  font-weight: bold;
  color: gold;
}

/* Power rankings items */
.cf-ranking-item {
  margin-bottom: 6px;
  font-family: Arial, sans-serif;
}

/* Promos list */
.cf-promos-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cf-promo-link {
  display: inline-block;
  width: 40px;
  height: 40px;
}
.cf-promo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

/* Generic lists */
.cf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cf-list-item {
  margin-bottom: 6px;
  font-family: Arial, sans-serif;
}
.cf-list-link {
  text-decoration: none;
  color: inherit;
}
.cf-list-icon {
  height: 1em;
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
}
.cf-empty-list {
  font-family: Arial, sans-serif;
  color: #ccc;
  font-style: italic;
}

/* Music player */
.cf-audio {
  width: 100%;
  background-color: #000;
}
.cf-playlist {
  margin-top: 12px;
  height: 300px;
  overflow-y: auto;
  border: 1px solid #333;
  padding: 8px;
  background-color: #0f0f0f;
}
.cf-playlist-track {
  cursor: pointer;
  padding: 6px;
  margin-bottom: 4px;
  color: #f5f5f5;
  background-color: transparent;
  border-radius: 4px;
}

/* Superstar of the Week */
.cf-superstar {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: #1a1a1a;
  color: #f5f5f5;
  border-left: 4px solid gold;
}
.cf-superstar-link {
  margin-right: 12px;
}
.cf-superstar-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}
.cf-superstar-name {
  margin: 0;
  font-weight: bold;
  color: gold;
}
.cf-superstar-date {
  margin: 4px 0 0;
  color: #ccc;
  font-size: 0.9rem;
}