/*
    Articles (subsection elements):
    - headers
    - descriptions
    - buttons
    - statistics
    - games
    - ... etc.
*/
@keyframes breathing {
    from {}
    50% {outline-color:gold}
    to {}
}
.articles {
    --this-gap: 20px;
    gap: 20px;
    /* padding-bottom: calc(var(--this-gap) * 0.25); */
}
.article__section {
    display: flex;
    flex-direction: column;
}
/* article header */
.article__header {
    --this-gap: 15px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /* gap: var(--gap); */
    background-color: var(--main-clr-three);
    clip-path:
        polygon(
            0px var(--this-gap), 
            var(--this-gap) 0px, 
            calc(100% - var(--this-gap)) 0px, 
            100% var(--this-gap), 
            100% 100%, 
            0px 100%
        )
    ;
}
.article__title {
    padding-left: 20px;
    font-size: 12px;
    font-weight: 700;
    width: 100%;
    background-color: var(--main-clr-one);
    color: var(--back-clr-one);
}
.article__name {
    --step: 1px;
    --this-clip: calc(var(--this-gap)/2);
    padding: 5px 5px 5px var(--this-gap);
    font-size: var(--h5);
    background-color: var(--back-clr-three);
    color: var(--main-clr-one);
    clip-path: polygon(
        var(--this-clip) 0px,
        calc(100% - var(--this-clip)) 0px,
        100% var(--this-clip),
        100% calc(100% - var(--this-clip)),
        calc(100% - var(--this-clip)) 100%,
        var(--this-clip) 100%,
        0px calc(100% - var(--this-clip)),
        0px var(--this-clip)
    );
    background-image:
        repeating-linear-gradient(
            to right,
            rgba(0,0,0,0.25) 0px,
            rgba(0,0,0,0.25) var(--step),
            rgba(0,0,0,0.5) var(--step),
            rgba(0,0,0,0.5) calc(var(--step)*2)
        )
    ;
}
.article__nest {
    display: flex;
    align-items: center;
    justify-content: center;
    /* transform-origin: center;
    transform: rotate(45deg); */
}
.article__description {
    --this-gap: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--this-gap);
    padding: 0px var(--this-gap);
    width: 100%;
}
.article__button {
    outline-offset: -2px;
    outline-width: 2px;
    outline-color: transparent;
    outline-style: solid;
    width: 20px;
    height: 20px;
    font-size: 16px;
    font-weight: 700;
    background-color: var(--main-clr-three);
    background-image: 
        linear-gradient(to right,
            transparent 0px,
            transparent calc(50% - 1px),
            var(--back-clr-three) calc(50% - 1px),
            var(--back-clr-three) calc(50% + 1px),
            transparent calc(50% + 2px)
        )
    ;
    cursor: pointer;
    transition: 0.3s linear;
    transform-origin: center;
    transform: rotate(-45deg);
}
.article__button:hover {
    background-color: var(--hover-clr);
}
.article:hover .article__button {
    animation: breathing 1s forwards;
}
.article__button--pushed {
    transform: rotate(0deg) !important;
}
.article__participants {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-around;
    height: 100%;
    min-width: 300px;
}
.article__score {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 40px;
    aspect-ratio: 1/1;
    font-size: var(--h4);
    font-weight: 700;
    background-image:
        linear-gradient(
            to top left,
            rgb(232, 232, 232), white
        )
    ;
    background: var(--important-clr);
    /* opacity: 0.85; */
}
.article__score--big {
    font-size: var(--h3);
}
.article__player { /* when one element */
    padding: var(--this-gap) 0px;
    font-size: var(--h4);
    font-weight: 700;
}
.article__participant { /* when there is a list of players */
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: rgba(0,0,0,0.75);
}
.article__participant:first-child {
    border-bottom: 2px solid rgba(0,0,0,0.25);
}
.article__footer {
    font-size: 10px;
    text-align: right;
    padding: 0 10px;
    background-color: var(--main-clr-three);
    clip-path: 
        polygon(
            0px 0px, 100% 0px, 
            100% calc(100% - var(--this-gap)),
            calc(100% - var(--this-gap)) 100%,
            0px 100%
        )
    ;
}
.article__stats {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--this-gap);
    /* gap: calc(var(--this-gap)/2); */
    align-self: center;
    margin-left: auto;
}
/* stats in a header of article */
.stats__item {
    --opacity: 0.5;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: space-between;
    min-width: var(--this-gap);
    background-color: var(--main-clr-two);
    cursor: default;
}
.stats__item--g {
    --this-clr: var(--games-played-clr);
}
.stats__item--w {
    --this-clr: var(--games-won-clr);
}
.stats__item--l {
    --this-clr: var(--games-lost-clr);
}
.stats__item--d {
    --this-clr: var(--games-draw-clr);
}
.stats__item--p {
    --this-clr: var(--games-rate-clr);
}
.item__title {
    line-height: 80%;
    transform: scale(1, 0.5);
    /* color: var(--this-clr); */
}
.item__value {
    --bdr-wdth: 7px;
    --rgb-code: 0;
    color: var(--this-clr);
    border-style: solid;
    border-width: var(--bdr-wdth);
    border-top-width: calc(var(--bdr-wdth)/2);
    border-bottom-width: calc(var(--bdr-wdth)*2);
    border-top-color: rgba(var(--rgb-code),var(--rgb-code),var(--rgb-code),0.7);
    border-right-color: rgba(var(--rgb-code),var(--rgb-code),var(--rgb-code),0.45);
    border-left-color: rgba(var(--rgb-code),var(--rgb-code),var(--rgb-code),0.45);
    border-bottom-color: rgba(var(--rgb-code),var(--rgb-code),var(--rgb-code),0.15);
    border-bottom-color: rgba(var(--rgb-code),var(--rgb-code),var(--rgb-code),0.15);
    /* background-color: var(--this-clr); */
    background-color: var(--back-clr-one);
    background-clip: content-box;
}
/* content */
.article__content {
    display: flex;
    align-items: stretch;
    padding: 0px 3px;
    height: 10px;
    transition: 0.3s linear;
    overflow: hidden;
    transition: 0.3s linear;
}
.article__games {
    --step: 1px;
    --shadow: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--back-clr-three);
    background-image:
        repeating-linear-gradient(
            to right,
            rgba(0,0,0,0.25) 0px,
            rgba(0,0,0,0.25) var(--step),
            rgba(0,0,0,0.5) var(--step),
            rgba(0,0,0,0.5) calc(var(--step)*2)
        )
    ;
    /* padding-top: calc(var(--this-gap) + var(--shadow)/2);
    border-bottom: 2px solid rgba(0,0,0,0.25); */
    box-shadow: inset 0px var(--shadow) calc(var(--shadow)/2) 0px rgba(0, 0, 0, 0.25);
}
.article__statistics {
    --step: 1px;
    display: flex;
    flex-direction: column;
    padding: 10px 0px;
    width: 100%;
    transition: 1.3s;
    overflow: hidden;
}
/* footer */
.article__footer {
    --this-clip: calc(var(--this-gap)/2);
    font-size: 10px;
    text-align: right;
    padding: 0 var(--this-gap);
    background-color: var(--main-clr-three);
    clip-path: 
        polygon(
            0px 0px, 100% 0px, 
            100% calc(100% - var(--this-clip)),
            calc(100% - var(--this-clip)) 100%,
            0px 100%
        )
    ;
}