/**
 * Page-content-actions modal contents.
 *
 * Sits inside the shared .wakasm-modal chrome (dark dialog). This file only
 * styles the inner form + autocomplete bits. Modal layout/backdrop/close
 * come from components/wakasm-modal.css.
 *
 * Hook classes preserved for page-content-actions.js:
 *   .pc-modal-form, .pc-type, .pc-rec-name, .pc-rec-id, .pc-rec-results,
 *   .pc-rec-item, .pc-desc, .pc-char-count, .pc-submit, .pc-msg,
 *   .pc-modal-balance-amount, .pc-submit-cost-num.
 */

.pc-modal .wakasm-modal__title { font-size: 1.25em; }

/* Balance pill in header */
.pc-modal-balance {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 5px;
    border-radius: 999px;
    background: #2a2a2a;
    color: #fff7e7;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.pc-modal-sub {
    margin: 0 0 14px;
    color: #b8b8b8;
    font-size: 13px;
    line-height: 1.5;
}

/* === Form fields === */
.pc-field {
    display: block;
    margin-bottom: 12px;
    position: relative;
}
.pc-field[hidden] { display: none; }

.pc-field-label {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4da44b;
}

.pc-field input[type="text"],
.pc-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #0f0f0f;
    color: #f0f0f0;
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    resize: vertical;
}
.pc-field input[type="text"]::placeholder,
.pc-field textarea::placeholder {
    color: #666;
}
.pc-field input[type="text"]:focus,
.pc-field textarea:focus {
    outline: 0;
    border-color: #4da44b;
    box-shadow: 0 0 0 2px rgba(77, 164, 75, 0.25);
}

.pc-char-count {
    position: absolute;
    right: 8px;
    bottom: 7px;
    font-size: 10px;
    font-weight: 700;
    color: #555;
    pointer-events: none;
    background: rgba(15, 15, 15, 0.85);
    padding: 0 4px;
    border-radius: 4px;
}

/* === Autocomplete (in-flow, pushes textarea down — never overlaps) === */
.pc-rec-results {
    margin-top: 6px;
    max-height: 240px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1f1f1f;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.pc-rec-results[hidden] { display: none; }

.pc-rec-empty {
    padding: 10px 12px;
    color: #aaa;
    font-size: 12px;
    line-height: 1.45;
}

.pc-rec-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #2a2a2a;
    color: #e0e0e0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.pc-rec-item:last-child { border-bottom: 0; }
.pc-rec-item:hover { background: #2a2a2a; }

.pc-rec-thumb {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
    background: #0a0a0a;
}
.pc-rec-thumb-empty { display: inline-block; }

.pc-rec-meta { display: flex; flex-direction: column; min-width: 0; }
.pc-rec-title {
    font-size: 13px;
    font-weight: 700;
    color: #f0f0f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pc-rec-type {
    font-size: 11px;
    color: #888;
}

/* === Form footer row === */
.pc-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.pc-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 0;
    background: #4da44b;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.15s ease;
}
.pc-submit:hover:not(:disabled) { background: #3d8c3a; }
.pc-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.pc-submit-cost {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    font-size: 11px;
    font-weight: 900;
}

.pc-cancel {
    background: transparent;
    border: 0;
    color: #888;
    font: inherit;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}
.pc-cancel:hover { color: #fff; }

.pc-msg {
    flex: 1;
    min-width: 120px;
    font-size: 12px;
    color: #aaa;
}
.pc-msg.is-error { color: #ff685d; font-weight: 700; }

.pc-modal-footer {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    color: #aaa;
}
.pc-modal-footer a {
    color: #4da44b;
    font-weight: 800;
    text-decoration: underline;
}

/* === On-page card display zone (Community Take) === */
.pc-cards-zone {
    margin: 28px auto 24px;
    width: 100%;
    max-width: 990px;
}
.pc-cards-heading {
    margin: 0 0 6px;
    text-align: center;
    color: #f5e8c8;
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.pc-cards-subtitle {
    margin: 0 auto 16px;
    max-width: 640px;
    text-align: center;
    color: #b8b8b8;
    font-size: 13px;
    line-height: 1.45;
}
.pc-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 900px) {
    .pc-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .pc-cards-grid { grid-template-columns: 1fr; }
}

/* Take-card visuals (.pc-take-*) replaced by .wakasm-rcard-* in
   components/request-card.css — see commits 6d2a896..86f64ee. The
   .pc-cards-zone / .pc-cards-grid wrappers above still belong here
   (page-level grid for the on-page Community Take section). */
