/*
 * EP List - Frontend Panel List Styles
 * Prefix: prodex-fe-  (completely isolated from all other modules)
 * Dark-mode first design. Colors via CSS variables from global.css.
 */

/* ═══════════════════════════════════════════════════════════ */
/*  WRAPPER                                                   */
/* ═══════════════════════════════════════════════════════════ */

.prodex-fe-wrapper {
    font-family: var(--prodex-font);
    margin: 0 auto;
    color: var(--prodex-text-white);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.prodex-fe-wrapper *,
.prodex-fe-wrapper *::before,
.prodex-fe-wrapper *::after {
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════ */
/*  SEARCH BAR                                                */
/* ═══════════════════════════════════════════════════════════ */

.prodex-fe-search-wrap {
    position: relative;
    padding: 2rem 0;
}

.prodex-fe-search-input {
    width: 100%;
    background: var(--prodex-card-dark);
    border: 1px solid var(--prodex-border-dark);
    border-radius: 12px;
    padding: 14px 16px 14px 48px;
    font-size: 14px;
    font-family: var(--prodex-font);
    color: var(--prodex-text-white);
    outline: none;
    transition: border-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.prodex-fe-search-input::placeholder {
    color: var(--prodex-text-light-muted);
}

.prodex-fe-search-input:focus {
    border-color: var(--prodex-primary);
}

.prodex-fe-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--prodex-text-light-muted);
    font-family: 'Material Symbols Outlined';
    font-size: 22px;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════ */
/*  PANEL LIST                                                */
/* ═══════════════════════════════════════════════════════════ */

.prodex-fe-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ═══════════════════════════════════════════════════════════ */
/*  PANEL CARD                                                */
/* ═══════════════════════════════════════════════════════════ */

.prodex-fe-card {
    display: flex;
    align-items: stretch;
    background: var(--prodex-card-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0px 0 0.6px rgb(45 48 57);
    border-right: 4px solid var(--prodex-primary);
    transition: transform 0.15s ease;
    text-decoration: none;
    color: inherit;
    min-height: 80px;
}

/* Thumbnail */
.prodex-fe-card-thumb {
    width: 100px;
    height: stretch;
    flex-shrink: 0;
    background: var(--prodex-card-dark-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.prodex-fe-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prodex-fe-card-thumb-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--prodex-border-dark);
}

/* Info */
.prodex-fe-card-info {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.prodex-fe-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--prodex-text-white);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Clickable title link styling */
.prodex-fe-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.prodex-fe-card-title a:hover {
    color: var(--prodex-primary);
}

.prodex-fe-card-desc {
    font-size: 1.3rem;
    color: var(--prodex-text-light-secondary);
    margin: 0 0 2px;
    line-height: 1.4;
}


.prodex-fe-card-desc a{
color: var(--prodex-text-light-secondary);
	text-decoration: underline;
	}

.prodex-fe-card-desc a:hover{
color: var(--cbpanel-primary) !important;
	}

.prodex-fe-card-price {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--prodex-primary);
    margin: 0;
}

/* Action */
.prodex-fe-card-action {
    display: flex;
    align-items: center;
    padding: 1rem;
    flex-shrink: 0;
}

.prodex-fe-card-btn {
    background: var(--prodex-primary);
    color: var(--prodex-text-primary);
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--prodex-font);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.prodex-fe-card-btn:hover {
    background: var(--prodex-primary-hover);
    color: var(--prodex-text-primary);
}

.prodex-fe-card-btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════ */
/*  EMPTY & NO-MATCH STATE                                    */
/* ═══════════════════════════════════════════════════════════ */

.prodex-fe-empty,
.prodex-fe-no-match {
    text-align: center;
    padding: 2rem 0;
    color: var(--prodex-text-light-muted);
    font-size: 1.4rem;
}

/* ═══════════════════════════════════════════════════════════ */
/*  RESPONSIVE                                                */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 425px) {
    .prodex-fe-card-thumb {
        width: 80px;
    }

    .prodex-fe-card-title {
        font-size: 1.3rem;
    }

    .prodex-fe-card-desc {
        font-size: 1.1rem;
    }

    .prodex-fe-card-price {
        font-size: 1.05rem;
    }

    .prodex-fe-card-btn {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}