/* ========================================
   Yemen University - Research Detail Styles
   ======================================== */

/* Research Hero */
.research-hero {
    position: relative;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0d2550 0%, #1a3a6e 50%, #0d1f45 100%);
    color: white;
    overflow: hidden;
}

.research-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(201, 162, 39, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(122, 74, 30, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.research-hero-content {
    position: relative;
    z-index: 2;
}

.research-category-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: #e8c547;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.research-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.3;
}

/* Author Card in Hero */
.research-author-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 24px;
    flex-wrap: wrap;
}

.author-avatar {
    font-size: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.author-details .name {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.author-details .dept {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.research-pub-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .research-author-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .research-pub-meta {
        align-items: flex-start;
    }
}

/* Metadata Bar */
.metadata-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
}

.meta-items-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-block .label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.meta-block .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.meta-block .value.published {
    color: #15803d;
}

/* Main Layout */
.research-body-section {
    padding: 60px 0;
    background: white;
}

.research-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 992px) {
    .research-layout {
        grid-template-columns: 1fr;
    }
}

/* Article Styling */
.research-article {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.article-section .section-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a3a6e;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 10px;
}

.abstract-text {
    font-size: 15.5px;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-weight: 500;
}

.keywords-wrapper {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.keywords-wrapper .k-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-secondary);
}

.keywords-wrapper .tag {
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 12.5px;
    color: #1a3a6e;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

.paragraph {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Methodology Steps */
.methodology-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.step-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-right: 4px solid #c9a227;
}

.step-num {
    width: 36px;
    height: 36px;
    background: #1a3a6e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-en);
    flex-shrink: 0;
}

.step-card h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.step-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Results Stats */
.results-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0;
}

.result-stat-box {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.result-stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #1a3a6e;
}

.result-stat-box .number {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #1a3a6e, #c9a227);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
}

.result-stat-box .desc {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

@media (max-width: 576px) {
    .results-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Conclusions List */
.conclusions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conclusions-list li {
    position: relative;
    padding-right: 24px;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.conclusions-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #15803d;
    font-weight: 800;
}

/* References */
.references-list {
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.references-list li {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
}

/* Sidebar Widgets */
.research-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 8px;
}

.avatar-large {
    font-size: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.author-widget {
    text-align: center;
}

.author-widget h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-widget .role {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.author-widget .bio {
    font-size: 12.5px;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.auth-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-stat .val {
    font-size: 18px;
    font-weight: 800;
    color: #1a3a6e;
}

.auth-stat .lbl {
    font-size: 11px;
    color: var(--text-tertiary);
}

.actions-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-download {
    background: linear-gradient(135deg, #c9a227, #a07e1c);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(201,162,39,0.3);
}

.btn-download:hover {
    background: linear-gradient(135deg, #b8911e, #8c6e18);
    color: white;
}

.btn-cite {
    border-color: #1a3a6e;
    color: #1a3a6e;
}

.btn-cite:hover {
    background: rgba(26,58,110,0.05);
}

.citation-box {
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 14px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
    margin-bottom: 12px;
}

.btn-copy {
    background: transparent;
    color: #1a3a6e;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
}

.btn-copy:hover {
    color: #c9a227;
}

/* Related Research Section */
.related-research-section {
    padding: 80px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 36px;
}

.related-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #1a3a6e;
}

.related-card .category {
    font-size: 11px;
    font-weight: 700;
    color: #c9a227;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.related-card h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 10px;
}

.related-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.related-card .author {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}
