/* ============================================================
   Plvgin Brand Showcase for Elementor
   Version: 1.0.0
   ============================================================ */

.plvgin-bsc-wrap {
    background-color: #fafafa;
    padding: 64px 40px;
    box-sizing: border-box;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.plvgin-bsc-header { text-align: center; margin-bottom: 48px; }

.plvgin-bsc-eyebrow {
    display: block; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: #7c3aed; margin-bottom: 10px;
}

.plvgin-bsc-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700;
    color: #111827; margin: 0 0 14px; line-height: 1.2;
}

.plvgin-bsc-subtitle {
    font-size: 1rem; font-weight: 400; color: #6b7280;
    margin: 0 auto; max-width: 560px; line-height: 1.7;
}

.plvgin-bsc-search-wrap { position: relative; max-width: 440px; margin: 0 auto 40px; }

.plvgin-bsc-search {
    width: 100%; padding: 12px 44px 12px 18px; font-family: inherit;
    font-size: 0.9rem; color: #111827; background: #fff;
    border: 1.5px solid #e5e7eb; border-radius: 999px; outline: none;
    box-sizing: border-box; transition: border-color 0.25s, box-shadow 0.25s;
    appearance: none; -webkit-appearance: none;
}

.plvgin-bsc-search::placeholder { color: #9ca3af; }

.plvgin-bsc-search:focus {
    border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.plvgin-bsc-search-icon {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: #9ca3af; pointer-events: none;
}

.plvgin-bsc-grid {
    display: grid;
    grid-template-columns: repeat(var(--plvgin-bsc-cols, 5), 1fr);
    gap: var(--plvgin-bsc-row-gap, 20px) var(--plvgin-bsc-gap, 20px);
}

.plvgin-bsc-card {
    position: relative; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 14px;
    padding: 24px 20px; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 16px; text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); overflow: hidden; cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
                box-shadow 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
                border-color 0.3s, background 0.3s;
    z-index: 1;
}

.plvgin-bsc-card::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%) scaleX(0); width: 55%; height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #7c3aed 50%, transparent);
    opacity: 0; transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.4s;
}

.plvgin-bsc-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,0.4), transparent);
    opacity: 0; transition: opacity 0.4s;
}

.plvgin-bsc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(124,58,237,0.12), 0 4px 12px rgba(0,0,0,0.06);
    border-color: #7c3aed; z-index: 2;
}

.plvgin-bsc-card:hover::after  { transform: translateX(-50%) scaleX(1); opacity: 1; }
.plvgin-bsc-card:hover::before { opacity: 1; }

.plvgin-bsc-count {
    position: absolute; top: 10px; right: 10px; font-size: 0.65rem;
    font-weight: 700; letter-spacing: 0.3px; background: #ede9fe;
    color: #7c3aed; padding: 3px 8px; border-radius: 999px;
    white-space: nowrap; line-height: 1.5; transition: background 0.25s, color 0.25s;
}

.plvgin-bsc-card:hover .plvgin-bsc-count { background: #7c3aed; color: #fff; }

.plvgin-bsc-logo-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 70px;
}

.plvgin-bsc-logo {
    max-height: 60px; max-width: 75%; width: auto; height: auto;
    object-fit: contain; display: block;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.plvgin-bsc-card:hover .plvgin-bsc-logo { transform: scale(1.1); }

.plvgin-bsc-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; border-radius: 50%;
    background: #ede9fe; color: #7c3aed;
    font-size: 1.4rem; font-weight: 700; letter-spacing: 1px;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.plvgin-bsc-card:hover .plvgin-bsc-placeholder { transform: scale(1.1); }

.plvgin-bsc-name {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: #111827; text-align: center;
    line-height: 1.3; transition: color 0.25s;
}

.plvgin-bsc-card:hover .plvgin-bsc-name { color: #7c3aed; }
.plvgin-bsc-card[data-hidden="true"] { display: none; }

@media (max-width: 1024px) {
    .plvgin-bsc-grid { grid-template-columns: repeat(var(--plvgin-bsc-cols, 3), 1fr); }
    .plvgin-bsc-wrap { padding: 48px 24px; }
}

@media (max-width: 767px) {
    .plvgin-bsc-grid   { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .plvgin-bsc-wrap   { padding: 40px 16px; }
    .plvgin-bsc-header { margin-bottom: 32px; }
    .plvgin-bsc-card   { padding: 18px 12px; border-radius: 12px; }
    .plvgin-bsc-logo   { max-height: 44px; }
}
