
/* =========================================================
   INCLUSIVELINK
   PERSONA LIBRARY REDESIGN
   ========================================================= */


/* =========================================================
   PAGE CONTAINER
   ========================================================= */

.persona-library-redesign {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto 55px;
    color: #173765;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.pl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
}

.pl-intro {
    max-width: 650px;
}

.pl-intro .page-heading {
    margin-bottom: 8px;
}

.pl-intro .page-subheading {
    max-width: 630px;
    line-height: 1.55;
}


/* =========================================================
   SUMMARY CARDS
   ========================================================= */

.pl-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-width: 560px;
}

.pl-summary-card {
    min-height: 72px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;

    background: #ffffff;
    border: 1px solid #e1eaf5;
    border-radius: 12px;

    box-shadow: 0 5px 15px rgba(25, 55, 105, 0.04);
}

.pl-summary-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    background: #e9f3ff;
    color: #176bd0;

    border-radius: 10px;
    font-size: 21px;
    font-weight: 800;
}

.pl-summary-card strong {
    display: block;
    margin-bottom: 4px;

    color: #12376d;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.pl-summary-card small {
    display: block;

    color: #7184a0;
    font-size: 10px;
    line-height: 1.3;
}


/* =========================================================
   SEARCH AND FILTER TOOLBAR
   ========================================================= */

.pl-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 12px;
    padding: 12px;

    background: #ffffff;
    border: 1px solid #dce6f3;
    border-radius: 12px;

    box-shadow: 0 5px 15px rgba(25, 55, 105, 0.04);
}

.pl-search {
    min-width: 190px;
    flex: 2;

    display: flex;
    align-items: center;
    gap: 10px;

    height: 39px;
    padding: 0 12px;

    background: #ffffff;
    border: 1px solid #d3e0ef;
    border-radius: 8px;
}

.pl-search > span {
    color: #2366b5;
    font-size: 20px;
    font-weight: 800;
}

.pl-search input {
    width: 100%;
    min-width: 0;
    height: 100%;

    padding: 0;
    background: transparent;

    border: none;
    outline: none;

    color: #243e65;
    font-family: inherit;
    font-size: 10px;
}

.pl-search input::placeholder {
    color: #8392a9;
}

.pl-toolbar select {
    min-width: 120px;
    max-width: 185px;
    flex: 1;

    height: 39px;
    padding: 0 10px;

    background: #f4f8ff;
    color: #29476f;

    border: 1px solid #e4ecf6;
    border-radius: 8px;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
    outline: none;
}

.pl-toolbar select:focus,
.pl-search:focus-within {
    border-color: #438ce2;
    box-shadow: 0 0 0 3px rgba(67, 140, 226, 0.1);
}

.pl-add {
    min-width: 135px;
    height: 39px;
    margin-left: auto;
    padding: 0 14px;

    background: #173d78;
    color: #ffffff;

    border: 1px solid #173d78;
    border-radius: 8px;

    font-family: inherit;
    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
    cursor: pointer;
}

.pl-add:hover {
    background: #102e60;
}


/* =========================================================
   FILTER COUNT
   ========================================================= */

.pl-count {
    margin: 0 0 12px;
    color: #7184a0;
    font-size: 10px;
}

.pl-empty {
    padding: 35px;
    margin-top: 15px;

    background: #ffffff;
    color: #607693;

    border: 1px solid #dce6f3;
    border-radius: 12px;

    text-align: center;
    font-size: 12px;
}

.pl-empty[hidden] {
    display: none;
}


/* =========================================================
   PERSONA GRID
   ========================================================= */

.pl-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 13px;
}


/* =========================================================
   PERSONA CARDS
   ========================================================= */

.pl-card {
    min-width: 0;
    min-height: 350px;

    display: flex;
    flex-direction: column;

    padding: 13px;

    background: #ffffff;
    border: 1px solid #dce6f3;
    border-radius: 12px;

    box-shadow: 0 5px 16px rgba(25, 55, 105, 0.045);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.pl-card:hover {
    transform: translateY(-3px);

    border-color: #b7d2f4;

    box-shadow:
        0 10px 25px rgba(25, 55, 105, 0.09);
}

.pl-card[hidden] {
    display: none !important;
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.pl-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    min-height: 100px;
    margin-bottom: 12px;
}

.pl-card .persona-avatar {
    width: 61px;
    height: 61px;

    flex-shrink: 0;
    object-fit: cover;

    border: 1px solid #e0e7f0;
    border-radius: 50%;
}

.pl-card .persona-card-heading {
    min-width: 0;
    flex: 1;
}

.pl-card .persona-type-badge {
    display: inline-block;

    max-width: 100%;
    margin-bottom: 6px;
    padding: 4px 7px;

    background: #e2efff;
    color: #2166bd;

    border-radius: 20px;

    font-size: 8px;
    line-height: 1.3;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.pl-card:nth-child(5n + 2) .persona-type-badge {
    background: #eee7ff;
    color: #7750bc;
}

.pl-card:nth-child(5n + 3) .persona-type-badge {
    background: #ffeadf;
    color: #bd603d;
}

.pl-card:nth-child(5n + 4) .persona-type-badge {
    background: #fce4f0;
    color: #b14b82;
}

.pl-card:nth-child(5n + 5) .persona-type-badge {
    background: #e0f6e9;
    color: #288454;
}

.pl-card .persona-card-heading h3 {
    margin: 0 0 6px;

    color: #12376d;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
}

.pl-card .persona-description {
    margin: 0;

    color: #526987;
    font-size: 10px;
    line-height: 1.45;

    overflow-wrap: anywhere;
}


/* =========================================================
   COMMUNICATION DETAILS
   ========================================================= */

.pl-facts {
    display: flex;
    flex-direction: column;
    gap: 6px;

    margin-bottom: 12px;
}

.pl-facts > div {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;

    color: #536a89;
    font-size: 10px;
    line-height: 1.4;
}

.pl-facts span {
    width: 17px;
    flex-shrink: 0;

    color: #176bd0;
    font-size: 13px;
    font-weight: 800;
}

.pl-facts b {
    color: #203c64;
    font-weight: 800;
}


/* =========================================================
   KEY NEEDS
   ========================================================= */

.pl-needs {
    margin-top: auto;
    margin-bottom: 12px;
    padding: 10px;

    background: linear-gradient(
        135deg,
        #edf5ff,
        #f7faff
    );

    border: none;
    border-radius: 9px;
}

.pl-needs > strong {
    display: block;
    margin-bottom: 5px;

    color: #24436d;
    font-size: 10px;
    font-weight: 800;
}

.pl-needs ul {
    margin: 0;
    padding-left: 16px;
}

.pl-needs li {
    margin-bottom: 3px;

    color: #526987;
    font-size: 10px;
    line-height: 1.4;
}

.pl-needs li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.pl-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.pl-actions .view-persona-button {
    min-height: 34px;
    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    background: #173d78;
    color: #ffffff;

    border: 1px solid #173d78;
    border-radius: 7px;

    font-family: inherit;
    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
    cursor: pointer;
}

.pl-actions .view-persona-button:hover {
    background: #102e60;
}

.pl-actions .view-persona-button span {
    font-size: 13px;
}

.pl-actions .persona-card-bottom-actions {
    display: flex;
    align-items: center;
    gap: 5px;

    margin: 0;
}

.pl-actions .persona-small-action {
    min-height: 34px;
    padding: 0 9px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #f0f6ff;
    color: #275c9c;

    border: 1px solid #e5edf7;
    border-radius: 7px;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.pl-actions .persona-small-action:hover {
    background: #e2efff;
}

.pl-actions .delete-persona {
    background: #fff0f1;
    color: #d94c54;

    border-color: #ffeaec;
}

.pl-actions .delete-persona:hover {
    background: #ffe3e6;
}


/* =========================================================
   EXISTING MODALS
   ========================================================= */

/*
   The existing Add Persona and Persona Detail modal
   styling remains in style.css.

   This redesign intentionally does not override
   their layouts, so the existing modal functionality
   and appearance are preserved.
*/


/* =========================================================
   RESPONSIVE - LARGE SCREENS
   ========================================================= */

@media (max-width: 1450px) {

    .pl-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pl-summary {
        min-width: 500px;
    }

    .pl-toolbar {
        flex-wrap: wrap;
    }

    .pl-search {
        flex: 2 1 260px;
    }

    .pl-toolbar select {
        flex: 1 1 145px;
    }
}


/* =========================================================
   RESPONSIVE - LAPTOPS
   ========================================================= */

@media (max-width: 1150px) {

    .pl-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .pl-summary {
        width: 100%;
        min-width: 0;
    }

    .pl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   RESPONSIVE - TABLETS
   ========================================================= */

@media (max-width: 850px) {

    .pl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pl-toolbar {
        gap: 8px;
    }

    .pl-search {
        flex-basis: 100%;
    }

    .pl-add {
        flex: 1;
        margin-left: 0;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .pl-header {
        gap: 18px;
    }

    .pl-summary {
        grid-template-columns: 1fr;
    }

    .pl-summary-card {
        min-height: 65px;
    }

    .pl-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pl-search,
    .pl-toolbar select,
    .pl-add {
        width: 100%;
        max-width: none;
        min-width: 0;
        flex: none;
    }

    .pl-grid {
        grid-template-columns: 1fr;
    }

    .pl-card {
        min-height: 0;
    }

    .pl-card-header {
        min-height: 0;
    }

    .pl-actions {
        flex-wrap: wrap;
    }

    .pl-actions .view-persona-button {
        flex: 1;
    }
}


/* =========================================================
   PERSONA CARD SIZE - MATCH ORIGINAL LAYOUT
   ========================================================= */

.persona-library-redesign {
    width: calc(100vw - 80px);
    max-width: 1400px;
    margin-left: 50%;
    transform: translateX(-50%);
}

.pl-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.pl-card {
    min-height: 355px;
    padding: 16px;
}

.pl-card .persona-avatar {
    width: 52px;
    height: 52px;
}

.pl-card .persona-card-heading h3 {
    font-size: 15px;
}

.pl-card .persona-description {
    font-size: 12px;
    line-height: 1.5;
}

.pl-needs {
    padding: 14px;
}

.pl-needs > strong,
.pl-needs li {
    font-size: 11px;
}

.pl-actions .view-persona-button,
.pl-actions .persona-small-action {
    font-size: 10px;
}
