@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

/* Variáveis CSS para melhor manutenção */
:root {
    --transition-speed: 0.3s;
    --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --masonry-gap: 20px;
    --result-min-height: 100px;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    background-color: #2c3e50;
    color: #E0E0E0;
    margin: 0;
    padding-top: 25px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: #4A90E2;
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
    color: #1E75C3;
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 500;
}

.result h2 {
    color: #ffffff;
    margin: 10px;
    line-height: 1.5;
    font-size: 18px;
    font-weight: 700;
    transition: color var(--transition-speed) var(--transition-timing);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.result h2:hover {
    color: #CCCCCC;
    text-shadow: none;
}

p {
    font-size: 1rem;
    color: #E0E0E0;
    margin-bottom: 1.5rem;
}

footer {
    background-color: #1c2833;
    color: #b0b0b0;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* LAYOUT MASONRY MELHORADO */
.result-list {
    position: relative;
    max-width: 95%;
    margin: 0 auto 1.5rem;
    min-height: var(--result-min-height);
    opacity: 1;
    transition: opacity var(--transition-speed) var(--transition-timing), 
                height var(--transition-speed) var(--transition-timing);
    will-change: opacity, height;
}

/* Container de resultados com melhor suporte para móveis */
@supports (display: grid) {
    @media (max-width: 500px) {
        .result-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            position: static !important;
        }
    }
}

.result {
    position: absolute;
    width: calc(10% - 18px);
    padding: 10px 5px;
    overflow: hidden;
    background-color: #34495e;
    border: 1px solid #ccc1818;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow var(--transition-speed) var(--transition-timing),
                transform var(--transition-speed) var(--transition-timing),
                opacity var(--transition-speed) var(--transition-timing);
    opacity: 1;
    transform: translateY(0);
    will-change: transform, box-shadow, left, top, width;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Animação suave de entrada */
.result:not(.show) {
    opacity: 0;
    transform: translateY(20px);
}

.result.show {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.4s var(--transition-timing) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result:hover {
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    z-index: 10;
}

.result h2, .result p {
    color: #CCCCCC;
    margin: 10px;
    line-height: 1.5;
}

.result h2 {
    font-size: 16px;
    font-weight: 700;
}

.result p {
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

.result img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 10px;
    display: block;
}

.result a {
    color: #CCC;
    font-weight: bold;
}

.result a:hover {
    color: #1E75C3;
}

/* Responsividade MELHORADA com transições suaves */
@media (max-width: 2400px) {
    .result { 
        width: calc(11.11% - 18px);
        transition: width var(--transition-speed) var(--transition-timing);
    }
}

@media (max-width: 2200px) {
    .result { 
        width: calc(12.5% - 17.5px);
    }
}

@media (max-width: 2000px) {
    .result { 
        width: calc(14.28% - 17px);
    }
}

@media (max-width: 1800px) {
    .result { 
        width: calc(16.66% - 16.5px);
    }
}

@media (max-width: 1600px) {
    .result { 
        width: calc(20% - 16px);
    }
}

@media (max-width: 1400px) {
    .result { 
        width: calc(25% - 15px);
    }
}

@media (max-width: 1100px) {
    .result { 
        width: calc(33.33% - 13.5px);
    }
}

@media (max-width: 800px) {
    .result { 
        width: calc(50% - 10px);
    }
}

/* Móvel - Melhorado para visibilidade imediata */
@media (max-width: 500px) {
    .result-list {
        opacity: 1 !important;
        min-height: auto;
        padding: 10px;
    }
    
    .result { 
        width: 100% !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin-bottom: 15px;
        opacity: 1 !important;
        transform: none !important;
        display: block !important;
    }
    
    .result.show {
        animation-duration: 0.3s;
    }
}

/* Melhorias gerais para dispositivos móveis */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 10px;
    }

    button, .button {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* Classes para reorganização suave durante resize */
.result-list.resizing .result {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.result.transitioning {
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                top 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                width 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Mantendo todo o resto do CSS original */
.home-button, .menu-button {
    position: relative;
    margin-right: 5px;
    background-color: #2c3e50;
    border: 1px solid #2c3e50;
    cursor: pointer;
    z-index: 10000;
    padding: 7px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed) var(--transition-timing), 
                transform var(--transition-speed) var(--transition-timing);
    color: #007bff;
    font-size: 22px;
}

.home-button:hover, .menu-button:hover {
    background-color: #343434;
    transform: scale(1.05);
}

.menu-button.open {
    background-color: #242424 !important;
    color: #FF6347;
}

.side-menu {
    position: fixed;
    z-index: 99999;
    top: 110px;
    left: 10px;
    bottom: 102px;
    width: 0;
    height: calc(100% - 212px);
    background-color: #202020;
    overflow-x: hidden;
    transition: width 0.5s var(--transition-timing);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    padding-top: 20px;
}

.side-menu a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: #B0B0B0;
    display: block;
    transition: color var(--transition-speed);
}

.side-menu a:hover {
    color: #4A90E2;
}

.side-menu .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 30px;
    margin-left: 50px;
    cursor: pointer;
    color: #D0D0D0;
}

.overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 2;
    cursor: pointer;
}

#search-button {
    width: 30%;
}

@media (max-width: 768px) {
    #search-button {
        width: 7% !important;
    }
}

@media (max-width: 768px) {
    .full-text {
        display: none;
    }

    .short-text {
        display: inline;
    }
}

@media (min-width: 2600px) {
    .result-list {
        max-width: 98%;
    }
    .result { 
        width: calc(10% - 18px);
    }
}

@media (min-width: 3200px) {
    .result-list {
        max-width: 3000px;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        left: 10px;
    }

    .search-bar {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .search-bar input[type="text"] {
        flex: 1;
        padding-left: 35px;
    }

    #search-button {
        flex-shrink: 0;
        width: 40%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #search-button span {
        font-size: 95%;
    }
}

@media screen and (max-width: 768px) {
    .side-menu.open {
        width: 95%;
    }
}

#search-button i, #search-button .full-text {
    margin-right: 5px;
}

@media (max-width: 768px) {
    #search-button .full-text {
        display: none;
    }
}

@media (min-width: 769px) {
    #search-button .short-text {
        display: none;
    }
}

.search-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-radius: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: 90%;
    margin: 0.5rem auto;
    max-width: 90%;
}

.search-bar input[type="text"] {
    flex-grow: 1;
    font-size: 1.6rem;
    border: none;
    border-radius: .5rem;
    padding: 1rem;
    margin-right: .2rem;
    height: 1rem;
    background-color: #F7F7F7;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease-in-out;
}

.search-bar input[type="text"] {
    padding-left: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    outline: none;
    margin-top: 1px;
    margin-bottom: 1px;
}

.search-bar input[type="text"]:focus {
    background-color: #eef;
    width: 100%;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ff0000;
    text-align: center;
    margin-top: 5px;
}

.logo {
    color: #ff0000;
    font-size: 300%;
    margin-top: 5rem;
    margin-bottom: .2rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #2c3e50;
    border-radius: .4rem;
    padding: .1rem;
    margin-top: .2rem;
    margin-bottom: 1rem;
}

#search-query {
    width: 80%;
    font-size: 1.3rem;
    border: none;
    background-color: #FFFFFF;
    margin-right: 1rem;
    flex-grow: 1;
    border-radius: 0.5rem;
    padding: 10px 15px;
    margin: 0 10px;
    padding-left: 10px;
}

#search-button {
    background-color: #2c3e50;
    border: none;
    border-radius: .4rem;
    color: #ff0000;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    height: 2rem;
    width: 15%;
    outline: none;
    transition: background-color var(--transition-speed) var(--transition-timing);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    margin-right: 5px;
}

#search-button:hover {
    background-color: #2c3e50;
}

#search-button:hover .search-icon {
    transform: scale(1.5);
}

.embed-holder {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    height: auto;
}

.embed-holder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 8px;
    padding: 3px;
    background-color: #f2f2f2;
    border-top: 1px solid #ccc;
}

.search-input {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    max-width: 100%;
    width: 90%;
}

.category-buttons-container {
    z-index: 98;
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    max-width: 100%;
    width: 89%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    white-space: nowrap;
    padding: 7px;
    background-color: transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    border-radius: 10px;
}

.category-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-arrow, .right-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #dddddd;
    cursor: pointer;
    transition: opacity var(--transition-speed) var(--transition-timing), 
                transform var(--transition-speed) var(--transition-timing), 
                background-color var(--transition-speed) var(--transition-timing);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
}

.left-arrow:hover, .right-arrow:hover {
    background-color: #dddddd;
    transform: scale(1.1);
}

.container:hover .left-arrow, .container:hover .right-arrow {
    opacity: 1;
}

.category-button {
    margin: 0 5px;
    background-color: #F7F7F7;
    border: none;
    border-radius: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color var(--transition-speed) var(--transition-timing), 
                transform var(--transition-speed) var(--transition-timing);
    font-family: 'Arial', sans-serif;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-button:hover {
    background-color: #EAEAEA;
    transform: scale(1.05);
}

.category-buttons-wrapper {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-buttons-wrapper::-webkit-scrollbar {
    display: none;
}

.category-button.plus {
    background-color: #2c3e50;
    color: #ff0000;
    font-weight: bold;
    font-size: 26px;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    border: none;
    padding: 0 5px;
    border-radius: 4px;
    line-height: 32px;
    transition: background-color var(--transition-speed) var(--transition-timing);
}

.category-button.plus:hover {
    color: #ff0000;
    background-color: #2c3e50;
    transform: scale(1.2);
}

.button.pin {
    background-color: #2c3e50;
    color: #007bff;
    font-weight: bold;
    font-size: 24px;
    text-decoration: none;
    border: none;
    padding: 0 5px;
    border-radius: 4px;
    line-height: 32px;
    transition: background-color var(--transition-speed) var(--transition-timing);
}

.button.pin:hover {
    color: #007bff;
    background-color: #2c3e50;
    transform: scale(1.2);
}

.favicon-and-site {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 5px;
    gap: 8px;
}

.favicon-and-site a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) var(--transition-timing), 
                transform var(--transition-speed) var(--transition-timing);
}

.favicon-and-site a:hover {
    color: #007bff;
    transform: scale(1.05);
}

.favicon-and-site img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    transition: transform var(--transition-speed) var(--transition-timing);
}

.favicon-and-site img:hover {
    transform: scale(1.2);
}

.source-name {
    margin-left: 1px;
}

.result {
    text-align: left;
}

.read-more-link {
    margin-top: 5px;
    margin-bottom: 10px;
    display: inline-block;
}

#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 12px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) var(--transition-timing);
}

#myBtn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

#myBtn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(0) scale(0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#myBtn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.4s var(--transition-timing), 
                transform 0.4s var(--transition-timing);
}

#myBtn:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

.container {
    z-index: 50;
    position: relative;
    min-height: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: auto;
    max-width: 80%;
    margin: 18px auto 10px;
    margin-bottom: 5px;
}

.login-register-section {
    z-index: 50;
    text-align: center;
    padding: 1px;
    background-color: #2c3e50;
    border: 1px solid #2c3e50;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: 'Roboto', sans-serif;
    color: #333;
    width: auto;
    max-width: 70%;
    margin: 15px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.login-register-section a {
    display: inline-block;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 2px 7.5px;
    margin: 1.5px 5px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color var(--transition-speed) var(--transition-timing);
}

.login-register-section a:hover {
    background-color: #d2d3d2;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#loginSection {
    margin: 0 auto 10px;
}

#tags-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#tags-container a {
    display: inline-block;
    margin-bottom: 5px;
    background-color: #e0e0e0;
    color: #333;
    border: 2px solid black;
    padding: 2px 2px;
    margin-right: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s ease-in-out;
}

#tags-container a:hover {
    transform: scale(1.1);
}

.tag-search-link {
    transition: transform 0.2s ease-in-out;
}

.tag-search-link:hover {
    transform: scale(1.1);
}

:root {
    --facebook-blue: #4267B2;
    --twitter-blue: #1DA1F2;
    --linkedin-blue: #0077b5;
    --whatsapp-green: #25D366;
    --pinterest-red: #BD081C;
    --telegram-blue: #0088CC;
    --reddit-orange: #FF4500;
    --copy-gray: #607D8B;
    --share-button-color: #FFC107;
    --share-button-hover-color: #FFD54F;
    --padding-small: 2px;
    --padding-medium: 4px;
    --icon-size: 22px;
    --hover-scale: 1.1;
}

.share-button-container {
    position: relative;
    display: inline-block;
    transition: transform var(--transition-speed) ease-in-out;
}

.share-icon-button {
    background: #34495e;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #cccccc;
    padding: 8px;
    border-radius: 50%;
    transition: transform var(--transition-speed) var(--transition-timing), 
                box-shadow var(--transition-speed) var(--transition-timing), 
                background-color var(--transition-speed) var(--transition-timing);
    outline: none;
}

.share-icon-button:focus {
    outline: none;
}

.share-icon-button:hover {
    transform: scale(1.3);
    background: #34495e;
}

.share-options {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%) translateX(-10px);
    background: none;
    border-radius: 6px;
    padding: var(--padding-medium);
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
    margin-left: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) var(--transition-timing), 
                transform var(--transition-speed) var(--transition-timing);
}

.share-button-container:hover .share-options,
.share-button-container:focus-within .share-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.share-options button {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: var(--padding-small);
    margin-right: var(--padding-small);
    transition: transform 0.2s ease-in-out;
    outline: none;
}

.share-options button:hover {
    transform: scale(1.1);
}

.share-options button i {
    font-size: var(--icon-size);
    color: var(--copy-gray);
    transition: color var(--transition-speed) var(--transition-timing);
}

.share-options button i.fa-facebook-f { color: var(--facebook-blue); }
.share-options button i.fa-twitter { color: var(--twitter-blue); }
.share-options button i.fa-linkedin { color: var(--linkedin-blue); }
.share-options button i.fa-whatsapp { color: var(--whatsapp-green); }
.share-options button i.fa-pinterest { color: var(--pinterest-red); }
.share-options button i.fa-telegram-plane { color: var(--telegram-blue); }
.share-options button i.fa-reddit-alien { color: var(--reddit-orange); }
.share-options button i.fa-copy { color: var(--copy-gray); }

.share-options button:hover i {
    transform: scale(var(--hover-scale));
    color: #FFC107;
}

.copy-iframe-btn {
    padding: var(--padding-small);
    border: none;
    background-color: none;
    color: #34495e;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed) var(--transition-timing), 
                transform 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--icon-size);
}

.copy-iframe-btn:hover, .copy-iframe-btn:focus {
    background-color: none;
    outline: none;
    transform: scale(var(--hover-scale));
}

.copy-iframe-btn i {
    margin-right: 5px;
}

.responsive-iframe-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.responsive-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: none;
}

.author-avatar {
    border-color: #CCC !important;
    transition: transform var(--transition-speed) var(--transition-timing);
}

.author-avatar:hover {
    transform: scale(1.2);
}

.facebook-embed, .tiktok-embed {
    background-color: #f0f0f0;
    position: relative;
    height: 670px;
    margin-bottom: 10px;
}

.facebook-embed div, .tiktok-embed div {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

.like-dislike-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    background-color: transparent;
    padding: 8px;
    border-radius: 8px;
    position: relative;
}

.right-save-button {
    margin-left: auto;
}

.like-btn, .dislike-btn, .save-btn {
    background-color: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    padding: .1px;
    border-radius: 50%;
}

.like-btn {
    color: #cccccc;
    margin-right: 10px;
}

.dislike-btn {
    color: #cccccc;
    margin-left: 10px;
}

.like-btn.liked {
    color: #FFC107;
}

.dislike-btn.disliked {
    color: #ff0000;
}

.like-btn:hover {
    color: #cccccc;
    transform: scale(1.1);
}

.dislike-btn:hover {
    color: #cccccc;
    transform: scale(1.1);
}

.like-count, .dislike-count {
    margin-left: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #cccccc;
    transition: color 0.2s;
}

.like-btn:hover .like-count, .dislike-btn:hover .dislike-count {
    color: #cccccc;
}

.like-btn:active, .dislike-btn:active {
    transform: scale(1.05);
}

.save-btn {
    color: #cccccc;
    margin-left: 20px;
    font-size: 15px;
    transition: color 0.2s, transform 0.2s;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.save-btn:not(.saved):hover {
    color: #cccccc;
    transform: scale(1.1);
}

.save-btn.saved {
    color: #28a745;
}

.save-btn.saved:hover {
    color: #218838;
}

.follow-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-size: 15px;
    visibility: hidden;
}

.follow-btn.not-following i {
    color: #cccccc;
}

.follow-btn.following i {
    color: green;
}

.follow-btn.visible {
    visibility: visible;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #22a6b3;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.check-grow {
    font-size: 0;
    display: inline-block;
    animation: grow 0.5s ease-out forwards, explode 0.8s ease-in 0.5s forwards;
}

@keyframes grow {
    0% { transform: scale(0); }
    100% { transform: scale(1.5); }
}

@keyframes explode {
    100% { opacity: 0; transform: scale(3); }
}

.check-break {
    font-size: 1.5em;
    display: inline-block;
    animation: break 0.5s ease-in forwards;
}

@keyframes break {
    0% { transform: scale(1); }
    100% { transform: scale(0); opacity: 0; }
}

#follow-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 22px;
    display: none;
    opacity: 0;
    transition: all 0.7s ease-out;
    z-index: 1000;
    text-align: center;
    max-width: 250px;
    word-wrap: break-word;
    overflow: hidden;
}

#follow-popup.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

#follow-popup.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#follow-popup .icon {
    font-size: 56px;
    display: block;
    margin-bottom: 10px;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#follow-popup .highlight {
    font-size: 24px;
    font-weight: bold;
    animation: text-glow 1.5s infinite alternate;
}

@keyframes text-glow {
    0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

@keyframes icon-bounce {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

#like-emoji, #dislike-emoji {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    z-index: 1000;
}

#like-emoji.show, #dislike-emoji.show {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
}

#dislike-emoji {
    color: #ff0000;
}

.comment {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ffffff;
    padding: 8px;
    background-color: #2c3e50;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color var(--transition-speed) var(--transition-timing), 
                box-shadow var(--transition-speed) var(--transition-timing);
}

.comment:hover {
    background-color: #34495e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.comment p {
    margin: 0;
    color: #cccccc;
    padding-bottom: 10px;
    line-height: 1.5;
    max-width: 98%;
    overflow-wrap: break-word;
}

.comment-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: 10px;
}

.comment-section {
    margin-top: 15px;
    background-color: #34495e;
    padding: 10px;
    border-radius: 5px;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.comment-section textarea {
    width: 100%;
    height: auto;
    min-height: 50px;
    margin-bottom: 10px;
    border-radius: 5px;
    padding: 10px;
    border: 1px solid #2c3e50;
    font-size: 16px;
    background-color: #34495e;
    color: #cccccc;
    resize: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-section textarea::-webkit-scrollbar {
    display: none;
}

.comment-section {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.post-comment-btn {
    align-self: flex-end;
    margin-top: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.post-comment-btn i {
    color: #007bff;
    font-size: 24px;
    transition: transform var(--transition-speed) var(--transition-timing), 
                color var(--transition-speed) var(--transition-timing);
}

.post-comment-btn:hover i {
    transform: scale(1.3);
    color: #0056b3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.post-comment-btn:active i {
    transform: scale(1.1);
    color: #004494;
}

.search-comments {
    width: calc(100% - 30px);
    padding: 8px;
    border-radius: 5px;
    background-color: #2c3e50;
    color: #fff;
    border: 1px solid #ccc;
    margin-right: 10px;
}

textarea::placeholder {
    color: rgba(170, 170, 170, 0.8);
    font-size: 13px;
    font-style: italic;
}

textarea:hover {
    border-color: #2c3e50;
}

textarea:focus::placeholder {
    color: transparent;
}

.icon-action {
    transition: color var(--transition-speed) var(--transition-timing), 
                transform 0.15s var(--transition-timing);
}

.icon-action.liked {
    color: #FFC107;
    transform: scale(1.2);
}

.icon-action.disliked {
    color: #FF0000;
    transform: scale(1.2);
}

.icon-action.saved {
    color: #007bff;
    transform: scale(1.2);
}

.emoji-list {
    display: none;
    position: absolute;
    left: 10px;
    top: 140px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 15px 10px 10px 10px;
    z-index: 1000;
    width: 88%;
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: none;
    transition: opacity var(--transition-speed) var(--transition-timing), 
                transform var(--transition-speed) var(--transition-timing);
    opacity: 0;
    transform: translateY(10px);
}

.emoji-list.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.emoji-list::-webkit-scrollbar {
    display: none;
}

.emoji-category {
    margin-bottom: 10px;
}

.emoji-category-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.emoji-item {
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.1s;
}

.emoji-item:hover {
    transform: scale(1.2);
}

.emoji-list .close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    color: #555;
    font-weight: bold;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.emoji-list .close-btn:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* Melhorias de performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Garantir visibilidade em dispositivos móveis durante carregamento */
@media (max-width: 768px) {
    .result-list,
    .result {
        opacity: 1 !important;
        visibility: visible !important;
    }
}