/* Google Scholar Citation Widget Styles */

.scholar-citation-widget {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.scholar-citation-widget:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.scholar-citation-widget .title {
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: -16px -16px 14px -16px !important;
    padding: 12px 16px !important;
    background-color: var(--scholar-theme, #014401);
    color: #ffffff !important;
    font-weight: 700;
    text-align: center;
    border-radius: 11px 11px 0 0;
}

.scholar-error {
    color: #cc0000;
    font-size: 13px;
    text-align: center;
    padding: 10px;
}

.scholar-profile {
    text-align: center;
    margin-bottom: 14px;
}

.scholar-name {
    font-size: 13px;
    font-weight: 700;
    color: #2b2b2b;
    display: block;
    line-height: 1.3;
}

.scholar-stats {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 16px;
}

.scholar-stat-card {
    flex: 1;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 8px 3px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    min-width: 0;
}

.scholar-stat-card:hover {
    background-color: #f1f3f5;
}

.scholar-stat-val {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--scholar-theme, #014401);
    line-height: 1.2;
}

.scholar-stat-lbl {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    color: #495057;
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scholar-chart-wrapper {
    margin: 12px 0 16px 0;
    height: 150px;
    position: relative;
    width: 100%;
}

.scholar-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}

.scholar-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--scholar-theme, #014401);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 9px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    box-sizing: border-box;
    letter-spacing: 0.3px;
}

.scholar-btn:hover {
    opacity: 0.92;
    color: #ffffff !important;
}

.scholar-timestamp {
    font-size: 10px;
    color: #6c757d;
    text-align: center;
    line-height: 1.3;
}

/* Dark Mode Compatibility */
@media (prefers-color-scheme: dark) {
    .scholar-citation-widget {
        background-color: #1e1e1e;
        border-color: #2e2e2e;
    }
    .scholar-stat-card {
        background-color: #2a2a2a;
        border-color: #3a3a3a;
    }
    .scholar-stat-card:hover {
        background-color: #333333;
    }
    .scholar-name {
        color: #e0e0e0;
    }
    .scholar-stat-lbl {
        color: #a0a0a0;
    }
}
