/* Documentação - CSS Público Responsivo */
/* Classes com prefixo docs- para evitar conflitos */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@900&display=swap');

/* Wrapper principal */
.docs-system {
    --docs-bg: #ffffff;
    --docs-text: #374151;
    --docs-text-dark: #1f2937;
    --docs-muted: #6b7280;
    --docs-black: #000000;
    --docs-gray: #e5e7eb;
    --docs-gray-hover: #d1d5db;
    --docs-border: #e5e7eb;
    --docs-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

    font-family: 'Inter', sans-serif;
    color: var(--docs-text);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.docs-system *,
.docs-system *::before,
.docs-system *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.docs-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    overflow-x: hidden;
}

/* Main Section */
.docs-main {
    padding: 0 0 40px;
}

.docs-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(1.8rem, 6vw, 4.5rem) !important;
    color: var(--docs-text-dark);
    margin: 0;
    padding-bottom: 20px;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Filters */
.docs-filters {
    padding: 16px 0;
    margin-bottom: 20px;
}

.docs-filters-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.docs-search-box {
    flex: 1;
    min-width: 100%;
}

.docs-search-box input {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid var(--docs-border);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    -webkit-appearance: none;
    margin: 0;
    -webkit-text-size-adjust: 100%;
}

.docs-search-box input:focus {
    outline: none;
    border-color: var(--docs-gray-hover);
}

.docs-select {
    flex: 1;
    min-width: calc(50% - 4px);
    padding: 8px 14px;
    border: 1px solid var(--docs-border);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    -webkit-appearance: none;
    margin: 0;
    -webkit-text-size-adjust: 100%;
}

.docs-select:focus {
    outline: none;
    border-color: var(--docs-gray-hover);
}

/* Buttons */
.docs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    background: var(--docs-gray);
    color: var(--docs-text);
    width: 100%;
    transition: all 0.2s ease;
    margin: 0;
}

.docs-btn:hover {
    background: var(--docs-gray-hover);
    color: var(--docs-text-dark);
    transform: translateY(2px);
}

.docs-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.docs-btn-inline {
    display: inline-flex;
    width: auto;
}

/* Download Button */
.docs-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--docs-black);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    margin: 0;
}

.docs-btn-download:hover {
    background: #1a1a1a;
    transform: translateY(2px);
}

.docs-btn-download svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Documents Grid */
.docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

/* Document Card */
.docs-card {
    background: #ffffff;
    border: 1px solid var(--docs-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--docs-shadow);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
}

.docs-card:hover {
    background: #f9fafb;
}

.docs-card-header {
    padding: 14px 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.docs-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.docs-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.docs-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #e6e6e6;
    color: var(--docs-text);
    border: none;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    cursor: default;
}

.docs-badge:hover {
    transform: translateY(2px);
}

.docs-card-body {
    padding: 12px 16px;
}

.docs-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-align: left;
    color: var(--docs-text-dark);
}

.docs-card-desc {
    font-size: 0.85rem;
    color: var(--docs-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    margin: 0;
}

.docs-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.docs-info {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--docs-muted);
}

.docs-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.docs-info svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Empty State */
.docs-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--docs-muted);
}

.docs-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.docs-empty h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: var(--docs-text-dark);
}

.docs-empty p {
    margin: 0 0 20px 0;
}

/* ==================== RESPONSIVE ==================== */

/* Mobile */
@media (max-width: 767px) {
    .docs-title {
        text-align: center;
    }

    .docs-filters-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .docs-search-box {
        grid-column: 1 / -1;
    }

    .docs-select {
        min-width: 100%;
    }

    .docs-btn {
        padding: 8px 12px;
        font-size: 14px;
        width: 100%;
    }

    .docs-btn-download {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .docs-container {
        padding: 0 20px;
    }

    .docs-filters-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .docs-search-box {
        grid-column: 1 / -1;
        min-width: 100%;
    }

    .docs-select {
        min-width: 100%;
    }

    .docs-btn {
        width: 100%;
    }

    .docs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .docs-container {
        padding: 0 20px;
    }

    .docs-filters-row {
        flex-wrap: nowrap;
    }

    .docs-search-box {
        min-width: 250px;
        flex: 2;
    }

    .docs-select {
        min-width: 150px;
        flex: 1;
    }

    .docs-btn {
        width: auto;
        flex-shrink: 0;
    }

    .docs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .docs-card-header {
        padding: 16px 18px 0;
    }

    .docs-card-body {
        padding: 14px 18px;
    }

    .docs-card-footer {
        padding: 14px 18px;
    }
}
