/**
 * PowerStack Command Bar - Basic Styles
 */

.powerstack-palette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.powerstack-palette {
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.powerstack-palette-search {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.powerstack-palette-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
}

.powerstack-palette-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.powerstack-palette-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.powerstack-palette-content-section {
    margin-bottom: 16px;
}

.powerstack-palette-content-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.powerstack-palette-content-title {
    flex: 1;
}

.powerstack-palette-content-count {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.powerstack-palette-content-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.powerstack-palette-content-item:hover {
    background: #f9fafb;
}

.powerstack-palette-content-item:hover .inline-edit-trigger {
    opacity: 1;
}

.powerstack-palette-content-item-icon {
    margin-right: 12px;
    color: #6b7280;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.powerstack-palette-content-item-image {
    margin-right: 12px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.powerstack-palette-content-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.powerstack-palette-content-item-content {
    flex: 1;
}

.powerstack-palette-content-item-title {
    font-weight: 500;
    color: #111827;
}

.powerstack-palette-content-item-description {
    font-size: 14px;
    color: #6b7280;
    margin-top: 2px;
}

.powerstack-palette-content-item-actions {
    display: flex;
    gap: 8px;
}

.powerstack-palette-action-button {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.powerstack-palette-action-button:hover {
    background: #f9fafb;
    color: #374151;
}

.powerstack-palette-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #6b7280;
}

.powerstack-palette-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Premium locked Quick Edit button - HIDDEN FOR FREE VERSION */
.inline-edit-trigger {
    display: none; /* Completely hidden for free version release */
    /* 
     * Premium button styles preserved for future release:
     * display: flex;
     * align-items: center;
     * gap: 4px;
     * padding: 6px 12px;
     * border: 1px solid #ffb900;
     * background-color: #fff8e5;
     * color: #855d00;
     * border-radius: 6px;
     * font-size: 12px;
     * font-weight: 500;
     * cursor: pointer;
     * opacity: 0;
     * transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
     * white-space: nowrap;
     */
}

.inline-edit-trigger:hover {
    background-color: #ffe4a1;
    border-color: #ffa500;
    color: #6b4400;
}

.inline-edit-trigger .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Upsell modal overlay */
.search-upsell-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.search-upsell-modal {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.search-upsell-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.search-upsell-description {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

.search-upsell-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.search-upsell-upgrade {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.search-upsell-upgrade:hover {
    background: #2563eb;
}

.search-upsell-later {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.search-upsell-later:hover {
    background: #e5e7eb;
    color: #4b5563;
}
