/* ============================================
   RESEARCH PAGE STYLES
   Modern, Clean, Minimal Design
   ============================================ */

:root {
    --primary-color: #e03a3c;
    --primary-dark: #c62d2f;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   HERO SECTION
   ============================================ */

.research-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0 20px;
    position: relative;
}

.research-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    text-align: center;
}

/* ============================================
   TAB NAVIGATION
   ============================================ */

.research-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-label {
    font-size: 16px;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.research-content {
    padding: 60px 0 100px;
    background: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FEATURED RESEARCH
   ============================================ */

.featured-research {
    position: relative;
    margin-bottom: 80px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-research:hover .featured-image img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(224, 58, 60, 0.1), transparent);
}

.featured-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 24px;
}

.featured-excerpt {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-primary svg {
    transition: var(--transition);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

/* ============================================
   RESEARCH GRID
   ============================================ */

.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.research-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.research-card:hover .card-image img {
    transform: scale(1.08);
}

.card-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.card-status.completed {
    background: rgba(40, 167, 69, 0.95);
    color: var(--white);
}

.card-body {
    padding: 28px;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.card-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

.card-link svg {
    transition: var(--transition);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
}

.empty-icon svg {
    stroke: var(--text-light);
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 992px) {
    .research-hero {
        padding: 60px 0 30px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .featured-info {
        padding: 40px 30px;
    }
    
    .featured-title {
        font-size: 28px;
    }
    
    .featured-excerpt {
        font-size: 16px;
    }
    
    .card-image {
        height: 240px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .research-hero {
        padding: 40px 0 20px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .research-tabs {
        gap: 8px;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 0;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .tab-label {
        font-size: 14px;
    }
    
    .tab-count {
        min-width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .research-content {
        padding: 40px 0 60px;
    }
    
    .featured-research {
        margin-bottom: 50px;
        border-radius: 12px;
    }
    
    .featured-badge {
        top: 16px;
        left: 16px;
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .featured-info {
        padding: 30px 20px;
    }
    
    .featured-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .featured-excerpt {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .card-body {
        padding: 24px 20px;
    }
    
    .card-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .card-excerpt {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .card-link {
        font-size: 14px;
    }
    
    .empty-state {
        padding: 60px 20px;
    }
    
    .empty-state h3 {
        font-size: 20px;
    }
    
    .empty-state p {
        font-size: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .research-tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: space-between;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .featured-title {
        font-size: 22px;
    }
    
    .card-image {
        height: 200px;
    }
}

/* Print Styles */
@media print {
    .research-tabs,
    .btn-primary,
    .card-link {
        display: none;
    }
    
    .tab-content {
        display: block !important;
    }
    
    .research-card,
    .featured-research {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}