/*
Theme Name: Enfold Child
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating will be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/



/*Add your own styles here:*/

 /* WPower Partner Management Cloud - Scoped CSS */
.wpower-pmc-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.wpower-pmc-wrapper {
    min-height: 100vh;
    /*background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #e0e7ff 100%);*/
    padding: 24px;
}

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

.wpower-pmc-header {
    text-align: center;
    margin-bottom: 48px;
}

.wpower-pmc-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.wpower-pmc-header p {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 672px;
    margin: 0 auto;
    line-height: 1.6;
}

.wpower-pmc-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.wpower-pmc-doc-item {
    position: relative;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.wpower-pmc-doc-item:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* PDF styling */
.wpower-pmc-doc-item.wpower-pmc-pdf {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

/* Word styling */
.wpower-pmc-doc-item.wpower-pmc-word {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}

/* Excel styling */
.wpower-pmc-doc-item.wpower-pmc-excel {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}

.wpower-pmc-file-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    opacity: 0.6;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
}

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

.wpower-pmc-doc-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-right: 48px;
}

.wpower-pmc-doc-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
    flex-grow: 1;
}

.wpower-pmc-doc-item:hover .wpower-pmc-doc-title {
    color: #374151;
}

.wpower-pmc-doc-desc {
    margin-top: auto;
}

.wpower-pmc-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    font-weight: 500;
}

.wpower-pmc-download-btn:hover {
    color: #111827;
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.wpower-pmc-download-icon {
    width: 16px;
    height: 16px;
}

.wpower-pmc-filename {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpower-pmc-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.wpower-pmc-footer {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.wpower-pmc-footer p {
    font-size: 0.875rem;
    color: #4b5563;
}

/* ---------- RESPONSIVE FIXES ---------- */
@media (max-width: 1024px) {
    .wpower-pmc-doc-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
    }
    .wpower-pmc-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 900px) {
    .wpower-pmc-doc-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .wpower-pmc-wrapper {
        padding: 12px;
    }
    .wpower-pmc-header h1 {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }
    .wpower-pmc-header p {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 8px;
    }
    .wpower-pmc-doc-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .wpower-pmc-doc-item {
        padding: 16px;
    }
    .wpower-pmc-doc-title {
        font-size: 0.95rem;
    }
    .wpower-pmc-file-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .wpower-pmc-header h1 {
        font-size: 1.5rem;
    }
    .wpower-pmc-header p {
        font-size: 0.9rem;
    }
    .wpower-pmc-doc-title {
        font-size: 0.9rem;
    }
    .wpower-pmc-filename {
        font-size: 0.7rem;
    }
    .wpower-pmc-doc-item {
        padding: 14px;
    }
    .wpower-pmc-file-icon {
        width: 24px;
        height: 24px;
    }
}
@media (max-width: 768px) {
    .wpower-pmc-doc-content {
        padding-right: 0;
    }
    .wpower-pmc-filename {
        white-space: normal;
        word-break: break-word;
        text-align: left;
    }
    .wpower-pmc-file-icon {
        position: static;
        margin-bottom: 8px;
        align-self: flex-start;
    }
    .wpower-pmc-download-btn {
        display: block;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
/* --------- Grid container --------- */
.projekt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

/* --------- Individual project item --------- */
.projekt-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projekt-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --------- Title --------- */
.projekt-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

/* --------- Image --------- */
.projekt-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* --------- Excerpt/Description --------- */
.projekt-item p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 12px;
}

/* --------- Info details --------- */
.info-detalji {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-detalji .row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-detalji .row .icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #6b7280;
}

.info-detalji .row .label {
    font-weight: 500;
    color: #374151;
    flex: 1;
}

.info-detalji .row .value {
    font-weight: 400;
    color: #111827;
}

/* --------- Status trakica --------- */
.info-detalji .row.status {
    justify-content: center;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding: 4px 8px;
    margin-top: 8px;
}

/* --------- Disable hover transform --------- */
.projekt-item:hover {
    transform: none; /* nema pomaka */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* isto kao normalno */
}

/* --------- Status ribbon --------- */
.projekt-item .status-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #34D399; /* default green */
    color: #fff;
    padding: 4px 8px;
    font-weight: 600;
    border-radius: 8px;
    font-size: 0.8rem;
    z-index: 10;
}


/* --------- Responsive --------- */
@media (max-width: 768px) {
    .projekt-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

