﻿.calendar-home--wrapper {
    &:extend(.content);
    display: flex;
    flex-wrap: wrap;
    margin-top:30px;

    @media screen{
        @media (min-width:960px){
            margin-top: 60px;
        }
    }
}

.calendar-home--intro,
.calendar-home--plugin {
    padding: 0 15px;
}

.calendar-home--intro {
    .flex(12);
    margin-bottom: 20px;

    @media screen{
        @media (min-width:960px){
            margin-bottom: 40px;
        }
    }
}

.calendar-home--plugin {
    display:none;

    @media screen{
        @media (min-width:700px){
            display:block;
            margin:0 auto 30px;
            width:400px;
        }

        @media (min-width:960px){
            margin-left:0;
            margin-bottom:0;
            .sufix(1);
        }
    }
}

.calendar-home--content {
    width:100%;

     @media screen{
        @media (min-width:960px){
            width:~'calc(100% - 400px - 8.33333333%)';  // - width calendario - margin-right calendario
        }
    }
}

.calendar-home--list {
    display: flex;
    flex-wrap: wrap;
    margin: -30px 0 30px;
    
    .calendar-item{
        flex-basis:~'calc(100% - 30px)';
    }

    .msg-box{
        margin-top:30px;
        width:100%;
    }

    & + .btn {
        margin-left: 15px;
    }

    @media screen{
        @media (min-width:570px){
            .calendar-item{
                flex-basis:~'calc((100%/2) - 30px)';
            }
        }

        @media (min-width:960px){
            margin-bottom:60px;
        }
    }
}

.calendar-internal--list {
    display: flex;
    flex-wrap: wrap;
    margin: -30px -15px 0;
    max-width: 1200px;

    .calendar-item:not(.cfw-modal) {
        width: ~'calc(100% - 30px)';
        flex-basis: $width;
    }

    @media screen{
        @media (min-width:570px){
            .calendar-item:not(.cfw-modal) {
                width: ~'calc((100% / 2) - 30px)';
                flex-basis: $width;
            }
        }

        @media (min-width:880px){
            .calendar-item:not(.cfw-modal) {
                width: ~'calc((100% / 3) - 30px)';
                flex-basis: $width;
            }
        }
    }
}

.calendar-item {
    &:extend(.cf all);
    border: 0;
    padding: 0;
    text-align: left;

    &:not(.cfw-modal) {
        background: transparent;
        margin: 30px 15px 0;
        box-shadow: fade(@color-black, 0%) 0 0 0;
        transition: .3s box-shadow;
    }

    &:not(.active) {
        cursor: pointer;
    }

    .date-wrapper + .date-wrapper {
        margin-top: 15px;
    }

    .date {
        display: flex;
        flex-direction: column;
        float: left;
        justify-content: center;
        align-items: center;
        position: relative;
        margin-right: 20px;
        width: 100px;
        height: 100px;
        overflow: hidden;
        background: @color-white;
    }

    .day,
    .month {
        position: relative;
        z-index: 1;
        display: block;
        line-height: .8em;
        transition: .2s color;
    }

    .day {
        font-weight: 800;
        font-size: 40px;
    }

    .month {
        font-size: 14px;
        color: @color-gray;
        text-transform: uppercase;
        margin-top: 10px;
    }

    .date--detail {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(~'calc(100% - 4px)');
        transition: .2s transform;
        z-index: 0;
        background-color: @color-dblue;
    }

    .title {
        margin: 0 0 14px;
        font-weight: 400;
        font-size: 16px;
        padding-top: 15px;
    }

    .desc {
        color: @color-gray;
        font-size: 14px;
    }

    &.active,
    &:hover {
        box-shadow: fade(@color-black, 20%) 0 0 20px;

        .date--detail {
            transform: translateY(0);
        }

        .day,
        .month {
            color: @color-white !important; // importante devido ao style inline
        }
    }
}

.calendar-modal {
    width: ~'calc(100% - 120px)';
    float: left;

    iframe {
        max-width: 100%;
    }

    .small-txt{
        margin-top:-10px;
    }
}

.calendar-caption {
    cursor:pointer;

    span {
        &:extend(.small-txt);
    }

    @media screen{
        @media (min-width:700px){
            display: flex;

            i {
                display: block;
                width: 9px;
                height: 9px;
                border-radius: 50%;
                margin-top: 1px;

                &:nth-child(1) {
                    background: @color-red;
                }

                &:nth-child(2) {
                    background: @color-green;
                }

                &:nth-child(3) {
                    background: @color-yellow;
                }

                &:nth-child(4) {
                    background: @color-dpurple;
                }

                & + i {
                    margin-left: -3px;
                }

                &:last-of-type {
                    margin-right: 6px;
                }
            }
        }
    }
}