html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--fkweb-color-light2);
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

:root {
    --fkweb-marca1: #ce864b;
    --fkweb-marca2: #915422;
    --fkweb-marca3: #643a18;
    --fkweb-color-light1: #faf8f3;
    --fkweb-color-light2: #eee1e1;
    --fkweb-color-light3: #e2d2cd;
    --fkweb-color-light4: #cfbbb2;
    --fkweb-color-dark1: #706a67;
    --fkweb-color-dark2: #494541;
    --fkweb-color-dark3: #35332f;
    --fkweb-color-dark4: #201a19;
    --fkweb-colorsystem1: #207bf1;
    --fkweb-colorsystem2: #ce1f1f;
    --fkweb-colorsystem3: #218131;
}

a {
    text-decoration: none;
    color: var(--fkweb-marca1);
}

a:hover {
    text-decoration: none;
    color: var(--fkweb-marca3);
}



/*cadastro e login*/

.fkweb-form {
    width: 90%;
    max-width: 420px;
    padding: 20px 0;
    color: var(--fkweb-color-dark1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fkweb-formo > label {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fkweb-form > label > input {
    min-height: 36px;
    border: 1px solid var(--fkweb-color-dark1);
    border-radius: 6px;
    width: 100%;
    padding: 10px;
}

.fkweb-form > .button {
    width: 100%;
    max-width: 420px;
    padding: 20px 0;
    border-radius: 6px;
    margin-top: 20px;
    background-color: var(--fkweb-marca1);
    border: 0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;

}

.fkweb-form > label > .arquivo {
    padding: 0;

}

.fkweb-form > label > input[type="file"]::file-selector-button {
    border-radius: 0px;
    padding: 0 16px;
    height: 40px;
    cursor: pointer;
    background-color: var(--fkweb-marca2);
    color: var(--fkweb-color-light1);
    border: none;
    margin-right: 16px;
    transition: background-color 200ms;
}

.fkweb-form > label > input[type="file"]::file-selector-button:hover {
    background-color: var(--fkweb-marca3);
}

.fkweb-form > label > input[type="file"]::file-selector-button:active {
    background-color: var(--fkweb-marca1);
}

/* olho */
.fkweb-form > label > .toggle-password {
    position: absolute;
    margin-left: -30px;
    margin-top: 8px;
    cursor: pointer;
}




/* Header */

.fkode-header {
    width: 100%;
    background-color: var(--fkweb-marca2);
    position: sticky;
    margin: 0;
    top: 0;
    padding: 20px 0;
    z-index: 1000;
    ;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--fkweb-color-light1);
}

.fkode-header a {
    color: var(--fkweb-color-light1);
    text-decoration: underline;
}

.fkode-header nav {
    width: 90%;
    max-width: 1200px;
    display: flex;
    gap: 20px;
    position: relative;
}

.fkode-header nav>a:nth-child(3) {
    background-color: var(--fkweb-marca3);
    color: var(--fkweb-color-light1);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    position: absolute;
    right: 10px;
}






/* home */

.fkode {
    width: 90%;
    margin: 30px 0;
    max-width: 768px;
    background-color: var(--fkweb-color-light1);
    padding: 20px;
    border-radius: 20px;
    box-shadow: #0b0b0b2c 0 0 40px;
    font-size: 16px;
}

.fkode h1,
.fkode h2,
.fkode h3,
.fkode h4,
.fkode h5,
.fkode h6,
.fkode p {
    padding: 0;
    margin: 0;
    border: 0;
    color: unset;
    text-decoration: unset;
}

.fkode-linkdestaque {
    background-color: var(--fkweb-marca1);
    border-radius: 2px;
    color: var(--fkweb-color-light1) !important;
    text-decoration: none !important;
    padding: 0 4px;
}

.fkode-linkmarca {
    color: var(--fkweb-marca1) !important;
}

.fkode-linkmarca:hover {
    color: var(--fkweb-marca2) !important;
}

.fkode-linkclaro {
    color: var(--fkweb-color-light1) !important;
}

.fkode-linkclaro:hover {
    color: var(--fkweb-color-light2) !important;
}

.fkode-linkescuro {
    color: var(--fkweb-color-dark4) !important;
}

.fkode-linkescuro:hover {
    color: var(--fkweb-color-dark3) !important;
}






/* user home */

.profile-pic-large {
    width: 100%;
    max-width: 100px;
    min-width: 60px;
    height: auto;
    border-radius: 10px;
    vertical-align: middle;
}

.fkode>div:nth-child(1) {
    width: 100%;
    padding: 20px;
    display: grid;
    gap: 20px;
    row-gap: 10px;
    grid-template-columns: 1fr 6fr;
    align-items: center;
}

.fkode>div:nth-child(1)>a:nth-child(1) {
    grid-row: 1/3;
    grid-column: 1/2;
}

.fkode>div:nth-child(1)>p {
    grid-row: 2/3;
    grid-column: 2/3;
}

.fkode h1 {
    font-size: 2.4em;
    margin-bottom: -60px;
}






/* posting home */

.fkode>form {
    width: 100%;
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
}

.fkode>form>textarea {
    width: 100%;
    height: 80px;
    border: var(--fkweb-color-light3) 1px solid;
    padding: 5px;
}

/* Estilos para o contador de caracteres das postagens */
#post-char-counter {
    font-size: 0.8em;
    color: var(--fkweb-color-dark1);
    text-align: right;
    margin-top: 5px;
}

.fkode-button {
    background-color: var(--fkweb-marca1);
    border-radius: 300px;
    color: var(--fkweb-color-dark3) !important;
    font-weight: bold;
    text-decoration: none !important;
    padding: 10px 20px;
    white-space: nowrap;
    margin: 6px 0;
    transition: 0.5s ease-in;
    border: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.fkode-button:hover {
    background-color: var(--fkweb-marca3);
    color: var(--fkweb-color-light1) !important;
}






/* posts */

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    vertical-align: middle;
}

.post {
    width: 100%;
    padding: 20px;
    border: var(--fkweb-color-light3) solid 1px;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    overflow: hidden;
}

.post>em {
    color: var(--fkweb-color-light4);
    font-size: 11px;
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.delete-button {
    color: #000000;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    background-color: #ffffff;
    font-size: 11px;
    position: absolute;
    right: 120px;
    bottom: 4px;
}

.delete-button:hover {
    color: #000000;
}

.reply-button {
    position: absolute;
    top: 2px;
    right: 2px;
    border-radius: 8px;
    background-color: var(--fkweb-color-dark3);
    color: var(--fkweb-color-light1);
    border: 0;
    cursor: pointer;
    padding: 2px 10px;
}

/* Estilos para o contador de caracteres das respostas */
.response-char-counter {
    font-size: 0.8em;
    color: var(--fkweb-color-dark1);
    text-align: right;
    margin-top: 5px;
}

/* Estilos para o formulÃ¡rio de resposta */
.response-form {
    width: 100%;
    margin-top: 10px;
}

.response-form textarea {
    width: 100%;
    height: 50px;
    margin-bottom: 5px;
}

.responses {
    width: 100%;
    padding: 5px 0;
    margin: 4px 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.response {
    width: 100%;
    border: 1px solid #ddd;
    border-left: 10px var(--fkweb-color-light3) solid;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.response>em {
    color: var(--fkweb-color-light4);
    font-size: 11px;
    position: absolute;
    right: 10px;
    bottom: 10px;
}





/* Footer */
.fkweb-footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    background-color: var(--fkweb-color-light2);
    text-align: center;
    border-top: 1px var(--fkweb-color-light3) solid;
    padding: 2px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}






/* Profile page */
.fkweb-profilepage {
    width: 90%;
    max-width: 1200px;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;

}

.fkweb-profilepage {
    width: 90%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 120px;

}


.fkweb-profilepage-user {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fkweb-profilepage-user h1 {
    margin: 0;
    padding: 0;
    font-size: 1.5em;
}

.fkweb-profilepage-user p {
    margin: 0;
    padding: 0;
}

.fkweb-profilepage-user img {
 width: 90%;
 max-width: 200px;
 border-radius: 1000px;
}



.fkweb-profilepage-posts {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fkweb-profilepage-posts h2 {
    margin: 0;
    padding: 0;
}

#posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#posts p {
    margin: 0;
    padding: 20px;
    background-color: var(--fkweb-color-light1);
    border-radius: 6px;
}

#posts p > em {
    width: 100%;
    text-align: left;
    font-size: 0.6em;
    color: var(--fkweb-color-dark1);
    display: flex;
    justify-content: flex-end;
}


/* ── Notificações ─────────────────────────────────────────── */

.fkweb-notif {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fkweb-notif__bell {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fkweb-color-light1);
    padding: 4px 6px;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.fkweb-notif__bell:hover {
    background: rgba(255,255,255,0.15);
}

.fkweb-notif__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--fkweb-colorsystem2);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    pointer-events: none;
}

.fkweb-notif__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--fkweb-color-light1);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    z-index: 2000;
    border: 1px solid var(--fkweb-color-light3);
}

/* Seta do dropdown */
.fkweb-notif__dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 18px;
    width: 14px;
    height: 14px;
    background: var(--fkweb-color-light1);
    border-top: 1px solid var(--fkweb-color-light3);
    border-left: 1px solid var(--fkweb-color-light3);
    transform: rotate(45deg);
}

.fkweb-notif__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--fkweb-color-light3);
    font-weight: bold;
    font-size: 14px;
    color: var(--fkweb-color-dark2);
    position: sticky;
    top: 0;
    background: var(--fkweb-color-light1);
    z-index: 1;
    border-radius: 12px 12px 0 0;
}

.fkweb-notif__header button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--fkweb-marca2);
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}

.fkweb-notif__header button:hover {
    background: var(--fkweb-color-light2);
}

#notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fkweb-notif__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--fkweb-color-light2);
    background: #f0fdf6;
    transition: background 0.15s;
    position: relative;
}

.fkweb-notif__item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.fkweb-notif__item:hover {
    background: #e2f8ec;
}

.fkweb-notif__item--lida {
    background: var(--fkweb-color-light1);
}

.fkweb-notif__item--lida:hover {
    background: var(--fkweb-color-light2);
}

.fkweb-notif__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fkweb-notif__body {
    flex: 1;
    min-width: 0;
}

.fkweb-notif__body p {
    margin: 0;
    font-size: 13px;
    color: var(--fkweb-color-dark2);
    line-height: 1.4;
    word-break: break-word;
}

.fkweb-notif__body small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: var(--fkweb-color-light4);
}

.fkweb-notif__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fkweb-marca1);
    flex-shrink: 0;
    align-self: center;
}

.fkweb-notif__empty {
    padding: 20px;
    text-align: center;
    color: var(--fkweb-color-light4);
    font-size: 13px;
}

/* Post actions (feed) */
.post-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.post-permalink {
    font-size: 12px;
    color: var(--fkweb-color-light4) !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.post-permalink:hover {
    color: var(--fkweb-color-dark1) !important;
}

/* Post destaque (post.php) */
.post--destaque {
    border-left: 4px solid var(--fkweb-marca1);
}


/* ── Botão de Like ─────────────────────────────────────────── */

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1.5px solid var(--fkweb-color-light3);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 14px;
    cursor: pointer;
    color: var(--fkweb-color-dark1);
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    user-select: none;
    line-height: 1.4;
}

.like-btn:hover {
    border-color: #e0a0a0;
    background: #fff0f0;
}

.like-btn:active {
    transform: scale(0.93);
}

.like-btn--ativo {
    border-color: #e05555;
    background: #fff0f0;
    color: #c0392b;
}

.like-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.like-count {
    font-size: 13px;
    font-weight: 600;
    min-width: 12px;
    text-align: center;
}

/* animação de coração ao curtir */
@keyframes heartPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.like-btn--ativo .like-icon {
    display: inline-block;
    animation: heartPop 0.35s ease;
}

/* ── Ícone de tipo de notificação ─────────────────────────── */
.notif-tipo-icon {
    font-size: 13px;
    margin-right: 2px;
}

/* Animação de entrada no dropdown */
@keyframes notifSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fkweb-notif__dropdown.open {
    animation: notifSlideIn 0.18s ease;
}


/* ── Hashtags no texto dos posts ───────────────────────────── */
.fkweb-hashtag {
    color: var(--fkweb-marca2) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.15s;
}
.fkweb-hashtag:hover {
    color: var(--fkweb-marca3) !important;
    text-decoration: underline !important;
}


/* ── Página de Hashtag — cards mistos (post + comentário) ──── */

/* Faixa de contexto no topo do card de comentário */
.hash-context {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 12px;
    color: var(--fkweb-color-light4);
    background: var(--fkweb-color-light2);
    border-radius: 8px 8px 0 0;
    padding: 6px 10px;
    margin: -20px -20px 12px -20px;   /* sangra nas bordas do .post */
    width: calc(100% + 40px);
    box-sizing: border-box;
}

.hash-context__icon {
    font-size: 13px;
}

.hash-context__author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--fkweb-color-dark1) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.hash-context__author:hover {
    color: var(--fkweb-marca2) !important;
}

.hash-context__avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

.hash-context__link {
    margin-left: auto;
    color: var(--fkweb-marca2) !important;
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
    text-decoration: none !important;
    transition: color 0.15s;
}

.hash-context__link:hover {
    color: var(--fkweb-marca3) !important;
    text-decoration: underline !important;
}

/* Corpo do card */
.hash-body {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
}

.hash-body__content {
    flex: 1;
    min-width: 0;
}

.hash-body__content p {
    margin: 0;
    word-break: break-word;
}

.hash-body__content em {
    font-size: 11px;
    color: var(--fkweb-color-light4);
    display: block;
    margin-top: 4px;
}

/* Borda lateral colorida para diferenciar comentário de post */
.hash-post--post {
    border-left: 3px solid var(--fkweb-marca1);
}

.hash-post--comentario {
    border-left: 3px solid var(--fkweb-colorsystem1);
}


/* ── Badges de relação (😇 amigo / 😈 inimigo) ─────────────── */

.fkweb-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    padding: 1px 7px;
    border-radius: 100px;
    vertical-align: middle;
    line-height: 1.4;
    font-weight: 600;
    white-space: nowrap;
}
.fkweb-badge small { font-size: 11px; font-weight: 500; }
.fkweb-badge--amigo   { background: #e8faf0; color: #1a7a40; border: 1px solid #a3e0bb; }
.fkweb-badge--inimigo { background: #fdecea; color: #a93226; border: 1px solid #f5b7b1; }

/* ── Botões mini de relação (no feed, ao lado do avatar) ────── */

.post-author-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    float: left;
    margin-right: 10px;
}

.fkweb-rel-btns--mini {
    display: flex;
    gap: 2px;
}

.fkweb-rel-btn {
    background: none;
    border: 1px solid var(--fkweb-color-light3);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    padding: 0;
    line-height: 1;
}
.fkweb-rel-btn:hover   { background: var(--fkweb-color-light2); border-color: var(--fkweb-color-dark1); }
.fkweb-rel-btn:active  { transform: scale(0.88); }

.fkweb-rel-btn--amigo.fkweb-rel-btn--ativo   { background: #e8faf0; border-color: #27ae60; }
.fkweb-rel-btn--inimigo.fkweb-rel-btn--ativo { background: #fdecea; border-color: #e74c3c; }

/* ── Animação ao clicar ─────────────────────────────────────── */
@keyframes relPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.fkweb-rel-btn--ativo { animation: relPop 0.25s ease; }

/* Contagem dentro dos botões de relação */
.perfil-rel-cnt {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 400;
}
.fkweb-rel-btn .rel-cnt {
    font-size: 11px;
    opacity: 0.8;
    min-width: 10px;
    text-align: center;
}

/* Pontuação pública no próprio perfil */
.perfil-minha-pontuacao {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.perfil-minha-pontuacao .fkweb-badge {
    font-size: 14px;
    padding: 4px 12px;
}
