/* Article Sources Shortcode Styles
 * Version: 1.0.0
 */

.article-sources-wrapper {
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 32px 0;
  margin: 40px 0;
}

.article-sources-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  cursor: pointer;
}

.article-sources-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #120808;
  margin: 0;
  letter-spacing: -0.5px;
}

.article-sources-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: #FF4D37;
}

.article-sources-toggle:hover {
  color: #FF4D37;
  background-color: transparent;
}

.article-sources-toggle:focus {
  color: #FF4D37;
  background-color: transparent;
}

.toggle-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.article-sources-wrapper.collapsed .toggle-icon {
  transform: rotate(180deg);
}

.article-sources-content {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 1;
}

.article-sources-wrapper.collapsed .article-sources-content {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

.article-sources-intro {
  font-size: 16px;
  line-height: 1.6;
  color: #5c5c5c;
  margin-bottom: 32px;
  max-width: 100%;
}

.article-sources-list {
  list-style: none;
  counter-reset: source-counter;
  padding: 0;
  margin: 0;
}

.source-item {
  counter-increment: source-counter;
  position: relative;
  padding-left: 0;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: #2c2c2c;
}

.source-item::before {
  content: counter(source-counter) ". ";
  font-weight: 600;
  color: #2c2c2c;
}

.source-link {
  color: #001DFF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.source-link:hover {
  color: #0052a3;
  text-decoration: underline;
}

.source-type {
  color: #5c5c5c;
  font-weight: 400;
}

.source-org {
  color: #2c2c2c;
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
  .article-sources-wrapper {
    padding: 24px 0;
    margin: 32px 0;
  }
  
  .article-sources-title {
    font-size: 24px;
  }
  
  .article-sources-intro,
  .source-item {
    font-size: 15px;
  }
}

/* Print Styles - Always show sources when printing */
@media print {
  .article-sources-wrapper.collapsed .article-sources-content {
    max-height: none !important;
    opacity: 1 !important;
  }
  
  .article-sources-toggle {
    display: none;
  }
}