@import url("./variables.css");

.content {
    min-height: 100%;
}

#projects-layout {
    align-items: start;
    flex: 1 1 auto;
}

.tools-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tool-list-item {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    align-self: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: none;
    color: var(--color-text);
    cursor: var(--cursor-pointer);
    text-align: left;
}

.tool-list-item:hover {
    transform: translateX(5px);
}

.tool-list-item.active {
    transform: translateX(5px);
}

.tool-list-item.active:hover {
    transform: translateX(10px);
}

.tool-logo {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: cover;
    mix-blend-mode: luminosity;
}

.tool-list-item:hover .tool-logo {
    mix-blend-mode: normal;
}

.tool-list-item.active .tool-logo {
    mix-blend-mode: normal;
}

.tool-name {
    font-size: 1rem;
    font-weight: 300;
    opacity: .75;
}

.tool-list-item:hover .tool-name {
    font-weight: 450;
    opacity: 1;
}

.tool-list-item.active .tool-name {
    font-weight: 600;
    opacity: 1;
}

.edge-nav {
    display: none;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: var(--color-text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: var(--cursor-pointer);
    z-index: 20;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.edge-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%);
}

.edge-nav-left {
    left: 18px;
}

.edge-nav-right {
    right: 18px;
}

#spotlight-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.tool-image-shell {
    width: 100%;
    height: 45vh;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(calc( -1 * (var(--spacing-large) + var(--spacing-small))));
    margin-bottom: calc(-1 * (var(--spacing-large) + var(--spacing-small)));
}

#display-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spotlight-version {
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: transparent;
    background-image: linear-gradient(125deg,
            rgba(150, 166, 255, 1) 0%,
            rgba(150, 166, 255, 1) 47%,
            rgba(225, 225, 255, 1) 49%,
            rgba(225, 225, 255, 1) 51%,
            rgba(150, 166, 255, 1) 53%,
            rgba(150, 166, 255, 1) 100%);
    background-size: 220% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: spotlight-shine 12s linear infinite;
    margin-top: 18px;
}

@keyframes spotlight-shine {
    0% {
        background-position: 130% 0;
    }

    100% {
        background-position: -110% 0;
    }
}

.spotlight-title {
    font-size: 2.45rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0;
    line-height: 1.1;
}

.spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.meta-chip-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-chip {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 400;
}

.spotlight-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}

.spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 1300px) {
    #projects-layout {
        height: 100%;
        flex: none;
    }

    #tool-list {
        display: none;
    }

    .edge-nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #projects-layout {
        grid-template-columns: 1fr;
        padding-left: 0;
        padding-right: 0;
    }

    #spotlight-section {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        align-items: start;
    }

    .tool-image-shell {
        height: 40dvh;
    }

    .spotlight-version {
        grid-column: 1;
    }

    .spotlight-title {
        grid-column: 1;
    }

    .spotlight-meta {
        grid-column: 1;
    }

    .spotlight-desc {
        grid-column: 1;
    }

    .spotlight-actions {
        grid-column: 1;
    }
    
    .tool-image-shell {
        transform: none;
        margin-bottom: 0;
    }

    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        padding: var(--spacing-large) var(--spacing-xlarge);
    }
}

@media (max-width: 800px) {
    #projects-layout {
        grid-template-columns: 1fr;
    }

    #spotlight-section {
        display: flex;
        flex-direction: column;
    }

    .tool-image-shell {
        height: 300px;
    }

    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        padding: var(--spacing-xlarge);
    }

    .edge-nav {
        width: 38px;
        height: 38px;
    }

    .edge-nav-left {
        left: 10px;
    }

    .edge-nav-right {
        right: 10px;
    }
}