/**
 * PLHI Custom Styles
 * Purkayastha Lab for Health Innovation
 * Consolidated CSS for all custom page styling
 */

/* ==========================================================================
   Color Variables
   ========================================================================== */
:root {
    --plhi-primary: #990000;
    --plhi-primary-dark: #7a0000;
    --plhi-secondary: #333399;
    --plhi-text: #444;
    --plhi-text-dark: #333;
    --plhi-bg-light: #fafafa;
    --plhi-bg-hover: #f5f5f5;
    --plhi-border-light: #ededed;
}

/* ==========================================================================
   Software Page Styles
   ========================================================================== */
.software-project {
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--plhi-bg-light) 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid var(--plhi-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.software-project:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.software-title {
    color: var(--plhi-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    margin-top: 0;
}

.software-title a {
    color: var(--plhi-secondary);
    text-decoration: none;
}

.software-title a:hover {
    color: var(--plhi-primary);
}

.software-project figure {
    margin: 0 1.5rem 1rem 0;
    float: left;
}

.software-project img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.software-project img:hover {
    transform: scale(1.02);
}

.software-project p {
    line-height: 1.7;
    color: var(--plhi-text);
    margin-bottom: 1rem;
}

.software-project ul {
    margin-left: 0;
    margin-bottom: 1.25rem;
    padding-left: 2rem;
    color: var(--plhi-text);
    list-style-position: outside;
}

.software-project li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    padding-left: 0.25rem;
}

.software-project ul ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.software-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--plhi-primary) 0%, var(--plhi-primary-dark) 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
    clear: both;
}

.software-link:hover {
    background: linear-gradient(135deg, var(--plhi-primary-dark) 0%, #5a0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153,0,0,0.3);
    color: white !important;
}

.software-intro {
    font-size: 1.1rem;
    color: var(--plhi-secondary);
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f5f5ff;
    border-radius: 8px;
    border: 1px solid #e0e0ff;
}

.software-intro a {
    color: var(--plhi-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .software-project figure {
        float: none;
        margin: 0 0 1rem 0;
        text-align: center;
    }
    .software-project img {
        max-width: 200px;
    }
}

/* ==========================================================================
   Publications Page Styles (BibBase)
   ========================================================================== */
.bibbase {
    font-family: var(--neve-font-family-body, "Open Sans", sans-serif);
}

.bibbase h2 {
    color: var(--plhi-secondary);
    border-bottom: 2px solid var(--plhi-primary);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.bibbase .bibbase_paper {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--plhi-bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--plhi-primary);
}

.bibbase .bibbase_paper:hover {
    background: var(--plhi-bg-hover);
}

.bibbase .bibbase_paper_title {
    font-weight: 600;
    color: var(--plhi-text-dark);
}

.bibbase .bibbase_icon_link {
    color: var(--plhi-primary);
}

/* ==========================================================================
   Common Card Styles
   ========================================================================== */
.plhi-card {
    background: var(--plhi-bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--plhi-primary);
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.plhi-card:hover {
    background: var(--plhi-bg-hover);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ==========================================================================
   Button Styles
   ========================================================================== */
.plhi-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--plhi-primary) 0%, var(--plhi-primary-dark) 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.plhi-btn:hover {
    background: linear-gradient(135deg, var(--plhi-primary-dark) 0%, #5a0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153,0,0,0.3);
    color: white !important;
}

.plhi-btn-secondary {
    background: linear-gradient(135deg, var(--plhi-secondary) 0%, #252570 100%);
}

.plhi-btn-secondary:hover {
    background: linear-gradient(135deg, #252570 0%, #1a1a50 100%);
    box-shadow: 0 4px 12px rgba(51,51,153,0.3);
}
