/* ESTILOS GERAIS */
body {
    margin: 0;
    background: #000;
    font-family: 'Inria Sans', sans-serif;
}
a { text-decoration: none; }
.conteiner {
    width: 100%;
    min-height: 100vh;
    position: relative;
}
#bg_espaco {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.box {
    position: relative;
    z-index: 1;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}
.topo {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}
.imgFooter {
    width: 300px;
    padding: 15px;
}

/* PÁGINA HOME E CATEGORIA */
.box_home {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 980px;
    margin: 25px auto 0 auto;
}

.box_categorias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.box_cardsVisitas {
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.title_destaque {
    width: 100%;
    text-align: center;
    padding: 5px;
    margin-top: 20px;
    margin-bottom: 5px;
    font-family: 'Dosis', sans-serif;
    font-size: 20px;
    font-weight: 700;
}
.item-cat, .item-cat-todos, .item-cat-random {
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}
.item-cat { background: #fff; color: #000; }
.item-cat-todos { background: #EF476E; color: #fff; }
.item-cat-random { background: linear-gradient(45deg, #9b59b6, #8e44ad); color: #fff; }
.item-cat:hover, .item-cat-todos:hover, .item-cat-random:hover { transform: scale(1.05); }


/* COMPONENTE FLASHCARD (LISTAGEM) */
.flashcard {
    width: 295px;
    background: #1a1a1a;
    border-radius: 15px;
    border: 2px solid; /* A cor será definida pela classe border-color-* */
    padding: 10px 10px 20px 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.flashcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.img-card { width: 100%; height: 150px; }
.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.titulo-card, .categoria-card, .descricao-card, .bt-card {
    font-family: 'Dosis', sans-serif;
}
.titulo-card {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 15px 0;
}
.categoria-card {
    width: 100%;
    color: #000;
    text-align: center;
    padding: 6px 10px;
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.descricao-card {
    width: 100%;
    min-height: 170px;
    height: auto;
    background: #e0e0e0;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
    padding: 10px;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    overflow: hidden;
}

/* PÁGINA DE DETALHE DO FLASHCARD (GERAL) */
.box_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}
.detalhe-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}
.coluna-card-principal, .coluna-card-detalhes {
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: center;
}
.card-details-box {
    background: #1a1a1a;
    border-radius: 15px;
    border: 2px solid;
    padding: 20px;
    box-sizing: border-box;
    color: #f0f0f0;
    width: 100%; 
}
.card-details-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'Dosis', sans-serif;
    font-weight: 700;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}
.card-details {
    background-color: #252422;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}
.detail-item strong {
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-item i {
    color: #EF476E;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.bt-card {
    width: auto;
    padding-left: 40px;
    padding-right: 40px;
    white-space: nowrap; 
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 42px;
    border-radius: 25px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: 10px;
    box-sizing: border-box;
    cursor: pointer;
    background: linear-gradient(145deg, #f15b7c, #e83a65);
    color: #fff;
    border: 1px solid #d13259;
    box-shadow: 0 4px 0 0 #b32b4c;
    transition: all 0.15s ease-in-out;
}
.bt-card:hover { 
    background: linear-gradient(145deg, #f26e8e, #ef476e);
    color: #fff;
    border-color: #d13259;
    box-shadow: 0 6px 0 0 #b32b4c;
    transform: translateY(-2px);
}
.bt-card:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 0 #b32b4c;
}

/* --- FEEDBACK CURTIDA E PARTILHA --- */
.info-card {
    width: 100%;
    max-width: 350px;
    height: 45px;
    border-radius: 10px;
    background: #252422;
    padding: 5px 15px; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    box-sizing: border-box;
}
.card-like, .card-visita { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: bold; }
.card-like { cursor: pointer; }
.share-buttons { display: flex; align-items: center; gap: 10px; }
.share-btn {
    display: flex;
    width: 35px; height: 35px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    color: white !important;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.share-btn:hover { transform: scale(1.1); }
.share-btn.whatsapp { background-color: #25D366; }
.share-btn.copy-link { background-color: #8f8f8f; }
.share-btn.report-btn { background-color: #fca311; }


.compartilha_mensagem { display: none; width: 270px; margin-top: 10px; padding: 10px; border-radius: 5px; font-size: 16px; font-weight: bold; text-align: center; }
.compartilha_mensagem.sucesso { background: #2ecc71; color: #000; }

@keyframes pulse-heart {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.liked-animation .icon-link img {
  animation: pulse-heart 0.5s ease-in-out;
}
.card-like.curtido { cursor: default; opacity: 0.6; }
.card-like.curtido .icon-link img { filter: grayscale(100%); }

/* --- MODAL DE REPORT --- */
.modal-report {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.modal-report-content {
    background-color: #1e1e1e;
    padding: 30px;
    border: 1px solid #444;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    font-family: 'Dosis', sans-serif;
}
.modal-report-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-report-content h3 { margin-top: 0; font-size: 22px; }
.modal-report-content p { color: #ccc; margin-bottom: 20px; }
.form-group-report { margin-bottom: 15px; }
.form-group-report select, .form-group-report textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
}
.form-group-report textarea { height: 100px; resize: vertical; }
.btn-report-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #EF476E;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-report-submit:hover { background-color: #d84063; }

/* BARRA ADMIN */
.admin-bar { background-color: #1a1a1a; color: #e0e0e0; padding: 0 20px; width: 100%; box-sizing: border-box; position: sticky; top: 0; z-index: 99999 !important; box-shadow: 0 2px 10px rgba(0,0,0,0.5); font-family: 'Dosis', sans-serif; height: 45px; display: flex; align-items: center; }
.admin-bar-content { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; }
.admin-greeting { font-weight: 500; font-size: 16px; }
.admin-greeting i { margin-right: 8px; color: #EF476E; }
.admin-links { display: flex; align-items: center; gap: 10px; }
.admin-links a { color: #ffffff; text-decoration: none; margin-left: 0; font-weight: 500; padding: 6px 12px; border-radius: 5px; transition: background-color 0.3s; font-size: 14px; }
.admin-links a:hover { background-color: #333; color: #ffffff; }
.admin-links a.edit-link { background-color: #44AF69; color: white; }
.admin-links a.edit-link:hover { background-color: #3a9459; }
.admin-bar-content.guest-bar { justify-content: flex-end; gap: 10px; display: flex; align-items: center; }
.login-prompt-link { background-color: #277da1; color: white; text-decoration: none; padding: 6px 12px; border-radius: 5px; font-weight: 500; font-size: 14px; transition: background-color 0.3s; }
.login-prompt-link:hover { background-color: #216a88; }
.login-prompt-link i { margin-right: 8px; }

/* BARRA DE PESQUISA */
.search-container { width: 100%; max-width: 600px; margin: 20px auto; padding: 0 15px; box-sizing: border-box; }
.search-container form { display: flex; width: 100%; border-radius: 50px; background-color: #2c2c2c; border: 2px solid #fff; overflow: hidden; }
.search-input { flex-grow: 1; border: none; background: transparent; padding: 12px 20px; font-size: 16px; color: #fff; font-family: 'Dosis', sans-serif; }
.search-input:focus { outline: none; }
.search-input::placeholder { color: #a0a0a0; }
.search-button { background-color: #EF476E; color: white; border: none; padding: 0 20px; cursor: pointer; font-size: 18px; transition: background-color 0.3s; }
.search-button:hover { background-color: #d84063; }

/* PÁGINA DE SUGESTÃO E MENSAGENS GERAIS */
.form-container { width: 100%; max-width: 600px; margin: 40px auto; padding: 30px; background-color: #1e1e1e; border-radius: 10px; box-sizing: border-box; font-family: 'Dosis', sans-serif; }
.form-container h2 { text-align: center; margin-top: 0; font-weight: 500; }
.form-container p { text-align: center; color: #ccc; margin-bottom: 25px; }
.form-container .form-group { margin-bottom: 20px; }
.form-container label { display: block; margin-bottom: 8px; color: #f0f0f0; }
.form-container input { width: 100%; padding: 12px; border-radius: 5px; border: 1px solid #444; background-color: #2c2c2c; color: #fff; font-size: 16px; box-sizing: border-box; }
.form-container button { width: 100%; padding: 12px; border: none; border-radius: 5px; background-color: #44AF69; color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; transition: background-color 0.3s; }
.form-container button:hover { background-color: #3a9459; }
.mensagem { padding: 15px; margin-bottom: 20px; border-radius: 5px; text-align: center; font-weight: bold; }
.mensagem.sucesso { background-color: #44AF69; color: #fff; }
.mensagem.erro { background-color: #f94144; color: #fff; }

/* PAGINAÇÃO */
.pagination { width: 100%; margin-top: 40px; padding: 0 15px; box-sizing: border-box; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination a { color: #ffffff; padding: 8px 16px; text-decoration: none; border: 1px solid #444; margin: 0; border-radius: 5px; transition: background-color 0.3s, color 0.3s; }
.pagination a:hover { background-color: #EF476E; color: #ffffff; border-color: #EF476E; }
.pagination a.active { background-color: #EF476E; color: white; border-color: #EF476E; font-weight: bold; }

.sugestao-link { background-color: #fca311; }
.sugestao-link:hover { background-color: #e79307; }
.sugestao-link i { margin-right: 8px; }

/* BRANDING E FILTROS */
.card-branding { width: 100%; text-align: center; padding-top: 8px; margin-bottom: 5px; border-top: 1px solid #333; }
.card-branding img { height: 25px; width: auto; opacity: 1; }
.filtros-container { width: 100%; max-width: 980px; margin-top: 20px; padding: 15px; background-color: #1a1a1a; border-radius: 10px; box-sizing: border-box; }
.filtros-container form { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; }
.filtros-container select { padding: 10px; border-radius: 5px; border: 1px solid #444; background-color: #2c2c2c; color: #fff; font-family: 'Dosis', sans-serif; font-size: 16px; cursor: pointer; }
.btn-limpar-filtros { padding: 10px 15px; background-color: #8f8f8f; color: #fff; text-decoration: none; border-radius: 5px; font-size: 16px; font-family: 'Dosis', sans-serif; font-weight: 600; transition: background-color 0.3s; }
.btn-limpar-filtros:hover { background-color: #7a7a7a; }

/* CARDS RELACIONADOS */
.related-container { width: 100%; max-width: 800px; margin-top: 50px; padding-top: 30px; border-top: 1px solid #333; }
.related-title { font-family: 'Dosis', sans-serif; font-weight: 700; font-size: 22px; text-align: center; margin-bottom: 25px; color: #fff; }
.related-cards-grid { display: flex; justify-content: center; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.mini-card { width: 200px; text-decoration: none; color: #fff; transition: transform 0.3s ease; }
.mini-card:hover { transform: translateY(-5px); }
.mini-card img { width: 100%; height: 105px; object-fit: cover; border-radius: 8px; border: 2px solid #555; }
.mini-card h4 { font-family: 'Dosis', sans-serif; font-weight: 600; font-size: 18px; text-align: center; margin-top: 10px; }

/* CARD DESATIVADO */
.flashcard.card-inativo { filter: grayscale(1) blur(2px); opacity: 0.5; }
.card-overlay-alert { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(26, 26, 26, 0.9); color: #fff; padding: 20px; border-radius: 10px; text-align: center; width: 85%; border: 2px solid #ff006e; box-shadow: 0 0 15px rgba(255, 0, 110, 0.4); z-index: 2; }
.card-overlay-alert h3 { margin-top: 0; font-family: 'Dosis', sans-serif; font-size: 20px; color: #ff006e; }
.card-overlay-alert p { font-family: 'Dosis', sans-serif; font-size: 16px; line-height: 1.4; color: #ccc; }

/* RESPONSIVIDADE */
@media (max-width: 1000px) { .box_home, .box_cardsVisitas { max-width: 650px; } }
@media (max-width: 680px) { .box_home, .box_cardsVisitas { max-width: 100%; padding: 0 15px; box-sizing: border-box; } .flashcard { width: 100%; max-width: 350px; height: auto; } .admin-bar-content { flex-direction: column; gap: 5px; align-items: center; } .admin-bar { height: auto; padding: 10px; } }

/* CLASSES DE CORES */
.cat-color-default, .border-color-default { border-color: #FFA400; }
.cat-color-1, .border-color-1 { border-color: #3a86ff; }
.cat-color-2, .border-color-2 { border-color: #8338ec; }
.cat-color-3, .border-color-3 { border-color: #ff006e; }
.cat-color-4, .border-color-4 { border-color: #fca311; }
.cat-color-5, .border-color-5 { border-color: #2a9d8f; }
.cat-color-6, .border-color-6 { border-color: #44AF69; }
.cat-color-7, .border-color-7 { border-color: #f15bb5; }
.cat-color-8, .border-color-8 { border-color: #00b4d8; }
.cat-color-9, .border-color-9 { border-color: #e76f51; }
.cat-color-10, .border-color-10 { border-color: #a7c957; }

.cat-color-default { background-color: #FFA400; }
.cat-color-1 { background-color: #3a86ff; }
.cat-color-2 { background-color: #8338ec; }
.cat-color-3 { background-color: #ff006e; }
.cat-color-4 { background-color: #fca311; }
.cat-color-5 { background-color: #2a9d8f; }
.cat-color-6 { background-color: #44AF69; }
.cat-color-7 { background-color: #f15bb5; }
.cat-color-8 { background-color: #00b4d8; }
.cat-color-9 { background-color: #e76f51; }
.cat-color-10 { background-color: #a7c957; }

