/* Merged styles from index.html and abstract.html */

/* === Reset & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #FFFFFF;
  color: #000000;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* === Accessibility Improvements === */
a:focus, button:focus, summary:focus {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Skip Link (WCAG 2.4.1) === */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0066cc;
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* === Layout === */
.page-wrapper {
  display: flex;
  flex-direction: column;
}

/* === Header === */
header {
  background: linear-gradient(to right, #7CD3E6, #a8e0ed);
  position: relative;
}

.header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  padding: 10px 20px;
  align-items: start;
}

.journal-cover {
  display: block;
}

.journal-cover img {
  width: 150px;
  height: 199px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-middle {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 10px;
}

.current-issue {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

/* === Navigation === */
nav {
  margin-top: auto;
}

.nav-menu {
  display: flex;
  gap: 25px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-menu a {
  font-size: 16px;
  padding: 8px 0;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-menu a:hover {
  color: #0066cc;
}

.nav-menu .active {
  border-bottom: 2px solid #333;
}

/* === Language Switcher === */
.lang-switcher {
  display: flex;
  gap: 15px;
  align-items: center;
  padding-top: 10px;
}

.lang-switcher a,
.lang-switcher span {
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.lang-switcher .active {
  background-color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.lang-switcher a:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.5);
}

/* === Main Content === */
main {
  flex: 1;
  padding: 30px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-title h1 {
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
}

/* === Download Links (Shared) === */
.download-link {
  color: #0066cc;
  font-weight: 500;
  padding: 10px 0;
}
.download-link:hover {
  text-decoration: underline;
}

.pdf {
  background: url('pdf3.png') no-repeat left center;
  background-size: 36px 36px;
  padding-left: 46px;
}

.download-section {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  line-height: 1.3;
}
.article-section .download-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1.15rem;
}
.article-section .download-link.pdf {
    padding-left: 46px;
}
.download-section .download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
}
.download-section .download-link.pdf {
    min-height: 36px;
}

/* === DOI Section (Shared) === */
.issue-doi, .doi-section {
  background-color: #fff3cd;
  border-radius: 8px;
  margin-bottom: 25px;
}
.issue-doi {
  padding: 20px;
  margin-bottom: 30px;
  line-height: 1.3;
}
.doi-section {
  padding: 15px 20px;
  font-size: 1.05rem;
  border-left: 4px solid #d4a017;
}

.issue-doi a, .doi-section a {
  color: #0055aa;
  font-weight: 600;
}
.doi-section a:hover {
    text-decoration: underline;
}

/* === Citation === */
.citation-section {
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid #e9ecef;
}

.citation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.citation-label {
  font-size: 1.15rem;
  font-weight: 700;
}

.citation-field {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  background-color: #ffffff;
}

.citation-copy-btn {
  padding: 6px 16px;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color 0.3s;
}

.citation-copy-btn:hover {
  background-color: #004499;
}

/* === Funding / Acknowledgments === */
.funding {
  background-color: #f0f7ee;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #5a9a3c;
  line-height: 1.6;
  font-size: 0.88rem;
}

.funding strong {
  font-weight: 600;
  color: #333;
}

/* === index.html Specific: Articles List === */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.article-item {
  background-color: #ffffff;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.3;
}

.article-item:nth-child(even) {
  background-color: #f0f0f0;
}

.article-item:hover {
  transform: translateX(5px);
  box-shadow: -3px 0 0 #0066cc;
}

.article-item .article-authors {
  font-style: italic;
  font-weight: 500;
  color: #2c3e50;
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.article-item .article-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0066cc;
  margin-bottom: 8px;
  display: block;
  transition: color 0.3s ease;
}

.article-item .article-title:hover {
  color: #004499;
  text-decoration: underline;
}

.article-item .article-pages {
  font-style: italic;
  color: #666;
  font-size: 0.95rem;
}


/* === abstract.html Specific: Article Details === */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 1.4rem;
  color: #555;
}

.breadcrumb a {
  color: #0066cc;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #004499;
  text-decoration: underline;
}

.breadcrumb .current {
  font-style: italic;
}

.breadcrumb-separator {
    color: #767676;
}

.article-section {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.article-section .article-authors {
  font-style: italic;
  font-weight: 500;
  color: #2c3e50;
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.article-affiliations {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.7;
}

.article-section .article-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-section .article-pages {
  font-style: italic;
  color: #666;
  font-size: 1rem;
  margin-bottom: 15px;
}

.article-pacs {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.article-pacs strong {
  font-weight: 600;
}

.article-dates {
  font-style: italic;
  color: #666;
  font-size: 0.95rem;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.abstract {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #0066cc;
  line-height: 1.8;
  font-size: 1.05rem;
}

.keywords {
  background-color: #e9ecef;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #6c757d;
  line-height: 1.6;
  font-size: 1.05rem;
}

.keywords strong {
  font-weight: 600;
  color: #333;
}

.references {
  margin-top: 30px;
}

.references details {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.references summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #0066cc;
  padding: 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  user-select: none;
}

.references summary:hover {
  background-color: rgba(0, 102, 204, 0.05);
}

.references ol {
  margin-top: 20px;
  margin-left: 20px;
  line-height: 1.8;
}

.references li {
  margin-bottom: 12px;
  color: #333;
}

.references li a {
  color: #0066cc;
  word-break: break-all;
}

.references li a:hover {
  text-decoration: underline;
}

/* === Footer === */
footer {
  background-color: #f8f9fa;
  padding: 30px 40px;
  border-top: 2px solid #e9ecef;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-license {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-license img {
  width: 88px;
  height: 31px;
}

.footer-license p {
  line-height: 1.8;
  color: #555;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #0066cc;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #004499;
  text-decoration: underline;
}

/* === Print Styles === */
@media print {
  header, footer, .no-print {
    display: none;
  }

  main {
    padding: 0;
    max-width: 100%;
  }

  .article-item, .article-section, .abstract, .keywords, .references details {
    page-break-inside: avoid;
  }
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .header-content {
    grid-template-columns: auto 1fr;
    gap: 15px;
  }

  .lang-switcher {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  main {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .header-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .journal-cover {
    margin: 0 auto;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
  }

  .lang-switcher {
    justify-content: center;
  }

  .page-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-title h1 {
    font-size: 1.5rem;
  }
  
  .article-section .article-title {
    font-size: 1.2rem;
  }
  
  .breadcrumb {
    font-size: 1.1rem;
  }

  main {
    padding: 15px;
  }
  
  .article-section,
  .abstract,
  .keywords {
    padding: 15px;
  }

  footer {
    padding: 20px 15px;
  }

  .footer-license {
    flex-direction: column;
  }
}
