/* =========================================================
   WPower Partner Management Cloud
   Minimal — tuned for site background: #000022
   ========================================================= */

.wpower-pmc-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.wpower-pmc-wrapper {
    min-height: 100vh;
    padding: 48px 24px 64px;
    background: transparent;
    color: #e6e8ef;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wpower-pmc-container {
    max-width: 1180px;
    margin: 0 auto;
}

/* ---------- Typography ---------- */
.wpower-pmc-wrapper .wpower-pmc-doc-title,
.wpower-pmc-wrapper h3.wpower-pmc-doc-title {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ---------- Header ---------- */
.wpower-pmc-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wpower-pmc-header h1 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8b93b8;
}

.wpower-pmc-header p {
    display: none;
}

/* ---------- Grid ---------- */
.wpower-pmc-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
    background: transparent;
    border: none;
}

/* ---------- Card ---------- */
.wpower-pmc-doc-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 168px;
    padding: 22px 22px 20px;

    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
    cursor: default;
}

.wpower-pmc-doc-item:hover {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.wpower-pmc-doc-item:focus-within {
    outline: none;
    border-color: rgba(140, 160, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(100, 130, 255, 0.15);
}

/* No per-variant card backgrounds — keep cards uniform */
.wpower-pmc-doc-item.wpower-pmc-pdf,
.wpower-pmc-doc-item.wpower-pmc-word,
.wpower-pmc-doc-item.wpower-pmc-excel {
    background: transparent;
}

/* ---------- File-type badge ---------- */
.wpower-pmc-file-icon {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 3px 8px;

    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.75;

    transition: opacity 0.2s ease;
}

.wpower-pmc-doc-item:hover .wpower-pmc-file-icon {
    opacity: 1;
}

.wpower-pmc-file-icon.wpower-pmc-file-icon-pdf   { color: #f87171; }
.wpower-pmc-file-icon.wpower-pmc-file-icon-word  { color: #60a5fa; }
.wpower-pmc-file-icon.wpower-pmc-file-icon-excel { color: #4ade80; }
.wpower-pmc-file-icon.wpower-pmc-file-icon-file  { color: #fbbf24; }

/* ---------- Content ---------- */
.wpower-pmc-doc-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.wpower-pmc-doc-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

/* ---------- Title ---------- */
.wpower-pmc-doc-title {
    flex: 1;
    margin-bottom: 0;
    overflow: hidden;
    color: #eef0f8;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wpower-pmc-doc-item:hover .wpower-pmc-doc-title {
    display: block;
    overflow: visible;
    color: #fff;
    white-space: normal;
    -webkit-line-clamp: unset;
}

/* ---------- Divider ---------- */
.wpower-pmc-doc-divider {
    width: 100%;
    height: 1px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

/* ---------- Description area ---------- */
.wpower-pmc-doc-desc {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

/* ---------- Download button ---------- */
.wpower-pmc-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 0;

    background: none;
    border: none;
    color: #8b93b8;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;

    transition: color 0.15s ease;
    cursor: pointer;
}

.wpower-pmc-download-btn:hover {
    color: #ffffff;
    background: none;
    text-decoration: none;
}

.wpower-pmc-download-btn:focus-visible {
    outline: none;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wpower-pmc-download-btn::after {
    content: "↓";
    font-size: 13px;
    line-height: 1;
    transition: transform 0.15s ease;
}

.wpower-pmc-download-btn:hover::after {
    transform: translateY(2px);
}

/* ---------- Filename ---------- */
.wpower-pmc-filename {
    margin-top: 0;
    overflow: hidden;
    color: #4a527a;
    font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
    cursor: default;
    transition: color 0.2s ease;
}

.wpower-pmc-doc-item:hover .wpower-pmc-filename {
    color: #8b93b8;
}

.wpower-pmc-filename:hover {
    color: #b0b6d4;
    white-space: normal;
    word-break: break-all;
}

/* ---------- Hover overlay (disabled) ---------- */
.wpower-pmc-hover-overlay {
    display: none;
}

/* ---------- Footer ---------- */
.wpower-pmc-footer {
    padding: 24px 0 0;
    text-align: center;
    background: transparent;
    border: none;
}

.wpower-pmc-footer p {
    color: #3a4168;
    font-size: 11px;
    letter-spacing: 0.06em;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    .wpower-pmc-doc-item,
    .wpower-pmc-file-icon,
    .wpower-pmc-doc-title,
    .wpower-pmc-download-btn,
    .wpower-pmc-download-btn::after,
    .wpower-pmc-filename {
        transition: none !important;
    }
    .wpower-pmc-doc-item:hover {
        transform: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .wpower-pmc-doc-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
}

@media (max-width: 768px) {
    .wpower-pmc-wrapper {
        padding: 32px 16px 48px;
    }
    .wpower-pmc-doc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .wpower-pmc-doc-item {
        min-height: 156px;
        padding: 18px 18px 16px;
    }
}

@media (max-width: 540px) {
    .wpower-pmc-doc-grid {
        grid-template-columns: 1fr;
    }
    .wpower-pmc-doc-item {
        min-height: 0;
        padding: 18px 16px;
    }
    .wpower-pmc-download-btn {
        width: auto;
    }
}