/* -------------------------------------------
    Circle Info
---------------------------------------------- */

@import '../../../assets/sass/config';
@import '../../assets/sass/mixins/direction';
@import '../../assets/sass/mixins/mixins';

.ci-wrapper {
    --alpha-ci-size: 40rem;
    --alpha-ci-circle-bg-color: #fff;
    --alpha-ci-link-size: 7rem;
    --alpha-ci-icon-size: 2.5rem;
    --alpha-ci-icon-color: #fff;
    --alpha-ci-svg-stroke-color: #fff;
    --alpha-ci-svg-fill-color: #fff;
    --alpha-ci-link-bg-color: #111;
    --alpha-ci-icon-color-active: #fff;
    --alpha-ci-svg-stroke-color-active: #fff;
    --alpha-ci-svg-fill-color-active: #fff;
    --alpha-ci-link-bg-color-active: var(--alpha-primary-color);
    --alpha-ci-link-border-color-active: var(--alpha-primary-color);
    --alpha-ci-link-border-size: 1px;
    --alpha-ci-link-border-color: #111;
    --alpha-ci-link-spacing: 10px;
    --alpha-ci-content-padding: 4rem;
}

.ci-wrapper {
    position: relative;
    width: 80vw;
    height: 80vw;
    max-width: var(--alpha-ci-size);
    max-height: var(--alpha-ci-size);
    margin: 0 auto;
    border-radius: 50%;
    border: 1px solid #111;
    background-color: var(--alpha-ci-circle-bg-color);

    .ci-icons-wrapper {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        z-index: 1;
        transition: 1.5s transform ease-in-out;
    }

    .ci-icon-link {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        padding: var(--alpha-ci-link-spacing);
        width: var(--alpha-ci-link-size);
        height: var(--alpha-ci-link-size);
        background-color: var(--alpha-ci-link-bg-color);
        border-radius: 100%;
        cursor: pointer;
        border: var(--alpha-ci-link-border-size) solid var(--alpha-ci-link-border-color);
        color: var(--alpha-ci-icon-color);
        margin: auto;
        font-size: var(--alpha-ci-icon-size);
        transition: .5s background ease-in-out, .5s border-color ease-in-out, .5s color ease-in-out, .7s transform ease-in-out;
        z-index: 9;

        >span {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            transition: 2s transform ease-in-out;
        }

        &.active {
            color: var(--alpha-ci-icon-color-active);
            background-color: var(--alpha-ci-link-bg-color-active);
            border-color: var(--alpha-ci-link-border-color-active);
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 100%;
        }

        svg {
            width: var(--alpha-ci-icon-size);
            height: var(--alpha-ci-icon-size);
            stroke: var(--alpha-ci-svg-stroke-color);
            fill: var(--alpha-ci-svg-fill-color);
            transition: .5s stroke ease-in-out, .5s fill ease-in-out, .7s transform ease-in-out;
        }

        &.active svg {
            stroke: var(--alpha-ci-svg-stroke-color-active);
            fill: var(--alpha-ci-svg-fill-color-active);
        }

        >span>span {
            font-size: 60%;
            text-align: center;
            line-height: 1.2;
        }
    }

    .ci-content {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        display: flex;
        flex-flow: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: var(--alpha-ci-content-padding);
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;

        &.active {
            opacity: 1;
            visibility: visible;
        }
    }

    .ci-title {
        transition: color .3s;

        a {
            color: inherit;
            transition: none;
        }

        &:last-child {
            margin-bottom: 0;
        }
    }

    .ci-desc {
        margin-bottom: 0;
    }
}