/**
 * Founders Helper — My Account "Documents" tab.
 * Scoped under .fh-docs so it never leaks into the theme.
 * Brand tokens from the Ngobrol Yuk design system.
 */

.fh-docs {
    --fh-green: #00a651;
    --fh-green-dark: #007a3c;
    --fh-green-light: #e6f7ef;
    --fh-navy: #0d1b2a;
    --fh-gray-200: #e2e5ea;
    --fh-gray-400: #9aa3af;
    --fh-gray-600: #5a6470;
    --fh-gray-800: #2c333d;
}

.fh-docs-intro {
    color: var(--fh-gray-600);
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}

.fh-docs-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

@media (min-width: 600px) {
    .fh-docs-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.fh-doc-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--fh-gray-200);
    border-radius: 12px;
    background: #fff;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.fh-doc-card:hover {
    border-color: var(--fh-green);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.fh-doc-icon {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--fh-green-light);
    color: var(--fh-green-dark);
}

.fh-doc-icon svg {
    width: 22px;
    height: 22px;
}

.fh-doc-ext {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 5px;
    background: var(--fh-navy);
    color: #fff;
    max-width: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fh-doc-body {
    flex: 1 1 auto;
    min-width: 0;
}

.fh-doc-name {
    font-weight: 600;
    color: var(--fh-gray-800);
    font-size: 0.92rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fh-doc-meta {
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--fh-gray-400);
}

.fh-doc-order-link {
    color: var(--fh-green-dark);
    text-decoration: none;
    font-weight: 600;
}

.fh-doc-order-link:hover {
    color: var(--fh-green);
    text-decoration: underline;
}

.fh-doc-dl {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 50px;
    background: var(--fh-green);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    border: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.fh-doc-dl:hover {
    background: var(--fh-green-dark);
    transform: translateY(-1px);
    color: #fff !important;
}

.fh-doc-dl svg {
    flex: 0 0 auto;
}

.fh-docs-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--fh-gray-400);
    border: 1.5px dashed var(--fh-gray-200);
    border-radius: 12px;
}

.fh-docs-empty svg {
    margin-bottom: 0.5rem;
}

.fh-docs-empty p {
    margin: 0;
}
