@import url("porra.css");

/* Pàgines de fòrums
   ========================================================================== */

/*	Índex fòrum
        ———————————————————————————————————— */
.fils-grup {
    margin-bottom: 15px;
}

.fils-grup hgroup {
    margin-bottom: 10px;
}

.fils-grup hgroup h4 {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 20px;
}

.fils-grup hgroup .fils-info {
    padding-top: 7px;
    text-align: right;
    margin-bottom: 0;
}

.fils-grup > ul {
    margin: 0;
    padding: 0;
}

.fils-grup > ul > li {
    background-color: #fff;
    padding: 10px 15px;
    list-style: none;
    margin-bottom: 10px;
    overflow: hidden;
}

.fils-grup > ul > li.msstgs-nous {
    border-left: 7px solid #97bf11;
}

.forum-titol {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2em;
    margin: 0;
}

.forum-titol a {
    color: #000000;
}

/* Cal? */
.fils-grup > ul > li.new {
    border-left: 7px solid #FF6347;
    background-color: #fff;
}
.fils-grup > ul > li.hot-new {
    border-left: 7px solid #FF6347;
    background-color: #fff1d7;
}
.fils-grup > ul > li.hot {
    /*border-left: 7px solid #F95A04;*/
    background-color: #fff1d7;
}

.fils-grup > ul > li.promoted {
    border-left: 7px solid #5c730b;
}


.fils-grup > ul > li.closed, .fils-grup > ul > li.autoclosed {
/*    border-left: 7px solid #000;*/
    background-color: #ccc;
    opacity: .6;
}

/*.fils-grup > ul > li.closed .forum-titol a, .fils-grup > ul > li.autoclosed .forum-titol a {
    color: tomato;
}*/

.fils-grup > ul > li.fil-descartat {
    border-left: 7px solid #000;
}

.fils-grup > ul > li.closed .forum-titol,
.fils-grup > ul > li.closed ul {
    opacity: 0.2;
}

.fils-grup .element-meta {
    background-color: transparent;
    text-align: right;
}
.fils-grup .element-meta.ultim-comentari { 
    border-top: 1px solid #999999;
    margin-top: -5px;
    padding: 7px 0;
    text-align: left;
}

.fils-grup .element-meta > li {
    border: 0;
}

.fils-grup .element-meta > li a {
    /*color: tomato;*/
}

p.creador-forum {
    margin: 0;
}

.forums-fils .paginador {
    margin-bottom: 20px;
}

/*	Fòrum
        ———————————————————————————————————— */

.article-principal section.forum {
    background-color: transparent;
    padding: 0;
    margin-left: -20px;
}

#forum header {
    position: relative;
}

#forum .titol-int {
    font-weight: bold;
    line-height: 1.08;
}

.forum-opcions {
    font-size: 17px;
    position: absolute;
    right: 0;
    bottom: 0;
}

.forum-opcions .btn {
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAFUlEQVQImWNgQALfvn79TyqHgYEBAA6kD32J2uFCAAAAAElFTkSuQmCC") repeat;
    padding-top: 9px;
}

.forum-opcions .btn i {
    font-size: 2.7em;
}

.forum-opcions .btn .caret {
    margin-bottom: 6px;
}

.forum-opcions .actiu .pictogram {
    color: tomato;
}

/* .paginador + section.forum { margin-top: 5px; } */
section.forum + .paginador { margin-bottom: 20px; }


.article-principal section.forum {
    margin-left: 0; /*canvi*/
}

.media, .media-body {
    overflow: inherit;
}

.media footer {
    border-top: 1px solid #d2d2d2;
    margin-bottom: 0px;
    overflow: hidden;
}

.media .avatar {
    margin-left: 15px;
    margin-right: 1em;
    margin-top: 3px;
    max-height: 64px;
}

.porra-bloc .avatar {
    margin-right: 1em;
    margin-top: 3px;
}

.media,
.media .media {
    margin-top: 15px;
    border-top: 0;
    border-right: 0;
    padding: 20px 0 0 20px;	/*canvi*/
    position: relative;
}

.media hgroup {
    color: #999;
    margin-bottom: 1em;
    font-size: 14px;
    padding-right: 15px;
    margin-top: -2px;
}

.media hgroup .username {
    font-weight: bold;
    margin-right: 3px;
}

.media hgroup .banned_tmp {
    font-style: italic;
    color: red;
}

#forum .media hgroup .permalink {
    margin-left: -6px;
}

.num_messages,
.media hgroup time {
    font-weight: lighter;
}

.desconnectat hgroup {
    opacity: 0.5;
}

.enlinia .avatar,
.avatar.enlinia {
    border-right: 5px solid #88BF67;
}

.media hgroup time {
    margin-right: 40px;
}

.media-list:first-child > .media {
    padding-bottom: 0;
}
.media:first-child {
    margin-top: 20px;
}

.dades-usuari {
    display: inline-block;
}

section.forum > .media-list > .media > .guia {
    border: none;
}

.media-list {
    margin-left: 0; /*canvi*/
}

.media-list > li {
    box-shadow: none;
    border: none;
    border-left: 1px dotted #000;
}

.media-list > .media-list {
    padding-bottom: 20px;
}

.media-object {
    border-radius: 0;
}

.media-body {
    overflow: hidden;
    padding-right: 20px;
    margin-bottom: 1em;
}

.media .guia {
    border-top: 1px dotted #000;
    display: block;
    height: 100%;
    left: -22px;
    position: absolute;
    top: 20px;
    width: 22px;
    z-index: 100;
}

.media.last > .guia {
    border-left: 2px solid #eee;
}

.missatge-cos .comentari-bloc {
    box-shadow: none;
    margin: -20px;
}

.comentari-bloc {
    background-color: #FFFFFF;
    margin-left: -20px;
    margin-top: -20px;
    padding: 15px 0 0 0;
    position: relative;
    border: 1px solid #bbb;
    border-left: none;
    /*border-right: none;*/
}

.comentari-bloc a.permalink time:hover:before {
    content: "¶ ";
}

div.comentari-bloc.highlight-new {
    border-left: 8px solid tomato;
}
div.comentari-bloc .capsa-avatar { height: 70px; width: 100px; }

.promoted {
    border: 3px solid tomato;
}

.hidden2 {
    background-color: #EFEFEF;		
    font-style: italic;
    color: gray;
    padding: 10px 0 10px 0;	
}
.hidden2 span {
    margin-left: 20px;
}


.ocult-usuari {
    margin-left: -20px;
    margin-top: -20px;
    padding: 10px 0 10px 0;
    position: relative;
    border: 1px solid #bbb;
    border-left: none;    
}

.ocult-usuari span {
    margin-left: 20px;	
    font-weight: bold;
    font-style: italic;
    color: gray;
}

.ocult {
    border: 5px solid blue;    	
}


.media-body .comentari-signatura {
    border-top: 1px dashed #bbb;
    color: #999;
    font-family: monospace;
    margin: 2em 0 0;
    padding: 10px 10px 1px 0;
    font-size: 12px !important;
}

.media-body .comentari-signatura * {
    font-size: 12px !important;
    color: #999;
}

.media-body .comentari-signatura p:last-child {
    margin-bottom: 0;
}

.comentari-accions,
.llista-botons {
    float: left;
}

.llista-botons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.llista-botons span,
.comentari-accions span {
    border-right: 1px solid #E8E8E8;
    display: inline-table;
    padding: 8px 0.5em 10px;
}

.llista-botons span {
    flex: 1 auto;
    display: block;
    border-left: 1px solid #E8E8E8;
    border-bottom: 1px solid #E8E8E8;
}

.comentari-moderar em {
    font-style: normal;
}

.llista-botons span {
    padding: 9px 0.5em;
}

.llista-botons a,
.comentari-accions a {
    color: #999;
    cursor: pointer;
    font-size: 14px;    
}

.comentari-accions .pictogram a {
    font-size: inherit;
}

.llista-botons a {
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 8px;
    text-transform: uppercase;
}

.llista-botons span:last-child {
    border-right: 1px solid #E8E8E8;
}

.llista-botons a:hover,
.comentari-accions a:hover {
    text-decoration: none;
    color: tomato;
}

.comentari-vots {color: #999999;}

/*.comentari-vots a {
        margin-right: 0.5em;
}*/

.comentari-votat {
    color: #000;
}

.comentari-respon {
    background-color: inherit;
    color: tomato;
    float: right;
    font-weight: bold;
    letter-spacing: 0.03em;
    padding: 9px 1em;
    text-transform: uppercase;
}

.comentari-respon:hover {
    background-color: tomato;
    color: #fff;
}

.comentari-plega {
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAFUlEQVQImWNgQALfvn79TyqHgYEBAA6kD32J2uFCAAAAAElFTkSuQmCC") repeat;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 13px 4px 15px;
    position: absolute;
    right: 0px;
    top: 10px;
}

.comentari-plega:hover {
    color: #000;
}

.comentari-num:hover > .comentari-num-tooltip {
    display: block;
}

.admin {
    border: 2px solid red !important;
}

.admin a {
    color: red;
}

.admin a:hover {
    color: black;
}

.porra-bloc > hgroup {
    overflow: hidden;
    margin-bottom: 15px;
}
/*.comentari-num-tooltip {
    background-color: #Ffd8cc;
    box-shadow: 0 4px 4px 0 #CCCCCC;
    bottom: 39px;
    display: none;
    left: 0;
    opacity: 0.9;
    padding: 15px;
    position: absolute;
    z-index: 100;
}

.comentari-num-tooltip .triangle-avall {
    border-left: 5px solid rgba(0, 0, 0, 0);
    border-right: 5px solid rgba(0, 0, 0, 0);
    border-top: 5px solid #ffd8cc;
    bottom: -5px;
    display: inline-block;
    height: 0;
    left: 25px;
    position: absolute;
    width: 0;
    z-index: 100;
}*/


/* TOOLTIPS */
#tooltip-text {
    color: #333;
    border: 1px solid #CCCCCC;
    font-size: 90%;
    margin: 0;
    max-height: 45ex;
    overflow: hidden;
    padding: 10px;
    position: absolute;
    text-align: left;
    visibility: hidden;
    width: 44em;        
    z-index: 10000;
    background: #FFD8CC none repeat scroll 0 0;
}

#tooltip-shadow {
    margin: 0;
    padding: 0;
    position: absolute;
    visibility: hidden;
    z-index: 9999;
}

.comments-footer .element-meta {
    margin-top: 2px;
    padding: 15px;
}

.comments-footer {
    margin-bottom: 15px;
}

/* Tipografia */

.comentari-bloc .media-body,
.comentari-bloc .media-body * {
    font-size: 15px;	
}

.comentari-bloc .media-body img {
    height: auto;
    max-width: 100%;
}

.comentari-bloc .media-body blockquote,
.comentari-bloc blockquote * {
    color: gray;
    /*	font-weight: normal;*/
}

.comentari-bloc .media-body ol,
.comentari-bloc .media-body ul {
    padding-left: 2em;	
}

.comentari-bloc .media-body ol {
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

.comentari-bloc .media-body li {
    list-style: disc outside none;
    margin-bottom: 0em !important;
}

.comentari-bloc .editors {
    border-top: 1px solid #d2d2d2;
    padding: 1em;	
}

.comentari-bloc .editors .username {
    font-weight: bold;
}

/* Pictogrames premis */

.picto-premi {
    width: 20px;
    height: 20px;
}


/* Comentaris plegats */

.comentari-bloc.folded {
    -moz-box-shadow:    0 -10px 6px -6px #bbb inset;
    -webkit-box-shadow: 0 -10px 6px -6px #bbb inset;
    box-shadow:         0 -10px 6px -6px #bbb inset;
    border-bottom: 1px solid #bbb;
    height: 59px;	
    overflow: hidden;
}

/*	Eines del fil
        ———————————————————————————————————— */

#eines-fils {
    background-color: #FFFFFF;
    margin-bottom: 10px;
    overflow: hidden;
}

#eines-fils .btn-primary {
    background-color: tomato;
    color: #fff;
    float: right;
    font-weight: bold;
    letter-spacing: 0.03em;
    padding: 9px 1em;
    text-transform: uppercase;
}

#eines-fils .btn-primary:hover {
    background-color: #fff;
    color: tomato;
}

/*	Afegeix comentari
        ———————————————————————————————————— */

.comments-footer footer {
    margin-bottom: 20px;
    background-color: #fff;
    overflow: hidden;
    border-top: 1px solid #ddd;
}

.comments-footer header {
    overflow: hidden;
    padding: 0 0 15px;
    background-color: transparent;
}

.comments-footer header h4 {
    float: left;
    margin-top: 0;
}

.comments-footer header .checkbox {
    float: right;
}

.comentari-descarta {
    border-right: 1px solid #ddd;
}

.pictogram.cross {
    font-size: 2.3em;
    vertical-align: middle;
}

.answer-footer {
    padding: 1em;
    background-color: #ddd;
}

.answer-footer .emoticones {
    overflow: hidden;
}

.answer-footer .emoticones a {
    display: block;
    float: left;
    height: 50px;
    margin-right: 5px;
    text-align: center;
    width: 50px;
    line-height: 45px;
}

.answer-footer .emoticones img {
    vertical-align: middle;
}


#capsa-emoticones .marc-emoticona {
    border: 1px dashed #aaa;
    height: 50px;
    width: 50px;
    text-align: center;
    vertical-align: middle;
}

.mostra-emoticones {
    border-top: 1px solid #999999;
    box-shadow: 0 -3px 5px -3px rgba(0, 0, 0, 0.4);
    display: block;
    margin-bottom: -7px;
    margin-top: 10px;
    padding-top: 4px;
    text-align: center;
    margin-right: -14px;
    margin-left: -14px;
}

.mostra-emoticones a { color: #999; }
.mostra-emoticones:hover a { color: #000; }
.mostra-emoticones:hover { cursor: pointer; }

.info-answer-footer {
    color: tomato;
    padding: 9px 0 0 10px;
    float: left;
}

.message-error-status {
    color: black;
    display: block;
    margin-bottom: 10px;
}

.rc-spoiler {
    display: none;    
    border: 1px solid gray;
    padding: 3px;
}

.rc-spoiler-off {
    display: inline-block !important;
}

/* Missatgeria */

.missatgeria-inici #missatgeria-principal .media-body {
    height: 22px;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

/*	Paginació
        ———————————————————————————————————— */

nav.paginador {
    background-color: #fff;
    text-align: center;
    position: relative;
    padding: 10px 5px 5px;    
}

.pagination > li > a,
.pagination > li > span {
    border-radius: 0 !important;
}

nav.paginador .previous,
nav.paginador .next {
    position: absolute;
}

nav.paginador .previous { left: 10px; }
nav.paginador .next { right: 10px; }

nav.paginador .pagination {
    margin: 0;
}

.pagination > .active > a, 
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: tomato;
    border-color: tomato;
    color: #FFFFFF;
    cursor: default;
    z-index: 2;
}
.pagination a.new {
    font-weight: bold;
    background-color: #F0F0F0;
} 

/* Media Queries */

/*Només mòbil*/

@media (max-width: 767px) {

    .media-metadades-usuari {
        display: block;
        margin-bottom: -19px;
    }	

    .media .avatar { width: 27px; }

    div.comentari-bloc .capsa-avatar { height: 35px; width: 50px; }

    .media-body {  margin-left: 15px; }

    .comentari-moderar > a em { display: none; }
    
    /* Vídeos */ 
    .comentari-bloc .media-body object {
        max-width: 100%;
        height: calc(180px + 10vw);
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .llista-botons a { padding: 9px; }
}

/*	Coloració dels nivells del fòrum 
        ———————————————————————————————————— */

#vots-comentaris {
    background-color: #ffffff;
    margin-bottom: 10px;
    overflow: hidden;
}

#vots-comentaris .actiu > a {
    background-color: lightgray;
    color: #333;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
}

#vots-comentaris .llista-botons span {
    margin-left: -4px !important;
    padding: 7px 0;
}

#vots-comentaris .llista-botons a {    
    padding: 12px 20px !important;
}

#vots-comentaris .llista-botons span a:hover {
    background-color: lightgray;
    color: #333;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);	
}

.dades-usuari .data-missatge {
    clear: both;
    display: block;
}

.dades-usuari span,
.dades-usuari span a,
.media hgroup time {
    color: #999999;
    font-weight: normal !important;
}

.dades-usuari a:hover {
    color: black;
}

.dades-usuari span {
    margin-right: 5px;
    font-size: 13px;
}

/* hacks */

.col-principal:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.msg-destacat {
    /*border: 3px solid #999;*/
    padding: 20px;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 0 20px 0px grey;
}

.msg-destacat hgroup {
    padding-bottom: 10px;
    margin-bottom: 10px;
    /*border-bottom: 1px solid black;*/
}

.msg-destacat--text-fix {
    font-size: 24px;
    color: tomato;
}

.msg-destacat--logo {
    float:right;
    max-width: 50px;
}

.msg-destacat--content h2,
.msg-destacat--content h3,
.msg-destacat--content h4 {
    margin-bottom: 5px;
}
    
.msg-destacat--content h2 {
    font-weight: bold;    
    font-size: 18px;
    color: #000000;
    line-height: 18px;
}

.msg-destacat--content h3 {
    font-weight: bold;  
    font-size: 18px;
    color: #7C7C7C;
    line-height: 18px;
}

.msg-destacat--content h4 {    
    font-weight: bold;  
    font-style: italic;
    font-size: 16px;
    color: #7C7C7C;
    line-height: 16px;
}



/* hacks */

#forum .lectures,
.forums-llista .lectures,
.forums-fils .lectures {
    display: inline-block !important;
}