/* Research Page - IBM Design Style */

/* Research Focus Cards */
.research-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    padding: var(--spacing-06);
    border-radius: 0;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, rgba(15, 98, 254, 0.6) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.research-card:hover::before {
    transform: scaleX(1);
}

.research-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Research Icons */
.research-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    margin-bottom: var(--spacing-04);
}

.research-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 1.5;
}

/* Metric Highlights */
.metric-highlight {
    font-size: var(--text-display);
    font-weight: var(--font-weight-light);
    color: var(--color-primary);
    margin-bottom: var(--spacing-02);
    line-height: 1;
}

.research-card .card-title {
    font-size: var(--text-heading-03);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-02);
}

.research-card .card-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-04);
}

/* Research Studies */
.research-study {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    padding: var(--spacing-05);
    position: relative;
    transition: all var(--transition-base);
}

.research-study:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.study-status {
    display: inline-block;
    padding: var(--spacing-01) var(--spacing-02);
    background: var(--color-primary);
    color: white;
    font-size: var(--text-body-small);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-03);
}

.study-title {
    font-size: var(--text-heading-04);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-02);
}

.study-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-03);
    margin-top: var(--spacing-04);
    padding-top: var(--spacing-04);
    border-top: 1px solid var(--color-border);
}

.inline-metric {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-01);
}

.metric-label {
    font-size: var(--text-body-small);
    color: var(--color-text-secondary);
}

.metric-value {
    font-size: var(--text-heading-04);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
}

/* Research Papers */
.research-papers {
    display: grid;
    gap: var(--spacing-04);
}

.paper-item {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    padding: var(--spacing-05);
    transition: all var(--transition-base);
    position: relative;
}

.paper-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.paper-item:hover::after {
    transform: scaleX(1);
}

.paper-item:hover {
    background: var(--color-background-subtle);
}

.paper-date {
    font-size: var(--text-body-small);
    color: var(--color-text-tertiary);
    margin-bottom: var(--spacing-02);
}

.paper-title {
    font-size: var(--text-heading-04);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-01);
}

.paper-authors {
    font-size: var(--text-body-small);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-02);
}

.paper-abstract {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-03);
}

.paper-actions {
    display: flex;
    gap: var(--spacing-04);
}

.paper-actions .link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--text-body-small);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-base);
}

.paper-actions .link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Research Visual Grid */
.research-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-04);
    margin: var(--spacing-06) 0;
}

.research-visual-card {
    text-align: center;
    padding: var(--spacing-05);
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.research-visual-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.visual-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-03);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    border: 2px solid var(--color-border);
    transition: all var(--transition-base);
}

.research-visual-card:hover .visual-icon {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
}

.visual-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 1.5;
}

.visual-title {
    font-size: var(--text-heading-04);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-01);
}

.visual-metric {
    font-size: var(--text-heading-02);
    font-weight: var(--font-weight-light);
    color: var(--color-primary);
}

/* Animated Research Pattern */
.research-hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    opacity: 0.04;
    pointer-events: none;
    overflow: hidden;
}

.research-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(15, 98, 254, 0.03) 35px, rgba(15, 98, 254, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(15, 98, 254, 0.03) 35px, rgba(15, 98, 254, 0.03) 70px);
    animation: pattern-drift 30s linear infinite;
}

@keyframes pattern-drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Publication Stats */
.publication-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-04);
    margin: var(--spacing-06) 0;
    padding: var(--spacing-05);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--color-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--text-display);
    font-weight: var(--font-weight-light);
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--spacing-01);
}

.stat-label {
    font-size: var(--text-body-small);
    color: var(--color-text-secondary);
}

/* Research Timeline */
.research-timeline {
    position: relative;
    padding-left: var(--spacing-06);
}

.research-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-05);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--color-background);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
}

.timeline-date {
    font-size: var(--text-body-small);
    color: var(--color-text-tertiary);
    margin-bottom: var(--spacing-01);
}

.timeline-title {
    font-size: var(--text-heading-04);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-01);
}

/* Responsive */
@media (max-width: 768px) {
    .study-metrics {
        grid-template-columns: 1fr;
    }
    
    .publication-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .research-visual-grid {
        grid-template-columns: 1fr;
    }
}