/* =============================================================
   .api-access-card — Reusable API key display card.
   Source of truth for the <x-ds.api-key-card> Blade component.
   Loaded in:
     - layouts/admin.blade.php       (entire authenticated dashboard)
     - marketplace/item.blade.php    (API detail page hero)
   Previously duplicated in marketitem.css + dashboard-components.css.
   ============================================================= */
.api-access-card {
    background: #ffffff;
    border: 1px solid #ececf4;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px -8px rgba(15, 18, 38, 0.08);
}

.api-access-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.api-access-card__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f1226;
}
.api-access-card__label svg { color: #5b34f0; }

.api-access-card__hint {
    font-size: 12px;
    color: #6b7280;
}
.api-access-card__hint code {
    background: #f5f5fb;
    color: #0f1226;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11.5px;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

.api-access-card__select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.api-access-card__select {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    background: #f8f8fc;
    border: 1px solid #e7e7f2;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f1226;
    line-height: 1.4;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.api-access-card__select:focus {
    outline: none;
    border-color: #c7baff;
    background-color: #ffffff;
}

.api-access-card__status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    max-width: 42%;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.api-access-card__status.is-allowed {
    color: #5b34f0;
    background: #f3effe;
    border: 1px solid #e4dcff;
}

.api-access-card__status.is-disabled {
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.api-access-card__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.api-access-card__key-wrap {
    flex: 1 1 320px;
    min-width: 0;
}

.api-access-card__key {
    width: 100%;
    background: #f8f8fc;
    border: 1px solid #e7e7f2;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
    font-size: 13.5px;
    color: #0f1226;
    resize: none;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.api-access-card__key:focus {
    outline: none;
    border-color: #c7baff;
    background: #ffffff;
}

.api-access-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.api-access-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    height: 42px;
}

.api-access-card__btn--copy {
    background: #0f1226;
    color: #ffffff;
}
.api-access-card__btn--copy:hover {
    background: #1c1f3f;
    transform: translateY(-1px);
}

.api-access-card__btn--reset {
    background: #ffffff;
    color: #4b5563;
    border: 1px solid #e7e7f2;
}
.api-access-card__btn--reset:hover {
    background: #f5f5fb;
    color: #0f1226;
    border-color: #d8d8e8;
}

@media (max-width: 640px) {
    .api-access-card__hint { display: none; }
    .api-access-card__select-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .api-access-card__status {
        max-width: 100%;
        justify-content: center;
    }
    .api-access-card__actions { width: 100%; }
    .api-access-card__btn { flex: 1 1 auto; justify-content: center; }
}
