/*
 * @file
 * Stylesheet for the Awards plugin.
 *
 * This file defines the visual presentation for the awards section in the user control panel.
 */

#awards-index, #awards-member-profile {
    /* Remove default styling of elements. */
    p {
        margin: 0;
    }
    /* Awards section overall styling. */
    display: flex;
    flex-direction: column;
    gap: 1rem;

    /* Styling for the progress bar section. */
    #progress {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        /* Styling for the progress information (e.g., counts). */
        #progress-info {
            display: flex;
            justify-content: space-between;
        }

        /* Styling for the progress bar container. */
        #progress-bar {
            position: relative;
            height: 1rem;
            border: white 1px solid;

            /* Styling for the actual progress indicator within the bar. */
            #progress-bar-progress {
                /* width is set via style in template because the value is calculated via PHP. */
                height: 100%;
                position: absolute;
                background: cyan;
            }
        }
    }

    /* Styling for the category selection buttons. */
    #awards-category-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;

        /* Styling for the currently selected category button. */
        .selected-category {
            background: darkgray;
            color: black;
        }
    }

    /* Styling for the claimable awards section. */
    #claimable-awards {
        /* Hidden by default, visibility controlled by JavaScript. */
        display: none;

        /* Styling for the claim award button. */
        .claim-award-button {
            height: fit-content;
            align-self: center;
        }
    }

    /* General styling for all award lists. */
    .awards-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        /* Styling for individual award list items. */
        .awards-list-item {
            display: flex;
            justify-content: space-between;
            border: 1px solid;
            padding: 0.5rem;

            /* Wrapper for award image/icon and text. */
            .award-image-text-wrapper {
                display: flex;
                gap: 1rem;

                .award-image-glow {
                    -webkit-box-shadow:0 0 8px 4px rgba(255,217,0,1);
                    -moz-box-shadow: 0 0 8px 4px rgba(255,217,0,1);
                    box-shadow: 0 0 8px 4px rgba(255,217,0,1);
                }

                /* Styling for award images. */
                .award-image {
                    height: 64px;
                    max-height: 64px;
                    width: 64px;
                    max-width: 64px;
                    overflow: hidden;
                }

                /* Styling for award icons (e.g., Font Awesome). */
                .award-icon {
                    font-size: 64px;
                }

                /* Styling for the text content of an award. */
                .award-text {
                    display: flex;
                    flex-direction: column;
                    gap: 0.25rem;
                    align-self: center
                }

                /* Styling for the award description. */
                .award-description {
                    color: gray;
                }
            }

            /* Styling for the award receive date. */
            .award-receive-date {
                align-self: center;
                color: gray;
            }
        }
    }
}