/* ===== RESEARCH PAGE STYLES ===== */

.research-section {
    min-height: 100vh;
    padding: 7rem 2rem 4rem;
}

.research-container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-weight: 600;
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

.research-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards 0.2s;
}

/* ===== RESEARCH GRID ===== */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* ===== RESEARCH CARD ===== */
.research-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.research-card:nth-child(1) { animation-delay: 0.1s; }
.research-card:nth-child(2) { animation-delay: 0.2s; }
.research-card:nth-child(3) { animation-delay: 0.3s; }
.research-card:nth-child(4) { animation-delay: 0.4s; }
.research-card:nth-child(5) { animation-delay: 0.5s; }
.research-card:nth-child(6) { animation-delay: 0.6s; }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.dark-mode .research-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.research-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 102, 204, 0.3);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.15);
}

body.dark-mode .research-card:hover {
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.25);
}

/* ===== CARD GLOW ===== */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(0, 102, 204, 0.1),
                transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.research-card:hover .card-glow {
    opacity: 1;
}

/* ===== RESEARCH HEADER ===== */
.research-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.category-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-badge.ai {
    background: rgba(0, 102, 204, 0.15);
    color: #64b5f6;
    border: 1px solid rgba(0, 102, 204, 0.3);
}

.category-badge.ui-ux {
    background: rgba(168, 85, 247, 0.15);
    color: #ce93d8;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.category-badge.web-tech {
    background: rgba(16, 185, 129, 0.15);
    color: #81c784;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.category-badge.security {
    background: rgba(236, 72, 153, 0.15);
    color: #f48fb1;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.category-badge.data {
    background: rgba(255, 107, 53, 0.15);
    color: #ffab91;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.research-date {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ===== RESEARCH CONTENT ===== */
.research-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.research-card:hover .research-title {
    color: var(--accent-blue);
}

.research-abstract {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ===== RESEARCH META ===== */
.research-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-blue);
}

/* ===== RESEARCH LINKS ===== */
.research-links {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.research-link {
    flex: 1;
    text-align: center;
    padding: 0.7rem 1.5rem;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 50px;
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.research-link:hover {
    background: rgba(0, 102, 204, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* ===== FILTER SECTION ===== */
.filter-section {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.filter-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.7rem 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: inherit;
    font-family: 'Victor Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: rgba(0, 102, 204, 0.2);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* ===== HIDDEN STATE FOR FILTERING ===== */
.research-card.hidden {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .research-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .research-section {
        padding: 6.5rem 1.5rem 3rem;
    }

    .page-title {
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
        font-size: 2.5rem;
    }

    .research-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .research-card {
        padding: 1.5rem;
    }

    .research-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .research-links {
        flex-direction: column;
    }

    .filter-buttons {
        gap: 0.75rem;
    }

    .filter-btn {
        padding: 0.6rem 1.4rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .research-section {
        padding: 6rem 1rem 2rem;
    }

    .page-title {
        font-size: 2rem;
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .research-intro {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .research-card {
        padding: 1.25rem;
    }

    .research-title {
        font-size: 1.3rem;
    }

    .research-abstract {
        font-size: 0.9rem;
    }

    .research-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
