/* ==================================================================
   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: #ffd966;
  font-weight: bold;
  padding: 6px 10px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.cf-badge--topleft {
  top: 8px;
  left: 8px;
}
.cf-badge--bottomright {
  bottom: 10px;
  right: 10px;
  background: rgba(33,33,33,0.85);

  font-size: 14px;
  padding: 8px 12px;
  line-height: 1.2;
  max-width: 90%;
}

.cf-badge--bottomright .badge-title {
  font-weight: bold;
  font-size: 15px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
text-align: right;
}

.cf-badge--bottomright .badge-champ {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
text-align: right;
}

/* Placeholder when no data */
.cf-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #222;
  color: #ffd966;
  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 #ffd966;
  font-family: Arial, sans-serif;
}
.cf-section-header {
  font-weight: bold;
  font-size: 1.1rem;
  color: #ffd966;
  margin-bottom: 8px;
}
.cf-section a {
  color: #ffd966;
  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 #ffd966;
  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: #ffd966;
}
.cf-fact-block p:first-of-type {
  margin: 0 0 8px;
  font-weight: bold;
  color: #ffd966;
}

/* 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 #ffd966;
}
.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: #ffd966;
}
.cf-superstar-date {
  margin: 4px 0 0;
  color: #ccc;
  font-size: 0.9rem;
}

.zap-mini-card {
    background: transparent;
    padding: 10px 0;
    color: #f5f5f5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.zap-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.zap-mini-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.zap-header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.name-line {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

.date-line {
    font-size: 0.75rem;
    color: #aaa;
    margin-left: 5px;
    font-weight: normal;
}

.zap-mini-content {
    padding-left: 50px;
    margin-top: 3px;
    white-space: pre-line;
}

.zap-mini-content p {
    margin: 0 0 4px;
}

.zap-mini-content {
    white-space: pre-line; /* honors \n and trims spacing */
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 6px;
}

.hashtag {
    color: #ffcc00;
    font-weight: bold;
}

.zap-mini-card br {
    margin: 0;
    line-height: 1;
}

