/* Article content styling - MudBlazor compatible */
.article-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  color: rgba(0, 0, 0, 0.87);
  background-color: #ffffff;
  line-height: 1.6;
}

.article-content h1 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 2.125rem;
  font-weight: 400;
  line-height: 1.235;
  color: rgba(0, 0, 0, 0.87);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding-bottom: 0.75rem;
  letter-spacing: -0.00833em;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.334;
  color: rgba(0, 0, 0, 0.87);
  letter-spacing: 0em;
}

.article-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.87);
  letter-spacing: 0.00735em;
}

.article-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.875rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.87);
  letter-spacing: 0.00735em;
}

.article-content h5 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.87);
  letter-spacing: 0.0125em;
}

.article-content h6 {
  margin-top: 1rem;
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08333em;
}

.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.87);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.00938em;
  text-align: left;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  line-height: 1.75;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: rgba(0, 0, 0, 0.87);
  padding-left: 0.25rem;
  font-size: 1rem;
}

.article-content li::marker {
  color: #594ae2;
  font-weight: 400;
}

.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.article-content li p {
  margin-bottom: 0.5rem;
}

.article-content code {
  background-color: rgba(0, 0, 0, 0.04);
  color: #d32f2f;
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
  font-family: "Roboto Mono", "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.875rem;
  font-weight: 400;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.article-content pre {
  background-color: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}

.article-content pre code {
  background-color: transparent;
  padding: 0;
  border: none;
  color: rgba(0, 0, 0, 0.87);
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-content blockquote {
  border-left: 4px solid #594ae2;
  background-color: rgba(89, 74, 226, 0.04);
  padding: 1rem 1.5rem;
  padding-left: 2.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
  position: relative;
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}

.article-content blockquote::before {
  content: '"';
  font-size: 2rem;
  color: #594ae2;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  opacity: 0.3;
  font-family: "Roboto";
}

.article-content blockquote p {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content picture,
.article-image {
  display: block;
  width: 100%;
}

.article-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1.75rem 0;
  display: block;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-content img:hover {
  box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2),
    0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
}

.article-content figure {
  margin: 1.75rem 0;
}

.article-content figcaption {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
  margin-top: 0.75rem;
}

.article-content a {
  color: #594ae2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

.article-content a:hover {
  color: #3f2db4;
  border-bottom-color: #594ae2;
  text-decoration: none;
}

.article-content a:focus {
  outline: 2px solid #594ae2;
  outline-offset: 2px;
  border-radius: 2px;
}

.article-title {
  letter-spacing: -0.4px;
  margin-bottom: 1.5rem;
}

.meta-panel {
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(
    135deg,
    rgba(89, 74, 226, 0.02) 0%,
    rgba(118, 75, 162, 0.02) 100%
  );
  border: 1px solid rgba(89, 74, 226, 0.15);
  transition: all 0.3s ease;
}

.meta-panel:hover {
  border-color: rgba(89, 74, 226, 0.3);
  box-shadow: 0 4px 12px rgba(89, 74, 226, 0.08);
}

.meta-container {
  width: 100%;
}

.meta-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.author-section {
  flex: 0 0 auto;
}

.author-avatar {
  box-shadow: 0 2px 8px rgba(89, 74, 226, 0.15);
  border: 2px solid rgba(89, 74, 226, 0.1);
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.author-label {
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.author-name {
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
  font-size: 1rem;
}

.meta-item {
  flex: 0 0 auto;
}

.meta-label {
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  display: block;
  margin-bottom: 0.125rem;
}

.meta-value {
  color: rgba(0, 0, 0, 0.87);
  font-weight: 500;
  font-size: 0.9rem;
}

.meta-divider {
  margin: 0.75rem 0;
  background-color: rgba(89, 74, 226, 0.1);
}

.tags-section {
  width: 100%;
}

.tags-label-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
}

.tags-icon {
  color: #594ae2;
}

.tags-label {
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.meta-info {
  gap: 1.5rem;
}

.meta-tags {
  align-items: center;
}

.meta-chipset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-icon {
  align-self: flex-start;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.article-content th,
.article-content td {
  border-bottom: 1px solid rgba(224, 224, 224, 1);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background-color: #594ae2;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.00714em;
}

.article-content td {
  background-color: #ffffff;
  color: rgba(0, 0, 0, 0.87);
  font-size: 0.875rem;
}

.article-content tbody tr:nth-child(even) td {
  background-color: rgba(0, 0, 0, 0.04);
}

.article-content tbody tr:hover td {
  background-color: rgba(0, 0, 0, 0.08);
}

/* Additional content styling */
.article-content hr {
  border: none;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.12);
  margin: 2rem 0;
}

.article-content strong,
.article-content b {
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
}

.article-content em,
.article-content i {
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
}

.article-content mark {
  background-color: #fff176;
  color: rgba(0, 0, 0, 0.87);
  padding: 0.125rem 0.25rem;
  border-radius: 2px;
}

.article-content del {
  text-decoration: line-through;
  color: rgba(0, 0, 0, 0.38);
}

.article-content small {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 0.03333em;
}

/* First paragraph styling */
.article-content p:first-of-type {
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.87);
  margin-bottom: 2rem;
  line-height: 1.6;
  letter-spacing: -0.00833em;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .article-title {
    font-size: 2.25rem;
  }

  .meta-info {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .article-content {
    padding: 1rem;
  }

  .article-content h1 {
    font-size: 1.75rem;
    margin-top: 1.5rem;
  }

  .article-content h2 {
    font-size: 1.375rem;
    margin-top: 1.5rem;
  }

  .article-content h3 {
    font-size: 1.125rem;
    margin-top: 1.25rem;
  }

  .article-content h4 {
    font-size: 1rem;
  }

  .article-title {
    font-size: 1.85rem;
    line-height: 1.3;
  }

  .meta-panel {
    padding: 1.25rem;
  }

  .meta-primary {
    gap: 1.5rem;
  }

  .meta-item {
    min-width: 140px;
  }

  .article-content p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .article-content p:first-of-type {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .article-content ul,
  .article-content ol {
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .article-content pre {
    padding: 0.75rem;
    font-size: 0.75rem;
    margin: 1rem 0;
  }

  .article-content blockquote {
    padding: 0.75rem 1rem;
    margin: 1rem 0;
  }

  .article-content table {
    font-size: 0.75rem;
  }

  .article-content th,
  .article-content td {
    padding: 0.5rem 0.75rem;
  }

  .article-content img {
    border-radius: 12px;
    margin: 1.25rem 0;
  }

  .article-content figcaption {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .meta-panel {
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .meta-primary {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    width: 100%;
  }

  .author-section {
    width: 100%;
  }

  .meta-item {
    width: 100%;
    min-width: unset;
  }

  .meta-divider {
    margin: 0.5rem 0;
  }

  .tags-section {
    width: 100%;
  }

  .tags-label-container {
    margin-bottom: 0.5rem;
  }

  .meta-chipset {
    gap: 0.4rem;
  }

  .meta-chipset .mud-chip-root {
    font-size: 0.85rem;
  }

  .article-content picture,
  .article-content figure,
  .article-image {
    display: block;
    width: calc(100% + 2rem);
    max-width: none;
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .article-content img,
  .article-image__img {
    width: 100%;
    max-width: 100%;
  }

  .article-content img.article-image__img {
    width: calc(100% + 2rem);
    max-width: none;
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .article-content figcaption {
    padding: 0 1rem;
  }
}
