/* ================================================================
   Design Manager — My Pending Designs  (pending-designs.css)
   ================================================================ */

/* ---- Wrapper ---------------------------------------------------------- */
.dm-pd-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px 48px;
    font-family: inherit;
    box-sizing: border-box;
}
.dm-pd-wrap *, .dm-pd-wrap *::before, .dm-pd-wrap *::after { box-sizing: inherit; }

/* ---- Header ----------------------------------------------------------- */
.dm-pd-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e5e7eb;
}

.dm-pd-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.dm-pd-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dm-pd-count {
    font-size: .8rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
}

.dm-pd-count--changes {
    background: #fef3c7;
    color: #92400e;
}

.dm-pd-count--total {
    background: #f3f4f6;
    color: #374151;
}

/* ---- Empty state ------------------------------------------------------ */
.dm-pd-empty {
    text-align: center;
    padding: 48px 24px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
}

.dm-pd-empty__icon.dashicons {
    font-size: 48px;
    width:  48px;
    height: 48px;
    color: #6ee7b7;
    margin-bottom: 12px;
}

.dm-pd-empty__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 6px;
}

.dm-pd-empty__sub {
    font-size: .88rem;
    color: #6b7280;
    margin: 0;
}

/* ---- Card list -------------------------------------------------------- */
.dm-pd-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Card ------------------------------------------------------------- */
.dm-pd-card {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* Changes requested card — orange left accent */
.dm-pd-card--changes {
    border-left: 4px solid #f59e0b;
}

/* Pending card — blue left accent */
.dm-pd-card--pending {
    border-left: 4px solid #60a5fa;
}

/* ---- Status banner ---------------------------------------------------- */
.dm-pd-card__banner {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.dm-pd-card--changes .dm-pd-card__banner {
    background: #fffbeb;
    color: #92400e;
}

.dm-pd-card--pending .dm-pd-card__banner {
    background: #eff6ff;
    color: #1e40af;
}

.dm-pd-card__banner .dashicons {
    font-size: 15px;
    width:  15px;
    height: 15px;
    line-height: 1;
}

/* ---- Inner layout ----------------------------------------------------- */
.dm-pd-card__inner {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
}

/* ---- Thumbnail -------------------------------------------------------- */
.dm-pd-card__thumb {
    flex-shrink: 0;
    width: 110px;
}

.dm-pd-card__thumb img {
    width:  110px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ---- Content ---------------------------------------------------------- */
.dm-pd-card__content {
    flex: 1;
    min-width: 0;
}

.dm-pd-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.dm-pd-card__title a {
    color: inherit;
    text-decoration: none;
}

.dm-pd-card__title a:hover {
    text-decoration: underline;
}

.dm-pd-card__meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .8rem;
    color: #6b7280;
    margin-bottom: 14px;
}

/* ---- Moderator Notes -------------------------------------------------- */
.dm-pd-notes {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.dm-pd-notes__label {
    font-size: .8rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dm-pd-notes__label .dashicons {
    font-size: 15px;
    width:  15px;
    height: 15px;
    line-height: 1;
}

.dm-pd-notes__text {
    font-size: .88rem;
    color: #78350f;
    margin: 0;
    padding: 0 0 0 12px;
    border-left: 3px solid #f59e0b;
    line-height: 1.6;
    font-style: italic;
}

/* ---- Previous designer response --------------------------------------- */
.dm-pd-prev-response {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.dm-pd-prev-response__label {
    font-size: .75rem;
    font-weight: 600;
    color: #166534;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dm-pd-prev-response__text {
    font-size: .85rem;
    color: #15803d;
    margin: 0;
    font-style: italic;
}

/* ---- Resubmit form ---------------------------------------------------- */
.dm-pd-resubmit-form {
    margin-top: 4px;
}

.dm-pd-form__label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.dm-pd-form__required {
    color: #ef4444;
    margin-left: 2px;
}

.dm-pd-form__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: .88rem;
    font-family: inherit;
    color: #111827;
    line-height: 1.55;
    resize: vertical;
    transition: border-color .2s ease;
    background: #fff;
}

.dm-pd-form__textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}

/* ---- Form footer ------------------------------------------------------ */
.dm-pd-form__footer {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.dm-pd-form__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.dm-pd-form__btn:hover:not(:disabled) {
    background: #d97706;
    box-shadow: 0 4px 12px rgba(217,119,6,.3);
}

.dm-pd-form__btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* Loading state toggle */
.dm-pd-form__btn-loading { display: none; }
.dm-pd-form__btn.is-loading .dm-pd-form__btn-text    { display: none; }
.dm-pd-form__btn.is-loading .dm-pd-form__btn-loading { display: inline; }

.dm-pd-form__hint {
    font-size: .78rem;
    color: #9ca3af;
    margin: 0;
    flex: 1;
}

/* ---- Feedback messages ------------------------------------------------ */
.dm-pd-form__message {
    margin-top: 10px;
    font-size: .85rem;
    padding: 8px 14px;
    border-radius: 6px;
    display: none;
}

.dm-pd-form__message:not(:empty) { display: block; }

.dm-pd-form__message--error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* ---- Awaiting review notice ------------------------------------------ */
.dm-pd-awaiting {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: .85rem;
    color: #6b7280;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 0;
    line-height: 1.5;
}

.dm-pd-awaiting .dashicons {
    font-size: 16px;
    width:  16px;
    height: 16px;
    color: #38bdf8;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---- Success state (replaces card after submit) ----------------------- */
.dm-pd-card__success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    background: #f0fdf4;
}

.dm-pd-card__success .dashicons {
    font-size: 28px;
    width:  28px;
    height: 28px;
    color: #22c55e;
    flex-shrink: 0;
}

.dm-pd-card__success p {
    font-size: .92rem;
    color: #166534;
    font-weight: 600;
    margin: 0;
}

/* ---- Notice (login / permission) -------------------------------------- */
.dm-pd-notice {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: .9rem;
    color: #374151;
}

.dm-pd-notice a {
    color: #d97706;
    font-weight: 600;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 600px) {
    .dm-pd-card__inner {
        flex-direction: column;
        gap: 14px;
    }

    .dm-pd-card__thumb,
    .dm-pd-card__thumb img {
        width:  100%;
        height: 160px;
    }

    .dm-pd-form__footer {
        flex-direction: column;
        align-items: flex-start;
    }

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