/* =========================================
   POSTAGEM NEON EMAIL - STYLE (FORMULÁRIO ENXUTO)
   Arquivo: assets/pne-style.css
   ========================================= */

/* =========================================
   1. RESET E ESTRUTURA GERAL
   ========================================= */
.f-color-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 10px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden; 
}

.f-color-wrapper * { 
    box-sizing: border-box; 
}

.f-color-container {
    background: linear-gradient(180deg, #240090 0%, #4c1d95 20%, #a21caf 40%, #db2777 60%, #be123c 80%, #f59e0b 100%);
    width: 100%;
    max-width: 480px; 
    padding: 30px 25px;
    border-radius: 24px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
    margin: 0 auto 40px auto;
}

/* Header do Formulário */
.f-color-header { 
    text-align: center; 
    margin-bottom: 25px; 
}

.f-color-header h2 { 
    margin: 0; 
    font-size: 1.2rem; 
    color: #fff; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.f-color-header p { 
    font-size: 0.85rem; 
    opacity: 0.9; 
    margin-top: 5px; 
}

/* =========================================
   2. CAIXAS E INPUTS
   ========================================= */
.f-color-box {
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.transparent-box { background: transparent; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.blue-box { background: rgba(30, 0, 80, 0.4); box-shadow: inset 0 0 15px rgba(0,0,0,0.1); }
.pink-dashed { background: rgba(255, 255, 255, 0.05); border: 2px dashed rgba(255,255,255,0.4); }
.red-box { background: rgba(120, 20, 40, 0.5); }
.orange-box { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255,255,255,0.3); }

/* Labels Gerais */
.f-color-label, .f-color-label-center {
    display: block; 
    font-size: 0.7rem; 
    font-weight: 800; 
    margin-bottom: 8px; 
    color: #fff; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}
.f-color-label-center { text-align: center; }

/* Inputs Modernos */
.f-color-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 12px 15px;
    color: #001f3f; 
    border-radius: 12px;
    outline: none;
    font-size: 16px; 
    font-weight: 600;
    transition: 0.3s;
}
.f-color-input:focus { 
    background: #fff; 
    border-color: #fbbf24; 
}
.dark-input { 
    background: rgba(0,0,0,0.5); 
    color: #fff; 
}

textarea.f-color-input { 
    resize: vertical; 
    min-height: 80px; 
    font-family: inherit; 
}

/* =========================================
   3. AVATAR E UPLOAD
   ========================================= */
.avatar-trigger {
    width: 90px; height: 90px; margin: 10px auto 0; border-radius: 50%;
    border: 3px solid #fbbf24; position: relative; overflow: hidden; cursor: pointer;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}
.avatar-trigger img { width: 100%; height: 100%; object-fit: cover; }
.avatar-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7);
    color: #fff; font-size: 0.5rem; text-align: center; padding: 3px; text-transform: uppercase;
}

.upload-controls { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.icon-cloud { font-size: 2rem; opacity: 0.9; }
.btn-paste {
    background: rgba(255, 255, 255, 0.15); border: 1px solid #fff; color: #fff; padding: 8px 20px;
    border-radius: 50px; font-weight: 700; cursor: pointer; font-size: 0.75rem;
    display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; transition: 0.2s;
}
.btn-paste:hover { background: #fff; color: #db2777; }

/* =========================================
   4. BOTÃO SUBMIT PRINCIPAL
   ========================================= */
.btn-f-color-submit {
    width: 100%; padding: 16px; background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
    color: white; border: none; border-radius: 50px; font-size: 1rem; font-weight: 900;
    cursor: pointer; margin-top: 20px; text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* =========================================
   5. CARDS DE MÍDIA (GLASSMORPHISM)
   ========================================= */
.neon-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 15px;
}

.neon-media-card {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    color: #001f3f; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-card-title {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #001f3f; 
}
.media-card-title i { font-size: 1rem; color: #fbbf24; }

.media-card-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #001f3f; 
}
.media-card-label.spacer { margin-top: 25px; }

.btn-pill-white {
    background: #fff;
    color: #001f3f;
    border: none;
    border-radius: 50px;
    padding: 10px 15px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}
.btn-pill-white:active { transform: scale(0.98); }

.media-timer {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 20px 0 10px 0;
    color: #001f3f;
    font-family: monospace;
}

.record-btn-wrapper {
    display: flex; justify-content: center; align-items: center;
}
.record-circle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 31, 63, 0.1); 
    border: 2px solid rgba(0, 31, 63, 0.2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}
.record-circle-btn::after {
    content: '';
    width: 20px;
    height: 20px;
    background: #001f3f; 
    border-radius: 50%;
    display: block;
    transition: all 0.3s;
}
.record-circle-btn.recording { background: rgba(220, 38, 38, 0.2); border-color: #dc2626; }
.record-circle-btn.recording::after { background: #dc2626; border-radius: 4px; }

.video-preview-box {
    background: #000;
    width: 100%;
    height: 120px;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255,255,255,0.3);
}

.video-controls-row {
    display: flex; align-items: center; justify-content: center; gap: 15px;
}

.refresh-circle-btn {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: none;
    color: #001f3f;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* =========================================
   6. RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .f-color-wrapper {
        width: calc(100% + 30px) !important;
        max-width: none !important; 
        margin-left: -15px !important;
        margin-right: -15px !important;
        padding: 0 !important;
        background: transparent;
        box-sizing: border-box !important;
        display: block !important;
    }

    .f-color-container {
        width: 100% !important;
        max-width: none !important; 
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 40px 20px !important;
        min-height: 100vh; 
        box-sizing: border-box !important;
    }

    .f-color-header h2 { font-size: 1.5rem; margin-top: 10px; }
    .btn-f-color-submit, .btn-paste { width: 100% !important; justify-content: center; }
    
    .neon-media-grid { grid-template-columns: 1fr; }
}

/* =========================================
   7. BOTÕES DE REMOVER IMAGEM (AJUSTES)
   ========================================= */
.preview-item-wrapper {
    position: relative;
    display: inline-block;
    margin: 5px;
    width: 80px; 
    height: 80px;
}

.preview-item-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-remove-image {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444; 
    color: white;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.capa-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.capa-wrapper .btn-remove-image {
    width: 30px;
    height: 30px;
    font-size: 14px;
    top: 5px;
    right: 5px;
}
/* =========================================
   ESTILO DA TELA DE LOGIN (ACESSO RESTRITO)
   ========================================= */
.pne-login-wrapper {
    display: flex; justify-content: center; padding: 40px 15px; font-family: 'Segoe UI', sans-serif;
}
.pne-login-box {
    background: #0d1326; /* Azul Escuro do Print */
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px; padding: 40px 30px; width: 100%; max-width: 450px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5); color: #fff;
}
.pne-login-header { text-align: center; margin-bottom: 30px; }
.pne-login-header h2 { font-size: 1.8rem; font-weight: 800; margin: 0 0 10px 0; color: #fff; letter-spacing: -0.5px; }
.pne-login-header p { font-size: 0.9rem; color: #9ca3af; line-height: 1.5; margin: 0; }

.pne-login-group { margin-bottom: 20px; }
.pne-login-group label { display: block; font-size: 0.75rem; font-weight: 700; color: #e5e7eb; margin-bottom: 8px; letter-spacing: 0.5px; text-transform: uppercase; }
.pne-login-group label i { margin-right: 5px; opacity: 0.7; }
.pne-login-group input {
    width: 100%; background: #e5e7eb; border: none; padding: 14px 15px;
    border-radius: 12px; font-size: 1rem; color: #111827; outline: none; transition: 0.3s;
}
.pne-login-group input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); }

#pne-toggle-login-password {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: #4b5563; font-size: 1.1rem;
}

.pne-forgot-link { text-align: right; margin-top: -10px; margin-bottom: 25px; }
.pne-forgot-link a { color: #818cf8; font-size: 0.85rem; text-decoration: none; font-weight: 600; transition: color 0.2s; }
.pne-forgot-link a:hover { color: #a5b4fc; }

.pne-login-buttons { display: flex; gap: 15px; }
.pne-btn-back {
    flex: 1; background: #1e293b; color: #f8fafc; text-align: center; padding: 14px;
    border-radius: 30px; text-decoration: none; font-weight: 600; transition: 0.3s;
}
.pne-btn-back:hover { background: #334155; }
.pne-btn-enter {
    flex: 1.5; background: linear-gradient(90deg, #6366f1, #8b5cf6); color: #fff; border: none;
    border-radius: 30px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pne-btn-enter:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6); }

.pne-login-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 30px 0; }

.pne-login-footer { text-align: center; }
.pne-login-footer p { font-size: 0.85rem; color: #9ca3af; margin-bottom: 15px; }
.pne-btn-create {
    display: inline-block; width: 100%; padding: 15px; background: linear-gradient(90deg, #d946ef, #3b82f6);
    color: #fff; text-decoration: none; font-weight: 800; border-radius: 30px; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 0.5px; transition: 0.3s; box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
}
.pne-btn-create:hover { transform: translateY(-2px); filter: brightness(1.1); }
/* =========================================
   ESTILO DA TELA DE ESCOLHA (HUB DE ACESSO)
   ========================================= */
.pne-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.pne-choice-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pne-choice-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Cores do Card Token (Amarelo/Laranja) */
.option-token { border-top: 4px solid #fbbf24; }
.option-token .choice-icon { color: #fbbf24; text-shadow: 0 0 15px rgba(251, 191, 36, 0.5); }

/* Cores do Card E-mail (Verde/Azul) */
.option-email { border-top: 4px solid #4ade80; }
.option-email .choice-icon { color: #4ade80; text-shadow: 0 0 15px rgba(74, 222, 128, 0.5); }

.choice-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.pne-choice-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 12px 0;
    font-weight: 800;
}

.pne-choice-card p {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 30px;
    flex-grow: 1; /* Faz o botão ficar sempre no fundo do card */
}

/* Botões da Escolha */
.pne-btn-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: 0.3s;
    border: none;
}

.btn-token { 
    background: linear-gradient(90deg, #f59e0b, #e73c7e); 
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.btn-token:hover { 
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6); 
    filter: brightness(1.1);
}

.btn-email { 
    background: linear-gradient(90deg, #10b981, #3b82f6); 
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-email:hover { 
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6); 
    filter: brightness(1.1);
}

/* Responsividade: Celular fica um embaixo do outro */
@media (max-width: 768px) {
    .pne-choice-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .pne-login-box {
        padding: 30px 20px;
    }
}