
.edd-course-curriculum {
    margin-bottom: 1em;

    .edd-course-item {
        border: 1px solid rgba( 0, 0, 0, 0.15 );
        &:not(:last-child) {
            margin-bottom: 1em;
        }

        .edd-course-item-title {
            margin: 0;
            font-size: 14px;
            font-weight: 400;
            padding: 1em;

            .eddc-free-preview {
                float: right;
                padding: 0.25em 0.5em;
                color: #fff;
                background: #428bca;
                border-color: #357ebd;
                border-radius: 5px;
                text-transform: uppercase;
                font-size: .875em;
            }

            &:after {
                display: table;
                content: '';
                clear: both;
            }
        }

        &.edd-course-item-module {
            > .edd-course-item-title {
                font-weight: 600;
                background: rgba( 0, 0, 0, 0.05 );
            }

            .edd-course-module-items {
                .edd-course-item {
                    margin-bottom: 0;
                    border-left: none;
                    border-right: none;
                    border-bottom: none;
                }
            }
        }
    }
}

.edd-course {
    display: flex;
    width: 100%;
    margin: 0 auto;
    max-width: 1920px;
    height: 100vh;
    position: relative;

    .edd-course-info {
        width: 320px;
        height: 100%;
        overflow-y: auto;
        position: absolute;
        top: 0;
        left: 0;
        background: $dark;
        color: $white;
        transform: translateX(-100%);
        transition: transform .2s ease-in-out,-webkit-transform .2s ease-in-out;

        .attachment-post-thumbnail {
            display: block;
            width: 100%;
            height: auto;
        }

        h1 {
            margin: 0;
            background: $blue;
            color: white;
            padding: 1em;
            font-size: 1em;
            height: 3em;
            line-height: 1;
            font-weight: 600;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;        
        }

        .edd-course-progress {
            font-size: 0.75em;
            background: $dark;
            color: $white;
            padding: 0.5em 1.25em;
            
        }
    }

    .edd-course-item {
        border-color: lighten($color: $dark, $amount: 5);
        border-width: 1px 0 1px 0;
        background: lighten($color: $dark, $amount: 20);
        .edd-course-item-title {
            color: $white;

            a {
                color: inherit;
            }
        }

        &.edd-course-item-module {
            border-top-width: 4px;
            > .edd-course-item-title {
                background: $dark;
            }
        }

        &.edd-course-item-has-icon {
            .edd-course-item-title { 
                position: relative;
            }

        }

        &.edd-course-item-completed {
            .edd-course-item-completed-icon {
                color: $blue;
                opacity: 1;
            }
        }

        &.edd-course-item-no-preview {
            opacity: 0.5;
        }

        .edd-course-item-completed-icon {
            width: 1.25em;
            height: 1.25em;
            margin-right: 0.5em;
            display: inline-block;
            vertical-align: middle;
            opacity: 0.5;
            color: lighten($color: $dark, $amount: 35);
        }

    }

    .edd-course-current-item {
        .edd-course-item-title {
            font-weight: 600;
        }
    }
    
    .edd-course-item-content {
        width: 100%;
        height: 100%;
        padding: 4em 2em 2em 2em;
        overflow-y: auto;
        margin-left: 0px;
        transition: margin-left .2s ease-in-out;

        .edd-course-item-content-header {
            position: fixed;
            background: $dark;
            color: $white;
            top: 0;
            left: 0;
            width: 100%;
            margin-left: 0;
            height: 3em;
            padding: 1em 1em 1em 4em;
            font-size: 1em;
            transition: margin-left .2s ease-in-out;

            h2 {
                font-size: 1em;
                margin: 0;
                padding: 0;
                color: $white;
            }

            .toggle-curriculum {
                padding: 0;
                height: 1em;
                width: 1.5em;
                position: absolute;
                left: 2em;
                top: 0;
                bottom: 0;
                margin: auto;
                border: none;
                box-shadow: none;
                background: none;
                
                .bar {
                    display: block;
                    width: 100%;
                    height: 4px;
                    background: $white;
                    border-radius: 3px;

                    &:not(:last-child) {
                        margin-bottom: 2px;
                    }
                }

                &:hover,
                &:active,
                &:focus {
                    border: none;
                    box-shadow: none;
                    .bar {
                        background: $blue;
                    }
                }
            }
        }

        .edd-course-video-container { 
            width: 100%; 
            padding-bottom: 56.25%; /* 16:9 */
            padding-top: 25px;
            margin-bottom: 1em;
            height: 0;
            position: relative;

            iframe {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
            }

            &.video-js {
                &.vjs-paused {
                    .vjs-big-play-button { display: block; }
                }
                &.vjs-seeking,
                &.vjs-waiting {
                    .vjs-big-play-button { display: none; }
                }
                .vjs-big-play-button {
                    right: 0;
                    bottom: 0;
                    left: 0;
                    top: 0;
                    margin: auto;
                    background: $blue;
                    color: $white;
                    border-radius: 50%;
                    width: 50px;
                    height: 50px;
                }
            }
        }
    }

    &.open-course-info {
        .edd-course-info {
            transform: translateX(0);
        }

        .edd-course-item-content {
            margin-left: 320px;
            .edd-course-item-content-header {
                margin-left: 320px;
            }
        }
    }

    @media screen and (min-width: 768px) {
        .edd-course-info {
            transform: translateX(0);
        }

        .edd-course-item-content {
            margin-left: 320px;
            .edd-course-item-content-header {
                margin-left: 320px;
            }
        }
    }
}

.admin-bar {
    .edd-course {
        height: calc( 100vh - 32px );

        .edd-course-item-content .edd-course-item-content-header {
            top: 32px;
        }
    }
}

.edd-course-item-unavailable {
    width: 100%;
    text-align: center;
    background: rgba( $blue, 0.25 );
    border: 2px solid $blue;
    border-radius: 5px;
    padding: 2em;

    svg {
        color: $blue;
        max-width: 50%;
        max-height: 100px;
    }
}