@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

/* VARIABLES */

:root {
    --bg-100: #271e2c;
    --accent-100: #ebfa1a;
    --accent-200: #af7b14;
    --text-100: #f8f8f8;

    --font: 'Fredoka';
}

/* INITIAL STYLES */

* {
    box-sizing: border-box;
    outline: none;
    list-style: none;
    border: none;
    font-family: var(--font);
    padding: 0;
    margin: 0;
}

/* MAIN DOM */

body,
html {
    position: relative;
    background: var(--bg-100);
    overflow: visible;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    width: 100%;
    color: var(--text-100);
    user-select: none;
    z-index: 999;
}

nav .title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.tool-list {
    margin-top: 4rem;
    --col-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(var(--col-width), 100%), 1fr));
    gap: 1rem;
    width: 100%;
    padding: 2rem;
}

.tool {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    background: var(--accent-200);
    border-radius: 10px;
    color: var(--text-100);
    user-select: none;
}

.tool-name {
    font-weight: 600;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.tool-description {
    border-radius: 8px;
    color: var(--text-100);
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.tool-link {
    display: flex;
    align-items: center;
    padding: 0.25rem 1rem;
    background: var(--text-100);
    color: black;
    text-decoration: none;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 600;
    outline: 2px solid transparent;

    transition: all 0.2s ease;
}

.tool-link:hover {
    background: none;
    color: var(--text-100);
    outline-color: var(--text-100);
}

.tool-link::after {
    content: '>';
    margin-left: auto;
}

.tool-tag {
    position: absolute;
    top: -5px;
    right: -7px;
    padding: 0.25rem 0.5rem;
    background: var(--accent-100);
    color: black;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 6px;
}

.back-btn {
    padding: 0.25rem 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    background: var(--accent-100);
    cursor: pointer;
    outline: 2px solid transparent;
    transition: all 0.2s ease;
    color: black;
    text-decoration: none;
    &:hover {
        outline-color: var(--accent-100);
        color: var(--accent-100);
        background: none;
    }
}

.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}
