@import "../../less/variables.less";

.navButtonGroup {
    margin-bottom: 20px;

    @media (max-width: 480px) {
        display: flex;
    }
}

.navButton {
    border-radius: 2px;
    display: block;
    text-decoration: none;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    flex: 1;
}

.addRecordButton {
    composes: navButton;
    border: 1px solid @color-primary;
    background-color: @color-primary;
    color: #fff;
    margin-bottom: 8px;

    @media (max-width: 480px) {
        margin-right: 10px;
        margin-bottom: 0;
    }
}

.manageRatingButton {
    composes: navButton;
    border: 1px solid @color-primary;
    color: @color-primary;
}

.sort {
    padding-bottom: 20px;
    font-size: 14px;
    word-break: break-all;
}

.toc {
    font-size: 14px;
    padding-top: 8px;
    line-height: 2;

    a {
        color: @color-primary;
        margin-right: 8px;
        text-decoration: none;
    }
}

.mobileFilterToggle {
    float: right;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;

    @media (min-width: 481px) {
        display: none;
    }
}

.group {
    border-top: 1px solid @color-border;
    font-size: 15px;
    padding-top: 10px;

    &:global(#group1) {
        border-top: 0;
        padding-top: 0;
    }
}

.groupTitle {
    margin: 0;
    line-height: 2;
    padding-bottom: 16px;
    font-size: 15px;
    font-weight: normal;
    color: @color-text-dark;
}

@group-item-hpadding: 8px;

.groupItems {
    margin-left: -@group-item-hpadding;
    padding-bottom: 8px;
}

.groupItem {
    // TODO: css module
    padding-bottom: 8px;

    a {
        display: inline-block;
        padding: 0 @group-item-hpadding;
        line-height: 2;
        text-decoration: none;
        color: @color-text-light;
        cursor: pointer;

        &:hover, &:global(.active) {
            border-radius: 4px;
            background: @color-text-light;
            color: #fff !important;
        }
    }

    :global(.item-status) {
        margin-left: 8px;
        font-weight: bold;
        white-space: nowrap;
    }

    :global(.item-updated) {
        margin-left: 8px;
        font-size: 12px;
        color: #ff8c00;
    }

    &:global(.item-watching) {
        a {
            color: #000;
            font-weight: bold;
            &:hover, &:global(.active) {
                background-color: @color-main;
                :global(.item-status) {
                    color: #fff;
                }
            }
        }
        :global(.item-status) {
            color: @color-main;
        }
    }
}

.notice {
    border: 1px solid @color-border;
    background-color: @color-bg-lightest;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;

    h3 {
        font-size: 1.2em;
        display: block;
        margin: 0;
        padding-bottom: 5px;
    }
    
    p {
        margin: 0;
        color: @color-text-dark;

        a {
            color: @color-text-light;
        }
    }
}

.empty {
    text-align: center;

    h1 {
        font-size: 1.5em;
        font-weight: normal;
    }

    p {
        color: @color-text-dark;

        a {
            color: @color-primary;
        }
    }
}

