// typography
$body: "Helvetica Neue", Helvetica, Arial, sans-serif;
$heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
$nav: "Helvetica Neue", Helvetica, Arial, sans-serif;

// color
$accent: #db4a37;
$link-color: #db4a36;
$border: #c0c1c0;

// content width
$container: 1080px;

// screen widths
$desktop: 1279px;
$ipad: 1023px;
$ipad-p: 767px;
$iphone: 600px;
$iphone-p: 479px;
$iphone-5: 374px;

$ipad-f: 0.88;
$ipad-p-f: 0.71;
$iphone-f: 0.5;
$iphone-p-f: 0.42;

// mobile header height
$mobile-height: 54px;

$fb: #3b5998;
$ms: #0084ff;
$tw: #55acee;
$pin: #cc2127;
$lin: #0077b5;
$em: #111;
$wa: #128c7e;
$rd: #ff4500;

// 35k compressed
@import "bourbon/bourbon";
@import "media-queries";
@import "utilities";

@import "lib/flexslider";

@import "common55";
@import "elements";
@import "blog";
@import "plugins";

/* SOCIAL LIST
-------------------------------------------------------------------------------------- */
.social-list {
    ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        
        flex-flow: row wrap;
    }
    &.align-center {
        ul {
            justify-content: center;
        }
    }
    &.align-right {
        ul {
            justify-content: flex-end;
        }
    }
    li {
        display: block;
        & + li {
            margin-left: 3px;
        }
    }
    
    /**
     * spacing
     */
    &.icon-spacing-normal {
        li + li {
            margin-left: 10px;
        }
    }
    &.icon-spacing-big {
        li + li {
            margin-left: 20px;
        }
    }
    
    a {
        display: block;
        text-decoration: none;
        text-align: center;
        transition: all .2s ease-out;
        position: relative;
        
        border: 0 solid;
        font-size: 16px;
        
        &:focus {
            outline: 0;
        }
        
        i {
            display: block;
            line-height: inherit;
        }
        span {
            display: none;
        }
    }
    
    &.style-outline a {
        i {
            display: block;
            position: absolute;
            top: 50%;
            height: 24px;
            line-height: 24px;
            margin-top: -12px;
            left: 0;
            right: 0;
            z-index: 10;
        }
    }
    
    &.shape-circle {
        a {
            -webkit-border-radius: 100%;
            border-radius: 100%;
        }
    }
    
    &.shape-square {
        a {
            -webkit-border-radius: 0;
            border-radius: 0;
        }
    }
    
    &.shape-round {
        a {
            -webkit-border-radius: 5px;
            border-radius: 5px;
        }
    }
    
    &.style-black,
    &.style-color,
    &.style-outline,
    &.style-fill {
        a {
            width: 30px;
            height: 30px;
            line-height: 30px;
            font-size: 12px;
        }
    }
    
    &.style-outline,
    &.style-fill {
        a {
            line-height: 28px;
            color: inherit;
            border: 1px solid;
            background: none;
        }
    }
    
    &.style-black {
        a {
            background: black;
            color: white;

            &:hover {
                background: $accent;
            }
        }
    }
    
    &.style-fill {
        a:hover {
            background: black;
            color: white;
            border-color: black;
        }
    }
    
    &.style-plain {
        a {
            line-height: 24px;
            padding: 0 5px;
            background: none;
        }
    }
    &.style-plain:not(.style-text_color) a {
        color: inherit;
        &:hover {
            color: $accent;
        }
    }
    
    &.style-color {
        a {
            color: white;
            transition: all .3s ease-out;
            &:hover {
                color: white;
                opacity: .9;
            }
        }
    }
    
    /**
     * Size problem
     */
    &.icon-size-small {
        a {
            font-size: 14px;
        }
        &.style-black,
        &.style-color,
        &.style-outline,
        &.style-fill {
            
            a {
                width: 24px;
                height: 24px;
                line-height: 24px;
            }
        }
        
        &.style-outline,
        &.style-fill {
            a {
                line-height: 22px;
            }
        }
    }
    
    &.icon-size-bigger {
        a {
            font-size: 17px;
        }
        &.style-black,
        &.style-color,
        &.style-outline,
        &.style-fill {
            a {
                width: 30px;
                height: 30px;
                line-height: 30px;
            }
        }
        
        &.style-outline,
        &.style-fill {
            a {
                line-height: 28px;
            }
        }
    }
    
    &.icon-size-medium,
    &.icon-size-medium_plus {
        a {
            font-size: 18px;
        }
        &.style-black,
        &.style-color,
        &.style-outline,
        &.style-fill {
            a {
                width: 36px;
                height: 36px;
                line-height: 36px;
            }
        }
        
        &.style-outline,
        &.style-fill {
            a {
                line-height: 34px;
            }
        }
    }
    
    &.icon-size-medium_plus {
        a {
            font-size: 21px;
        }
    }
    
}

/* AUTHORS
-------------------------------------------------------------------------------------- */
.fox-authors-wrapper {
    overflow: hidden;
    position: relative;
}

/* grid */
.fox-authors-grid {
    
    display: flex;
    flex-flow: row wrap;
    margin: -60px -30px 0;
    
    position: relative;
    
    .line {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        width: 1px;
        background: #c0c0c0; // default color
    }
    
    .fox-user-item {
        
        flex: none;
        width: 100%;
        padding: 60px 30px 0;
        
    }
    
    &.column-2 {
        .fox-user-item {
            width: 50%;
        }
        .line-1 {
            left: 50%;
        }
    }
    &.column-3 {
        .fox-user-item {
            width: 33.33%;
        }
        .line-1 {
            left: 33.33%;
        }
        .line-2 {
            left: 66.66%;
        }
    }
    &.column-4 {
        .fox-user-item {
            width: 25%;
        }
        .line-1 {
            left: 25%;
        }
        .line-2 {
            left: 50%;
        }
        .line-3 {
            left: 75%;
        }
    }
    &.column-5 {
        
        margin: -40px -10px 0;
        
        .fox-user-item {
            width: 20%;
            padding: 40px 10px 0;
        }
        .line-1 {
            left: 20%;
        }
        .line-2 {
            left: 40%;
        }
        .line-3 {
            left: 60%;
        }
        .line-4 {
            left: 80%;
        }
    }
    
    .user-item-avatar {
        margin: 0 0 1em;
    }
    
}
/* authors list */
.fox-authors-list {
    
    .fox-user-item {
        overflow: hidden;
        & + .fox-user-item {
            padding-top: 1.5em;
            margin-top: 1.5em;
        }
    }
    
    &.has-border .fox-user-item + .fox-user-item {
        border-top: 1px solid #c0c0c0;
    }
    /*
    .line {
        @include clearfix;
        margin-top: 2em;
        margin-bottom: 2em;
        display: block;
        background: #c0c0c0;
        height: 1px;
        position: static;
        
        &:first-child {
            display: none;
        }
    }
    */
    
    .user-item-avatar {
        float: left;
        margin: 4px 2em 0 0;
        max-width: 30%;
    }
    .user-item-body {
        overflow: hidden;
    }
    
    &.valign-middle {
        .fox-user-item {
            display: flex;
            align-items: center;
            .user-item-avatar {
                flex: none;
                margin-top: 0;
            }
        }
    }
    
    &.valign-bottom {
        .fox-user-item {
            display: flex;
            align-items: flex-end;
            .user-item-avatar {
                flex: none;
                margin-top: 0;
            }
        }
    }
    
}
.style--description-size-small {
    .user-item-description {
        font-size: .9em;
    }
}

.fox-user-item {
    display: block;
}
.user-item-avatar {
    
    display: block;
    
    a {
        display: block;
        text-decoration: none;
        border: 0;
        
        &:focus {
            outline: 0;
        }
    }
    
    img {
        display: inline-block;
        margin: 0;
        width: 120px;
    }
    
    &.avatar-round img {
        border-radius: 6px;
    }
    &.avatar-circle img {
        border-radius: 50%;
    }
    
}
.user-item-header {
    margin: 0 0 .5em;
}
.user-item-name-wrapper {
    display: inline-flex;
    align-items: center;
    flex-flow:  row wrap;
    
    .user-item-name-meta {
        
        position: relative;
        margin-left: 10px;
        padding-left: 10px;
        
        &:before {
            display: block;
            position: absolute;
            top: 4px;
            bottom: 4px;
            left: 0;
            border-left: 1px solid;
            opacity: .2;
            content: "";
        }
    }
    
}
.user-item-name {
    font-size: 1.3em;
    margin: 0;
    a {
        color: inherit;
        &:focus {
            outline: 0;
        }
        &:hover {
            color: inherit;
        }
    }
}
.user-item-description {
    
    line-height: 1.5;
    p {
        margin: 0;
    }
}
.user-item-social {
    
    margin: .5em 0 0;
    
    ul {
        display: inline-flex;
    }
    
    &.style-plain {
        a {
            font-size: 18px;
            transition: all .15s ease-out;
            
            @include media( mobile-small ) {
                font-size: 15px;
                margin-right: 2px;
            }
            
            &:hover {
                color: inherit;
                opacity: 1;
            }
        }
    }
}

@media (max-width: $ipad) {
    
    .user-item-name {
        
        font-size: 1.1em;
        
    }
    
    .fox-authors-grid {
        
        &.column-4,
        &.column-5 {
            .fox-user-item {
                width: 50%;
            }
            .line-1 {
                left: 50%;
            }
            .line-2,
            .line-3,
            .line-4 {
                display: none;
            }
        }
        
    }
}

@media (max-width: $iphone) {
    
    .fox-authors-grid {
        
        &.column-2,
        &.column-3,
        &.column-4,
        &.column-5 {
            
            .fox-user-item {
                width: 100%;
            }
            
            .line-1,
            .line-2,
            .line-3,
            .line-4 {
                display: none;
            }
            
        }
    }
    
    .fox-authors-list {
        .user-item-avatar {
            // width: 80px;
            // margin-right: 1em;
        }
    }
    
}