/* ==========================================================================
   Author Page & Summary Widget Styles
   ========================================================================== */

/* --- Main Author Profile Page --- */

.author-profile-page .author-profile-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 1rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

.author-profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 2.5rem;
}

.author-profile-header .author-avatar img {
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.author-profile-header .author-details {
    flex: 1;
}

.author-profile-header .author-name {
    margin: 0 0 0.25rem 0;
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
    color: #1d2327;
}

.author-profile-header .author-institution {
    margin: 0 0 1rem 0;
    font-size: 1.1em;
    color: #50575e;
    font-weight: 500;
}

.author-profile-header .author-institution a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}
.author-profile-header .author-institution a:hover {
    text-decoration: underline;
}

.author-profile-header .author-bio {
    font-size: 1em;
    line-height: 1.6;
    color: #444;
}

.author-section {
    padding: 1.5rem 2rem;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.author-section h2 {
    font-size: 1.6em;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    color: #1d2327;
}

.author-section .author-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-section .author-item-list li {
    padding: 0.75rem 0;
    border-bottom: 1px dotted #ddd;
    font-size: 1.1em;
}

.author-section .author-item-list li:last-child {
    border-bottom: none;
}

.author-section .author-item-list a {
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
}
.author-section .author-item-list a:hover {
    text-decoration: underline;
}

.author-section .author-item-list .item-meta {
    font-size: 0.9em;
    color: #777;
    margin-left: 0.5rem;
}

.author-section p {
    font-size: 1em;
    color: #555;
    margin-top: 0;
}

/* --- Author Summary Shortcode Widget --- */

.author-summary-widget {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    max-width: 350px;
}

.author-summary-widget .author-summary-avatar img {
    border-radius: 50%;
    display: block;
}

.author-summary-widget .author-summary-details {
    flex: 1;
}

.author-summary-widget .author-summary-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.2em;
    font-weight: 700;
}
.author-summary-widget .author-summary-name a {
    color: #1d2327;
    text-decoration: none;
}

.author-summary-widget .author-summary-institution {
    margin: 0 0 0.5rem 0;
    font-size: 0.9em;
    font-weight: 500;
}
.author-summary-widget .author-summary-institution a {
    color: #50575e;
    text-decoration: none;
}

.author-summary-widget a:hover {
    text-decoration: underline;
}

.author-summary-widget .author-summary-profile-link {
    font-size: 0.9em;
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
}

/* --- Author Social Links --- */
.author-social-links {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.author-social-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.author-social-links li {
    padding: 0 !important;
    border: none !important;
    font-size: 1em !important;
}

.author-social-links a {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #fff;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.2s ease-in-out;
}

.author-social-links a:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    text-decoration: none;
}

.author-profile-header .author-title {
    margin: -0.5rem 0 1rem 0;
    font-size: 1.2em;
    color: #444;
    font-weight: 500;
    font-style: italic;
}

/* Styling for Thematic Area pills on Author Profile */
.author-section .thematic-areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.author-section .thematic-areas-list .term-link {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #f1f3f4;
    color: #444;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.2s ease-in-out;
}

.author-section .thematic-areas-list .term-link:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    text-decoration: none;
}