/*
|--------------------------------------------------------------------------
| My Workshops Dashboard
|--------------------------------------------------------------------------
*/

.pp-my-workshops-dashboard {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 20px 70px;
    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Dashboard Header
|--------------------------------------------------------------------------
*/

.pp-my-workshops-header {
    margin-bottom: 30px;
}

.pp-my-workshops-header-content {
    max-width: 760px;
}

.pp-my-workshops-eyebrow {
    display: inline-block;
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #6b7280;
}

.pp-my-workshops-title {
    margin: 0 0 10px;

    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;

    color: #111827;
}

.pp-my-workshops-description {
    max-width: 650px;
    margin: 0;

    font-size: 16px;
    line-height: 1.7;

    color: #6b7280;
}


/*
|--------------------------------------------------------------------------
| Statistics
|--------------------------------------------------------------------------
*/

.pp-my-workshops-stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 30px;
}

.pp-workshop-stat-card {
    display: flex;

    align-items: center;

    width: 100%;
    min-height: 94px;

    padding: 18px;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    background: #ffffff;

    text-align: left;

    cursor: pointer;

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

    box-sizing: border-box;
}

.pp-workshop-stat-card:hover {
    border-color: #d1d5db;

    box-shadow:
        0 8px 24px rgba(17, 24, 39, 0.07);

    transform: translateY(-1px);
}

.pp-workshop-stat-card.is-active {
    border-color: #111827;

    box-shadow:
        0 8px 24px rgba(17, 24, 39, 0.08);
}

.pp-workshop-stat-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    margin-right: 14px;

    border-radius: 12px;

    background: #f3f4f6;

    font-size: 20px;

    color: #111827;
}

.pp-workshop-stat-content {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.pp-workshop-stat-content strong {
    display: block;

    margin-bottom: 3px;

    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;

    color: #111827;
}

.pp-workshop-stat-content small {
    display: block;

    font-size: 13px;
    line-height: 1.4;

    color: #6b7280;
}


/*
|--------------------------------------------------------------------------
| Toolbar
|--------------------------------------------------------------------------
*/

.pp-my-workshops-toolbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;

    padding: 14px;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    background: #ffffff;

    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Search
|--------------------------------------------------------------------------
*/

.pp-workshop-search {
    position: relative;

    flex: 1 1 340px;

    min-width: 220px;
}

.pp-workshop-search-icon {
    position: absolute;

    top: 50%;
    left: 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    transform: translateY(-50%);

    font-size: 22px;
    line-height: 1;

    color: #9ca3af;

    pointer-events: none;
}

.pp-workshop-search-input {
    width: 100%;
    min-height: 46px;

    margin: 0;
    padding: 0 15px 0 44px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #f9fafb;

    font-size: 14px;
    line-height: 1.4;

    color: #111827;

    outline: none;

    box-sizing: border-box;

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

.pp-workshop-search-input::placeholder {
    color: #9ca3af;
}

.pp-workshop-search-input:focus {
    border-color: #9ca3af;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(17, 24, 39, 0.06);
}


/*
|--------------------------------------------------------------------------
| Filters
|--------------------------------------------------------------------------
*/

.pp-workshop-filters {
    display: flex;

    align-items: center;

    gap: 6px;

    flex-wrap: wrap;
}

.pp-workshop-filter {
    min-height: 40px;

    padding: 8px 14px;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;

    color: #6b7280;

    cursor: pointer;

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

.pp-workshop-filter:hover {
    background: #f3f4f6;

    color: #111827;
}

.pp-workshop-filter.is-active {
    border-color: #e5e7eb;

    background: #111827;

    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Workshop List
|--------------------------------------------------------------------------
*/

.pp-my-workshops-list {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/*
|--------------------------------------------------------------------------
| Workshop Item
|--------------------------------------------------------------------------
*/

.pp-my-workshop-item {
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| Workshop Card
|--------------------------------------------------------------------------
*/

.pp-my-workshop-card {
    display: grid;

    grid-template-columns:
        minmax(260px, 34%)
        minmax(0, 1fr);

    overflow: hidden;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 6px 24px rgba(17, 24, 39, 0.05);

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

.pp-my-workshop-card:hover {
    border-color: #d1d5db;

    box-shadow:
        0 14px 36px rgba(17, 24, 39, 0.09);

    transform: translateY(-2px);
}


/*
|--------------------------------------------------------------------------
| Card Media
|--------------------------------------------------------------------------
*/

.pp-my-workshop-card-media {
    position: relative;

    min-height: 280px;

    overflow: hidden;

    background: #f3f4f6;
}

.pp-my-workshop-card-image {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 280px;

    object-fit: cover;
}

.pp-my-workshop-card-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 280px;

    background: #f3f4f6;

    color: #9ca3af;

    font-size: 14px;
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| Status Badge
|--------------------------------------------------------------------------
*/

.pp-my-workshop-card-status {
    position: absolute;

    top: 16px;
    left: 16px;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    min-height: 32px;

    padding: 7px 11px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.94);

    box-shadow:
        0 4px 12px rgba(17, 24, 39, 0.12);

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.03em;

    text-transform: uppercase;

    color: #374151;
}

.pp-my-workshop-status-icon {
    font-size: 11px;
    line-height: 1;
}

.pp-my-workshop-card-status-live {
    color: #991b1b;
}

.pp-my-workshop-card-status-completed {
    color: #166534;
}


/*
|--------------------------------------------------------------------------
| Card Content
|--------------------------------------------------------------------------
*/

.pp-my-workshop-card-content {
    display: flex;

    flex-direction: column;

    min-width: 0;

    padding: 28px;
}


/*
|--------------------------------------------------------------------------
| Card Heading
|--------------------------------------------------------------------------
*/

.pp-my-workshop-card-heading {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}

.pp-my-workshop-card-title {
    min-width: 0;

    margin: 0;
}

.pp-my-workshop-card-title a {
    display: block;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;

    color: #111827;

    text-decoration: none;

    transition: color 0.2s ease;
}

.pp-my-workshop-card-title a:hover {
    color: #374151;
}


/*
|--------------------------------------------------------------------------
| Registration Badge
|--------------------------------------------------------------------------
*/

.pp-my-workshop-registration-badge {
    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;

    min-height: 28px;

    padding: 6px 10px;

    border-radius: 999px;

    background: #f0fdf4;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    color: #166534;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Workshop Information
|--------------------------------------------------------------------------
*/

.pp-my-workshop-info {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 20px;
}

.pp-my-workshop-info-item {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    min-width: 0;

    padding: 12px;

    border-radius: 10px;

    background: #f9fafb;
}

.pp-my-workshop-info-icon {
    flex: 0 0 auto;

    font-size: 16px;

    line-height: 1.3;
}

.pp-my-workshop-info-item > div {
    min-width: 0;
}

.pp-my-workshop-info-label {
    display: block;

    margin-bottom: 3px;

    font-size: 11px;
    font-weight: 600;

    line-height: 1.3;

    color: #9ca3af;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}

.pp-my-workshop-info-item strong {
    display: block;

    overflow: hidden;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.4;

    color: #374151;

    text-overflow: ellipsis;
}


/*
|--------------------------------------------------------------------------
| Registration Details
|--------------------------------------------------------------------------
*/

.pp-my-workshop-registration-details {
   /* display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;*/

    padding: 17px 0;

    border-top: 1px solid #f0f1f3;
    border-bottom: 1px solid #f0f1f3;
}
.pp-my-workshop-registration-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pp-my-workshop-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border-radius: 10px;
    background: #f9fafb;
    margin: 5px;
}

.pp-my-workshop-detail > span {
    font-size: 11px;
    font-weight: 600;

    line-height: 1.3;

    color: #9ca3af;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}

.pp-my-workshop-detail > strong {
    font-size: 13px;
    font-weight: 700;

    line-height: 1.4;

    color: #374151;
}

.pp-my-workshop-payment-paid,
.pp-my-workshop-payment-free,
.pp-my-workshop-attendance-attended {
    color: #166534 !important;
}

.pp-my-workshop-payment-failed,
.pp-my-workshop-payment-refunded,
.pp-my-workshop-attendance-absent {
    color: #991b1b !important;
}


/*
|--------------------------------------------------------------------------
| Order
|--------------------------------------------------------------------------
*/

.pp-my-workshop-order {
    margin-top: 14px;

    font-size: 12px;
    line-height: 1.4;

    color: #9ca3af;
}


/*
|--------------------------------------------------------------------------
| Actions
|--------------------------------------------------------------------------
*/

.pp-my-workshop-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: auto;
    padding-top: 22px;

    flex-wrap: wrap;
}

.pp-my-workshop-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 10px 17px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.3;

    text-decoration: none;

    cursor: pointer;

    box-sizing: border-box;

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

.pp-my-workshop-button-primary {
    background: #111827;

    color: #ffffff;
}

.pp-my-workshop-button-primary:hover {
    background: #374151;

    color: #ffffff;

    transform: translateY(-1px);
}

.pp-my-workshop-button-live {
    border-color: #111827;

    background: #ffffff;

    color: #111827;
}

.pp-my-workshop-button-live:hover {
    background: #f3f4f6;

    color: #111827;
}


/*
|--------------------------------------------------------------------------
| Empty State
|--------------------------------------------------------------------------
*/

.pp-my-workshops-empty-state {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 35px;

    min-height: 330px;

    padding: 50px;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 6px 24px rgba(17, 24, 39, 0.04);

    box-sizing: border-box;
}

.pp-my-workshops-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 110px;

    width: 110px;
    height: 110px;

    border-radius: 24px;

    background: #f3f4f6;

    color: #6b7280;
}

.pp-my-workshops-empty-icon svg {
    display: block;

    width: 64px;
    height: 64px;
}

.pp-my-workshops-empty-content {
    max-width: 560px;
}

.pp-my-workshops-empty-eyebrow {
    display: block;

    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.4;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: #6b7280;
}

.pp-my-workshops-empty-content h2 {
    margin: 0 0 10px;

    font-size: 25px;
    font-weight: 700;

    line-height: 1.3;

    color: #111827;
}

.pp-my-workshops-empty-content p {
    margin: 0 0 22px;

    font-size: 15px;

    line-height: 1.7;

    color: #6b7280;
}

.pp-my-workshops-empty-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 44px;

    padding: 11px 18px;

    border-radius: 9px;

    background: #111827;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.3;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.pp-my-workshops-empty-button:hover {
    background: #374151;

    color: #ffffff;

    transform: translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| Search No Results
|--------------------------------------------------------------------------
*/

.pp-my-workshops-no-results {
    padding: 60px 25px;

    border: 1px dashed #d1d5db;
    border-radius: 16px;

    background: #ffffff;

    text-align: center;
}

.pp-my-workshops-no-results-icon {
    margin-bottom: 12px;

    font-size: 32px;

    line-height: 1;

    color: #9ca3af;
}

.pp-my-workshops-no-results h3 {
    margin: 0 0 7px;

    font-size: 20px;
    font-weight: 700;

    color: #111827;
}

.pp-my-workshops-no-results p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;

    color: #6b7280;
}

.pp-my-workshop-card-image {
    height: 100% !important;
}

input#ppWorkshopSearch {
    padding: 5px 40px 5px;
}
/*
|--------------------------------------------------------------------------
| Hidden
|--------------------------------------------------------------------------
*/

.pp-my-workshops-no-results[hidden] {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Completed Workshop Note
|--------------------------------------------------------------------------
*/

.pp-my-workshop-completed-note {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 10px 14px;

    border-radius: 9px;

    background: #f0fdf4;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.3;

    color: #166534;
}

.pp-my-workshop-completed-note-muted {
    background: #f3f4f6;

    color: #6b7280;
}

/*
|--------------------------------------------------------------------------
| Workshop Action Notice
|--------------------------------------------------------------------------
*/

.pp-my-workshop-action-notice {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 10px 14px;

    border-radius: 9px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.4;

    color: #6b7280;
}

a.pp-my-workshop-button.pp-my-workshop-button-certificate {
    border: 2px solid #3b5bfc;
    color: #3b5bfc;
}
/*
|--------------------------------------------------------------------------
| Starting Soon Status
|--------------------------------------------------------------------------
*/

.pp-my-workshop-card-status-joining {
    background: #fff7ed;
    color: #c2410c;
}
/*
|--------------------------------------------------------------------------
| Responsive — Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {

    .pp-my-workshops-dashboard {
        padding-top: 30px;
        padding-bottom: 50px;
    }


    .pp-my-workshops-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .pp-my-workshop-card {
        grid-template-columns:
            minmax(220px, 32%)
            minmax(0, 1fr);
    }


    .pp-my-workshop-info {
        grid-template-columns:
            1fr;
    }

}


/*
|--------------------------------------------------------------------------
| Responsive — Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .pp-my-workshops-dashboard {
        padding: 25px 15px 45px;
    }


    .pp-my-workshops-title {
        font-size: 30px;
    }


    .pp-my-workshops-description {
        font-size: 14px;
    }


    .pp-my-workshops-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    .pp-workshop-stat-card {
        min-height: 82px;

        padding: 13px;
    }


    .pp-workshop-stat-icon {
        flex-basis: 40px;

        width: 40px;
        height: 40px;

        margin-right: 10px;
    }


    .pp-workshop-stat-content strong {
        font-size: 20px;
    }


    .pp-workshop-stat-content small {
        font-size: 11px;
    }


    .pp-my-workshops-toolbar {
        align-items: stretch;

        flex-direction: column;

        gap: 12px;

        padding: 12px;
    }


    .pp-workshop-search {
        flex: none;

        width: 100%;
    }


    .pp-workshop-filters {
        width: 100%;

        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 2px;
    }


    .pp-workshop-filter {
        flex: 0 0 auto;
    }


    .pp-my-workshop-card {
        display: block;

        border-radius: 15px;
    }


    .pp-my-workshop-card-media {
        min-height: 210px;
    }


    .pp-my-workshop-card-image {
        min-height: 210px;
    }


    .pp-my-workshop-card-placeholder {
        min-height: 210px;
    }


    .pp-my-workshop-card-content {
        padding: 20px;
    }


    .pp-my-workshop-card-heading {
        flex-direction: column;

        gap: 10px;
    }


    .pp-my-workshop-card-title a {
        font-size: 20px;
    }


    .pp-my-workshop-info {
        grid-template-columns:
            1fr;
    }


    .pp-my-workshop-registration-details {
        grid-template-columns:
            1fr 1fr;
    }


    .pp-my-workshop-actions {
        flex-direction: column;

        align-items: stretch;
    }


    .pp-my-workshop-button {
        width: 100%;
    }


    .pp-my-workshops-empty-state {
        flex-direction: column;

        gap: 25px;

        min-height: 0;

        padding: 40px 22px;

        text-align: center;
    }


    .pp-my-workshops-empty-content {
        max-width: 100%;
    }


    .pp-my-workshops-empty-content h2 {
        font-size: 22px;
    }


    .pp-my-workshops-empty-content p {
        font-size: 14px;
    }


    .pp-my-workshops-empty-button {
        width: 100%;
    }

}


/*
|--------------------------------------------------------------------------
| Responsive — Small Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 420px) {

    .pp-my-workshops-stats {
        grid-template-columns:
            1fr;
    }


    .pp-my-workshop-registration-details {
        grid-template-columns:
            1fr;
    }


    .pp-my-workshops-title {
        font-size: 27px;
    }

}