/*
 * Blog da Paula Fisch - Estilos Adicionais
 * Baseado no template MBA.html
 */

/* Animações suaves para elementos interativos */
.tool-button, .quiz-button, .nav-link, .post-card {
    transition: all 0.3s ease;
}

/* Estilo para código */
code {
    background-color: rgba(165, 71, 28, 0.1);
    color: var(--crimson);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background-color: rgba(245, 245, 220, 0.5);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    background: none;
    padding: 0;
}

/* Estilo para tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table th {
    background-color: var(--harvard-red);
    color: var(--light-beige);
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

table tr:nth-child(even) {
    background-color: rgba(245, 245, 220, 0.3);
}

table tr:hover {
    background-color: rgba(218, 165, 32, 0.1);
}

/* Estilo para citações */
blockquote {
    border-left: 4px solid var(--crimson);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--crimson);
    background-color: rgba(116, 47, 24, 0.05);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "Carregando...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: var(--gold);
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Modo Faixa - Sintaxe: ![faixa: descrição](url) */
img[alt^="faixa:"] {
    width: 90% !important;
    height: 100px !important;
    object-fit: cover;
    display: block;
    margin: 15px auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Print styles */
@media print {
    header, footer, .navigation, .tags {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
        max-width: none;
        margin: 0;
        padding: 1cm;
    }
    
    a {
        text-decoration: none;
        color: black;
        border-bottom: none;
    }
    
    .post-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles para acessibilidade */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--harvard-red);
    outline-offset: 2px;
}

/* Dark mode support (experimental) */
@media (prefers-color-scheme: dark) {
    :root {
        --light-beige: #2c2c2c;
        --dark-brown: #e0e0e0;
    }
    
    body {
        background-color: var(--light-beige);
        color: var(--dark-brown);
    }
    
    .post-card, .tool-container, .question {
        background-color: rgba(60, 60, 60, 0.7);
    }
}