@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #090a0f;
    --bg-row: rgba(255, 255, 255, 0.015);
    --bg-row-hover: rgba(59, 130, 246, 0.03);
    --border-color: rgba(255, 255, 255, 0.04);
    --border-hover: rgba(59, 130, 246, 0.3);
    
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10vh 2rem 4rem 2rem; /* Stable top padding instead of center jump */
    position: relative;
    overflow-x: hidden;
    font-family: 'Outfit', sans-serif;
}

/* Subtle background glow */
body::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Left-aligned clean Header */
header {
    text-align: left;
    padding-left: 0.5rem;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
}

header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
}

/* Vertical Rows List */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

/* Beautiful aligned Table-of-Contents Row */
.link-row {
    background: var(--bg-row);
    border: 1px solid var(--border-color);
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease-in-out;
}

.link-row:hover {
    background: var(--bg-row-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.03);
}

.card-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #ffffff;
    flex-shrink: 0;
}

/* dashed leader line spanning middle area */
.leader-line {
    flex: 1;
    border-bottom: 1px dashed var(--text-muted);
    margin: 0 1.25rem;
    height: 1px;
    transition: border-color 0.2s ease;
}

.link-row:hover .leader-line {
    border-color: rgba(59, 130, 246, 0.25);
}

.card-url {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color 0.2s;
}

.link-row:hover .card-url {
    color: var(--accent-blue-light);
}

@media (max-width: 580px) {
    .link-row {
        padding: 0.85rem 1rem;
    }
    .leader-line {
        margin: 0 0.75rem;
    }
    .card-url {
        font-size: 0.75rem;
    }
}