/* ============================================
   Components: Reusable UI Elements
   ============================================ */

/* --- Neo-Brutalism Box --- */
.neo-box {
    background-color: var(--element-bg);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-rad);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--border-color);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.neo-box:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--shadow-offset) + 4px) calc(var(--shadow-offset) + 4px) 0 var(--border-color);
}

.neo-box:active {
    transform: translate(var(--shadow-offset), var(--shadow-offset));
    box-shadow: 0 0 0 var(--border-color);
}

/* --- Button --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    color: #000;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--border-color);
}

/* --- Publication/Project Card --- */
.card {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    gap: 25px;
    position: relative;
}

/* Card Teaser Image Container */
.card-icon {
    width: 200px;
    background-color: #c0ebff;
    border: var(--border-width) solid var(--border-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scale the entire teaser box on card hover */
.card:hover .card-icon {
    transform: scale(1.06);
}

/* Card Content Area */
.card-content {
    flex: 1;
}

.card-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Card Icon Color Variants */
.card-icon-blue {
    background-color: #cde4ff;
}

.card-icon-orange {
    background-color: #f7e0ce;
}

/* --- Publication Link Buttons --- */
.pub-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.pub-link {
    position: relative;
    z-index: 2; /* Ensures buttons stay clickable above the card overlay */
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;

    /* Lighter design: transparent background, black text, black border */
    color: var(--border-color);
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;

    /* Light static shadow to maintain the structural style */
    box-shadow: 2px 2px 0 var(--border-color);
    transition: all 0.2s ease;
}

.pub-link:hover {
    /* Add a subtle highlight color on hover (using footer-bg color as an accent) */
    background-color: var(--footer-bg);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--border-color);
}

.pub-link:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--border-color);
}

/* Make entire card clickable routing to primary link */
.primary-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; /* Covers the card, but sits below the other .pub-link buttons */
    cursor: pointer;
}

/* --- Social Icon --- */
.social-icon {
    width: 70px;
    height: 70px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
}

.social-icon img {
    width: 40px;
    height: 40px;
}

/* Hero section social icon variant (smaller) */
.social-icon.hero-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.social-icon.hero-icon img {
    width: 25px;
    height: 25px;
}

/* --- Utility Classes (extracted from inline styles) --- */
.edu-list {
    list-style: none;
    padding: 0;
}

.edu-item {
    margin-bottom: 20px;
}

.no-transform {
    text-transform: none;
}

.subtitle {
    font-size: 0.85rem;
    font-weight: normal;
}

.text-normal {
    font-weight: normal;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-25 {
    margin-bottom: 25px;
}

.award-badge {
    color: #d9534f;
    font-weight: 800;
}
