/* Global helpers and small design tokens */
:root { --ring: #e5e7eb; }

/* Lightweight component styles (work alongside Tailwind via class names) */
.section-title { font-weight: 800; color: #0f172a; letter-spacing: -0.01em; font-size: 1.5rem; }
@media (min-width: 768px) { .section-title { font-size: 1.875rem; } }

.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.chip { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 9999px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; border-radius: 0.5rem; background: #059669; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.06); text-decoration: none; }
.btn-primary:hover { background: #047857; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; border-radius: 0.5rem; border: 1px solid #e5e7eb; background: #fff; color: #0f172a; text-decoration: none; }
.btn-secondary:hover { background: #f8fafc; }

.area-card { position: relative; overflow: hidden; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); text-decoration: none; }
.area-thumb { width: 100%; height: 10rem; background-position: center; background-size: cover; transition: transform 0.3s ease; }
.area-card:hover .area-thumb { transform: scale(1.05); }
.area-title { padding: 0.75rem; font-weight: 600; color: #1f2937; }

/* Fallback font if Tailwind not present */
body { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/* Notes:
    - Replace hero/profile photo by updating src in index.html (Latex_cv/profile.jpg)
    - Research area images use Unsplash URLs; update inline style background-image.
*/

/* Publications */
.pub-card { position: relative; overflow: hidden; border-left: 4px solid #10b981; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.pub-card:hover { box-shadow: 0 8px 24px rgba(16,185,129,0.15), 0 2px 6px rgba(0,0,0,0.06); transform: translateY(-2px); }
.pub-title { font-weight: 700; color: #0f172a; letter-spacing: -0.01em; }
.pub-authors { color: #334155; }
.author-me { background: linear-gradient(90deg,#10b981,#22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.journal-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.5rem; border-radius: 0.5rem; background: #f0fdf4; color: #065f46; border: 1px solid #bbf7d0; font-weight: 600; }
.year-badge { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; border-radius: 9999px; background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; font-size: 0.75rem; font-weight: 700; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pub-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; border: 1px dashed #94a3b8; color: #0f172a; text-decoration: none; }
.btn-ghost:hover { background: #f8fafc; }

/* CV enhancements */
.card-hover { border-left: 4px solid #10b981; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,185,129,0.15), 0 2px 6px rgba(0,0,0,0.06); border-left-color: #06b6d4; }
.inst-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.5rem; border-radius: 0.5rem; font-weight: 700; border: 1px solid transparent; }
.inst-emerald { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.inst-sky { background: #f0f9ff; color: #075985; border-color: #bae6fd; }
.inst-amber { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.inst-rose { background: #fdf2f8; color: #9f1239; border-color: #fbcfe8; }
