/* =================================================================
   Oost Category Search UI - Banners, Search Bar, Upgrade CTA
   Part of Search &amp; Concealment Overhaul
   ================================================================= */

/* =================================================================
   1. PAGE LAYOUT
   ================================================================= */
.oost-category-search-page {
    padding: 20px 24px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.oost-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 16px;
}

/* =================================================================
   2. IDENTITY CARD (replaces search bar + banner)
   ================================================================= */
.oost-identity-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.2);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
}

.oost-id-collapsed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    cursor: default;
}

.oost-id-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.oost-id-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.oost-id-avatar img {
    width: 100%;
    height: auto;
    display: block;
}

.oost-id-info {
    min-width: 0;
}

.oost-id-summary {
    font-size: 0.84rem;
    font-weight: 600;
    color: #E2E8F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oost-id-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.oost-id-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(8, 145, 178, 0.12);
    color: #22D3EE;
    border: 1px solid rgba(8, 145, 178, 0.2);
    white-space: nowrap;
}

.oost-id-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.oost-id-stats {
    text-align: right;
}

.oost-id-count {
    font-size: 1.4rem;
    font-weight: 700;
    color: #F1F5F9;
    line-height: 1;
}

.oost-id-count-label {
    font-size: 0.68rem;
    color: #64748B;
    margin-top: 1px;
}

.oost-id-upgrade {
    font-size: 0.7rem;
    font-weight: 600;
    color: #0891B2;
    text-decoration: none;
    white-space: nowrap;
}

.oost-id-upgrade:hover {
    text-decoration: underline;
}

.oost-id-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    background: transparent;
    color: #94A3B8;
    cursor: pointer;
    transition: background 0.15s, transform 0.2s;
}

.oost-id-toggle:hover {
    background: rgba(71, 85, 105, 0.2);
}

.oost-id-toggle.open svg {
    transform: rotate(180deg);
}

/* Expanded panel */
.oost-id-expanded {
    border-top: 1px solid rgba(71, 85, 105, 0.15);
}

.oost-id-expanded.hidden {
    display: none;
}

.oost-id-expand-inner {
    padding: 16px 18px;
}

.oost-id-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;
    margin-bottom: 6px;
}

.oost-id-textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    background: rgba(15, 23, 42, 0.5);
    color: #E2E8F0;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.oost-id-textarea:focus {
    border-color: rgba(8, 145, 178, 0.5);
}

.oost-id-detected {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.oost-id-detected-label {
    font-size: 0.68rem;
    color: #64748B;
    font-weight: 600;
    margin-right: 2px;
}

.oost-id-expand-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.oost-id-update-btn {
    background: #0891B2;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.oost-id-update-btn:hover {
    background: #0E7490;
}

.oost-id-cancel-btn {
    background: transparent;
    color: #94A3B8;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}

.oost-id-cancel-btn:hover {
    background: rgba(71, 85, 105, 0.15);
}

/* =================================================================
   4. UPGRADE CTA (bottom of dashboard)
   ================================================================= */
.oost-upgrade-cta {
    margin: 32px 0 16px;
    padding: 0 4px;
}

.upgrade-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #0F172A, #1E293B);
    border-radius: 16px;
    border: 1px solid rgba(8, 145, 178, 0.3);
}

.upgrade-cta-text {
    flex: 1;
    min-width: 200px;
    font-size: 0.88rem;
    color: #CBD5E1;
    line-height: 1.5;
}

.upgrade-cta-text strong {
    color: #F1F5F9;
    font-size: 0.95rem;
}

.upgrade-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0891B2;
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.upgrade-cta-btn:hover {
    background: #0E7490;
    transform: translateY(-1px);
}

/* =================================================================
   5. CATEGORY ROWS CONTAINER
   ================================================================= */
.oost-category-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =================================================================
   6. DARK MODE
   ================================================================= */
[data-theme="dark"] .oost-page-title {
    color: #F1F5F9;
}

[data-theme="dark"] .upgrade-cta-inner {
    background: linear-gradient(135deg, #0B1120, #162033);
    border-color: rgba(8, 145, 178, 0.4);
}

/* =================================================================
   7. RESPONSIVE
   ================================================================= */
@media (max-width: 768px) {
    .oost-category-search-page {
        padding: 16px 12px 32px;
    }

    .oost-page-title {
        font-size: 1.15rem;
    }

    .oost-id-collapsed {
        flex-wrap: wrap;
        gap: 10px;
    }

    .oost-id-summary {
        font-size: 0.78rem;
    }

    .oost-id-right {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid rgba(71, 85, 105, 0.15);
        padding-top: 10px;
    }

    .upgrade-cta-inner {
        flex-direction: column;
        padding: 20px;
    }

    .upgrade-cta-btn {
        width: 100%;
        justify-content: center;
    }
}
