/*página creblynk.css*/

/* ============================
   RESET
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arial", sans-serif;
}

body.cb-body {
    background: #111111;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* ============================
   CONTAINER
============================ */
.cb-container {
    width: 100%;
    max-width: 380px;
    text-align: center;
    padding-bottom: 80px; /* espaço para o menu inferior */
}

/* ============================
   LOGO
============================ */
.cb-logo {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #FF4F5A;
    letter-spacing: 1px;
}

/* ============================
   MASCOTE
============================ */
.cb-mascote {
    width: 120px;
    margin: 0 auto 15px auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 79, 90, 0.4));
    animation: fadeIn 0.4s ease-in-out;
}

/* ============================
   CARDS
============================ */
.cb-card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(255, 79, 90, 0.2);
    animation: fadeIn 0.2s ease-in-out;
}

.cb-hidden {
    display: none !important;
}

/* ============================
   TEXTOS
============================ */
.cb-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #ffc638;
}

.cb-label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-size: 14px;
    color: #cccccc;
}

/* ============================
   INPUTS
============================ */
.cb-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #333;
    margin-bottom: 15px;
    background: #222;
    color: #fff;
    font-size: 15px;
}

.cb-input:focus {
    border-color: #FF4F5A;
    outline: none;
}

/* ============================
   BOTÕES
============================ */
.cb-btn-primary {
    width: 100%;
    padding: 13px;
    background: #FF4F5A;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
    transition: 0.2s;
}

.cb-btn-primary:hover {
    background: #e13b45;
}

.cb-btn-secondary {
    display: inline-block;
    margin-top: 10px;
    background: #ffb300;
    padding: 8px 14px;
    color: #000;
    border-radius: 10px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

/* ============================
   SWITCH FORM
============================ */
.cb-switch {
    margin-top: 15px;
    font-size: 14px;
    color: #cccccc;
    cursor: pointer;
}

.cb-switch b {
    color: #ffc638;
}

/* ============================
   ANIMAÇÃO
============================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================
   LOADING GLOBAL
============================ */
#cb-loading {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cb-loading-hidden {
    display: none !important;
}

.cb-loading-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(2px);
}

.cb-loading-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    animation: fadeIn 0.3s ease-in-out;
}

.cb-loading-mascote {
    width: 120px;
    filter: drop-shadow(0 0 10px rgba(255, 79, 90, 0.5));
    animation: cb-pulse 1.2s infinite ease-in-out;
}

@keyframes cb-pulse {
    0%   { transform: scale(1); opacity: 0.85; }
    50%  { transform: scale(1.07); opacity: 1; }
    100% { transform: scale(1); opacity: 0.85; }
}

.cb-loading-text {
    margin-top: 10px;
    font-size: 14px;
    color: #ffc638;
    opacity: 0.9;
}

/* ============================
   RESPONSIVIDADE (GERAL)
============================ */
@media (max-width: 360px) {
    .cb-logo {
        font-size: 28px;
    }
    .cb-card {
        padding: 20px;
    }
}

.cb-alert {
    width: 90%;
    max-width: 300px;
    background: #ffdddd;
    border-left: 4px solid #ff4444;
    color: #a30000;
    padding: 12px;
    margin: 10px auto 5px auto;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    animation: alerta 0.3s ease-out;
    position: relative;
    z-index: 10;
}

@keyframes alerta {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cb-alert.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.cb-mascote-small {
    width: 120px;
    margin: 0 auto 10px auto;
    display: block;
}

.cb-title-center {
    text-align: center;
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 22px;
}

.cb-card-painel {
    padding: 20px;
    margin-top: 10px;
}

.cb-subtitle {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.cb-info-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    text-align: center;
}

/* MENU INFERIOR */
.cb-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: #0A0A0A;
    border-top: 2px solid #ffb300;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}

.cb-bottom-menu .cb-menu-item {
    flex: 1;
    text-align: center;
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
    padding-top: 5px;
}

.cb-bottom-menu .cb-menu-item svg {
    width: 24px;
    height: 24px;
    fill: #dddddd;
    margin-bottom: 3px;
    transition: 0.2s;
}

.cb-bottom-menu .cb-menu-item.active svg,
.cb-bottom-menu .cb-menu-item.active span {
    fill: #ffb300;
    color: #ffb300;
}

.cb-bottom-menu .cb-menu-item:hover svg {
    fill: #ffb300;
}

/* Espaço para não ficar escondido atrás do menu */
.cb-page-content {
    padding-bottom: 80px;
}

.cb-perfil-foto-preview {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
    margin: 8px 0 15px 0;
    display: block;
}

.cb-logo-top {
    width: 100%;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #FED943;
    margin-top: 10px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* ============================
   ALERTA SUCESSO (PERFIS)
============================ */
.cb-alert-sucesso {
    width: 90%;
    max-width: 320px;
    background: #ddffdd;
    border-left: 4px solid #44aa44;
    color: #245b24;
    padding: 10px;
    margin: 10px auto 5px auto;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

/* ============================
   CHAT - Mensagens estilo WhatsApp
============================ */

#chatMessages {
    padding: 15px;
    padding-bottom: 90px;
    overflow-y: auto;
    height: calc(100vh - 160px);
}

.msg {
    display: flex;
    margin-bottom: 8px;
    width: 100%;
}

/* Recebidas — esquerda */
.msg-left {
    justify-content: flex-start;
}

.msg-left .msg-bubble {
    background: #262626;
    color: #fff;
    border-radius: 12px 12px 12px 0;
}

/* Enviadas — direita */
.msg-right {
    justify-content: flex-end;
}

.msg-right .msg-bubble {
    background: #ffe08a;
    color: #000;
    border-radius: 12px 12px 0 12px;
}

/* Bolha */
.msg-bubble {
    max-width: 75%;
    padding: 10px 14px;
    box-shadow: 0 0 6px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
}

/* Texto */
.msg-text {
    font-size: 15px;
    margin-bottom: 4px;
}

/* Info */
.msg-info {
    font-size: 11px;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    opacity: .8;
}

/* Status */
.msg-status {
    font-weight: bold;
}

.msg-status.enviada {
    color: #555;
}

.msg-status.lida {
    color: #00c853; /* verde WhatsApp */
}

/* Hora */
.msg-time {
    opacity: .7;
}

/* Para telas grandes (chat) */
@media (min-width: 900px) {
    .chat-container {
        max-width: 700px;
        margin: 20px auto;
        border-radius: 12px;
        height: 90vh;
    }
}

/* ============================
   BODY ESPECÍFICO EXPLORAR (TINDER)
============================ */
body.cb-body.cb-body-explorar {
    flex-direction: column;       /* para alinhar verticalmente de cima */
    align-items: center;          /* centraliza o container no PC */
    justify-content: flex-start;  /* começa de cima */
    padding-top: 10px;
}

/* container um pouquinho maior na tela de explorar */
body.cb-body.cb-body-explorar .cb-container {
    max-width: 420px;
    padding-bottom: 95px; /* um pouco mais por causa dos botões + menu */
    text-align: left; /* força tudo à esquerda nesta tela */
}

/* ============================
   EXPLORAR CRIADORES - CARD ESTILO TINDER
============================ */

#cardArea {
    margin-top: 8px;
    width: 100%;
    display: flex;
    justify-content: center; /* centralizado no PC */
}

/* wrapper do card em modo quase fullscreen,
   já considerando menu + botões */
.tinder-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: calc(100vh - 200px);
    /* 200 = ~65 (menu) + ~80 (botões) + ~55 (respiro) */
    margin: 0 auto;
    overflow: hidden;
}

/* Card principal */
.tinder-card {
    position: absolute;
    inset: 0;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 22px rgba(0,0,0,0.65);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    transform-origin: center bottom;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Imagem ocupa tudo do card */
.tinder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradiente inferior para o texto */
.tinder-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0));
    pointer-events: none;
}

/* bloco de texto (sobre a foto) */
.tinder-info-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 110px; /* afastado dos botões de ação */
    padding: 0 18px;
    text-align: left;
    color: #fff;
    z-index: 5;
}

.tinder-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.tinder-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.tinder-meta span {
    display: inline-flex;
    align-items: center;
}

/* Painel de BIO (abre por cima) */
.tinder-bio-panel {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80%;
    background: rgba(5,5,5,0.96);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 18px 18px 120px 18px; /* bottom grande para não bater nos botões */
    overflow-y: auto;
    border-radius: 18px 18px 0 0;
    transition: bottom 0.32s ease;
    z-index: 6;
    text-align: left; /* tudo alinhado à esquerda */
}

.tinder-card.show-bio .tinder-bio-panel {
    bottom: 0;
}

.tinder-card.show-bio .tinder-gradient {
    opacity: 0;
}

/* Título da bio */
.tinder-bio-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Texto da bio */
.tinder-bio-text {
    font-size: 14px;
    line-height: 1.5;
    color: #f0f0f0;
    margin-bottom: 14px;
    text-align: left;
}

/* divisor bonito */
.bio-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ffb300, transparent);
    margin: 10px 0 14px;
    opacity: 0.85;
}

/* rótulo e valor dos campos da bio */
.bio-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffdd55;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
}

.bio-label i {
    font-style: normal;
}

.bio-value {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: left;
}

/* Botões de ação (like / bio / dislike) - sempre abaixo do card, acima do menu */
.cb-actions {
    position: fixed;
    bottom: 78px; /* logo acima do menu inferior de 65px */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    z-index: 900;
    pointer-events: none; /* o card continua recebendo os swipes */
}

.cb-actions .btn-round {
    pointer-events: auto;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: none;
    font-size: 30px; /* emoji grande */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.8);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.cb-actions .btn-round span {
    display: inline-block;
    line-height: 1;
}

.cb-actions .btn-round:active {
    transform: scale(0.9);
    box-shadow: 0 3px 8px rgba(0,0,0,0.7);
}

/* Cores dos botões */
.btn-dislike {
    background: #2b0008;
    color: #ff5b7b;
    border: 2px solid #ff5b7b;
}

.btn-like {
    background: #00391d;
    color: #5bffb3;
    border: 2px solid #5bffb3;
}

/* Botão BIO com ícone 📄 */
.btn-info {
    background: #412c00;
    color: #ffde66;
    border: 2px solid #ffde66;
}

/* Badges (LIKE / NOPE) */
.badge {
    position: absolute;
    top: 25px;
    padding: 16px 32px;
    border: 5px solid #fff;
    border-radius: 12px;
    font-size: 32px;
    font-weight: 900;
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.badge-like {
    left: 25px;
    color: #00ff8a;
    border-color: #00ff8a;
    background: rgba(0,255,138,0.15);
    box-shadow: 0 0 18px rgba(0,255,138,0.5);
}

.badge-nope {
    right: 25px;
    color: #ff4f70;
    border-color: #ff4f70;
    background: rgba(255,79,112,0.15);
    box-shadow: 0 0 18px rgba(255,79,112,0.5);
}

.badge.show {
    opacity: 1 !important;
    transform: scale(1.15);
}

/* Ajustes para telas pequenas (mobile) */
@media (max-width: 480px) {

    body.cb-body.cb-body-explorar {
        padding: 8px 10px 20px 10px;
    }

    body.cb-body.cb-body-explorar .cb-container {
        max-width: 100%;
        padding-bottom: 95px;
    }

    .tinder-wrapper {
        max-width: 100%;
        height: calc(100vh - 200px);
    }

    .tinder-name {
        font-size: 20px;
    }

    .tinder-meta {
        font-size: 12px;
    }

    .cb-actions .btn-round {
        width: 62px;
        height: 62px;
        font-size: 28px;
    }
}

/* ============================
   AJUSTES BIO – FIX ANDROID / IOS
============================ */

/* Forçar alinhamento à esquerda da bio em todos os dispositivos */
.tinder-bio-panel,
.tinder-bio-text,
.bio-value {
    text-align: left !important;
}

/* Garantir rolagem da Bio em iPhone e Android */
.tinder-bio-panel {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* FORÇAR ALINHAMENTO À ESQUERDA EM TODOS OS DISPOSITIVOS */
.tinder-bio-panel,
.tinder-bio-text,
.bio-value,
.bio-label {
    text-align: left !important;
    display: block !important;
}

/* melhora o scroll no android/iphone */
.tinder-bio-panel {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
