/*
Theme Name: Researcher Profile Theme
Description: A professional WordPress theme for academic researcher profiles with modern design and responsive layout.
Version: 1.0
Author: Custom Theme
*/

:root {
    --primary-dark: #233865;
    --primary: #2C4672;
    --accent-purple: #A99BB5;
    --accent-pink: #DD2C9A;
    --light-beige: #E7E3D7;
    --white: #FFFFFF;
    --gold: #D4AF37;
    --dark-gold: #B8860B;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f2e9 0%, #e7e3d7 100%);
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.researcher-profile-container {
    max-width: 1100px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-top: 20px;
}

.profile-header h1 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.profile-header h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.profile-header p {
    color: var(--primary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Profile Card Styles */
.rp-profile-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    border-top: 5px solid var(--gold);
    position: relative;
}

.gold-decoration {
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--gold) 0%, 
        var(--dark-gold) 30%, 
        var(--gold) 70%, 
        var(--dark-gold) 100%);
}

.rp-profile-header-content {
    display: flex;
    padding: 40px;
    position: relative;
}

.rp-profile-image-placeholder {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 35px;
    flex-shrink: 0;
    border: 4px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.rp-profile-image-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--gold);
}

.rp-profile-image-placeholder .profile-image,
.rp-profile-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Ensure WordPress featured images are also circular */
.rp-profile-image-placeholder .wp-post-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    max-width: none !important;
    max-height: none !important;
}

.rp-profile-info {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
    padding-left: 20px;
}

.rp-profile-name {
    color: var(--primary-dark);
    font-size: 2.4rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.rp-profile-title {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-left: 30px;
}

.rp-profile-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: var(--gold);
}

.rp-profile-affiliation {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 600px;
}

.rp-email-link {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.rp-email-link svg {
    margin-right: 10px;
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.rp-email-link a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.rp-email-link a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.rp-academic-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.rp-academic-link-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.rp-academic-link-button:hover {
    background: transparent;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

.rp-academic-link-button:hover svg {
    color: var(--gold);
}

.rp-academic-link-button svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s;
}

/* Navigation Tabs */
.rp-nav-tabs {
    margin-bottom: 35px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.rp-nav-tabs-content {
    display: flex;
}

.rp-nav-tab-button {
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-light);
    position: relative;
    flex: 1;
    font-weight: 600;
    transition: all 0.3s;
}

.rp-nav-tab-button:hover {
    color: var(--primary-dark);
}

.rp-nav-tab-button.rp-active-tab {
    color: var(--primary-dark);
    background: linear-gradient(to bottom, var(--gold), var(--dark-gold));
    color: var(--white);
}

.rp-nav-tab-button.rp-active-tab:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--dark-gold);
}

/* Section Cards */
.rp-section-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-out;
    border-left: 4px solid var(--gold);
}

.rp-hidden {
    display: none;
}

.rp-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-beige);
}

.rp-section-header svg {
    width: 32px;
    height: 32px;
    color: var(--gold);
    margin-right: 15px;
    background: var(--primary-dark);
    padding: 8px;
    border-radius: 10px;
}

.rp-section-title {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin: 0;
    position: relative;
}

.rp-section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.rp-prose {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.rp-prose p {
    margin-bottom: 20px;
}

.rp-list-items {
    list-style: none;
    padding: 0;
}

.rp-list-item {
    display: flex;
    margin-bottom: 22px;
    align-items: flex-start;
    padding-left: 30px;
    position: relative;
}

.rp-list-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 18px;
    height: 18px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--primary-dark);
}

.rp-list-item span {
    flex: 1;
    font-size: 1.1rem;
    padding-left: 15px;
}

/* Footer */
.profile-footer {
    text-align: center;
    padding: 25px;
    color: var(--primary);
    font-size: 1rem;
    border-top: 1px solid var(--light-beige);
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .rp-profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 25px;
    }
    
    .rp-profile-image-placeholder {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .rp-profile-info {
        padding-left: 0;
    }
    
    .rp-email-link {
        justify-content: center;
    }
    
    .rp-academic-links {
        justify-content: center;
    }
    
    .rp-nav-tabs-content {
        flex-wrap: wrap;
    }
    
    .rp-nav-tab-button {
        padding: 15px 10px;
        font-size: 1rem;
    }
    
    .rp-profile-title {
        padding-left: 0;
    }
    
    .rp-profile-title:before {
        display: none;
    }
    
    .rp-section-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .rp-profile-header-content {
        padding: 30px 20px;
    }
    
    .rp-profile-image-placeholder {
        width: 140px;
        height: 140px;
    }
    
    .rp-profile-name {
        font-size: 2rem;
    }
    
    .rp-profile-title {
        font-size: 1.2rem;
    }
    
    .rp-profile-affiliation {
        font-size: 1rem;
    }
    
    .rp-academic-links {
        flex-direction: column;
        align-items: center;
    }
    
    .rp-academic-link-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

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

@media (max-width: 600px) {
    .profile-header h1 {
        font-size: 2.2rem;
    }
    
    .rp-profile-name {
        font-size: 2rem;
    }
    
    .rp-academic-links {
        flex-direction: column;
    }
    
    .rp-nav-tabs-content {
        flex-direction: column;
    }
    
    .rp-nav-tab-button.rp-active-tab:after {
        display: none;
    }
}

