/* Newspaper Style for Blog Posts */

/* Apply only to blog posts */
.page[itemtype="http://schema.org/CreativeWork"] .page__content {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
  color: #1a1a1a;
  max-width: 100%;
  margin: 0 auto;
}

/* Post title in newspaper style */
.page[itemtype="http://schema.org/CreativeWork"] .page__title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: bold;
  font-size: 2.5em;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 4px double #000;
  border-bottom: 4px double #000;
  padding: 0.5em 0;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

/* Author and reviewer byline */
.page[itemtype="http://schema.org/CreativeWork"] .page__byline {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  text-align: center;
  font-size: 1em;
  color: #444;
  margin: 0.8em 0;
  padding: 0;
}

.page[itemtype="http://schema.org/CreativeWork"] .page__author {
  font-weight: normal;
}

.page[itemtype="http://schema.org/CreativeWork"] .page__reviewer {
  font-weight: normal;
  color: #666;
}

/* Date and meta information */
.page[itemtype="http://schema.org/CreativeWork"] .page__date,
.page[itemtype="http://schema.org/CreativeWork"] .page__meta {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  text-align: center;
  font-size: 0.9em;
  color: #666;
  padding: 0.5em 0;
  margin: 0.5em 0;
  display: block;
  width: 100%;
  clear: both;
}

.page[itemtype="http://schema.org/CreativeWork"] header {
  border-bottom: none;
  padding-bottom: 1.5em;
  margin-bottom: 2.5em;
  text-align: center;
}

/* Style the date icon and text */
.page[itemtype="http://schema.org/CreativeWork"] .page__date strong,
.page[itemtype="http://schema.org/CreativeWork"] .page__date i {
  margin-right: 0.3em;
}

/* Drop cap for first paragraph */
.page[itemtype="http://schema.org/CreativeWork"] .page__content p:first-of-type::first-letter {
  float: left;
  font-size: 4em;
  line-height: 0.9;
  font-weight: bold;
  margin: 0.1em 0.1em 0 0;
  font-family: 'Georgia', serif;
}

/* Headers within content */
.page[itemtype="http://schema.org/CreativeWork"] .page__content h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: bold;
  font-size: 1.5em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #000;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  break-after: avoid;
}

.page[itemtype="http://schema.org/CreativeWork"] .page__content h3 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: bold;
  font-size: 1.2em;
  font-style: italic;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  break-after: avoid;
}

/* Blockquotes - newspaper style pull quotes */
.page[itemtype="http://schema.org/CreativeWork"] .page__content blockquote {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.3em;
  font-style: italic;
  text-align: center;
  border: none;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 1em;
  margin: 1.5em 0;
  background: #f9f9f9;
}

/* Lists */
.page[itemtype="http://schema.org/CreativeWork"] .page__content ul,
.page[itemtype="http://schema.org/CreativeWork"] .page__content ol {
  break-inside: avoid;
}

/* Links */
.page[itemtype="http://schema.org/CreativeWork"] .page__content a {
  color: #1a1a1a;
  text-decoration: underline;
  font-weight: normal;
}

/* Images - full width */
.page[itemtype="http://schema.org/CreativeWork"] .page__content img {
  width: 100%;
  margin: 1.5em 0;
  border: 1px solid #ccc;
  padding: 0.5em;
  background: #fff;
}

/* Code blocks */
.page[itemtype="http://schema.org/CreativeWork"] .page__content pre {
  font-family: 'Courier New', monospace;
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 1em;
  margin: 1em 0;
}

/* References section */
.page__references {
  margin: 3em 0 2em;
  padding-top: 2em;
  border-top: 2px solid #000;
}

.page__references-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 1em;
  color: #333;
  font-style: normal;
}

.references-list {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 0.95em;
  line-height: 1.8;
  padding-left: 2em;
}

.reference-item {
  margin-bottom: 1em;
  text-align: left;
}

/* Tags/Taxonomy in newspaper style */
.page[itemtype="http://schema.org/CreativeWork"] .page__taxonomy {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  border-top: 2px solid #000;
  padding-top: 1em;
  margin-top: 2em;
}

/* Like button styling */
.page__like {
  text-align: center;
  margin: 2em 0;
  padding: 1.5em 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.page__like-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1em;
  color: #666;
  margin-bottom: 1em;
}

.btn--like {
  background-color: #fff;
  border: 2px solid #e74c3c;
  color: #e74c3c;
  padding: 0.8em 2em;
  font-size: 1.1em;
  font-family: 'Georgia', 'Times New Roman', serif;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.btn--like:hover {
  background-color: #e74c3c;
  color: #fff;
  transform: scale(1.05);
}

.btn--like.liked {
  background-color: #e74c3c;
  color: #fff;
}

.btn--like i {
  margin-right: 0.5em;
  transition: transform 0.3s ease;
}

.btn--like:hover i {
  transform: scale(1.2);
}

/* Share buttons styling */
.page__share {
  margin: 2em 0;
  padding: 1.5em 0;
  border-top: 1px solid #ddd;
  text-align: center;
}

.page__share-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1em;
  color: #666;
  margin-bottom: 1em;
}

/* Comments section */
.page__comments {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 2px solid #000;
}

.page__comments-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.5em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1em;
}

/* BibTeX Citation */
.page__bibtex {
  margin: 3em 0 2em;
  padding-top: 2em;
  border-top: 1px solid #ddd;
}

.page__bibtex-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 1em;
  color: #333;
}

.bibtex-box {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 0;
  margin-bottom: 1em;
  overflow-x: auto;
  border-radius: 4px;
}

.bibtex-box pre {
  margin: 0;
  background: #f5f5f5;
  border: none;
  padding: 1em;
  overflow-x: auto;
}

.bibtex-box code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  line-height: 1;
  color: #333;
  background: transparent;
  border: none;
  padding: 0;
}

.btn--copy-bibtex {
  background-color: #4a90e2;
  color: #fff;
  border: none;
  padding: 0.5em 1.2em;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.btn--copy-bibtex:hover {
  background-color: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn--copy-bibtex i {
  margin-right: 0.5em;
}

/* Dark mode styles */
html[data-theme="dark"] .page {
  background-color: transparent !important;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] {
  background-color: transparent !important;
}

html[data-theme="dark"] .page__inner-wrap {
  background-color: transparent !important;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__content {
  color: #e0e0e0;
  background-color: transparent !important;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__content p:first-of-type::first-letter {
  color: #fff;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__content h2 {
  color: #fff;
  border-bottom-color: #666;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__content p,
html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__content li,
html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__content strong,
html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__content em,
html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__content td,
html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__content th {
  color: #e0e0e0;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__content table {
  background-color: transparent;
  border-color: #555;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__content thead {
  background-color: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__title {
  color: #fff;
  border-top-color: #666;
  border-bottom-color: #666;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__byline {
  color: #bbb;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__reviewer {
  color: #999;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__date {
  color: #999;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__content a {
  color: #6bb6ff;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__content blockquote {
  color: #d0d0d0;
  border-left-color: #555;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] .page__taxonomy {
  color: #bbb;
}

html[data-theme="dark"] .page[itemtype="http://schema.org/CreativeWork"] header {
  border-bottom: none;
  background-color: transparent !important;
}

html[data-theme="dark"] .page__bibtex-title {
  color: #e0e0e0;
}

html[data-theme="dark"] .page__references-title {
  color: #e0e0e0;
}

html[data-theme="dark"] .bibtex-box {
  background: #2a2a2a;
  border-color: #555;
}

html[data-theme="dark"] .bibtex-box pre {
  background: #2a2a2a;
}

html[data-theme="dark"] .bibtex-box code {
  color: #e0e0e0;
}

html[data-theme="dark"] .references-list {
  color: #d0d0d0;
}

html[data-theme="dark"] .reference-item {
  color: #d0d0d0;
}

