/* RESEARCH.CSS - Research Page Specific Styles */

/* Project slideshows and research experience styles */

/* ===================================
   RESEARCH CONTAINER
   =================================== */

.research-container {
    margin-top: var(--space-3xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

/* ===================================
   RESEARCH ITEM CARD - FIXED LAYOUT
   =================================== */

.research-item {
    display: flex;
    flex-direction: row;
    gap: var(--space-2xl);
    background-color: var(--color-bg-main);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    padding: var(--space-xl);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    flex-wrap: wrap;
}

.research-item:nth-child(1) {
    animation-delay: 0.1s;
}

.research-item:nth-child(2) {
    animation-delay: 0.3s;
}

.research-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--color-award-2-solid);
}

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

/* ===================================
   RESEARCH IMAGE (FIXED SIZE)
   =================================== */

.research-image-container {
    flex: 0 0 35%;
    width: 35%;
    min-height: 280px;
    max-height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: var(--color-bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    border: 1px solid var(--color-border-light);
}

.research-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: var(--radius-sm);
}

.research-item:hover .research-image {
    transform: scale(1.05);
}

/* ===================================
   RESEARCH CONTENT - HEADER SECTION
   =================================== */

.research-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 0; /* Prevents flex item from overflowing */
}

.research-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-xs);
}

.research-title {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.research-status {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.research-status.ongoing {
    background: linear-gradient(135deg, rgba(82, 178, 207, 0.2), rgba(140, 198, 184, 0.2));
    color: var(--color-award-1-solid);
    border: 1px solid var(--color-award-1-solid);
}

.research-status.completed {
    background: linear-gradient(135deg, rgba(140, 198, 184, 0.2), rgba(156, 173, 206, 0.2));
    color: var(--color-award-5-solid);
    border: 1px solid var(--color-award-5-solid);
}

/* ===================================
   RESEARCH META
   =================================== */

.research-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-xs);
}

.research-date {
    color: var(--color-accent);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.research-category {
    background-color: var(--color-bg-ash);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--color-secondary);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.research-institution,
.research-supervisor {
    color: var(--color-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0;
}

.research-supervisor {
    font-style: italic;
}

/* ===================================
   RESEARCH DESCRIPTION - CONCISE
   =================================== */

.research-description {
    margin: var(--space-sm) 0;
}

.research-description p {
    color: var(--color-secondary);
    line-height: 1.6;
    font-size: var(--font-size-sm);
    margin: 0;
    /* Removed line clamp - allow full description to show */
}

/* ===================================
   FULL WIDTH SECTIONS (HIGHLIGHTS, IMPACT, TOOLS)
   =================================== */

.research-highlights,
.research-impact {
    flex: 0 0 100%; /* Force full width */
    width: 100%;
    background-color: var(--color-bg-ash);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-award-2-solid);
}

.research-impact {
    border-left-color: var(--color-award-3-solid);
}

.research-highlights h4,
.research-impact h4 {
    color: var(--color-primary);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.research-highlights ul,
.research-impact ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.research-highlights li,
.research-impact li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-secondary);
    line-height: 1.5;
    font-size: var(--font-size-sm);
}

.research-highlights li:last-child,
.research-impact li:last-child {
    margin-bottom: 0;
}

.research-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-award-2-solid);
    font-weight: bold;
    font-size: 1rem;
}

.research-impact li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-award-3-solid);
    font-weight: bold;
    font-size: 1rem;
}

/* ===================================
   RESEARCH TOOLS (FULL WIDTH)
   =================================== */

.research-tools {
    flex: 0 0 100%; /* Force full width */
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.tool-tag {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.tool-tag:hover {
    background-color: var(--color-award-2-solid);
    color: var(--color-white);
    border-color: var(--color-award-2-solid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xs);
}

/* ===================================
   PROJECTS CONTAINER
   =================================== */

.projects-container {
    margin-top: var(--space-xl);
    background-color: var(--color-bg-main);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 0.1rem solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* ===================================
   INDIVIDUAL PROJECT ITEM
   =================================== */

.project-item {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
}

.project-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.project-item:hover {
    background-color: rgba(245, 245, 245, 0.3);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
}

/* ===================================
   PROJECT IMAGE SECTION
   =================================== */

.project-image-side {
    flex: 0 0 30%;
    padding-right: var(--space-lg);
}

/* ===================================
   PROJECT TEXT SECTION
   =================================== */

.project-text-side {
    flex: 0 0 55%;
    padding-right: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.project-item:hover .project-title {
    color: rgb(30, 30, 30);
    font-size: 1.15rem;
}

.project-description {
    line-height: 1.5;
    font-size: 0.9rem;
    color: var(--color-secondary);
    text-align: justify;
}

/* ===================================
   PROJECT BUTTONS SECTION
   =================================== */

.project-buttons-side {
    flex: 0 0 15%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    min-width: 100px;
    max-width: 140px;
    margin: 0 auto;
}

.project-btn {
    padding: var(--space-sm);
    font-size: 0.85rem;
    width: 100%;
    min-width: 6rem;
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--color-bg-main);
    border-radius: var(--radius-sm);
    transition: var(--transition-all);
    border: 1px solid var(--color-accent);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.project-btn:hover {
    background-color: rgb(80, 80, 80);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

a.project-btn {
    display: inline-block;
    text-align: center;
    color: var(--color-primary);
    text-decoration: none;
}

a.project-btn:hover {
    color: var(--color-white);
    text-decoration: none;
}

/* ===================================
   SLIDESHOW CONTAINER
   =================================== */

.slideshow-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: rgb(245, 245, 245);
    margin-bottom: 5px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.slideshow-container:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

/* ===================================
   SLIDES
   =================================== */

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.slide.active {
    display: block;
}

.project-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.slideshow-container:hover .project-slide-img {
    transform: scale(1.05);
}

/* ===================================
   DOTS NAVIGATION
   =================================== */

.dots-container {
    position: relative;
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background-color: rgba(200, 200, 200, 0.8);
    border-radius: var(--radius-full);
    display: inline-block;
    transition: var(--transition-all);
    cursor: pointer;
}

.dot:hover {
    background-color: rgba(100, 100, 100, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background-color: #333;
    transform: scale(1.3);
}

/* ===================================
   FADE ANIMATION
   =================================== */

.fade {
    animation-name: fade;
    animation-duration: 1s;
}

/* ===================================
   RESEARCH EXPERIENCE SECTION
   =================================== */

#experience {
    animation: fadeIn 0.6s ease-out;
}

.experience-item {
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-primary);
    padding-left: calc(var(--space-lg) - 3px);
}

/* ===================================
   PROJECT HOVER ZOOM EFFECT
   =================================== */

.project-item {
    position: relative;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--color-award-1-solid), var(--color-award-3-solid));
    transition: height 0.3s ease;
}

.project-item:hover::before {
    height: 100%;
}

/* ===================================
   CENTER SHOW MORE BUTTON
   =================================== */

#projects-toggle {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   RESPONSIVE DESIGN FOR RESEARCH
   =================================== */

@media screen and (max-width: 1200px) {
    .research-item {
        flex-direction: column;
    }
    
    .research-image-container {
        flex: 0 0 100%;
        width: 100%;
        min-height: 250px;
        max-height: 350px;
    }
    
    .research-content {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .research-container {
        gap: var(--space-2xl);
    }
    
    .research-item {
        flex-direction: column;
        padding: var(--space-lg);
    }
    
    .research-image-container {
        width: 100%;
        min-height: 200px;
        max-height: 300px;
    }
    
    .research-content {
        width: 100%;
        gap: var(--space-sm);
    }
    
    .research-title {
        font-size: var(--font-size-lg);
    }
    
    .research-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .research-status {
        align-self: flex-start;
    }
    
    .research-highlights,
    .research-impact {
        padding: var(--space-sm) var(--space-md);
    }
}

@media screen and (max-width: 600px) {
    .research-image-container {
        min-height: 180px;
        max-height: 280px;
    }
    
    .research-title {
        font-size: var(--font-size-md);
    }
    
    .research-meta {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .research-highlights h4,
    .research-impact h4 {
        font-size: 0.9rem;
    }
    
    .research-highlights li,
    .research-impact li {
        font-size: 0.85rem;
    }
    
    .tool-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
}