/**
 * ScieBeta AutoContent Pro v6.0 - Frontend Styles
 * Clean, professional styling for Scie-Review articles
 */

/* ==================== */
/* BASE TYPOGRAPHY */
/* ==================== */

.scie-review-container {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.9;
    color: #2c3e50;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.scie-content {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
}

.scie-content p {
    margin-bottom: 1.5em;
    text-indent: 0;
}

.scie-content h2,
.scie-content h3,
.scie-content h4 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #1a5276;
    margin-top: 2em;
    margin-bottom: 1em;
    text-align: left;
    font-weight: 600;
}

.scie-content h2 {
    font-size: 1.6em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.3em;
}

.scie-content h3 {
    font-size: 1.3em;
    color: #2874a6;
}

.scie-content h4 {
    font-size: 1.1em;
    color: #5499c7;
}

/* ==================== */
/* HEADER SECTION */
/* ==================== */

.scie-review-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.scie-header-top {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.scie-logo-small {
    height: 35px;
    background: white;
    padding: 5px 10px;
    border-radius: 6px;
}

.scie-review-badge {
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: #2c3e50;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.access-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.access-badge.open {
    background: rgba(39, 174, 96, 0.3);
    color: #d5f4e6;
}

.access-badge.subscription {
    background: rgba(231, 76, 60, 0.3);
    color: #fadbd8;
}

/* AI Disclosure */
.scie-ai-disclosure {
    background: #fff3cd;
    color: #856404;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    border-left: 4px solid #ffc107;
}

/* Meta Card */
.scie-meta-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
}

.scie-srid-qr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.scie-srid-info {
    font-family: 'Courier New', monospace;
}

.scie-srid-label {
    font-size: 12px;
    opacity: 0.8;
}

.scie-srid-value {
    font-size: 16px;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 5px;
}

.scie-qr-code img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid white;
}

.scie-authors-row {
    margin-bottom: 10px;
    font-size: 15px;
}

.scie-author-link {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.5);
}

.scie-author-link:hover {
    border-bottom-style: solid;
}

.scie-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.scie-type-row {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.scie-sector-badge,
.scie-style-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

/* ==================== */
/* CITATIONS - NATURE STYLE SUPERSCRIPT */
/* ==================== */

.cite-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: normal;
    font-size: 75%;
    vertical-align: super;
    line-height: 0;
    padding: 0 1px;
    font-family: Arial, Helvetica, sans-serif;
    background: none;
}

.cite-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Ensure superscript styling in content */
.scie-content sup,
.scie-content .cite-link {
    font-size: 75%;
    vertical-align: super;
    line-height: 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* ==================== */
/* REFERENCES SECTION - CLEAN & STANDARD */
/* ==================== */

.scie-references {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    border-top: 3px solid #3498db;
}

.scie-references h2 {
    font-family: inherit;
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 20px;
    border-bottom: none;
    font-weight: 600;
}

.ref-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ref-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
    border-left: 3px solid #3498db;
    border-radius: 0 4px 4px 0;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.ref-item:target,
.ref-item.highlight {
    background: #fff3cd;
    border-left-color: #f1c40f;
}

.ref-num {
    font-weight: 600;
    color: #2874a6;
    font-family: inherit;
    font-size: 13px;
}

.ref-authors {
    color: #2c3e50;
    font-weight: 600;
}

.ref-title {
    color: #34495e;
}

.ref-journal {
    color: #666;
    font-style: italic;
}

.ref-year {
    color: #666;
}

.ref-doi,
.ref-pmid {
    display: inline-block;
    margin-top: 4px;
    margin-right: 8px;
    padding: 2px 8px;
    background: #e8f4f8;
    border-radius: 3px;
    font-size: 11px;
    color: #2874a6;
    text-decoration: none;
    font-family: inherit;
}

.ref-pubmed-link {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    background: #e8f5e9;
    border-radius: 3px;
    font-size: 11px;
    color: #2e7d32;
    text-decoration: none;
    font-family: inherit;
}

.ref-doi:hover,
.ref-pmid:hover,
.ref-pubmed-link:hover {
    background: #3498db;
    color: white;
}

.ref-pubmed-link {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    font-size: 11px;
    color: #155724;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}

.ref-pubmed-link:hover {
    text-decoration: underline;
}

.ref-db {
    font-size: 10px;
    color: #999;
    margin-left: 8px;
}

.ref-export {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.export-btn {
    display: inline-block;
    padding: 6px 15px;
    margin-right: 10px;
    background: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
}

.export-btn:hover {
    background: #3498db;
    color: white;
}

/* ==================== */
/* MODERN LIKE BUTTON */
/* ==================== */

.scie-engagement-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.scie-like-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: white;
    border: 2px solid #e74c3c;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.scie-like-btn:hover {
    background: #fef0ef;
    transform: scale(1.03);
}

.scie-like-btn:active {
    transform: scale(0.98);
}

.scie-like-btn.liked {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: #c0392b;
}

.scie-like-btn.liked:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.scie-like-btn .like-icon {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}

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

.scie-like-btn .like-count {
    font-weight: bold;
    font-size: 18px;
}

.scie-like-btn .like-text {
    font-size: 14px;
    opacity: 0.9;
}

/* Share Buttons */
.scie-share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    color: #7f8c8d;
    font-size: 14px;
    margin-right: 5px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.2s ease;
    color: white;
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.facebook { background: #4267b2; }
.share-btn.researchgate { background: #00d0af; font-size: 12px; }
.share-btn.email { background: #7f8c8d; }

.share-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
}

/* ==================== */
/* CITE BOX */
/* ==================== */

.scie-cite-box {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
}

.scie-cite-box h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.cite-text {
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: Georgia, serif;
}

.cite-text a {
    color: #fff;
    text-decoration: underline;
}

.cite-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.cite-label {
    font-size: 13px;
    opacity: 0.9;
}

.cite-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cite-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    color: white;
}

.citation-count-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-top: 15px;
}

.citation-icon { font-size: 24px; }
.citation-label { font-size: 14px; opacity: 0.9; }
.citation-number { font-size: 24px; font-weight: bold; }

/* ==================== */
/* FOOTER */
/* ==================== */

.scie-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.scie-actions-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.scie-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 14px;
}

.scie-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
}

.pdf-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.print-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.scie-qr-footer {
    text-align: center;
}

.scie-qr-footer img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
}

.scie-qr-footer span {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.scie-copyright {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 20px;
}

/* ==================== */
/* SCIE-NEWS STYLES */
/* ==================== */

.scie-news-container {
    font-family: 'Georgia', serif;
    max-width: 800px;
    margin: 0 auto;
}

.scie-news-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.scie-news-badge {
    background: white;
    color: #e74c3c;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.news-region-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.news-engagement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.news-like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e74c3c;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
}

.news-like-btn .heart-icon {
    fill: none;
    stroke: #e74c3c;
    stroke-width: 2;
    transition: all 0.2s;
}

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

.news-like-btn.liked .heart-icon {
    fill: white;
    stroke: white;
}

.news-share-btns {
    display: flex;
    gap: 8px;
}

.share-btn-mini {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.scie-news-content {
    text-align: justify;
    line-height: 1.8;
}

.scie-news-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.news-sources {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.news-sources h4 {
    margin: 0 0 10px 0;
}

.news-sources ul {
    margin: 0;
    padding-left: 20px;
}

.news-ai-disclosure {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
}

/* ==================== */
/* SCIE-EVENTS STYLES */
/* ==================== */

.scie-events-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.events-ai-warning-top,
.events-ai-warning-bottom {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    margin: 15px 0;
    border-left: 4px solid #ffc107;
}

.scie-events-list,
.scie-events-grid {
    display: grid;
    gap: 20px;
}

.scie-events-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.scie-event-card {
    display: flex;
    gap: 15px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.scie-event-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.event-date-badge {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 60px;
}

.event-day {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.event-month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.event-content {
    flex: 1;
}

.event-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.event-type-tag {
    background: #e8f4f8;
    color: #2874a6;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.event-free-tag {
    background: #d5f4e6;
    color: #27ae60;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.event-title {
    font-size: 16px;
    margin: 0 0 10px 0;
}

.event-title a {
    color: #2c3e50;
    text-decoration: none;
}

.event-title a:hover {
    color: #9b59b6;
}

.event-meta {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.event-meta span {
    display: block;
    margin-bottom: 3px;
}

.event-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.event-register-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #9b59b6;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
}

.event-register-btn:hover {
    background: #8e44ad;
    color: white;
}

/* ==================== */
/* RESPONSIVE */
/* ==================== */

@media (max-width: 768px) {
    .scie-review-container {
        padding: 15px;
        font-size: 16px;
    }
    
    .scie-engagement-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .scie-share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cite-actions {
        justify-content: center;
    }
    
    .scie-actions-row {
        justify-content: center;
    }
    
    .scie-srid-qr-row {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .scie-event-card {
        flex-direction: column;
    }
    
    .event-date-badge {
        display: flex;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }
}

/* Print styles */
@media print {
    .scie-engagement-bar,
    .scie-share-buttons,
    .cite-actions,
    .scie-actions-row,
    .scie-like-btn,
    .share-btn,
    .news-engagement {
        display: none !important;
    }
    
    .scie-review-container {
        max-width: 100%;
    }
    
    .scie-content {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* ======================================== */
/* FIXED STYLES - v5.5                      */
/* ======================================== */

/* JUSTIFIED CONTENT WITH GOOD TYPOGRAPHY */
.scie-content {
    text-align: justify;
    text-justify: inter-word;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.9;
    color: #2c3e50;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.scie-content p {
    margin-bottom: 1.5em;
    text-indent: 0;
}

.scie-content h1, .scie-content h2, .scie-content h3, 
.scie-content h4, .scie-content h5, .scie-content h6 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a2e;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    text-align: left;
    font-weight: 700;
}

.scie-content h2 {
    font-size: 1.6em;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.4em;
}

.scie-content h3 {
    font-size: 1.35em;
    color: #2980b9;
}

.scie-content h4 {
    font-size: 1.15em;
    color: #34495e;
    font-style: italic;
}

/* BIBLIOGRAPHY REFERENCE LIST - CLEAN FORMAT */
.scie-references {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 3px solid #3498db;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.scie-references h2 {
    font-size: 1.3em;
    margin-bottom: 1.2em;
    color: #2c3e50;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
}

.scie-references .ref-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scie-references .ref-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
    border-left: 3px solid #3498db;
    border-radius: 0 4px 4px 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.scie-references .ref-item:target,
.scie-references .ref-item.highlight {
    background: #fff3cd;
    border-left-color: #f1c40f;
}

.scie-references .ref-num {
    font-weight: 600;
    color: #2980b9;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
}

.scie-references .ref-authors {
    font-weight: 600;
    color: #2c3e50;
}

.scie-references .ref-title {
    color: #34495e;
}

.scie-references .ref-journal {
    color: #666;
    font-style: italic;
}

.scie-references .ref-year {
    color: #666;
}

.scie-references .ref-doi,
.scie-references .ref-pmid {
    display: inline-block;
    margin-top: 4px;
    margin-right: 8px;
    padding: 2px 8px;
    background: #e8f4f8;
    border-radius: 3px;
    font-size: 11px;
    color: #2874a6;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}

.scie-references .ref-doi:hover,
.scie-references .ref-pmid:hover {
    background: #3498db;
    color: white;
}

.scie-references .ref-pubmed-link {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    font-size: 11px;
    color: #155724;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}

.scie-references .ref-pubmed-link:hover {
    text-decoration: underline;
}

.scie-references .ref-db {
    font-size: 10px;
    background: #eee;
    padding: 2px 6px;
    border-radius: 3px;
    color: #666;
    margin-left: 5px;
}

/* MODERN LIKE BUTTON */
.scie-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e74c3c;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
}

.scie-like-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.25);
}

.scie-like-btn:active {
    transform: translateY(0);
}

.scie-like-btn.liked {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-color: #c0392b;
}

.scie-like-btn .like-icon {
    font-size: 22px;
    transition: transform 0.3s ease;
}

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

.scie-like-btn.liked .like-icon {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

.scie-like-btn .like-count {
    font-size: 18px;
    font-weight: 700;
}

.scie-like-btn .like-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* NEWS STYLES */
.scie-news-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.scie-news-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 12px;
    margin-bottom: 20px;
}

.scie-news-badge {
    background: white;
    color: #e74c3c;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
}

.news-region-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.news-engagement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e74c3c;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e74c3c;
    font-weight: 600;
}

.news-like-btn:hover {
    background: #ffeaea;
}

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

.news-like-btn .heart-icon {
    fill: currentColor;
}

.news-share-btns {
    display: flex;
    gap: 8px;
}

.share-btn-mini {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    color: white;
    transition: transform 0.2s;
}

.share-btn-mini:hover {
    transform: scale(1.15);
}

.share-btn-mini:nth-child(1) { background: #1da1f2; }
.share-btn-mini:nth-child(2) { background: #4267b2; }
.share-btn-mini:nth-child(3) { background: #0077b5; }

.news-ai-disclosure {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 13px;
}

/* EVENTS STYLES */
.scie-events-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.events-ai-warning-top,
.events-ai-warning-bottom {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 13px;
}

.scie-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scie-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.scie-event-card {
    display: flex;
    gap: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.scie-event-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.event-date-badge {
    min-width: 60px;
    text-align: center;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 10px;
    border-radius: 8px;
}

.event-date-badge .event-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.event-date-badge .event-month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.event-content {
    flex: 1;
}

.event-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.event-type-tag {
    background: #9b59b6;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.event-free-tag {
    background: #27ae60;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.event-title {
    font-size: 16px;
    margin: 0 0 8px 0;
}

.event-title a {
    color: #2c3e50;
    text-decoration: none;
}

.event-title a:hover {
    color: #9b59b6;
}

.event-meta {
    font-size: 13px;
    color: #666;
}

.event-meta span {
    display: inline-block;
    margin-right: 15px;
}

.event-excerpt {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.event-register-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #9b59b6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
}

.event-register-btn:hover {
    background: #8e44ad;
    color: white;
}

/* NEWS GRID FOR SHORTCODE */
.scie-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.scie-news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.scie-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.scie-news-card .news-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.scie-news-card .news-card-content {
    padding: 15px;
}

.news-region-tag {
    background: #e74c3c;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.scie-news-card h3 {
    font-size: 16px;
    margin: 10px 0;
}

.scie-news-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* ==================== */
/* METRICS BAR */
/* ==================== */

.scie-metrics-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: white;
}

.metric-item {
    text-align: center;
}

.metric-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.metric-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
}

/* ==================== */
/* TRENDING BAR */
/* ==================== */

.scie-trending-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.trending-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.trending-progress {
    flex: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.trending-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.trending-fill.hot {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
}

.trending-fill.warm {
    background: linear-gradient(90deg, #ffa502, #ff6348);
}

.trending-fill.mild {
    background: linear-gradient(90deg, #7bed9f, #2ed573);
}

.trending-percent {
    font-weight: bold;
    color: #333;
    min-width: 45px;
    text-align: right;
}

/* ==================== */
/* STAR RATING WIDGET */
/* ==================== */

.scie-rating-widget {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #fff8e1;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #ffe082;
}

.rating-prompt {
    font-weight: 600;
    color: #f57c00;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star-rating .star {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.star-rating .star:hover,
.star-rating .star.hover {
    color: #ffc107;
    transform: scale(1.2);
}

.star-rating .star.filled {
    color: #ffc107;
}

.rating-text {
    font-size: 13px;
    color: #888;
}

/* ==================== */
/* RESPONSIVE METRICS */
/* ==================== */

@media (max-width: 768px) {
    .scie-metrics-bar {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .metric-item {
        flex: 1 1 45%;
    }
    
    .scie-trending-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .trending-percent {
        text-align: center;
    }
    
    .scie-rating-widget {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== */
/* FIGURES & TABLES SECTION */
/* ==================== */

.scie-figures-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #17a2b8;
}

.scie-figures-section h2 {
    color: #17a2b8;
    margin-bottom: 10px;
    font-size: 24px;
}

.figures-intro {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    font-style: italic;
}

.figures-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.figure-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 3px solid #17a2b8;
}

.figure-header {
    margin-bottom: 10px;
}

.figure-type {
    display: inline-block;
    background: #17a2b8;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.figure-description {
    color: #333;
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.figure-source {
    font-size: 13px;
    color: #666;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.figure-link {
    display: inline-block;
    margin-top: 8px;
    color: #17a2b8;
    text-decoration: none;
    font-weight: 600;
}

.figure-link:hover {
    text-decoration: underline;
}

.figure-ref {
    color: #17a2b8;
    text-decoration: none;
    font-weight: 600;
    background: #e3f2fd;
    padding: 1px 4px;
    border-radius: 3px;
}

.figure-ref:hover {
    background: #bbdefb;
}

/* ==================== */
/* AI DISCLOSURE MOBILE */
/* ==================== */

@media (max-width: 768px) {
    .scie-ai-disclosure {
        font-size: 12px;
        padding: 10px 12px;
        line-height: 1.4;
    }
    
    .scie-ai-disclosure strong {
        display: block;
        margin-bottom: 3px;
    }
    
    .scie-header-top {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .scie-logo-small {
        max-height: 25px;
    }
    
    .scie-review-badge,
    .access-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .scie-meta-card {
        padding: 15px;
    }
    
    .scie-stats-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .scie-stats-row span {
        font-size: 12px;
    }
    
    .scie-srid-value {
        font-size: 12px;
    }
    
    /* Figures section mobile */
    .scie-figures-section {
        padding: 20px 15px;
    }
    
    .scie-figures-section h2 {
        font-size: 20px;
    }
    
    .figure-item {
        padding: 15px;
    }
}

/* ==================== */
/* QR CODE & PDF DOWNLOAD SECTION */
/* ==================== */

.scie-download-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.scie-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scie-qr-code {
    width: 120px;
    height: 120px;
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-label {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.scie-pdf-download {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pdf-download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.pdf-download-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
}

.pdf-icon {
    font-size: 24px;
}

.pdf-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .scie-download-section {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .scie-qr-code {
        width: 100px;
        height: 100px;
    }
    
    .pdf-download-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}
