:root{
    --primary:#4f46e5;
    --secondary:#22c55e;
    --bg:#f1f5f9;
    --card:#ffffff;
    --text:#0f172a;
    --muted:#64748b;
    --border:#e5e7eb;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:system-ui, -apple-system, sans-serif;
    background:linear-gradient(180deg,#f8fafc,#e2e8f0);
    color:var(--text);
    min-height: 100vh;
}

.repo-info{
    background:var(--card);
    border-radius:16px;
    padding:20px 22px;
    border:1px solid var(--border);
    box-shadow:0 6px 18px rgba(0,0,0,0.05);
    margin-bottom:28px;
}

.repo-info h2{
    margin:0;
    font-size:1.2rem;
}

.repo-info p{
    margin:6px 0 14px;
    color:var(--muted);
    font-size:0.9rem;
}

.repo-owner{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:10px;
}

.owner-avatar{
    width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
    border:1px solid var(--border);
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.repo-owner a{
    font-weight:700;
    color:var(--text);
    text-decoration:none;
}

.repo-stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
    gap:12px;
    font-size:0.85rem;
    align-items:center;
}

.repo-stats a{
    grid-column:1/-1;
    text-align:right;
    color:var(--primary);
    text-decoration:none;
    font-weight:600;
}

.container{
    max-width:900px;
    margin:auto;
    padding:30px 16px 60px;
}

/* Header */

header{
    background:linear-gradient(135deg,#4f46e5,#6366f1);
    color:white;
    padding:30px;
    border-radius:18px;
    box-shadow:0 15px 35px rgba(79,70,229,0.25);
    margin-bottom:35px;
}

header h1{
    margin:0;
    font-size:1.8rem;
}

header p{
    margin-top:6px;
    opacity:0.9;
    font-size:0.95rem;
}

/* Logs */

#log-container{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.log-entry{
    background:var(--card);
    border-radius:14px;
    padding:18px 20px;
    border:1px solid var(--border);
    box-shadow:0 6px 18px rgba(0,0,0,0.05);
    transition:0.25s ease;
    position:relative;
    overflow:hidden;
}

.log-entry::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    width:4px;
    height:100%;
    background:linear-gradient(180deg,var(--primary),var(--secondary));
}

.log-entry:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 28px rgba(0,0,0,0.1);
}

.meta{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:6px;
}

.date{
    font-size:0.8rem;
    color:var(--muted);
    font-weight:600;
}

.hash, .merge{
    font-family:monospace;
    font-size:0.75rem;
    padding:3px 8px;
    border-radius:999px;
    background:#eef2ff;
    color:var(--primary);
    font-weight:600;
}

.merge{
    color:var(--secondary);
}

.commit-msg{
    font-size:1rem;
    font-weight:600;
    margin:6px 0 8px;
}

.author{
    font-size:0.85rem;
    color:var(--muted);
}

/* Loading */

.loading{
    text-align:center;
    padding:60px;
    font-size:1rem;
    color:var(--muted);
    animation:pulse 1.5s infinite;
}

@keyframes pulse{
    0%{opacity:0.5}
    50%{opacity:1}
    100%{opacity:0.5}
}

/* Responsive */

@media(max-width:600px){
    header{
        padding:22px;
    }
    .commit-msg{
        font-size:0.95rem;
    }
}

.author{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:0.85rem;
    color:var(--muted);
}

.author a{
    color:inherit;
    text-decoration:none;
    font-weight:600;
}

.avatar{
    width:28px;
    height:28px;
    border-radius:50%;
    object-fit:cover;
    border:1px solid var(--border);
}

.contributors{
    grid-column:1/-1;
    margin-top:8px;
}

.contributors h3{
    margin:6px 0 8px;
    font-size:0.9rem;
    color:var(--text);
}

.contributors-list{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.contributor{
    display:flex;
    align-items:center;
    gap:6px;
    padding:4px 8px;
    border-radius:999px;
    background:#f1f5f9;
    border:1px solid var(--border);
    text-decoration:none;
    color:var(--text);
    font-size:0.8rem;
}

.contributor img{
    width:24px;
    height:24px;
    border-radius:50%;
    object-fit:cover;
}

.actors{
    display:flex;
    gap:16px;
    margin-top:6px;
}

.actor{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:0.8rem;
    color:var(--muted);
}

.role{
    font-size:0.7rem;
    color:var(--muted);
    opacity:0.8;
}