/* Tema escuro global */
:root {
    --md-primary-fg-color: #1a1c25;
    --md-default-bg-color: #1a1c25;
    --md-primary-bg-color: #fff;
    --md-accent-fg-color: #4169e1;
}

/* Estilo do corpo da página */
body {
    background-color: #1a1c25;
    color: #a9b1d6;
}

/* Header */
.md-header {
    background-color: #1a1c25;
    color: #fff;
    box-shadow: none;
}

.md-header__title {
    margin-left: 0;
}

/* Container principal */
.md-main {
    background: #1a1c25;
}

.md-main__inner {
    margin: 0;
    max-width: none;
}

/* Remover navegação lateral */
.md-sidebar {
    display: none !important;
}

.md-content {
    max-width: none;
    margin: 0;
    padding: 2rem;
}

/* Esconder elementos desnecessários */
.md-header__source,
.md-header-nav__button,
.md-nav--primary,
.md-tabs {
    display: none !important;
}

/* Barra de pesquisa personalizada */
.search-box {
    margin-bottom: 2rem;
    position: relative;
}

.search-box::before {
    content: "search";
    font-family: 'Material Icons';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.25rem;
}

.prompt-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background-color: #262a35;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.prompt-search:focus {
    outline: none;
    border-color: #4169e1;
    box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.1);
}

.prompt-search::placeholder {
    color: #6b7280;
}

/* Botões de filtro */
.filter-section {
    margin-bottom: 2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #262a35;
    color: #9ca3af;
    padding: 0.625rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.filter-btn:hover {
    background-color: #313642;
    color: #fff;
    transform: translateY(-1px);
}

.filter-btn.active {
    background-color: #4169e1;
    color: #fff;
    border-color: #4169e1;
}

/* Galeria de prompts */
.prompt-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Cards de prompts */
.prompt-card {
    background-color: #1f2937;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease-in-out;
}

.prompt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Header do card */
.prompt-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.prompt-category,
.prompt-model {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.prompt-category {
    background-color: rgba(65, 105, 225, 0.15);
    color: #4169e1;
}

.prompt-model {
    background-color: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

.prompt-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.prompt-description {
    color: #9ca3af;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
    margin-bottom: 0.375rem;
}

/* Tags */
.prompt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.prompt-tag {
    background-color: #374151;
    color: #9ca3af;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.688rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.prompt-tag:hover {
    background-color: #4b5563;
    color: #fff;
}

/* Conteúdo do prompt */
.prompt-content {
    background-color: #161b22;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
    max-height: 200px;
    overflow-y: auto;
}

.prompt-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #e5e7eb;
    line-height: 1.4;
    margin: 0;
    white-space: pre-wrap;
}

/* Botão de copiar */
.copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: #374151;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    opacity: 0;
}

.prompt-content:hover .copy-button {
    opacity: 1;
}

.copy-button:hover {
    background-color: #4b5563;
    color: #fff;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.1);
}

.copy-button.copied {
    background-color: #059669;
    color: #fff;
    border-color: #059669;
}

/* Footer do card */
.prompt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.prompt-version,
.prompt-date {
    color: #6b7280;
    font-size: 0.688rem;
    font-weight: 400;
}

/* Ícones */
.material-icons {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1c25;
}

::-webkit-scrollbar-thumb {
    background: #313642;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4169e1;
}

/* Sobrescrever estilos do MkDocs Material */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
    margin: 0;
    line-height: 1.3;
    color: inherit;
}

/* Mensagem de erro */
.error-message {
    background-color: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #ef4444;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
} 