﻿.glitch-detail {
    position: relative;
    align-self: start;
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: 75vw;
    height: 80vh;
    max-width: 75vw;
    max-height: 80vh;

    display: grid;
    grid-template-rows: auto 1fr;
    
    background-color: #1e1e1e;
    color: #f0f0f0;
    margin: 0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

    .glitch-detail h2 {
        margin: 0 0 .5rem 0;
        border-bottom: 1px solid #333;
        padding-bottom: .25rem;
    }

    .glitch-detail h4 {
        margin: 1.25rem 0 .5rem;
    }

.glitch-detail-content {
    grid-row: 2;
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 2rem;
    align-items: start;
    align-self: start;    
    min-height: 0;
    overflow: auto;
}

    .glitch-detail-content > * {
        min-width: 0;
    }

.glitch-detail-left {
    grid-column: 1;
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: start;
    border-right: 1px solid #333;
    padding-right: 10px;
    justify-items: center;
    overflow: hidden;
}

.items-scroll {
    overflow: auto;
    max-height: 30vh;
    min-height: 0;
    width: 100%;
    max-width: none;
    text-align: center;
}

    .items-scroll h4 {
        text-align: center;
    }

.glitch-detail-right {
    grid-column: 2;
    overflow: auto;
    max-height: 70vh;
    align-items: start;
    font-family: 'Franklin Gothic Medium','Arial Narrow',Arial,sans-serif;
}

    .glitch-detail-right h4 {
        font-family: 'OoTMapFont', sans-serif;
    }

    .glitch-detail-right li {
        margin: 0;
        margin-bottom: .5rem;
        padding-left: 10px;
    }

.requirement-line {
    margin: .5rem 0;
    text-align: center;
    display: inline-flex;
    color: white;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
}

    .requirement-line img {
        vertical-align: middle;
    }

.required-item,
.required-item-small {
    margin-right: 0.25rem !important;
    width: auto;
    height: 25px;
}

.required-item-small {
    height: 20px;
}

.or-text {
    display: block;
    margin-top: .25rem;
    font-weight: bold;
    color: steelblue;
}


.difficulty {
    font-weight: bold;
    margin: .5rem 0;
    font-family: 'OoTMapFont', sans-serif;
}

    .difficulty.easy {
        color: green;
    }

    .difficulty.intermediate {
        color: goldenrod;
    }

    .difficulty.advanced {
        color: red;
    }

    .difficulty.pro {
        color: rebeccapurple;
    }

.glitch-description {
    
    margin: .5rem 0 0 .3rem;
}

.inline-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 .25rem;
}

.glitch-ref {
    color: #1b6ec2;
    text-decoration: none;
    border-bottom: 1px dashed #1b6ec2;
    font-family: 'OoTMapFont', sans-serif;
}

    .glitch-ref:hover {
        color: #fff;
        background: #1b6ec2;
    }

.video-wrap {
    width: 100%;
    max-width: none;
    margin: .5rem auto;
}

.video-aspect {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

    .video-aspect .player-host {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

        .video-aspect .player-host iframe {
            width: 100% !important;
            height: 100% !important;
            display: block;
        }

@media (max-width: 900px) {
    .glitch-detail-content {
        grid-template-columns: 1fr;
    }

    .glitch-detail-left {
        border-right: 0;
        padding-right: 0;
    }
}

.glitch-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid lightsteelblue;
    overflow: hidden;
    flex-shrink: 0;
    padding: 5px;
}

.glitch-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.thumbnail-difficulty {
    padding: 2px;
    position: absolute;
    margin: 4px;
    background: black;
    border: 2px solid steelblue;
    border-radius: 5px;
}

    .thumbnail-difficulty.easy {
        border: 2px solid green;
    }

    .thumbnail-difficulty.intermediate {
        border: 2px solid goldenrod;
    }

    .thumbnail-difficulty.advanced {
        border: 2px solid red;
    }

    .thumbnail-difficulty.pro {
        border: 2px solid rebeccapurple;
    }

.glitch-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.15);
    transition: background 0.15s ease;
}

.glitch-thumb:hover .glitch-thumb-play {
    background: rgba(0,0,0,0.35);
}

.glitch-thumb-title-wrapper {
    display: flex;
    flex-direction: row;
    align-content: flex-start;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.glitch-thumb-title,
.glitch-thumb-video-title {
    padding: 4px 6px;
    font-size: 1rem;
    background: transparent;
    color: lightsteelblue;
}

.glitch-thumb-title {
    font-size: 1.5rem;
}

.glitch-sidebar-scoller {
    height: 100%;
    overflow: hidden;
}

.glitch-grid {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
}