/*
 * Components — Project rows, tags, buttons, badges
 */

/* ── Section layout helper ── */
.section {
    padding: var(--space-64) var(--page-padding);
    border-bottom: var(--border);
}

.section--tinted {
    background: var(--color-bg-tint);
}

/* Two-column layout: label left, content right */
.two-col {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--space-64);
    align-items: start;
}

@media (max-width: 768px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: var(--space-32);
    }
}

/* ── Section label (small uppercase mono) ── */
.section-label {
    font-family: var(--font-mono);
    font-size: var(--text-3xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-navy);
    padding-top: var(--space-4); /* optical alignment with content */
}

/* ── Section title ── */
.section-title {
    font-family: var(--font-sans);
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-text);
}

/* ── Tag badge (e.g. CAPSTONE, RESEARCH) ── */
.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-3xs);
    letter-spacing: 0.5px;
    background: var(--color-navy-tint);
    color: var(--color-navy);
    padding: 3px 8px;
    white-space: nowrap;
}

/* ── Project list ── */
.project-list {
    display: flex;
    flex-direction: column;
}

.project-row {
    display: grid;
    grid-template-columns: 36px 1fr auto 80px 20px;
    align-items: center;
    gap: var(--space-20);
    padding: var(--space-20) 0;
    border-top: var(--border);
    text-decoration: none;
    color: var(--color-text);
    transition: background var(--transition), margin var(--transition), padding var(--transition);
}

/* Extend hover bg to full width by using negative margins trick */
.project-row:hover {
    background: var(--color-bg-tint);
    margin: 0 calc(-1 * var(--page-padding));
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
}

.project-row:hover .project-row__arrow {
    opacity: 1;
}

.project-row__num {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-faint);
}

.project-row__name {
    font-family: var(--font-sans);
    font-size: var(--text-md);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.project-row__cat {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-muted);
}

.project-row__year {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-faint);
    text-align: right;
}

.project-row__arrow {
    font-size: 16px;
    color: var(--color-navy);
    opacity: 0;
    transition: opacity var(--transition);
}

/* Linked rows: faint arrow hints clickability */
a.project-row .project-row__arrow {
    opacity: 0.25;
}
a.project-row:hover .project-row__arrow {
    opacity: 1;
}

/* Non-linked project row (no detail page) */
.project-row--no-link {
    cursor: default;
}
.project-row--no-link:hover .project-row__arrow {
    opacity: 0;
}

/* ── Skill groups ── */
.skill-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-32);
}

@media (max-width: 768px) {
    .skill-groups {
        grid-template-columns: 1fr;
    }
}

.skill-group__title {
    font-family: var(--font-mono);
    font-size: var(--text-3xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-navy);
    margin-bottom: var(--space-12);
}

.skill-group__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.skill-item {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-8);
}
.skill-item::before {
    content: '';
    display: inline-block;
    width: 4px; height: 4px;
    background: var(--color-navy);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Contact links ── */
.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-16) 0;
    border-bottom: var(--border);
    text-decoration: none;
    color: var(--color-text);
    transition: padding-left var(--transition);
}
.contact-link:hover {
    padding-left: var(--space-8);
}
.contact-link__label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 1px;
    color: var(--color-subtle);
    margin-bottom: var(--space-4);
}
.contact-link__value {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
}
.contact-link__arrow {
    font-size: 18px;
    color: var(--color-navy);
}
