﻿@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#background {
    width: 100vw;
    height: 100vh;
    position: fixed;
    background: #1A1A1E;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

body {
    width: 100%;
    height: 100vh;

    margin: 0;
    padding: 0;

    display: flex;
    flex-flow: row wrap;
}

header {
    width: 100%;
    height: 7%;
    padding: 0 20px 0 20px;
    background-color: #121214;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .header-element {
        height: 2.5em;
        margin: 0 12px 0 12px;
        padding: 8px;
        display: flex;
        align-items: center;
        font-size: 1rem;
        font-family: Montserrat;
        font-weight: 700;
        color: white;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .header-element:active {
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

        .header-element:hover {
            background-color: rgba(94,180,121, 0.08);
        }

            .header-element > span {
                width: 20px;
                height: 20px;
                margin-right: 8px;
            }

        .header-element > img {
            height: 125%;
            margin-right: 8px;
            border-radius: 50%;
        }

        .header-login {
            color: #5EB479;
            border: thin solid #5EB479;
            padding: 0px 12px 0px 12px;
        }

        .header-logged {
            color: #F87E7A;
        }

            .header-logged:hover {
                background-color: rgba(248, 126, 122, 0.08)
            }

        .ripple-link {
            position: relative;
            overflow: hidden;
        }

            .ripple-circle {
                position: absolute;
                border-radius: 50%;
                transform: scale(0);
                background: inherit;
                animation: ripple-effect 600ms linear;
                pointer-events: none;
            }

                @keyframes ripple-effect {
                    to {
                        transform: scale(4);
                        opacity: 0;
                    }
                }
#logout {
    position: fixed;
    top: 6%;
    right: 20px;
    z-index: 2;
    height: 2.5em;
    margin: 0 12px 0 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-family: Montserrat;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    background: #242429;
    display: none;
}
        #logout > span {
            width: 20px;
            height: 20px;
            margin-right: 4px;
        }

            #logout > span > svg {
                fill: white;
            }

        #logout:active {
            transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), color 250ms cubic-bezier(0.4, 0, 0.2, 1);
        }

        #logout:hover {
            background-color: rgba(46,46,51,1);
        }

        .hidden {
            display: flex !important;
        }


main {
    width: 100%;
    height: 86%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

    main > h1 {
        font-family: Montserrat;
        font-weight: 700;
        font-size: 2rem;
    }

footer {
    width: 100%;
    height: 7%;
    display: grid;
    place-content: center;
    font-family: Montserrat;
    font-weight: 500;
    color: #6E6F75;
}





.discord-profile {
    width: 420px;
    margin: 50px auto;
    background: #2b2d31; /* Discord dark */
    border-radius: 12px;
    padding: 20px;
    color: #dbdee1;
    font-family: "gg sans", "Segoe UI", Arial, sans-serif;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.discord-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #1e1f22;
}

.discord-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid #1e1f22;
    object-fit: cover;
    margin-bottom: 10px;
}

.discord-username {
    font-size: 18px;
    font-weight: 600;
}

.discord-section {
    margin-top: 14px;
    padding: 12px;
    background: #1e1f22;
    border-radius: 10px;
}

.discord-label {
    font-size: 12px;
    color: #949ba4;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discord-value {
    font-size: 14px;
    color: #dbdee1;
}

.discord-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.discord-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.15s ease;
}

.discord-btn-primary {
    background: #5865f2;
    color: white;
}

    .discord-btn-primary:hover {
        background: #4752c4;
    }

.discord-btn-danger {
    background: #ed4245;
    color: white;
}

    .discord-btn-danger:hover {
        background: #c03537;
    }





/* kontener */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    padding: 20px;
}

/* karta serwera */
.server-card {
    background: #2b2d31;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: 0.2s ease;
    border: 1px solid rgba(255,255,255,0.04);
}

    .server-card:hover {
        transform: translateY(-3px);
        border-color: rgba(88, 101, 242, 0.4); /* discord blurple */
    }

/* nagłówek serwera */
.server-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

    /* “kropka online” */
    .server-title::before {
        content: "";
        width: 8px;
        height: 8px;
        background: #23a55a;
        border-radius: 50%;
        display: inline-block;
    }

/* lista graczy */
.player-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* pojedynczy gracz */
.player {
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: #232428;
    transition: 0.15s;
    font-size: 14px;
}

    .player:hover {
        background: #313338;
        transform: translateX(3px);
    }

/* brak graczy */
.empty {
    color: #949ba4;
    font-style: italic;
    font-size: 13px;
}