/* Document pages (resources/views/pages/documents/show.blade.php) */

.documents-page {
    padding: 150px 0 90px;
    min-height: 70vh;
    font-family: var(--font_family_body, "Roboto", sans-serif);
}

.documents-page__head {
    max-width: 760px;
    margin-bottom: 2rem;
}

.documents-page__kicker {
    display: inline-block;
    font-family: var(--font_family_heading, "Jost", sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color_primary, #0071dc);
    background: #f3f7fc;
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    margin-bottom: 0.9rem;
}

.documents-page .documents-page__title {
    font-family: var(--font_family_heading, "Jost", sans-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color_text_heading, #161616);
    margin: 0;
}

.documents-page__intro {
    margin-top: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5a5a5a;
}

/* File list */
.doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
    max-width: 900px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: #fff;
    border: 1px solid #e3eaf3;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 18px rgba(22, 22, 22, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.doc-item:hover {
    border-color: #c8d9ee;
    box-shadow: 0 10px 28px rgba(0, 113, 220, 0.1);
}

.doc-item__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.5rem;
    background: #eef3f9;
    color: #5a6b80;
}

.doc-item--pdf .doc-item__icon { background: #fdecec; color: #d64541; }
.doc-item--doc .doc-item__icon,
.doc-item--docx .doc-item__icon { background: #e8f0fd; color: #2b5797; }
.doc-item--xls .doc-item__icon,
.doc-item--xlsx .doc-item__icon { background: #e7f5ec; color: #1e7145; }

.doc-item__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.doc-item__name {
    font-family: var(--font_family_heading, "Jost", sans-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color_text_heading, #161616);
    line-height: 1.35;
    overflow-wrap: break-word;
}

.doc-item__meta {
    font-size: 0.85rem;
    color: #6b6b6b;
    margin-top: 0.15rem;
}

.doc-item__actions {
    flex: 0 0 auto;
    display: flex;
    gap: 0.5rem;
}

.documents-page .doc-item__button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--color_primary, #0071dc);
    color: var(--color_primary, #0071dc);
    background: #fff;
    font-family: var(--font_family_heading, "Jost", sans-serif);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.documents-page .doc-item__button:hover,
.documents-page .doc-item__button:focus-visible {
    background: #f3f7fc;
    color: #005bb2;
}

.documents-page .doc-item__button--primary {
    background: var(--color_primary, #0071dc);
    color: #fff;
}

.documents-page .doc-item__button--primary:hover,
.documents-page .doc-item__button--primary:focus-visible {
    background: #005bb2;
    color: #fff;
}

.documents-page .doc-item__button:focus-visible {
    outline: 3px solid var(--color_primary, #0071dc);
    outline-offset: 2px;
}

/* Empty category */
.doc-empty {
    max-width: 900px;
    text-align: center;
    border: 2px dashed #d6e1ee;
    border-radius: 18px;
    padding: 2.5rem 1.5rem;
    background: #f9fbfd;
}

.doc-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    color: var(--color_secondary, #f7bc20);
    font-size: 1.7rem;
    box-shadow: 0 4px 14px rgba(22, 22, 22, 0.06);
    margin-bottom: 0.9rem;
}

.documents-page .doc-empty__title {
    font-family: var(--font_family_heading, "Jost", sans-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color_text_heading, #161616);
    margin: 0 0 0.35rem;
}

.documents-page .doc-empty__text {
    color: #6b6b6b;
    margin: 0;
}

/* Other categories */
.doc-others {
    max-width: 900px;
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e3eaf3;
}

.documents-page .doc-others__title {
    font-family: var(--font_family_heading, "Jost", sans-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color_text_heading, #161616);
    margin: 0 0 0.9rem;
}

.doc-others__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.documents-page .doc-others__list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: #f3f7fc;
    color: var(--color_text_heading, #161616);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.documents-page .doc-others__list a:hover,
.documents-page .doc-others__list a:focus-visible {
    background: var(--color_primary, #0071dc);
    color: #fff;
}

.doc-others__list i {
    color: var(--color_secondary, #f7bc20);
}

.documents-page .doc-others__list a:hover i,
.documents-page .doc-others__list a:focus-visible i {
    color: #fff;
}

@media (max-width: 767.98px) {
    .documents-page {
        padding-top: 120px;
    }

    .doc-item {
        flex-wrap: wrap;
    }

    .doc-item__actions {
        width: 100%;
    }

    .documents-page .doc-item__button {
        flex: 1 1 0;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .doc-item,
    .documents-page .doc-item__button,
    .documents-page .doc-others__list a {
        transition: none;
    }
}

/* Text for screen readers only (the theme's Bootstrap 4 has no .visually-hidden) */
.doc-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
