/* Logo no header  */
.md-header__button.md-logo img,
.md-logo img {
    width: 60px;
    height: auto;
    display: block;
}

/* Hero section da homepage */
.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
}

.hero-section img {
    margin: 0 auto 2rem;
    display: block;
    max-width: 300px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--md-primary-fg-color);
    margin-bottom: 1rem;
}

.hero-section .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--md-default-fg-color--light);
    margin-bottom: 1rem;
}

.hero-section .hero-description {
    font-size: 1rem;
    color: var(--md-default-fg-color--light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.3;
}

.hero-section .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cards grid - Material for MkDocs suporta nativamente */
.grid.cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.grid.cards > * {
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--md-default-bg-color);
}

.grid.cards > *:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--md-primary-fg-color);
}

/* SDLC Section */
.sdlc-container {
    margin: 3rem 0;
    max-width: 100%;
    width: 100%;
}

.sdlc-image {
    width: 100%;
    margin-bottom: 0;
}

.sdlc-image img {
    width: 100%;
    height: auto;
    display: block;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0;
}

.sdlc-table {
    width: 100%;
    margin-top: 2rem;
}

.sdlc-table table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
    margin: 0 !important;
}

/* Logo na homepage */
.md-typeset img[alt*="People Tech Docs"] {
    margin: 0 auto 2rem;
    display: block;
}

/* Seções com espaçamento adequado */
.md-typeset h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.md-typeset hr {
    margin: 3rem 0;
    border: none;
    height: 1px;
    background: var(--md-default-fg-color--lightest);
}

/* Imagem SDLC sem bordas/sombras e largura total */
.md-typeset img[alt="Ciclo SDLC"] {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 2rem 0;
}

/* Tabela do SDLC - mesma largura da imagem */
.md-typeset table {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    table-layout: fixed;
}

.md-typeset table th {
    background: var(--md-primary-fg-color);
    color: white;
    font-weight: 600;
    padding: 1rem;
}

.md-typeset table td {
    padding: 1rem;
}

/* Botões de ação */
.md-button {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    transition: all 0.2s;
}

.md-button--primary {
    background: var(--md-primary-fg-color);
}

.md-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Listas de checklist */
.md-typeset .task-list-item {
    list-style: none;
}

.md-typeset .task-list-item input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Status badges nas RFCs */
.md-typeset .rfc-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.rfc-status.draft { background: #fbbf24; color: #000; }
.rfc-status.review { background: #3b82f6; color: #fff; }
.rfc-status.approved { background: #10b981; color: #fff; }
.rfc-status.rejected { background: #ef4444; color: #fff; }
.rfc-status.deprecated { background: #f97316; color: #fff; }

/* Ajustes da tabela para alinhar com a imagem */
.md-typeset .sdlc-table table {
    margin-top: 0;
    margin-bottom: 2rem;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section img {
        max-width: 200px;
    }
    
    .grid.cards {
        grid-template-columns: 1fr;
    }
    
    .md-logo img {
        width: 45px;
    }
    
    .sdlc-table table {
        font-size: 0.875rem;
    }
}

/* Melhorias de acessibilidade e foco */
.md-button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--md-primary-fg-color);
    outline-offset: 2px;
}
