/* Reseta estilos básicos e define a fonte e o fundo */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fdfdfd;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    color: #333;
    margin: 0;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden; /* Evita scroll horizontal causado pela simulação */
}

#physics-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Abaixo do conteúdo principal */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: rgba(253, 253, 253, 0.9); /* Efeito mais leve sem blur */
}

#glass-overlay.active {
    opacity: 1;
}

body.dark-mode #glass-overlay {
    background-color: rgba(26, 26, 26, 0.9); /* Efeito mais leve sem blur (escuro) */
}

.content-wrapper {
    position: relative;
    z-index: 2; /* Sobe o conteúdo para ficar acima do overlay */
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    pointer-events: none; 
}

/* --- Estilos do Modal de Idioma (Oculto) --- */
.language-modal-overlay { display: none; }
.hidden { display: none; }

/* --- WIDGETS DO CANTO SUPERIOR DIREITO --- */
.top-right-widgets {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.widget-pill {
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    pointer-events: auto;
    font-size: 0.9rem;
    cursor: default;
}

.widget-pill svg {
    width: 20px;
    height: 20px;
    fill: #555;
}

#guestbook-counter.widget-pill {
    background-color: #e4f8e9;
    border-color: #23a55a;
    color: #1b7f3f;
}
#guestbook-counter.widget-pill svg {
    fill: #23a55a;
}

.settings-menu {
    position: relative;
    pointer-events: auto;
}

.settings-toggle-button {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.settings-toggle-button:hover {
    transform: scale(1.05);
}
.settings-toggle-button svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.settings-menu.active .settings-toggle-button svg {
    transform: rotate(180deg);
}

.settings-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.settings-menu.active .settings-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.control-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.control-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.control-item input[type="checkbox"] {
    height: 0; width: 0; visibility: hidden;
}

.control-item label {
    cursor: pointer; text-indent: -9999px; width: 45px; height: 22px;
    background: #bdc3c7; display: block; border-radius: 100px; position: relative;
}

.control-item label:after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px; background: #fff;
    border-radius: 90px; transition: 0.3s;
}

.control-item input:checked + label {
    background: #ffc857;
}

.control-item input:checked + label:after {
    left: calc(100% - 2px);
    transform: translateX(-100%);
}

/* --- TEMA ESCURO --- */
body.dark-mode {
    background-color: #1a1a1a;
    background-image: radial-gradient(#444 1px, transparent 1px);
    color: #e0e0e0;
}
body.dark-mode .widget-pill {
    background-color: #2c2c2c;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}
body.dark-mode .widget-pill svg { fill: #bbb; }
body.dark-mode #guestbook-counter.widget-pill {
    background-color: #1c3b24;
    border-color: #23a55a;
    color: #89d1a3;
}
body.dark-mode #guestbook-counter.widget-pill svg { fill: #23a55a; }
body.dark-mode .profile-info h1 { color: #fff; }
body.dark-mode .profile-info p { color: #aaa; }
body.dark-mode .timeline-dot {
    background-color: #1a1a1a;
    border-color: #e0e0e0;
}
body.dark-mode .timeline::before { background-color: #555; }
body.dark-mode .timeline-title { color: #e0e0e0; }
body.dark-mode .timeline-content,
body.dark-mode .timeline-content h3,
body.dark-mode .timeline-content p,
body.dark-mode .timeline-content li {
    color: #ccc;
}
body.dark-mode .timeline-content { border-left-color: #555; }
body.dark-mode .contact-link { color: #e0e0e0; }
body.dark-mode .guestbook-form input {
    background-color: #2c2c2c;
    border-color: #555;
    color: #fff;
}
body.dark-mode .guestbook-form input:focus {
    border-color: #ffc857;
    box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.4);
}
body.dark-mode .settings-panel {
    background-color: #2c2c2c;
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .control-item span { color: #e0e0e0; }

/* Animação de pulsar para o Guestbook */
@keyframes pulse-glow {
    0%, 100% { transform: scale(1); color: #333; }
    50% { transform: scale(1.03); color: #ffc857; }
}
.pulsing-title .timeline-title {
    animation: pulse-glow 2.5s infinite ease-in-out;
}
body.dark-mode .pulsing-title .timeline-title {
    animation: none;
    color: #ffc857;
}

/* --- Tooltip UI Geral --- */
#ui-tooltip {
    position: fixed;
    background-color: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10001;
}
#ui-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Tooltip para as Bolas do GitHub --- */
#physics-tooltip {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10000;
    max-width: 250px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
#physics-tooltip.visible {
    opacity: 1;
}
#physics-tooltip .name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #ffc857;
}

/* --- Cabeçalho do Perfil --- */
.profile-header { 
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px; 
    margin-left: -45px;
    perspective: 1000px;
    position: relative;
    z-index: 5;
}
.profile-info h1 { margin: 0; font-size: 2.2rem; font-weight: 700; }
.profile-info p { margin: 0; font-size: 1rem; color: #666; }

/* --- Foto de Perfil --- */
.profile-picture-container {
    width: 80px; height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 5px solid #80848e;
    transition: border-color 0.5s ease;
    cursor: pointer;
    flex-shrink: 0;
}
.status-online { border-color: #23a55a; }
.status-idle { border-color: #f0b232; }
.status-dnd { border-color: #f23f43; }
.status-offline { border-color: #80848e; }
.profile-picture-flipper {
    width: 100%; height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    position: relative;
}
.profile-picture-container.flipped .profile-picture-flipper {
    transform: rotateY(180deg);
}
.profile-picture-front, .profile-picture-back {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
}
.profile-picture-back { transform: rotateY(180deg); }
.profile-picture-front img, .profile-picture-back img {
    width: 100%; height: 100%; object-fit: cover;
}

/* --- Timeline --- */
.timeline-container { 
    width: 100%; 
    max-width: 700px; 
    position: relative; 
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 20px;
    pointer-events: auto; 
}

.timeline { 
    list-style: none; padding: 0; margin: 0; 
    position: relative; padding-bottom: 50px; margin-top: 20px;
}
.timeline::before {
    content: ''; position: absolute; left: 0; 
    width: 3px; background-color: #dcdcdc;
    transform: translateX(-50%);
    top: -75px; height: 100%; z-index: 1;
}
.timeline-item { position: relative; padding-left: 50px; margin-bottom: 15px; }
.timeline-marker {
    display: flex; align-items: center; cursor: pointer;
    position: relative; padding: 10px 0;
}
.timeline-dot {
    width: 20px; height: 20px; background-color: #fdfdfd;
    border: 3px solid #333; border-radius: 50%; position: absolute;
    left: -50px; transform: translateX(-50%); transition: all 0.3s ease; z-index: 5;
}
.timeline-title { font-size: 1.4rem; font-weight: 600; margin: 0; transition: color 0.3s ease, transform 0.3s ease; }
.timeline-marker:hover .timeline-title { color: #ffc857; }
.timeline-marker:hover .timeline-dot { background-color: #ffc857; }
.timeline-content {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s ease-in-out, 
                padding 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 15px; border-left: 3px dotted #e0e0e0; margin-left: -38px;
}
.timeline-content img {
    max-width: 100%; border-radius: 12px; margin-top: 20px; margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.timeline-content h3 { font-size: 1.7rem; color: #333; margin-top: 0; margin-bottom: 10px; }
.timeline-content h4 { font-size: 1.2rem; margin-bottom: 5px; margin-top: 25px; }
.timeline-content p, .timeline-content li { font-size: 1rem; line-height: 1.7; color: #555; margin-bottom: 15px; }
.timeline-content a { color: #ffc857; font-weight: bold; text-decoration: none; }
.timeline-content ul { padding-left: 20px; list-style-type: '— '; }

/* --- Seção de Contato --- */
.contact-links-container {
    display: flex; flex-direction: column; gap: 15px; margin-top: 20px;
}
.contact-link {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.1rem; color: #333; text-decoration: none;
    transition: color 0.3s ease;
}
.contact-link:hover { color: #ffc857; }
.contact-link svg { width: 24px; height: 24px; fill: currentColor; }
#copy-email-button { cursor: pointer; }
#copy-email-button.copied { color: #23a55a; font-weight: bold; }

/* --- Seção Guestbook --- */
.guestbook-form { margin-top: 20px; display: flex; gap: 10px; }
.guestbook-form input {
    flex-grow: 1; border: 2px solid #e0e0e0;
    border-radius: 8px; padding: 10px 15px; font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.guestbook-form input:focus {
    outline: none; border-color: #ffc857;
    box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.3);
}
.guestbook-form button {
    background-color: #ffc857; border: none; padding: 10px 20px;
    border-radius: 8px; font-size: 1rem; font-weight: bold;
    color: #333; cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.guestbook-form button:hover { transform: translateY(-2px); background-color: #ffbf47; }
.guestbook-form button:disabled { background-color: #e0e0e0; cursor: not-allowed; transform: none; }

/* --- Destaque de Tecnologias --- */
.tech-js, .tech-node, .tech-react, .tech-python, .tech-cpp { font-weight: 700; }
.tech-js { color: #D4B83D; }
.tech-node { color: #5BAF50; }
.tech-react { color: #44A8D2; }
.tech-python { color: #3572A5; }
.tech-cpp { color: #8C59A5; }

.timeline-item.active .timeline-dot { transform: translateX(-50%) scale(1.2); background-color: #ffc857; border-color: #ffc857; }
.timeline-item.active .timeline-title { color: #ffc857; }
.timeline-item.active .timeline-content {
    max-height: none !important; opacity: 1; 
    padding-top: 10px; padding-bottom: 30px; padding-right: 15px;
}

/* Toast de Celebração */
#milestone-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ffc857, #ff9b57);
    color: #333;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    z-index: 1001;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-weight: bold;
}
#milestone-toast.show {
    bottom: 30px;
    opacity: 1;
}

/* --- Media Query para Responsividade --- */
@media (max-width: 768px) {
    .content-wrapper { 
        padding: 80px 10px 30px 10px; 
        min-height: 100vh;
        overflow-x: hidden;
    }
    .top-right-widgets { top: 15px; right: 15px; }
     .settings-panel {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    .profile-header { margin-left: -35px; gap: 15px; }
    .profile-info h1 { font-size: 1.6rem; }
    .profile-info p { font-size: 0.9rem; }
    .profile-picture-container { width: 60px; height: 60px; }
    .timeline-item { padding-left: 35px; }
    .timeline-dot { left: -35px; }
    .timeline-content { 
        margin-left: -22px; 
        padding-left: 12px; 
        max-width: calc(100vw - 40px);
        overflow-x: hidden;
    }
    .timeline-title { font-size: 1.2rem; }
    .timeline-content h3 { font-size: 1.5rem; }
    .timeline-content p, .timeline-content li { font-size: 0.95rem; }
    .guestbook-form { flex-direction: column; }
    
    /* Garantir que o conteúdo não seja cortado */
    .timeline-container {
        max-width: 100%;
        padding: 10px;
        margin: 0;
    }
    
    /* Ajustar cards de projeto no mobile */
    .project-card {
        margin: 15px 0;
        padding: 15px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ajustar README no mobile */
    .project-readme {
        max-height: 400px; /* Menor no mobile */
        overflow: hidden;
    }
    
    .project-readme.expanded {
        max-height: none;
    }
    
    /* Garantir que imagens não quebrem o layout */
    .project-image {
        max-width: 100%;
        height: auto;
    }
    
    /* Ajustar texto do README no mobile */
    .project-readme h1, .project-readme h2, .project-readme h3 {
        font-size: 1.2rem;
        word-wrap: break-word;
    }
    
    .project-readme p, .project-readme li {
        font-size: 0.9rem;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    /* Ajustar tabelas no mobile */
    .project-readme table {
        font-size: 0.8rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .project-readme th, .project-readme td {
        padding: 4px 6px;
    }
}

/* Media query para mobile pequeno */
@media (max-width: 480px) {
    .content-wrapper {
        padding: 70px 5px 20px 5px;
    }
    
    .timeline-container {
        padding: 5px;
    }
    
    .timeline-content {
        margin-left: -15px;
        padding-left: 8px;
        max-width: calc(100vw - 20px);
    }
    
    .profile-header {
        margin-left: -25px;
        gap: 10px;
    }
    
    .profile-picture-container {
        width: 50px;
        height: 50px;
    }
    
    .profile-info h1 {
        font-size: 1.4rem;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    .project-card {
        padding: 12px;
        margin: 10px 0;
    }
    
    .project-readme {
        max-height: 300px; /* Ainda menor em telas pequenas */
    }
    
    .readme-expand-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
}

/* --- Estilos para Cards de Projeto --- */
.project-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 200, 87, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 200, 87, 0.4);
}

.project-card h4 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.project-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-description {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-readme {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #ffc857;
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-readme h1,
.project-readme h2,
.project-readme h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.project-readme h1 { font-size: 1.4rem; }
.project-readme h2 { font-size: 1.2rem; }
.project-readme h3 { font-size: 1.1rem; }

.project-readme p {
    margin-bottom: 10px;
    color: #555;
}

.project-readme code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #d63384;
}

.project-readme pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 10px 0;
}

.project-readme pre code {
    background: none;
    padding: 0;
    color: #333;
}

.project-readme a {
    color: #ffc857;
    text-decoration: none;
    font-weight: 500;
}

.project-readme a:hover {
    text-decoration: underline;
}

.project-readme ul,
.project-readme ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.project-readme li {
    margin-bottom: 5px;
    color: #555;
}

.project-readme strong {
    color: #333;
    font-weight: 600;
}

.project-readme em {
    color: #666;
    font-style: italic;
}

.project-link {
    margin-top: 15px;
    text-align: center;
}

.project-link a {
    display: inline-block;
    background: linear-gradient(135deg, #ffc857, #ff8c00);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 200, 87, 0.3);
}

.project-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 200, 87, 0.4);
}

/* Modo escuro para cards de projeto */
body.dark-mode .project-card {
    background: rgba(40, 40, 40, 0.8);
    border-color: rgba(255, 200, 87, 0.3);
}

body.dark-mode .project-card h4 {
    color: #e0e0e0;
}

body.dark-mode .project-description {
    color: #bbb;
}

body.dark-mode .project-readme {
    background: rgba(30, 30, 30, 0.8);
    border-left-color: #ffc857;
}

body.dark-mode .project-readme h1,
body.dark-mode .project-readme h2,
body.dark-mode .project-readme h3 {
    color: #e0e0e0;
}

body.dark-mode .project-readme p,
body.dark-mode .project-readme li {
    color: #ccc;
}

body.dark-mode .project-readme code {
    background: rgba(255, 255, 255, 0.1);
    color: #ff6b9d;
}

body.dark-mode .project-readme pre {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .project-readme pre code {
    color: #e0e0e0;
}

body.dark-mode .project-readme strong {
    color: #e0e0e0;
}

body.dark-mode .project-readme em {
    color: #aaa;
}

/* Estilo para quando não há README */
.project-readme.no-readme {
    background: rgba(255, 243, 205, 0.8);
    border-left-color: #ffc107;
    text-align: center;
}

.project-readme.no-readme p {
    margin: 0;
    color: #856404;
}

body.dark-mode .project-readme.no-readme {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

body.dark-mode .project-readme.no-readme p {
    color: #ffc107;
}

/* Estilos específicos para elementos do README */
.readme-h1, .readme-h2, .readme-h3, .readme-h4, .readme-h5, .readme-h6 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.readme-h1 { font-size: 1.8rem; }
.readme-h2 { font-size: 1.5rem; }
.readme-h3 { font-size: 1.3rem; }
.readme-h4 { font-size: 1.1rem; }
.readme-h5 { font-size: 1rem; }
.readme-h6 { font-size: 0.9rem; }

.readme-paragraph {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
}

.readme-list, .readme-ordered-list {
    margin: 10px 0;
    padding-left: 20px;
}

.readme-list-item {
    margin-bottom: 5px;
    color: #555;
}

.readme-strong {
    font-weight: 600;
    color: #333;
}

.readme-em {
    font-style: italic;
    color: #666;
}

.readme-hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #ffc857, transparent);
    margin: 20px 0;
}

.readme-code-inline {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    color: #d63384;
}

.readme-code-block {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
    border-left: 4px solid #ffc857;
}

.readme-code-block code {
    background: none;
    padding: 0;
    color: #333;
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.readme-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.readme-table-wrapper {
    overflow-x: auto;
    margin: 15px 0;
}

.readme-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.readme-table th,
.readme-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.readme-table th {
    background: rgba(255, 200, 87, 0.2);
    font-weight: 600;
    color: #333;
}

.readme-table tr:hover {
    background: rgba(255, 200, 87, 0.05);
}

.readme-blockquote {
    border-left: 4px solid #ffc857;
    background: rgba(255, 200, 87, 0.1);
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #666;
}

/* Modo escuro para elementos do README */
body.dark-mode .readme-h1,
body.dark-mode .readme-h2,
body.dark-mode .readme-h3,
body.dark-mode .readme-h4,
body.dark-mode .readme-h5,
body.dark-mode .readme-h6 {
    color: #e0e0e0;
}

body.dark-mode .readme-paragraph {
    color: #ccc;
}

body.dark-mode .readme-list-item {
    color: #ccc;
}

body.dark-mode .readme-strong {
    color: #e0e0e0;
}

body.dark-mode .readme-em {
    color: #aaa;
}

body.dark-mode .readme-code-inline {
    background: rgba(255, 255, 255, 0.1);
    color: #ff6b9d;
}

body.dark-mode .readme-code-block {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #ffc857;
}

body.dark-mode .readme-code-block code {
    color: #e0e0e0;
}

body.dark-mode .readme-table {
    background: rgba(40, 40, 40, 0.8);
}

body.dark-mode .readme-table th {
    background: rgba(255, 200, 87, 0.2);
    color: #e0e0e0;
}

body.dark-mode .readme-table th,
body.dark-mode .readme-table td {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

body.dark-mode .readme-table tr:hover {
    background: rgba(255, 200, 87, 0.1);
}

body.dark-mode .readme-blockquote {
    background: rgba(255, 200, 87, 0.1);
    border-left-color: #ffc857;
    color: #aaa;
}

/* Estilos para badges do GitHub */
.readme-badge {
    display: inline-block;
    margin: 2px 4px 2px 0;
    vertical-align: middle;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.readme-badge:hover {
    transform: scale(1.05);
}

/* Estilos para emojis */
.readme-paragraph,
.readme-list-item,
.readme-h1,
.readme-h2,
.readme-h3,
.readme-h4,
.readme-h5,
.readme-h6 {
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
}

/* Melhorar espaçamento para badges */
.readme-paragraph:has(.readme-badge) {
    line-height: 2;
}

/* Fallback para navegadores que não suportam :has() */
.readme-badge-container {
    display: inline-block;
    margin: 5px 0;
    line-height: 1.8;
}

/* --- Sistema de Expansão do README --- */
.project-readme-container {
    position: relative;
}

.project-readme {
    max-height: 600px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    position: relative;
}

.project-readme.expanded {
    max-height: none;
}

.project-readme::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, rgba(248, 249, 250, 0.9));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-readme.expanded::after {
    opacity: 0;
}

.readme-expand-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffc857, #ff8c00);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: -1px;
    box-shadow: 0 2px 10px rgba(255, 200, 87, 0.3);
}

.readme-expand-btn:hover {
    background: linear-gradient(135deg, #ff8c00, #ffc857);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 200, 87, 0.4);
}


.expand-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

/* Modo escuro para expansão */
body.dark-mode .project-readme::after {
    background: linear-gradient(transparent, rgba(30, 30, 30, 0.9));
}

body.dark-mode .readme-expand-btn {
    background: linear-gradient(135deg, #ffc857, #ff8c00);
    box-shadow: 0 2px 10px rgba(255, 200, 87, 0.2);
}

body.dark-mode .readme-expand-btn:hover {
    background: linear-gradient(135deg, #ff8c00, #ffc857);
    box-shadow: 0 4px 15px rgba(255, 200, 87, 0.3);
}

