/* WPower Partner Management Cloud */

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

.wpower-pmc-wrapper {
    min-height: 100vh;
    padding: 40px 24px;
    background: transparent;
}

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

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

/* Header */
.wpower-pmc-header {
    margin-bottom: 20px;
}

.wpower-pmc-header h1 {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
}

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

/* Grid */
.wpower-pmc-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1px;
    margin-bottom: 32px;
    background: #1e1e1e;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
}

/* Card */
.wpower-pmc-doc-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 160px;
    padding: 22px 20px;
    position: static;
    background: #101010;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.15s ease;
    cursor: default; /* uklonjen pointer sa cijelog polja */
}

.wpower-pmc-doc-item:hover {
    background: #161616;
    transform: none;
    box-shadow: none;
}

.wpower-pmc-doc-item.wpower-pmc-pdf,
.wpower-pmc-doc-item.wpower-pmc-word,
.wpower-pmc-doc-item.wpower-pmc-excel {
    background: #101010;
}

.wpower-pmc-doc-item.wpower-pmc-pdf:hover,
.wpower-pmc-doc-item.wpower-pmc-word:hover,
.wpower-pmc-doc-item.wpower-pmc-excel:hover {
    background: #161616;
}

/* File type badge */
.wpower-pmc-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    flex-shrink: 0;
    min-width: unset;
    height: auto;
    padding: 3px 8px;
    position: static;
    border: none;
    border-radius: 4px;
    background: transparent;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 1;
    transition: none;
}

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

.wpower-pmc-file-icon.wpower-pmc-file-icon-pdf {
    background: #2a1515;
    color: #f87171;
}

.wpower-pmc-file-icon.wpower-pmc-file-icon-word {
    background: #131a2a;
    color: #60a5fa;
}

.wpower-pmc-file-icon.wpower-pmc-file-icon-excel {
    background: #101f14;
    color: #4ade80;
}

.wpower-pmc-file-icon.wpower-pmc-file-icon-file {
    background: #1e1a0e;
    color: #fbbf24;
}

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

.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: #e8e8e8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    text-overflow: ellipsis;
    transition: color 0.15s 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: #1e1e1e;
}

/* Description area */
.wpower-pmc-doc-desc {
    display: flex;
    flex-direction: column;
    gap: 8px;
    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;
    border-radius: 0;
    box-shadow: none;
    color: #999;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
    cursor: pointer; /* pointer ostaje samo ovdje */
}

.wpower-pmc-download-btn:hover {
    color: #e8e8e8;
    background: none;
    border-color: transparent;
    box-shadow: none;
    text-decoration: none;
}

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

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

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

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

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

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

@media (max-width: 768px) {
    .wpower-pmc-wrapper {
        padding: 24px 16px;
    }

    .wpower-pmc-doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .wpower-pmc-doc-grid {
        grid-template-columns: 1fr;
    }

    .wpower-pmc-doc-item {
        padding: 18px 16px;
    }

    .wpower-pmc-download-btn {
        width: 100%;
    }
}