/* sbom.wiki - Blobitecture SBOM Encyclopedia */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --soft-frost: #F4F7FB;
    --blob-white: #FFFFFF;
    --aurora-violet: #7C3AED;
    --aurora-teal: #06B6D4;
    --aurora-rose: #EC4899;
    --deep-indigo: #1E1B4B;
    --soft-plum: #6B7280;
}
body {
    background: var(--soft-frost);
    color: var(--deep-indigo);
    font-family: 'Albert Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    overflow-x: hidden;
}

/* TOC Blob */
.toc-blob {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: var(--blob-white);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(124,58,237,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.toc-toggle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--aurora-violet);
    letter-spacing: 0.05em;
}
.toc-links {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.toc-blob:hover .toc-links,
.toc-blob.expanded .toc-links {
    display: flex;
}
.toc-links a {
    font-size: 0.8rem;
    color: var(--deep-indigo);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 12px;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.toc-links a:hover {
    background: var(--soft-frost);
    color: var(--aurora-violet);
}

/* Hero */
#hero {
    max-width: 780px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    text-align: center;
}
.hero-blob {
    display: inline-block;
    padding: 2.5rem 3rem;
    border-radius: 48px;
    position: relative;
    background: var(--blob-white);
}
.hero-blob::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--aurora-violet), var(--aurora-teal), var(--aurora-rose), var(--aurora-violet));
    background-size: 300% 300%;
    animation: auroraRotate 8s linear infinite;
    z-index: -1;
}
@keyframes auroraRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-title {
    font-family: 'Albert Sans', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--deep-indigo);
}
.hero-subtitle {
    font-size: 1rem;
    color: var(--soft-plum);
    margin-top: 0.25rem;
}

/* Bubble Cluster */
.bubble-cluster {
    position: relative;
    height: 140px;
    margin-top: 2rem;
}
.bubble {
    position: absolute;
    border-radius: 50%;
    background: var(--blob-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--aurora-violet);
    box-shadow: 0 2px 12px rgba(124,58,237,0.1);
    opacity: 0;
    animation: bubbleIn 0.6s ease forwards;
}
.b-lg {
    width: 80px; height: 80px;
    left: 50%; top: 20px;
    transform: translateX(-50%);
    border: 2px solid var(--aurora-violet);
    font-weight: 700;
    animation-delay: 0.5s;
}
.b-md { width: 56px; height: 56px; font-size: 0.6rem; border: 1.5px solid var(--aurora-teal); }
.b-md1 { left: 30%; top: 40px; animation-delay: 0.7s; }
.b-md2 { left: 62%; top: 50px; animation-delay: 0.8s; }
.b-sm { width: 40px; height: 40px; font-size: 0.55rem; border: 1px solid var(--aurora-rose); color: var(--aurora-rose); }
.b-sm1 { left: 22%; top: 80px; animation-delay: 0.9s; }
.b-sm2 { left: 70%; top: 85px; animation-delay: 1.0s; }
.b-sm3 { left: 46%; top: 95px; animation-delay: 1.1s; }
@keyframes bubbleIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}
.b-lg { animation-name: bubbleInCenter; }
@keyframes bubbleInCenter {
    0% { opacity: 0; transform: translateX(-50%) scale(0.5); }
    100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* Content */
#content {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}
.wiki-entry {
    background: var(--blob-white);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.wiki-entry.visible {
    opacity: 1;
    transform: translateY(0);
}
.entry-title {
    font-family: 'Albert Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-indigo);
    margin-bottom: 1rem;
}
.entry-body {
    color: var(--deep-indigo);
    margin-bottom: 1rem;
}
.entry-body:last-child { margin-bottom: 0; }

/* Entry Grid */
.entry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}
.mini-blob {
    background: var(--soft-frost);
    border-radius: 16px;
    padding: 1.5rem;
}
.blob-heading {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: var(--aurora-violet);
    margin-bottom: 0.5rem;
}
.blob-text {
    font-size: 0.9rem;
    color: var(--soft-plum);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.code-snippet {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    background: rgba(124,58,237,0.06);
    padding: 0.75rem;
    border-radius: 8px;
    display: block;
    color: var(--deep-indigo);
    line-height: 1.6;
}

/* Wiki List */
.wiki-list {
    list-style: none;
    padding: 0;
}
.wiki-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(107,114,128,0.1);
    font-size: 0.95rem;
}
.wiki-list li:last-child { border-bottom: none; }

/* Tool List */
.tool-list {
    margin-top: 1rem;
}
.tool-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(107,114,128,0.1);
    align-items: baseline;
}
.tool-item:last-child { border-bottom: none; }
.tool-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--aurora-teal);
    white-space: nowrap;
    min-width: 120px;
}
.tool-desc {
    font-size: 0.9rem;
    color: var(--soft-plum);
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
}
.footer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--soft-plum);
}

/* Responsive */
@media (max-width: 600px) {
    .toc-blob { display: none; }
    .entry-grid { grid-template-columns: 1fr; }
    .hero-blob { padding: 2rem; border-radius: 32px; }
    .wiki-entry { border-radius: 16px; padding: 1.5rem; }
}
