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

:root {
    --bg: #0d1117;
    --sidebar: #161b22;
    --text: #e6edf3;
    --accent: #58a6ff;
    --muted: #8b949e;
    --hover: #21262d;
    --border: #30363d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Code', monospace;
}

body {
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: var(--sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
}

.sidebar .logo {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(90deg, #ff3cac, #784ba0, #2b86c5);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 6s linear infinite;
    background-size: 300%;
    margin-bottom: 2rem;
}

@keyframes gradientFlow {
    0% { background-position: 0% }
    100% { background-position: 100% }
}

/* Sidebar Navigation Links */
.nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #e6edf3;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.nav a:hover {
    background-color: rgba(0, 255, 204, 0.1); /* subtle highlight */
    color: #00ffcc;
    transform: translateX(3px);
}

.nav a span.icon {
    font-size: 1.1rem;
}

.nav a span.text {
    font-size: 1rem;
}

/* Active / Clicked Link */
.nav a:active {
    transform: scale(0.98);
}

/* Sidebar Footer */
.sidebar .footer {
    margin-top: auto; /* push to bottom */
    font-size: 0.8rem;
    color: #8b949e;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* subtle separator */
}

.sidebar .footer a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar .footer a:hover {
    color: #00ffcc;
}

/* Main Content */
.main {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    flex-direction: column; /* stack header + grid vertically */
    gap: 1.5rem;
}

.main-header {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(90deg, #ff3cac, #784ba0, #2b86c5);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s linear infinite;
    background-size: 300%;
}

.button-grid {
    display: flex;
    gap: 0.5rem;
    justify-items: center; /* center buttons in grid */
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e6edf3;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    min-height: 60px;
    text-align: center;
}

.link-btn:hover {
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    transform: translateY(-3px);
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
}

.link-btn:active {
    transform: scale(0.97);
    box-shadow: 0 0 4px rgba(0, 255, 204, 0.2);
}

@media (max-width: 768px) {
    /* Sidebar shrinks */
    .sidebar {
        width: 40%;
        padding: 1rem 0.5rem;
    }

    .sidebar .logo {
        font-size: 1rem;
    }

    /* Stack main buttons vertically and shrink grid items */
    .button-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
        justify-items: center;
    }

    /* Optional: reduce main padding */
    .main {
        padding: 1rem;
    }

    .link-btn {
        font-size: 0.9rem;
        padding: 0.8rem;
        min-height: 50px;
    }
}
