@import 'base';
@import 'components/navbar';
@import 'components/map';

.nav-button-outer {
    position: fixed;
    bottom: 30px;
    right: 30px;

    .nav-button {
        background-color: @purple;
    }

    .nav-button-icon {
        width: 100%;
    }

    .feed-nav-button-icon {
        padding: 4px;
    }
}

.profile-button-outer {
    text-align: center;

    .profile-button {
        background-color: @purple;
        width: 40px;
        height: 40px;
    }

    .profile-button-icon {
        width: 100%;
        line-height: 40px;
    }
}
.push-right {
    margin-left: 24px;
}
#live_notify_badge {
    z-index: 3;
    line-height: 16px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    position: absolute;
    background-color: @dark-blue;
    color: @white;
    width: 16px;
    height: 16px;
    border-radius: 8px;
}
.civi-card, .new-civi-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    border-radius: 5px;
    // border: 1px solid @dark-white;
    margin-bottom: 15px;
    background-color: #fcfbfd;
    &.current {
        // border: 1px solid @purple;
        // box-shadow: 0 2px 2px 0 rgba(0,0,0,0.15), 0 3px 1px -2px rgba(0,0,0,0.15);
        box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);


        border-radius: 5px;
        .civi-header {
            background-color: @purple;
            border-top-left-radius: 5px;
            border-top-right-radius: 5px;

            .civi-type {
                color: @light-gray;
            }

            .civi-title {
                color: @dark-white;
            }

            .civi-header-actions {
                color: @white;
            }
        }
    }

    .civi-header {
        cursor: pointer;
        border-bottom: 1px solid @dark-white;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        padding: 12px 20px 4px 20px;
        margin-bottom: 10px;
        background-color: @barely-not-white;
        transition: all .5s ease;

        .civi-title-outer {
            display: inline-block;
            vertical-align: middle;

            .civi-type {
                font-size: 12px;
                font-weight: 300;
                text-transform: uppercase;
            }

            .civi-title {
                font-weight: 500;
            }
        }

        .civi-header-actions {
            display: inline-block;
            color: @purple;
            line-height: 40px;

            i {
                cursor: pointer;
                vertical-align: middle;
            }
        }
    }
    &:hover {
        box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    }
    // .civi-click:hover {
    //     background-color: @light-purple;
    //     border-top-left-radius: 5px;
    //     border-top-right-radius: 5px;
    //
    //     .civi-type {
    //         color: @white;
    //     }
    //
    //     .civi-title {
    //         color: @dark-white;
    //     }
    //
    //     .civi-header-actions {
    //         color: @white;
    //     }
    // }
    .edit-wrapper {
        .attachments-item {
            display: inline-block;
            position: relative;

            .delete-image-overlay {
                // z-index:
                position: absolute;
                width: 50px;
                height: 40px;
                i {
                    display: none;
                }
                &:hover {
                    background-color: fade(@blue,30%);
                    cursor: pointer;
                    i {
                        line-height: 40px;
                        text-align: center;
                        display: block;
                    }
                }
            }
        }
    }

    .civi-body {
        padding: 0 20px;
        border-bottom: 1px solid @dark-white;
        font-size: 12px;
        line-height: 22px;

        .civi-body-inner {
            margin-bottom: 10px;
            .text-wrapper {
                word-wrap: break-word;
            }
        }

        .civi-attachments {

            padding-bottom: 10px;
            margin-bottom: 8px;
            display: inline-block;
            .attachments-title {
                font-size: 12px;
                font-weight: 300;
            }
            .attachments-item {
                display: inline-block;
            }
            .civi-image-thumb{
                &:hover {
                    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
                    cursor: pointer;
                }
            }
        }
        .civi-links .civi-bills {
            padding-bottom: 8px;
            .links-title .bills-title {
                font-size: 12px;
                line-height: 12px;
                font-weight: 300;
            }
            .link-item .bills-item {
                font-size: 10px;
                line-height: 12px;
            }
        }

        .rating {
            border-top: 1px solid @dark-white;
            margin-bottom: 8px;
            padding-top: 8px;
            .rating-wrapper {
                width: 15%;
                display: inline-block;
                .rating-name {
                    line-height: 10px;
                    color: @light-gray;
                    font-size:12px;
                }
            }
            .rating-center {
                margin-top: -10px;
                margin-bottom: 16px;
                width: 64%;
                height: 4px;
                background-color: @dark-white;
            }
            .rating-button {
                border-radius: 8px;
                border: solid @dark-white 4px;
                background-color: @light-gray;
                font-size: 4px;
                padding: 4px;

                &.vote_neutral {
                    font-size: 4px;
                    padding: 4px;
                    background-color: #ffffff;
                    border: solid #dddddd 4px;
                }

                &:hover {
                    background-color: @purple !important;
                    font-size: 8px;
                    padding: 8px;
                    border: none;
                    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
                }


                i {
                    line-height: 1rem;
                }

                &.current {
                    background-color: @purple;
                    font-size: 8px;
                    padding: 8px;
                    border: none;
                    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
                }
            }
        }
        .temp-score {
            // TODO: remove this
            font-size: 10px;
            line-height: 10px;
            font-weight: bold;
            color: @light-purple;
        }

    }

    .civi-footer {
        background-color: @barely-not-white;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        padding: 8px 20px;

        .author-photo-holder {
            display: inline-block;
            width: 34px;
            vertical-align: middle;

            .author-photo {
                width: 100%;
                height: 34px;
                border-radius: 50px;
                background-color: @purple;
            }
        }

        .author-info {
            display: inline-block;
            vertical-align: middle;
            margin-left: 6px;

            .author-name {
                font-size: 12px;
                line-height: 14px;
            }

            .created {
                font-weight: 300;
                font-size: 12px;
                line-height: 14px;
            }
        }

        .civi-footer-actions {
            display: inline-block;
            color: @purple;
            line-height: 34px;

            #respond-button {
                cursor: pointer;
            }
            i {
                cursor: pointer;
                margin-left: 6px;
                vertical-align: middle;
            }
        }
    }
}

@box-shadow-z1: 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2);

.dropdown-menu-wrapper{
    display: block;
    margin-top: -12px;

    .dropdown-menu {
        position: absolute;
        // top: 100%;

        right: 0;
        left: auto;

        z-index: 2;
        width: 120px;
        padding-bottom: 4px;
        background-color: @white;
        border-radius: 4px;
        box-shadow: @box-shadow-z1;
        .dropdown-item {
            display: block;
            padding: 4px 10px 4px 15px;
            margin-top: 8px;
            margin-bottom: 8px;
            line-height: 32px;
            height: 32px;
            overflow: hidden;
            color: #24292e;
            white-space: nowrap;
        }
    }
}

  @media only screen and (min-width: 1170px) {
    .cd-popup-trigger {
      margin: 6em auto;
    }
  }
  
  /* -------------------------------- 
  
  xpopup 
  
  -------------------------------- */
  .cd-popup {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(94, 110, 141, 0.9);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.3s 0s, visibility 0s 0.3s;
    -moz-transition: opacity 0.3s 0s, visibility 0s 0.3s;
    transition: opacity 0.3s 0s, visibility 0s 0.3s;
  }
  .cd-popup.is-visible {
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.3s 0s, visibility 0s 0s;
    -moz-transition: opacity 0.3s 0s, visibility 0s 0s;
    transition: opacity 0.3s 0s, visibility 0s 0s;
  }
  
  .cd-popup-container {
    position: relative;
    width: 90%;
    max-width: 400px;
    margin: 4em auto;
    background: #FFF;
    border-radius: .25em .25em .4em .4em;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    -webkit-transform: translateY(-40px);
    -moz-transform: translateY(-40px);
    -ms-transform: translateY(-40px);
    -o-transform: translateY(-40px);
    transform: translateY(-40px);
    /* Force Hardware Acceleration in WebKit */
    -webkit-backface-visibility: hidden;
    -webkit-transition-property: -webkit-transform;
    -moz-transition-property: -moz-transform;
    transition-property: transform;
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    transition-duration: 0.3s;
  }
  .cd-popup-container p {
    padding: 3em 1em;
    text-align: center;
  }
  .cd-popup-container .cd-buttons:after {
    content: "";
    display: table;
    clear: both;
  }
  .cd-popup-container .cd-buttons li {
    float: left;
    width: 50%;
  }
  .cd-popup-container .cd-buttons a, .cd-popup-container .cd-buttons input  {
    display: block;
    height: 60px;
    line-height: 60px;
    text-transform: uppercase;
    color: #FFF;
    -webkit-transition: background-color 0.2s;
    -moz-transition: background-color 0.2s;
    transition: background-color 0.2s;
  }
  .cd-popup-container .cd-buttons li:first-child a {
    background: #cc5856;
    border-radius: 0 0 0 .25em;
  }
  .no-touch .cd-popup-container .cd-buttons li:first-child a:hover {
    background-color: #fc7169;
  }
  .cd-popup-container .cd-buttons li:last-child a {
    background: #b6bece;
    border-radius: 0 0 .25em 0;
  }
  .no-touch .cd-popup-container .cd-buttons li:last-child a:hover {
    background-color: #c5ccd8;
  }
  .cd-popup-container .cd-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
  }
  .cd-popup-container .cd-popup-close::before, .cd-popup-container .cd-popup-close::after {
    content: '';
    position: absolute;
    top: 12px;
    width: 14px;
    height: 3px;
    background-color: #8f9cb5;
  }
  .cd-popup-container .cd-popup-close::before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    left: 8px;
  }
  .cd-popup-container .cd-popup-close::after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    right: 8px;
  }
  .is-visible .cd-popup-container {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }
  @media only screen and (min-width: 1170px) {
    .cd-popup-container {
      margin: 8em auto;
    }
  }  