@use "../../../../../styles/abstracts/variables";
@use "../../../../../styles/abstracts/mixins";

.user {
    @include mixins.adminPageIntro;
    margin-top: 1.2rem;
    width: 100%;
    overflow-x: hidden;
    @media only screen and (max-width: 1000px) {
        margin-top: -.5rem;
    }

    &__header{
        display: flex;
        align-items: center;
        justify-content: space-between;
        @media only screen and (max-width: 1000px) {
            flex-direction: column;
            align-items: flex-start;
        }

        &__helper{
            display: flex;
            align-items: center;
            gap: 10px;
            @media only screen and (max-width: 1000px) {
                padding-top: 1rem;
                padding-bottom: 2rem;
                width: 100%;
            }

            &--back {
                background: variables.$col-active-btn-bg;
                color: variables.$col-white;
                padding: .5rem 1rem;
                font-weight: 400;
                font-size: .8rem;
                border-radius: 6px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                @media only screen and (max-width: 1000px) {
                    width: 100%;
                }
            }

            &--actions {
                @extend .user__header__helper--back;
                background: variables.$col-orange;
                color: variables.$col-dark;
                font-weight: 500;

                &--links {
                    position: fixed;
                    inset: 0;

                    background: rgba(0, 0, 0, 0.72);

                    backdrop-filter: blur(10px);

                    z-index: 999;

                    display: flex;
                    justify-content: flex-end;

                    animation: fadeIn 0.2s ease;

                    &--content {
                        width: 360px;

                        height: 100vh;

                        overflow-y: auto;

                        padding: 1.5rem;

                        background: linear-gradient(
                        180deg,
                        rgba(17, 17, 17, 0.98) 0%,
                        rgba(11, 11, 11, 0.98) 100%
                        );

                        border-left: 1px solid rgba(255, 255, 255, 0.06);

                        box-shadow:
                        -20px 0 60px rgba(0, 0, 0, 0.4);

                        position: relative;

                        @media (max-width: 768px) {
                        width: 100%;
                        padding: 1.25rem;
                        }

                        > span {
                        position: absolute;

                        top: 1.25rem;
                        right: 1.25rem;

                        padding: 0.4rem 0.75rem;

                        border-radius: 8px;

                        background: rgba(239, 68, 68, 0.12);

                        color: #ef4444;

                        font-size: 0.7rem;
                        font-weight: 600;

                        cursor: pointer;

                        transition: 0.2s ease;

                        &:hover {
                            background: rgba(239, 68, 68, 0.18);
                        }
                        }

                        h2 {
                        color: #fff;

                        font-size: 1rem;
                        font-weight: 600;

                        margin-bottom: 0.35rem;

                        padding-right: 5rem;
                        }

                        > p {
                        color: rgba(255, 255, 255, 0.62);

                        font-size: 0.78rem;

                        line-height: 1.65;

                        margin-bottom: 1.4rem;
                        }
                    }

                    &--menu {
                        display: flex;
                        flex-direction: column;

                        gap: 0.65rem;

                        button {
                        width: 100%;

                        display: flex;
                        align-items: center;

                        gap: 0.85rem;

                        padding: 0.8rem;

                        border: 1px solid rgba(255, 255, 255, 0.05);

                        background: rgba(255, 255, 255, 0.02);

                        border-radius: 12px;

                        text-align: left;

                        cursor: pointer;

                        transition: all 0.2s ease;

                        color: #fff;

                        &:hover {
                            transform: translateY(-1px);

                            border-color: rgba(255, 255, 255, 0.08);

                            background: rgba(255, 255, 255, 0.04);
                        }

                        > span {
                            width: 38px;
                            height: 38px;

                            display: flex;
                            align-items: center;
                            justify-content: center;

                            background: rgba(255, 255, 255, 0.04);

                            border-radius: 10px;

                            font-size: 0.95rem;

                            flex-shrink: 0;
                        }

                        div {
                            display: flex;
                            flex-direction: column;

                            min-width: 0;
                        }

                        h4 {
                            margin: 0;

                            color: #fff;

                            font-size: 0.75rem;
                            font-weight: 500;

                            line-height: 1.3;
                        }

                        p {
                            margin-top: 0.18rem;

                            color: rgba(255, 255, 255, 0.52);

                            font-size: 0.7rem;

                            line-height: 1.45;
                        }
                        }
                    }
                    }

                    .dangerAction {
                        border-color: rgba(239, 68, 68, 0.12) !important;

                        &:hover {
                            border-color: rgba(239, 68, 68, 0.25) !important;

                            background: rgba(239, 68, 68, 0.04) !important;
                        }

                        > span {
                            background: rgba(239, 68, 68, 0.08) !important;
                        }

                        h4 {
                            color: #ef4444 !important;
                        }
                    }

                    @keyframes fadeIn {
                    from {
                        opacity: 0;
                    }

                    to {
                        opacity: 1;
                    }
                    }

                    .dangerAction {
                    border-color: rgba(239,68,68,.12) !important;

                    &:hover {
                        border-color: rgba(239,68,68,.25) !important;
                        background: rgba(239,68,68,.04) !important;
                    }

                    > span {
                        background: rgba(239,68,68,.08) !important;
                    }

                    h4 {
                        color: #ef4444 !important;
                    }
                    }

                    @keyframes fadeIn {
                    from {
                        opacity: 0;
                    }

                    to {
                        opacity: 1;
                    }
                    }
            }
        }
    }

    &__summary {
        margin-bottom: 2rem;

        h1 {
            font-size: 0.85rem;
            font-weight: 500;
            color: variables.$col-white;
            margin-bottom: 1rem;
            letter-spacing: 0.02em;
        }

        &__content {
            display: grid;

            grid-template-columns: repeat(
            auto-fit,
            minmax(220px, 1fr)
            );

            gap: 1rem;
        }

        &__content--item {
            position: relative;

            padding: 1.2rem;

            border-radius: 16px;

            background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.015) 100%
            );

            border: 1px solid rgba(255, 255, 255, 0.06);

            backdrop-filter: blur(10px);

            overflow: hidden;

            transition:
            transform 0.25s ease,
            border-color 0.25s ease,
            box-shadow 0.25s ease;

            &:hover {
            transform: translateY(-2px);

            border-color: rgba(
                variables.$col-orange,
                0.35
            );

            box-shadow:
                0 10px 25px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(
                variables.$col-orange,
                0.08
                );
            }

            &::before {
            content: "";

            position: absolute;

            top: 0;
            left: 0;

            width: 100%;
            height: 3px;

            background: linear-gradient(
                90deg,
                variables.$col-orange,
                rgba(
                variables.$col-orange,
                0.2
                )
            );
            }

            h6 {
                margin: 0 0 0.75rem;

                font-size: 0.75rem;

                font-weight: 500;

                text-transform: uppercase;

                // letter-spacing: 0.08em;

                color: rgba(
                    variables.$col-white,
                    0.6
                );
            }

            p {
                margin: 0;

                font-size: 1rem;

                font-weight: 500;

                color: variables.$col-white;

                letter-spacing: -0.02em;

                line-height: 1.2;
            }

            &--active {
                display: inline-flex;

                align-items: center;
                justify-content: center;

                width: fit-content;

                padding: 0.45rem 0.85rem;

                border-radius: 999px;

                background: rgba(
                    34,
                    197,
                    94,
                    0.12
                );

                border: 1px solid rgba(
                    34,
                    197,
                    94,
                    0.25
                );

                color: #22c55e !important;

                font-size: 0.75rem !important;

                font-weight: 600 !important;
            }

            &--notactive {
                display: inline-flex;

                align-items: center;
                justify-content: center;

                width: fit-content;

                padding: 0.45rem 0.85rem;

                border-radius: 999px;

                background: rgba(
                    239,
                    68,
                    68,
                    0.12
                );

                border: 1px solid rgba(
                    239,
                    68,
                    68,
                    0.25
                );

                color: #ef4444 !important;

                font-size: 0.75rem !important;

                font-weight: 600 !important;
            }
        }
        }



    &__details {
        margin-bottom: 2rem;

        h1 {
            font-size: 0.85rem;
            font-weight: 500;
            color: variables.$col-white;
            margin-bottom: 1rem;
            letter-spacing: 0.02em;
        }

    &__content {
        background: rgba(255, 255, 255, 0.015);

        border: 1px solid rgba(255, 255, 255, 0.04);

        border-radius: 14px;

        overflow: hidden;
        }

        &__content--item {
            display: grid;

            grid-template-columns: 220px 1fr;

            gap: 1rem;

            align-items: center;

            padding: 1rem 1.4rem;

            border-bottom: 1px solid rgba(255, 255, 255, 0.04);

            transition: background 0.2s ease;

            &:last-child {
                border-bottom: none;
            }

            &:hover {
                background: rgba(
                variables.$col-orange,
                0.02
                );
            }

        @media only screen and (max-width: 900px) {
            grid-template-columns: 1fr;

            gap: 0.35rem;

            padding: 1rem;
        }

        h6 {
            margin: 0;

            font-size: 0.72rem;

            font-weight: 500;

            text-transform: uppercase;

            letter-spacing: 0.08em;

            color: rgba(
            variables.$col-white,
            0.5
            );
        }

        p {
            margin: 0;

            color: variables.$col-white;

            font-size: 0.8rem;

            font-weight: 500;

            line-height: 1.6;
        }

        &--active {
            display: inline-flex;

            align-items: center;

            padding: 0.35rem 0.75rem;

            border-radius: 999px;

            background: rgba(
            34,
            197,
            94,
            0.08
            );

            color: #22c55e !important;

            font-size: 0.72rem !important;

            font-weight: 600 !important;
        }

        &--notactive {
            display: inline-flex;

            align-items: center;

            padding: 0.35rem 0.75rem;

            border-radius: 999px;

            background: rgba(
            239,
            68,
            68,
            0.08
            );

            color: #ef4444 !important;

            font-size: 0.72rem !important;

            font-weight: 600 !important;
        }
        }
    }
}

