/*
 * CSS style script for LLGL webpage
 * Generated by Gemini 3 Flash
 */

:root {
    --bg-color: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --accent-color: #0984e3;
    --accent-hover: #74b9ff;
    --border-color: #dfe6e9;
    --code-bg: #f1f2f6;
    --max-width: 900px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the main container */
}

/* Layout Container */
.page-wrapper {
    width: 100%;
    max-width: var(--max-width);
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Rounded Button Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Applying button style to navigation or specific links */
.nav-link {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    margin: 0.2rem 0;
    background-color: var(--code-bg);
    color: var(--text-main);
    border-radius: 50px; /* Makes it a pill shape */
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-link:hover {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Sidebar: one full-width row per entry, thumbnail + caption/description */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
}

.sidebar-item:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.sidebar-item:hover .sidebar-item-desc {
    color: white;
}

.sidebar-item img {
    width: auto;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
}

.sidebar-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-item-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-item-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Two cards side by side: a primary card (70%) and a text-only secondary card (30%), separated by the same gap as stacked cards */
.sidebar-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.sidebar-row > .sidebar-item {
    width: auto;
}

.sidebar-row > .sidebar-item:first-child {
    flex: 7 1 0;
    min-width: 0;
}

.sidebar-row > .sidebar-item-text {
    flex: 3 1 0;
    min-width: 0;
}

@media (max-width: 600px) {
    .sidebar-row {
        flex-direction: column;
    }

    .sidebar-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar-item img {
        width: 100%;
        height: auto;
    }
}

/* Mobile Friendly Centering */
.content {
    text-align: left; /* Keeps prose left-aligned */
    width: 100%;
}

img, video, canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Footer Styling */
footer {
    margin-top: auto;
    padding: 3rem 0 1.5rem 0;
    border-top: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer a {
    font-weight: 600;
    color: var(--text-main);
}

/* Code Blocks */
pre {
    background: var(--code-bg);
    padding: 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}
