/* CSS Global para o Blog de Olivaldo Vicente */

/* Minimalist Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: #4a4a4a;
    border-radius: 20px;
    border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

body {
    background-color: #0a0a0a;
    color: #f3f4f6;
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Custom marker for lists (pode ser usado no conteúdo do post) */
.custom-list li::before {
    content: '—';
    color: #cfa65c; /* accent color */
    position: absolute;
    left: 0;
}
.custom-list li {
    position: relative;
    padding-left: 1.5rem;
}

/* Estilos para o conteúdo do post gerado pelo Sanity */
.post-content {
    line-height: 1.75;
    font-size: 1.125rem; /* 18px */
    color: #d1d5db; /* gray-300 */
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    border-bottom: 1px solid #374151; /* gray-700 */
    padding-bottom: 0.4em;
}

.post-content h3 {
    font-size: 1.875rem; /* 30px */
    font-weight: 600;
}

.post-content h4 {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content a {
    color: #cfa65c; /* accent */
    text-decoration: underline;
    text-decoration-color: #cfa65c;
    transition: color 0.2s ease-in-out;
}

.post-content a:hover {
    color: #b58f4a; /* accentHover */
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content blockquote {
    margin: 2em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #cfa65c; /* accent */
    background-color: #111827; /* gray-900 */
    color: #e5e7eb; /* gray-200 */
    font-style: italic;
}

.post-content blockquote p {
    margin-bottom: 0;
}

.post-content code {
    background-color: #1f2937; /* gray-800 */
    color: #e5e7eb;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.post-content pre {
    background-color: #1f2937;
    padding: 1em;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5em;
}

.post-content pre code {
    padding: 0;
    background: none;
    font-size: 1em;
}

/* Botão de Voltar */
.back-to-home {
    display: inline-block;
    margin-bottom: 3rem;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 1px solid #4b5563; /* gray-600 */
    color: #d1d5db; /* gray-300 */
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-home:hover {
    background-color: #cfa65c; /* accent */
    border-color: #cfa65c;
    color: #050505; /* darker */
    transform: translateY(-2px);
}

.back-to-home i {
    margin-right: 0.5rem;
}
