/**
 * Карточки топиков
 */


.topic-card {
    margin-bottom: 30px;
    position: relative;
}


/* Превью */
.topic-card .ls-topic-preview-image {
    margin-bottom: 15px;
}

.topic-card .ls-topic-preview-image > a {
    display: block;
}


/* Шапка */
.topic-card-header {
    margin-bottom: 12px;
}

.topic-card-header .topic-card-info {
	margin-bottom: 10px;
	color: #adadad;
	font-size: 11px;
}

.topic-card-info-item--blog > a {
	color: #d32f2f;
	font-weight: 600;
}

.topic-card-header .topic-card-info-item {
    float: left;
    margin-right: 12px;
}

.topic-card-header .topic-card-info-item:last-child {
    margin-right: 0;
}

.topic-card-title {
	margin-bottom: 0;
	font-size: 15px;
	font-family: inherit;
	font-weight: 600;
	line-height: 1.3;
}


/* Контент */
.topic-card-content {
    margin-bottom: 15px;
    color: #757575;
}


/* Подвал */
.topic-card-footer {
    font-size: 11px;
}

.topic-card-footer .topic-card-info-item {
    float: left;
    height: 22px;
    line-height: 22px;
    margin-right: 15px;
}

/* Автор */
.topic-card-info-item.topic-card-info-item--author .ls-avatar {
    position: relative;
    top: -2px;
}

/* Ссылка на комментарии */
.topic-card-info-item.topic-card-info-item--comments a {
	text-decoration: none;
	color: #78909c;
}

.topic-card-info-item--comments-count:before {
    -moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	font-family: "FontAwesome";
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	line-height: 1;
	speak: none;
	text-align: center;
	text-decoration: inherit;
	text-transform: none;

    content: "\f27a";
    margin-right: 5px;
    display: inline-block;
    text-decoration: none;
    color: #90a4ae;
}

.topic-card-info-item--comments-count {
    text-decoration: underline;
}

.topic-card-info-item--comments--has-new .topic-card-info-item--comments-count {
    color: #388e3c;
}

.topic-card-info-item--comments--has-new .topic-card-info-item--comments-count:before {
    color: #4caf50;
}

.topic-card-info-item--comments-new {
    color: #d32f2f;
    text-decoration: none;
}


/**
 * Media Queries
 */

/**
 * >= 1200px
 */

@media screen and (min-width: 1200px) {
    .topic-card--big .ls-topic-preview-image {
    	margin-bottom: 0;
    }

    .topic-card--big .ls-topic-preview-image a {
        position: relative;
    }

    .topic-card--big .ls-topic-preview-image a::before {
    	position: absolute;
    	content: '';
    	top: 0;
    	bottom: 0;
    	left: 0;
    	right: 0;

        /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.65+100 */
        background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 ); /* IE6-9 */
    }

    .topic-card--big .ls-topic-preview-image a::after {
        position: absolute;
        content: '';
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;

        /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000000+0,000000+100&0.65+0,0.65+100 */
        background: -moz-linear-gradient(top,  rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.65) 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.65) 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.65) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#a6000000',GradientType=0 ); /* IE6-9 */

        opacity: 0;
        -webkit-transition: opacity 0.4s ease 0s;
        -moz-transition: opacity 0.4s ease 0s;
        -o-transition: opacity 0.4s ease 0s;
        transition: opacity 0.4s ease 0s;
    }

    .topic-card--big:hover .ls-topic-preview-image a::after {
        opacity: 1;
    }


    .topic-card--big .topic-card-caption {
    	position: absolute;
    	bottom: 0;
    	width: calc(100% - 30px);
    	padding: 15px 25px;
        z-index: 10;
    }


    .topic-card--big .topic-card-header {
        margin-bottom: 20px;
    }

    .topic-card--big .topic-card-header .topic-card-info,
    .topic-card--big .topic-card-info-item--blog > a {
    	color: rgba(255,255,255,.65);
    }

    .topic-card--big .topic-card-info-item--blog > a:hover {
    	color: rgba(255,255,255,.85);
    }

    .topic-card--big .topic-card-title {
    	font-family: "Inter",Georgia,"Times New Roman",Times,serif;
    	font-size: 20px;
    	font-weight: 400;
        line-height: 1.5;
    }

    .topic-card--big .topic-card-title > a {
        color: #fff;
    }

    .topic-card--big .topic-card-title > a:hover {
    	box-shadow: 0 1px 0 0 rgba(255,255,255,0.5);
    }


    .topic-card--big .topic-card-content {
    	display: none;
    }


    .topic-card--big .ls-avatar--has-name.ls-avatar--inline .ls-avatar-name-link {
    	color: rgba(255,255,255,.5);
    }

    .topic-card--big .ls-avatar--has-name.ls-avatar--inline .ls-avatar-name-link:hover {
    	color: rgba(255,255,255,.85);
    }


    .topic-card--big .topic-card-info-item.topic-card-info-item--comments a {
    	color: rgba(255,255,255,.5);
    }

    .topic-card--big .topic-card-info-item.topic-card-info-item--comments a:hover {
        color: rgba(255,255,255,.85);
    }

    .topic-card--big .topic-card-info-item--comments-count::before {
    	color: rgba(255,255,255,.5);
    }

    .topic-card--big .topic-card-info-item.topic-card-info-item--comments a:hover .topic-card-info-item--comments-count::before {
    	color: rgba(255,255,255,.85);
    }
}
