/*
 * @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: var(--color-accent1);
            }
        }
    }

    /* 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;
                }

           /* Default - 24px überall */
.award-icon {
    font-size: 24px;
}



                /* 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;
            }
        }
    }
}

/* NUR für Spielerverzeichnis */
.player-directory-awards h2 {
    margin-bottom: 15px;
}

.player-directory-awards {
	    padding: 30px;
    margin-bottom: 30px;
}

/* Awards nebeneinander */
.player-directory-awards .awards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

/* Award Item - 45x45 mit weißem Rahmen */
.player-directory-awards .awards-list-item {
    width: 35px;
    height: 35px;
    border: 2px solid var(--color-main);
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    cursor: help;
    transition: transform 0.2s ease;
    position: relative;
}

/* Wrapper */
.player-directory-awards .award-image-text-wrapper {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon Größe */
.player-directory-awards .award-icon {
    font-size: 15px !important;
}

.player-directory-awards img {
    max-width: 35px !important;
    max-height: 35px !important;
}

/* Text als Tooltip - versteckt by default */
.player-directory-awards .award-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 100;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;
}

/* Award-Text Styling */
.player-directory-awards .award-text p {
    margin: 0 !important;
    padding: 0 !important;
    font-weight: bold;
}

.player-directory-awards .award-text .award-description {
    font-weight: normal;
    font-size: 12px;
    margin-top: 5px !important;
}

/* Tooltip Pfeil */
.player-directory-awards .award-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* Hover - Tooltip zeigen */
.player-directory-awards .awards-list-item:hover .award-text {
    opacity: 1;
    visibility: visible;
}

/* Datum verstecken */
.player-directory-awards .award-receive-date {
    display: none !important;
}

/* Hover - Icon größer */
.player-directory-awards .awards-list-item:hover {
    transform: scale(1.2);
    z-index: 10;
}

.award-image-text-wrapper i {
    color: var(--main);

}

/* Sharp Thin - font-weight 100 */
.award-image-text-wrapper i.fa-thin {
    font-weight: 100 !important;
}

/* Sharp Light - font-weight 300 */
.award-image-text-wrapper i.fa-light {
    font-weight: 300 !important;
}

/* Sharp Regular - font-weight 400 */
.award-image-text-wrapper i.fa-regular {
    font-weight: 400 !important;
}

/* Sharp Solid - font-weight 900 */
.award-image-text-wrapper i.fa-solid {
    font-weight: 900 !important;
}

