/* 
 * Source Tag Styling
 * Displays source tags as vertical tables on the left side of posts
 * Uses burnt orange gradient background with white text
 */

/* Ensure articles have relative positioning for absolute positioning of source tag */
.article {
  position: relative !important;
  overflow: visible !important; /* Allow the source tag to extend outside */
  margin-left: 0 !important;
}

/* Source tag container - holds the actual tag */
.source-tag-container {
  position: absolute;
  top: 0;
  left: -35px;
  width: auto;
  background: linear-gradient(to right,#ff8c00, #ff0000);;
  color: #ffffff;
  padding: 5px;
  border-radius: 0px 0px 7px 7px;
  font-weight: bold;
  font-size: 1.9em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px;
  z-index: 100;
  backdrop-filter: blur(5px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Source tag styling - the text itself */
.source-tag {
  display: inline-block;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: 80px;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hover effect for source tag in bbonweb links */
.bbonweb-link:hover .source-tag {
  background: linear-gradient(to right, var(--deep-orange), var(--bright-orange));
  color: white;
}

/* Mobile styles for source tag */
@media (max-width: 900px) {
  /* Hide the desktop version */
  .source-tag-container {
    display: none;
  }
  
  /* Mobile source tag container */
  .source-tag-container {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px 10px;
    border-radius: 0 0 8px 0;
    font-size: 0.8em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  /* Create a new mobile version */
  .article::before {
    content: attr(data-source-tag);
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(to right, #993300, #FF8C00);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px;
    z-index: 100;
  }
}
