/* Springer Style CSS - Updated with Font Awesome */

.jm-article-springer-layout {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Masthead Section */
.jm-article-masthead {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding: 2rem 0;
    margin-bottom: 0;
}

.jm-masthead-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    padding: 0 1rem;
    align-items: start;
}

/* Breadcrumbs */
.jm-breadcrumbs {
    margin-bottom: 1.5rem;
}

.jm-breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

.jm-breadcrumb-list li {
    display: flex;
    align-items: center;
}

.jm-breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin: 0 0.75rem;
    color: #999;
    font-weight: normal;
}

.jm-breadcrumb-list a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jm-breadcrumb-list a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Article Title */
.jm-article-title {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    color: #1a1a1a;
    max-width: 90%;
}

/* Article Identifiers */
.jm-article-identifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.jm-identifier-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jm-article-type {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.jm-open-access-badge {
    color: #d2691e;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jm-open-access-badge:hover {
    color: #b8860b;
}

/* Authors in Masthead */
.jm-article-authors-masthead {
    margin: 1rem 0;
    font-size: 1.1rem;
}

.jm-author-name {
    font-weight: 500;
}

.jm-orcid-link {
    color: #a6ce39;
    margin-left: 0.5rem;
    text-decoration: none;
    font-size: 1.1em;
}

.jm-orcid-link:hover {
    color: #8fb31c;
}

.jm-author-separator {
    color: #666;
}

/* Citation Identifiers */
.jm-citation-identifiers {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 2rem 0;
    font-size: 0.875rem;
    color: #666;
}

.jm-cite-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.jm-cite-link:hover {
    text-decoration: underline;
}

/* Article Actions */
.jm-article-actions {
    margin: 2rem 0 0 0;
}

.jm-pdf-download {
    margin-bottom: 1rem;
}

.jm-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.jm-download-btn:hover {
    background: #0052a3;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.jm-access-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.jm-access-info i {
    color: #28a745;
}

.jm-open-access-link {
    color: #d2691e;
    text-decoration: none;
    font-weight: 500;
}

.jm-open-access-link:hover {
    text-decoration: underline;
}

/* Journal Brand */
.jm-journal-brand {
    text-align: center;
    min-width: 200px;
}

.jm-journal-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1.5rem;
}

.jm-journal-cover {
    max-width: 140px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.jm-journal-cover:hover {
    transform: scale(1.02);
}

.jm-journal-title {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.jm-journal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jm-journal-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-decoration: none;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.jm-journal-action:hover {
    background: #e9ecef;
    color: #0066cc;
    border-color: #0066cc;
}

.jm-journal-action i {
    opacity: 0.7;
}

/* Content Wrapper */
.jm-article-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.jm-article-main-content {
    background: #fff;
    min-height: 400px;
}

/* Article Content Sections */
.jm-article-section {
    margin-bottom: 2.5rem;
}

.jm-article-section h2,
.jm-article-section h3 {
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 1rem;
}

.jm-article-section h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.jm-article-section h3 {
    font-size: 1.25rem;
}

.jm-abstract-content {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
    color: #444;
}

.jm-keywords-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jm-keyword {
    background: #f0f6ff;
    color: #0066cc;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e0efff;
}

.jm-main-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.jm-citations-list {
    padding-left: 1.5rem;
}

.jm-citation-item {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Article Sidebar */
.jm-article-sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.jm-info-box,
.jm-citation-box,
.jm-share-box,
.jm-authors-box {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 1.5rem;
}

.jm-info-box h3,
.jm-citation-box h3,
.jm-share-box h3,
.jm-authors-box h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

/* Info Box */
.jm-info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.jm-info-item:last-child {
    border-bottom: none;
}

.jm-info-label {
    font-weight: 500;
    color: #666;
    font-size: 0.875rem;
    min-width: 80px;
}

.jm-info-value {
    font-weight: 600;
    color: #333;
    font-size: 0.875rem;
    text-align: right;
    word-break: break-all;
}

.jm-doi-link {
    color: #0066cc;
    text-decoration: none;
}

.jm-doi-link:hover {
    text-decoration: underline;
}

/* Citation Box */
.jm-citation-format {
    margin-bottom: 1rem;
}

/* Citation Box devamı */
.jm-citation-text {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0.5rem 0;
    border-left: 3px solid #0066cc;
    word-wrap: break-word;
}

.jm-copy-citation {
    background: #0066cc;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jm-copy-citation:hover {
    background: #0052a3;
}

/* Share Box */
.jm-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jm-share-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.jm-twitter {
    background: #1da1f2;
    color: white;
}

.jm-facebook {
    background: #4267b2;
    color: white;
}

.jm-linkedin {
    background: #0077b5;
    color: white;
}

.jm-whatsapp {
    background: #25d366;
    color: white;
}

.jm-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
}

/* Authors Box */
.jm-author-detail {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.jm-author-detail:last-child {
    border-bottom: none;
}

.jm-author-name-detail {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.jm-author-institution {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.jm-author-orcid {
    font-size: 0.875rem;
}

.jm-author-orcid i {
    color: #a6ce39;
    margin-right: 0.25rem;
}

.jm-author-orcid a {
    color: #666;
    text-decoration: none;
}

.jm-author-orcid a:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .jm-masthead-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .jm-article-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .jm-article-sidebar {
        position: static;
        order: 2;
    }
    
    .jm-journal-brand {
        order: -1;
    }
}

@media (max-width: 768px) {
    .jm-article-masthead {
        padding: 1.5rem 0;
    }
    
    .jm-article-title {
        font-size: 1.75rem;
        max-width: 100%;
    }
    
    .jm-article-identifiers {
        justify-content: center;
        text-align: center;
    }
    
    .jm-citation-identifiers {
        justify-content: center;
    }
    
    .jm-article-content-wrapper {
        padding: 1rem;
    }
    
    .jm-journal-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .jm-journal-action {
        flex: 1;
        min-width: 140px;
    }
    
    .jm-share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .jm-share-btn {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }
    
    .jm-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .jm-info-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .jm-breadcrumb-list {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .jm-article-title {
        font-size: 1.5rem;
    }
    
    .jm-masthead-container {
        padding: 0 0.5rem;
    }
    
    .jm-article-content-wrapper {
        padding: 0.5rem;
    }
    
    .jm-article-authors-masthead {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .jm-article-sidebar,
    .jm-journal-actions,
    .jm-share-box {
        display: none;
    }
    
    .jm-article-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .jm-article-title {
        color: #000;
    }
    
    .jm-download-btn,
    .jm-share-btn {
        display: none;
    }
    
    .jm-citation-text {
        border: 1px solid #ccc;
        background: #f9f9f9;
    }
}

/* Accessibility Improvements */
.jm-orcid-link:focus,
.jm-cite-link:focus,
.jm-download-btn:focus,
.jm-copy-citation:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.jm-share-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Smooth animations */
* {
    scroll-behavior: smooth;
}

.jm-article-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.jm-loading {
    opacity: 0.6;
    pointer-events: none;
}

.jm-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #0066cc;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced typography */
.jm-article-content-standard h1,
.jm-article-content-standard h2,
.jm-article-content-standard h3,
.jm-article-content-standard h4,
.jm-article-content-standard h5,
.jm-article-content-standard h6 {
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.jm-article-content-standard h1 {
    font-size: 2rem;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 0.5rem;
}

.jm-article-content-standard h2 {
    font-size: 1.5rem;
}

.jm-article-content-standard h3 {
    font-size: 1.25rem;
}

.jm-article-content-standard p {
    margin-bottom: 1rem;
    text-align: justify;
}

.jm-article-content-standard ul,
.jm-article-content-standard ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

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

.jm-article-content-standard blockquote {
    border-left: 4px solid #0066cc;
    margin: 1.5rem 0;
    padding: 1rem 2rem;
    background: #f8f9fa;
    font-style: italic;
}

.jm-article-content-standard table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.jm-article-content-standard th,
.jm-article-content-standard td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.jm-article-content-standard th {
    background: #f8f9fa;
    font-weight: 600;
}

.jm-article-content-standard img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 4px;
}

.jm-article-content-standard figure {
    margin: 2rem 0;
    text-align: center;
}

.jm-article-content-standard figcaption {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .jm-article-springer-layout {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .jm-article-masthead {
        background: #2d2d2d;
        border-bottom-color: #404040;
    }
    
    .jm-info-box,
    .jm-citation-box,
    .jm-share-box,
    .jm-authors-box {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .jm-citation-text {
        background: #3d3d3d;
        color: #e0e0e0;
    }
    
    .jm-keyword {
        background: #1a3a5c;
        color: #7db8e8;
        border-color: #2d4a6b;
    }
}