/* EVNM Category Bar Pro - Global Styles */

/* ── SHARED ─────────────────────────────────────── */
.evnm-cbp-wrap {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
    width: 100%;
}
.evnm-cbp-wrap *, .evnm-cbp-wrap *::before, .evnm-cbp-wrap *::after {
    box-sizing: border-box;
    list-style: none !important;
}

/* Section heading */
.evnm-cbp-section-title {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    line-height: 1.2;
}

/* Placeholder SVG fallback */
.evnm-cbp-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f7f3, #e8f5ee);
}
.evnm-cbp-placeholder svg {
    opacity: 0.35;
}

/* Focus styles for accessibility */
.evnm-cbp-card:focus,
.evnm-cbp-card:focus-visible {
    outline: 2px solid #00A651;
    outline-offset: 2px;
}

/* ── LAYOUT 1: GRID CARDS ───────────────────────── */
.evnm-cbp-layout-grid .evnm-cbp-grid {
    display: grid;
    gap: 0;
}
.evnm-cbp-layout-grid .evnm-cbp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
    background: #fff;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    border-top: 3px solid transparent;
    transition: border-top-color 0.25s, background 0.25s, transform 0.25s;
    position: relative;
    overflow: hidden;
}
.evnm-cbp-layout-grid .evnm-cbp-card:hover {
    background: #f6fcf8;
    text-decoration: none !important;
}
.evnm-cbp-layout-grid .evnm-cbp-card:hover .evnm-cbp-explore {
    color: #00A651;
}
.evnm-cbp-layout-grid .evnm-cbp-card:hover .evnm-cbp-img-wrap {
    transform: scale(1.05);
}
.evnm-cbp-layout-grid .evnm-cbp-img-wrap {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.evnm-cbp-layout-grid .evnm-cbp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.evnm-cbp-layout-grid .evnm-cbp-card-body {
    padding: 14px 12px 12px;
    text-align: center;
    width: 100%;
}
.evnm-cbp-layout-grid .evnm-cbp-name {
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin: 0 0 6px;
    display: block;
}
.evnm-cbp-layout-grid .evnm-cbp-explore {
    font-weight: 600;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.25s;
    text-decoration: none !important;
}

/* ── LAYOUT 2: HORIZONTAL SCROLL ───────────────── */
.evnm-cbp-layout-horizontal .evnm-cbp-scroll-outer {
    position: relative;
}
.evnm-cbp-layout-horizontal .evnm-cbp-scroll-inner {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
}
.evnm-cbp-layout-horizontal .evnm-cbp-scroll-inner::-webkit-scrollbar {
    display: none;
}
.evnm-cbp-layout-horizontal .evnm-cbp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #eee;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    overflow: hidden;
}
.evnm-cbp-layout-horizontal .evnm-cbp-card:hover {
    border-color: #00A651;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,166,81,0.12);
    text-decoration: none !important;
}
.evnm-cbp-layout-horizontal .evnm-cbp-card:hover .evnm-cbp-explore {
    color: #00A651;
}
.evnm-cbp-layout-horizontal .evnm-cbp-img-wrap {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    width: 100%;
    flex-shrink: 0;
}
.evnm-cbp-layout-horizontal .evnm-cbp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.evnm-cbp-layout-horizontal .evnm-cbp-card-body {
    padding: 12px 10px 10px;
    text-align: center;
    width: 100%;
}
.evnm-cbp-layout-horizontal .evnm-cbp-name {
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin: 0 0 4px;
    display: block;
    word-break: break-word;
}
.evnm-cbp-layout-horizontal .evnm-cbp-explore {
    font-weight: 600;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.25s;
    text-decoration: none !important;
}

/* Arrows */
.evnm-cbp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #eee;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s;
    color: #333;
}
.evnm-cbp-arrow:hover {
    background: #00A651;
    border-color: #00A651;
    color: #fff;
}
.evnm-cbp-arrow-prev { left: -14px; }
.evnm-cbp-arrow-next { right: -14px; }

/* ── LAYOUT 3: COMPACT MARKETPLACE ─────────────── */
.evnm-cbp-layout-compact .evnm-cbp-grid {
    display: grid;
}
.evnm-cbp-layout-compact .evnm-cbp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
    padding: 10px 6px;
    border-radius: 10px;
    background: transparent;
    transition: background 0.2s, transform 0.2s;
    position: relative;
}
.evnm-cbp-layout-compact .evnm-cbp-card:hover {
    background: #f0f9f4;
    transform: translateY(-2px);
    text-decoration: none !important;
}
.evnm-cbp-layout-compact .evnm-cbp-img-wrap {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    flex-shrink: 0;
}
.evnm-cbp-layout-compact .evnm-cbp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.evnm-cbp-layout-compact .evnm-cbp-name {
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    margin: 8px 0 0;
    display: block;
    text-align: center;
    word-break: break-word;
}

/* ── RESPONSIVE HELPERS ─────────────────────────── */
@media (max-width: 768px) {
    .evnm-cbp-arrow { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .evnm-cbp-card, .evnm-cbp-img-wrap { transition: none !important; }
}
