/* style.css - Estilos do Sistema Desenhometriva - VERSÃO CORRIGIDA */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Cabeçalho */
.header {
    background: rgba(0,0,0,0.3);
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.header p {
    opacity: 0.9;
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Navegação */
.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    /*
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 500;*/
}

.nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav a i {
    margin-right: 8px;
}

/* Breadcrumbs */
.breadcrumbs {
    background: rgba(0,0,0,0.2);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumbs a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs .separator {
    margin: 0 10px;
    opacity: 0.6;
}

.breadcrumbs .current {
    opacity: 0.8;
}

/* Cards */
.card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Manutenção */
.card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

/* Correcções específicas para o painel admin */
.admin-table select,
.admin-table input {
    background: rgba(255,255,255,0.9) !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.admin-table select option {
    background: white !important;
    color: #333 !important;
}

/* Garantir que os selects no admin sejam sempre visíveis */
#post_category,
select[name="category"] {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    font-weight: 500 !important;
}

#post_category option,
select[name="category"] option {
    background: #1e3c72 !important;
    color: #fff !important;
    padding: 10px !important;
    font-weight: 500 !important;
}

/* Estados especiais para o select de categoria */
#post_category:focus,
select[name="category"]:focus {
    border-color: #64b5f6 !important;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.3) !important;
    background: rgba(255,255,255,0.2) !important;
}

/* Melhorar visibilidade do texto dos inputs em geral */
input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
textarea {
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
}

/* Estilo para inputs obrigatórios */
input:required,
select:required,
textarea:required {
    border-left: 3px solid #ff9800 !important;
}

input:required:valid,
select:required:valid,
textarea:required:valid {
    border-left: 3px solid #4caf50 !important;
}

/* Preview de imagem com melhor estilo */
.image-preview {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.image-preview button {
    margin-top: 10px;
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.image-preview button:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

/* Mensagens */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    border: 1px solid;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #4caf50;
}

.message.error {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
    color: #f44336;
}

.message.info {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196f3;
    color: #64b5f6;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
    background: rgba(255,255,255,0.15) !important;
}

/* Corrigir especificamente o select de categoria */
.form-group select {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

.form-group select option {
    background: #1e3c72 !important;
    color: #fff !important;
    padding: 8px 12px;
}

.form-group select option:checked,
.form-group select option:hover {
    background: #2196F3 !important;
    color: #fff !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.6) !important;
}

/* Estilos específicos para input de ficheiro */
.form-group input[type="file"] {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 12px;
}

.form-group input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 12px;
}

.form-group input[type="file"]::-moz-file-upload-button {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 12px;
}

/* Melhorar ainda mais os estilos do Quill */
.ql-editor {
    color: #333 !important;
    line-height: 1.6;
}

.ql-editor.ql-blank::before {
    color: #999 !important;
    font-style: italic;
}

/* Dropdown do Quill */
.ql-picker .ql-picker-label {
    border: 1px solid #ccc !important;
    color: #444 !important;
}

.ql-picker .ql-picker-label:hover {
    color: #2196F3 !important;
}

.ql-picker.ql-expanded .ql-picker-label {
    color: #2196F3 !important;
    border-color: #2196F3 !important;
}

.ql-picker.ql-expanded .ql-picker-options {
    display: block !important;
    background: white !important;
    border: 1px solid #2196F3 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Botões do toolbar */
.ql-toolbar button svg {
    width: 18px !important;
    height: 18px !important;
}

.ql-toolbar .ql-formats {
    margin-right: 15px;
}

.ql-toolbar .ql-formats:after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 20px;
    background: #ddd;
    margin-left: 15px;
}

.ql-toolbar .ql-formats:last-child:after {
    display: none;
}

.form-group small {
    display: block;
    margin-top: 5px;
    opacity: 0.8;
    font-size: 12px;
    color: rgba(255,255,255,0.8) !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Botões */
.btn {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.btn-primary {
    background: linear-gradient(45deg, #2196F3, #1976D2);
}

.btn-secondary {
    background: linear-gradient(45deg, #607D8B, #546E7A);
}

.btn-danger {
    background: linear-gradient(45deg, #f44336, #d32f2f);
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn.full-width {
    width: 100%;
}

.btn i {
    margin-right: 8px;
}

/* Login */
.login-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #64b5f6;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #64b5f6;
}

/* Pesquisa */
.search-box {
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
}

/* Categorias */
.categories {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: rgba(100, 181, 246, 0.3);
    border-color: #64b5f6;
    transform: translateY(-2px);
}

.category-badge {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* Títulos de Secção */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
    color: #64b5f6;
}

.section-title i {
    margin-right: 10px;
}

/* Grid de Posts */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.post-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
}

.post-card h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    line-height: 1.4;
}

.post-card h3 a {
    color: #fff;
    text-decoration: none;
}

.post-card h3 a:hover {
    color: #64b5f6;
}

.post-meta {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.post-meta .category a {
    color: #64b5f6;
    text-decoration: none;
}

.post-meta .category a:hover {
    color: #fff;
}

.post-excerpt {
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #fff !important; /* Garantir texto branco nos excerpts */
}

/* Garantir que o conteúdo na página individual seja sempre legível */
.post-single .post-content {
    background: rgba(0,0,0,0.1);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Melhorar legibilidade de listas numeradas e com marcadores */
.post-content ul li::marker,
.post-content ol li::marker {
    color: #64b5f6 !important;
}

.post-content ul li,
.post-content ol li {
    position: relative;
    padding-left: 5px;
}

/* Garantir que imagens no conteúdo sejam responsivas */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Estilos para citações */
.post-content blockquote p {
    margin-bottom: 10px !important;
    font-style: italic;
}

.post-content blockquote::before {
    content: '"';
    font-size: 3em;
    color: #64b5f6;
    position: absolute;
    left: -10px;
    top: -10px;
    opacity: 0.3;
}

/* Garantir contraste em elementos inline */
.post-content span,
.post-content div {
    color: inherit !important;
}

/* Forçar visibilidade de qualquer texto formatado pelo editor */
.post-content [style*="color"] {
    color: #fff !important;
}

.post-indicators {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.indicator {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.indicator.image {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.indicator.video {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.indicator.pdf {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Estado Vazio */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.8;
}

.empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Post Individual */
.post-single {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.post-single .post-content {
    background: rgba(0,0,0,0.1);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    /* Fallback para texto sempre visível */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-header h1 {
    font-size: 2.2em;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #64b5f6;
}

.post-header .post-meta {
    justify-content: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.content-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.post-image {
    margin: 30px 0;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* CORRIGIR CORES DO CONTEÚDO DOS ARTIGOS */
.post-content {
    font-size: 1.1em;
    line-height: 1.8;
    margin: 30px 0;
    color: #fff !important; /* Força texto branco */
}

.post-content h1, 
.post-content h2, 
.post-content h3, 
.post-content h4, 
.post-content h5, 
.post-content h6 {
    margin: 30px 0 15px;
    color: #64b5f6 !important; /* Força cor azul para títulos */
}

.post-content p {
    margin-bottom: 20px;
    color: #fff !important; /* Força texto branco para parágrafos */
}

.post-content ul, 
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
    color: #fff !important; /* Força texto branco para listas */
}

.post-content li {
    margin-bottom: 8px;
    color: #fff !important; /* Força texto branco para itens de lista */
}

.post-content blockquote {
    border-left: 4px solid #64b5f6;
    margin: 20px 0;
    padding: 15px 20px;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 0 8px 8px 0;
    color: #fff !important; /* Força texto branco para citações */
}

.post-content strong,
.post-content b {
    color: #64b5f6 !important; /* Força cor azul para texto em negrito */
    font-weight: 700;
}

.post-content em,
.post-content i {
    color: #fff !important; /* Força texto branco para itálico */
    font-style: italic;
}

.post-content a {
    color: #64b5f6 !important; /* Força cor azul para links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: #42a5f5 !important; /* Cor azul mais clara no hover */
}

.post-content code {
    background: rgba(0,0,0,0.3);
    color: #64b5f6 !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: rgba(0,0,0,0.3);
    color: #fff !important;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* Garantir que qualquer texto dentro do conteúdo seja visível */
.post-content * {
    color: inherit !important;
}

/* Corrigir cores específicas que podem vir do editor */
.post-content .ql-color-white,
.post-content [style*="color: white"],
.post-content [style*="color: #ffffff"],
.post-content [style*="color: #fff"] {
    color: #fff !important;
}

.post-content .ql-color-black,
.post-content [style*="color: black"],
.post-content [style*="color: #000000"],
.post-content [style*="color: #000"] {
    color: #fff !important; /* Forçar preto para branco */
}

/* Tabelas no conteúdo */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.post-content th,
.post-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #fff !important;
}

.post-content th {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6 !important;
    font-weight: 600;
}

.post-content tr:hover {
    background: rgba(255,255,255,0.05);
}

/* IMPORTANTE: Regra global para garantir que NENHUM texto seja invisível */
.post-content *:not(iframe):not(img):not(video) {
    color: #fff !important;
}

.post-content h1 *, 
.post-content h2 *, 
.post-content h3 *, 
.post-content h4 *, 
.post-content h5 *, 
.post-content h6 * {
    color: #64b5f6 !important;
}

/* Garantir que links sejam sempre visíveis */
.post-content a *,
.post-content a {
    color: #64b5f6 !important;
    text-decoration: underline;
}

/* Sobrepor qualquer estilo inline que possa vir do editor */
.post-content [style] {
    color: #fff !important;
}

.post-content h1[style], 
.post-content h2[style], 
.post-content h3[style], 
.post-content h4[style], 
.post-content h5[style], 
.post-content h6[style] {
    color: #64b5f6 !important;
}

.post-content a[style] {
    color: #64b5f6 !important;
}

/* Debug: Forçar visibilidade de qualquer elemento que possa ter cor preta */
.post-content [style*="color: #000"],
.post-content [style*="color: black"],
.post-content [style*="color:#000"],
.post-content [style*="color:black"],
.post-content [style*="color: rgb(0, 0, 0)"],
.post-content [style*="color:rgb(0,0,0)"] {
    color: #fff !important;
}

/* Regra final de emergência - qualquer texto com cor muito escura */
.post-content * {
    text-shadow: none !important;
}

/* Vídeo */
.video-section {
    margin: 40px 0;
}

.video-section h3 {
    margin-bottom: 20px;
    color: #64b5f6;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin: 20px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* PDF */
.pdf-section {
    margin: 40px 0;
}

.pdf-section h3 {
    margin-bottom: 20px;
    color: #64b5f6;
    text-align: center;
}

.pdf-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: white;
}

.pdf-viewer {
    width: 100%;
    height: 600px;
    border: none;
    background: white;
    /* Permitir interação com o PDF para scroll e navegação */
    pointer-events: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.pdf-warning {
    text-align: center;
    margin-top: 10px;
    opacity: 0.7;
}

/* Partilha Social */
.social-share {
    background: rgba(0,0,0,0.2);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
}

.social-share h3 {
    margin-bottom: 20px;
    color: #64b5f6;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 24px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.facebook:hover {
    box-shadow: 0 8px 25px rgba(59, 89, 152, 0.4);
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.share-btn.copy {
    background: #607D8B;
}

.share-btn.copy:hover {
    box-shadow: 0 8px 25px rgba(96, 125, 139, 0.4);
}

/* Posts Relacionados */
.related-posts {
    margin: 40px 0;
}

.related-posts h3 {
    margin-bottom: 25px;
    color: #64b5f6;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-post-card {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.related-post-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-post-content {
    padding: 15px;
}

.related-post-content h4 {
    margin-bottom: 10px;
    font-size: 1em;
    line-height: 1.4;
}

.related-post-content p {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 10px;
}

.related-post-meta {
    margin-bottom: 15px;
    opacity: 0.7;
}

/* Navegação do Post */
.post-navigation {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* Administração */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2em;
    color: #64b5f6;
}

.stat-info h3 {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.stat-info p {
    opacity: 0.8;
    font-size: 0.9em;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
}

.tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.tab:hover {
    background: rgba(255,255,255,0.1);
}

.tab.active {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    color: white;
}

.tab i {
    margin-right: 8px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 20px;
    color: #64b5f6;
}

/* Tabelas */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-table th {
    background: rgba(0,0,0,0.3);
    font-weight: 600;
    color: #64b5f6;
}

.admin-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.media-indicator {
    display: inline-block;
    margin-right: 5px;
    font-size: 12px;
    opacity: 0.8;
}

.posts-count {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Formulários Admin */
.category-form {
    background: rgba(0,0,0,0.2);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Editor Quill */
#editor {
    background: white;
    color: black;
    border-radius: 8px;
    min-height: 300px;
}

.ql-toolbar {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-color: rgba(255,255,255,0.3);
    background: #f8f9fa !important;
}

.ql-container {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-color: rgba(255,255,255,0.3);
}

/* Corrigir visibilidade dos ícones do toolbar do Quill */
.ql-toolbar .ql-stroke {
    fill: none;
    stroke: #444 !important;
}

.ql-toolbar .ql-fill,
.ql-toolbar .ql-stroke.ql-fill {
    fill: #444 !important;
    stroke: none;
}

.ql-toolbar .ql-even {
    fill-rule: evenodd;
}

.ql-toolbar .ql-thin,
.ql-toolbar .ql-stroke.ql-thin {
    stroke-width: 1;
}

.ql-toolbar .ql-picker {
    color: #444 !important;
}

.ql-toolbar .ql-picker-options {
    background: white !important;
    border: 1px solid #ccc !important;
}

.ql-toolbar .ql-picker-item {
    color: #444 !important;
}

.ql-toolbar .ql-picker-item:hover {
    background: #f0f0f0 !important;
}

.ql-toolbar button {
    color: #444 !important;
}

.ql-toolbar button:hover {
    color: #2196F3 !important;
}

.ql-toolbar button.ql-active {
    color: #2196F3 !important;
}

.ql-toolbar .ql-picker-label {
    color: #444 !important;
}

.ql-toolbar .ql-picker-label::before {
    color: #444 !important;
}

/* Modal de Sucesso */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.success-modal-content {
    background: rgba(30, 60, 114, 0.95);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 400px;
    width: 90%;
}

.success-modal h3 {
    margin-bottom: 20px;
    color: #4caf50;
    font-size: 1.3em;
}

.success-modal .buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(30, 60, 114, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #4caf50;
}

.notification.error {
    border-left: 4px solid #f44336;
}

/* Rodapé */
.footer {
    background: rgba(0,0,0,0.3);
    padding: 30px 20px;
    margin-top: 50px;
    text-align: center;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Correcções adicionais para melhor visibilidade */

/* Garantir que todos os inputs tenham o estilo correcto */
input, select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
}

/* Estilos específicos para Chrome/Safari */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255,255,255,0.1) inset !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 0 0 30px rgba(255,255,255,0.1) inset !important;
    color: #fff !important;
}

/* Corrigir cores do Quill em diferentes estados */
.ql-snow .ql-tooltip {
    background: white !important;
    border: 1px solid #ccc !important;
    color: #333 !important;
}

.ql-snow .ql-tooltip input[type=text] {
    background: white !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
}

.ql-snow .ql-tooltip a.ql-action::after {
    color: #2196F3 !important;
}

.ql-snow .ql-tooltip a.ql-remove::before {
    color: #f44336 !important;
}

/* Estados de foco melhorados */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: #64b5f6 !important;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2) !important;
    background: rgba(255,255,255,0.15) !important;
    transform: translateY(-1px);
}

/* Animações suaves para inputs */
.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Garantir que o texto dos placeholders seja sempre visível */
::placeholder {
    color: rgba(255,255,255,0.6) !important;
    opacity: 1 !important;
}

::-webkit-input-placeholder {
    color: rgba(255,255,255,0.6) !important;
}

::-moz-placeholder {
    color: rgba(255,255,255,0.6) !important;
    opacity: 1 !important;
}

:-ms-input-placeholder {
    color: rgba(255,255,255,0.6) !important;
}

:-moz-placeholder {
    color: rgba(255,255,255,0.6) !important;
    opacity: 1 !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .header p {
        font-size: 1em;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .post-single {
        padding: 20px;
    }
    
    .post-header h1 {
        font-size: 1.8em;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .post-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .success-modal-content {
        padding: 30px 20px;
    }
    
    .success-modal .buttons {
        flex-direction: column;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .card {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .categories {
        justify-content: flex-start;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}