/**
 * Article Details Page Styling
 * Professional journal article presentation
 * Created: December 26, 2025
 */

:root {
  --primary-orange: #eb5f2d;
  --primary-dark: #d94d1a;
  --primary-light: #ff6b35;
  --secondary-orange: #f7931e;
  --accent-orange: #fbb040;
  --text-primary: #2c3e50;
  --text-secondary: #555555;
  --text-muted: #777777;
  --border-color: #e0e0e0;
  --bg-light: #f8f9fa;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ====================================
   ARTICLE DETAILS CONTAINER
   ==================================== */

.article-details {
  margin-top: 30px;
  margin-bottom: 50px;
}

.article-details .row {
  margin-left: -15px;
  margin-right: -15px;
}

/* ====================================
   ARTICLE MAIN CONTENT
   ==================================== */

.article-main {
  background: #ffffff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}

/* ====================================
   ARTICLE ABSTRACT - PROFESSIONAL JOURNAL STYLE
   ==================================== */

.article-summary {
  margin-bottom: 40px;
  padding: 35px 40px;
  background: linear-gradient(to bottom, #fefefe 0%, #f9fafb 100%);
  border-left: 4px solid var(--primary-orange);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(235, 95, 45, 0.08);
}

.article-summary h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 20px;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-summary h2:before {
  content: "\f0f6";
  font-family: 'FontAwesome';
  font-size: 20px;
  color: var(--primary-orange);
}

.article-abstract {
  /* Optimal width for readability (45-75 characters per line) */
  max-width: 900px;
  margin: 0 auto;
  
  /* Typography for professional journal */
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  font-family: 'Georgia', 'Times New Roman', serif;
  
  /* Text justification for clean, professional look */
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  
  /* Paragraph spacing */
  margin-bottom: 0;
}

.article-abstract p {
  margin-bottom: 1.2em;
  line-height: 1.8;
}

.article-abstract p:last-child {
  margin-bottom: 0;
}

/* Improve readability on smaller screens */
@media (max-width: 768px) {
  .article-summary {
    padding: 25px 20px;
  }
  
  .article-abstract {
    font-size: 15px;
    line-height: 1.75;
    text-align: left;
  }
}

/* ====================================
   KEYWORDS STYLING - MODERN TAG STYLE
   ==================================== */

.keywords {
  margin-top: 35px;
  padding: 30px 35px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.keywords:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.article-details-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-details-heading:before {
  content: "\f02b";
  font-family: 'FontAwesome';
  font-size: 16px;
  color: var(--primary-orange);
}

.article-details-keywords-value {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.keyword_item {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-orange) 100%);
  color: #ffffff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(235, 95, 45, 0.25);
  cursor: default;
  letter-spacing: 0.3px;
}

.keyword_item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(235, 95, 45, 0.35);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-orange) 100%);
}

/* Alternative keyword style - outlined */
.keyword_item.outlined {
  background: #ffffff;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
  box-shadow: 0 2px 6px rgba(235, 95, 45, 0.15);
}

.keyword_item.outlined:hover {
  background: var(--primary-orange);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(235, 95, 45, 0.3);
}

@media (max-width: 768px) {
  .keywords {
    padding: 20px 18px;
  }
  
  .keyword_item {
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* ====================================
   ARTICLE SIDEBAR PANELS
   ==================================== */

.article-sidebar .panel {
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-sidebar .panel:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-sidebar .panel-heading {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-orange) 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 18px;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-sidebar .panel-heading i {
  font-size: 16px;
}

.article-sidebar .panel-body {
  padding: 20px 18px;
  background: #ffffff;
}

/* ====================================
   DATE LIST STYLING
   ==================================== */

.date-list {
  padding: 0;
  margin-left: -15px;
  margin-right: -15px;
}

.date-list .detail {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.date-list .detail:last-child {
  border-bottom: none;
}

.date-list .detail strong {
  color: var(--text-primary);
  font-size: 11px;
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.date-list .date {
  color: #555;
  font-weight: 400;
  font-size: 13px;
}

/* ====================================
   GALLEY DOWNLOADS - ACADEMIC MINIMAL STYLE
   ==================================== */

.galley_list .download {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.galley_link {
  display: inline-block;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #ddd;
  color: #555;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s ease;
  text-align: left;
}

.galley_link:hover {
  background: #f8f9fa;
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  text-decoration: none;
}

/* ====================================
   ARTICLE MORE DETAILS SECTION - ACADEMIC STYLE
   ==================================== */

.article-more-details {
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.article-more-details .panel {
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  box-shadow: none;
  transition: none;
}

.article-more-details .panel:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.article-more-details .panel-heading {
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
  color: #555;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.article-more-details .panel-heading i {
  color: var(--primary-orange);
  font-size: 13px;
}

.article-more-details .panel-body {
  padding: 15px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.6;
}

/* ====================================
   REFERENCES SECTION
   ==================================== */

.article-references {
  margin-top: 40px;
  padding: 35px 30px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.article-references h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 25px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-references-content {
  padding-left: 0;
}

.article-references-content ol {
  counter-reset: reference-counter;
  list-style: none;
  padding-left: 0;
}

.article-references-content ol li {
  counter-increment: reference-counter;
  padding-left: 45px;
  position: relative;
  margin-bottom: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: justify;
}

.article-references-content ol li:before {
  content: "[" counter(reference-counter) "]";
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-weight: 700;
  font-size: 14px;
}

.article-references-content ol li:last-child {
  margin-bottom: 0;
}

/* ====================================
   AUTHOR BIOGRAPHIES
   ==================================== */

.author-bios .biography {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.author-bios .biography:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.biography-author {
  color: var(--primary-orange);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
}

.biography .affiliation {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  display: block;
  margin-top: 5px;
}

.biography .media-body {
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ====================================
   HOW TO CITE
   ==================================== */

.how-to-cite #citationOutput {
  padding: 20px;
  background: #f8f9fa;
  border-left: 4px solid var(--primary-orange);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.how-to-cite .btn-group .btn {
  background: #ffffff;
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.how-to-cite .btn-group .btn:hover {
  background: var(--primary-orange);
  color: #ffffff;
}

/* ====================================
   DOWNLOAD AND STATISTICS ROW - ACADEMIC STYLE
   ==================================== */

.download-stats-row {
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.download-stats-row > .col-md-6 {
  padding-left: 15px;
  padding-right: 15px;
}

/* Minimal academic panels - like Elsevier/Springer */
.download-stats-row .panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  box-shadow: none;
  border-radius: 4px;
  background: #ffffff;
}

.download-stats-row .panel-heading {
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.download-stats-row .panel-heading i {
  font-size: 12px;
  margin-right: 5px;
  color: var(--primary-orange);
}

.download-stats-row .panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #ffffff;
}

/* ====================================
   STATISTIC BOX - ACADEMIC METADATA STYLE
   Inspired by Elsevier, Springer, IEEE
   ==================================== */

.stats-simple {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-line {
  display: flex;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.stat-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-line i {
  font-size: 13px;
  color: #999;
  margin-right: 6px;
  width: 16px;
  text-align: center;
}

.stat-line .stat-text {
  color: #666;
  margin-right: 4px;
  font-size: 13px;
}

.stat-line .stat-number {
  color: #333;
  font-size: 13px;
  font-weight: 600;
  margin-left: auto;
}

/* Legacy support */
.article-sidebar .galley_list .panel-body .article_counter_read {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--primary-orange);
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

/* ====================================
   RESPONSIVE STATISTICS
   ==================================== */

@media (max-width: 991px) {
  .download-stats-row > .col-md-6 {
    margin-bottom: 20px;
  }
  
  .download-stats-row > .col-md-6:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .stat-line {
    font-size: 12px;
    padding: 5px 0;
  }
  
  .stat-line i {
    font-size: 12px;
  }
  
  .stat-line .stat-number {
    font-size: 12px;
  }
  
  .download-stats-row .panel-heading {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .download-stats-row .panel-body {
    padding: 10px;
  }
}

/* ====================================
   COVER IMAGE
   ==================================== */

.article-sidebar .cover-image {
  margin-bottom: 25px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.article-sidebar .cover-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.article-sidebar .cover-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 991px) {
  .article-main {
    padding: 30px 25px;
  }
  
  .article-more-details {
    padding: 30px 25px;
  }
  
  .article-sidebar {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .article-main {
    padding: 25px 18px;
    border-radius: 8px;
  }
  
  .article-more-details {
    padding: 25px 18px;
    border-radius: 8px;
  }
  
  .article-summary {
    padding: 20px 15px;
  }
  
  .article-summary h2 {
    font-size: 18px;
  }
  
  .article-abstract {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* ====================================
   PRINT STYLES
   ==================================== */

@media print {
  .article-details {
    margin: 0;
  }
  
  .article-main,
  .article-more-details {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .article-abstract {
    text-align: justify;
    line-height: 1.6;
  }
  
  .keyword_item {
    background: none;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
  }
}

/* ====================================
   ACCESSIBILITY IMPROVEMENTS
   ==================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.keyword_item:focus {
  outline: 3px solid var(--primary-orange);
  outline-offset: 2px;
}

/* ====================================
   SMOOTH ANIMATIONS
   ==================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-main,
.article-more-details,
.keywords,
.article-references {
  animation: fadeInUp 0.6s ease-out;
}
