/* Crypto Events Sidebar Widget */

.bs-ce-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bs-ce-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bs-ce-item:last-child {
    border-bottom: none;
}

.bs-ce-link,
.bs-ce-link:link,
.bs-ce-link:visited {
    display: flex;
    gap: 12px;
    padding: 10px 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    border-radius: 6px;
    align-items: center;
}

.elementor-widget-crypto-events a.bs-ce-link,
.elementor-widget-crypto-events a.bs-ce-link:link,
.elementor-widget-crypto-events a.bs-ce-link:visited {
    color: inherit;
    text-decoration: none;
}

.bs-ce-link:hover {
    background: #f0f2f8;
}

/* Date badge */
.bs-ce-date-badge {
    flex-shrink: 0;
    width: 46px;
    min-height: 42px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    border: 1.5px solid #206389;
    padding: 4px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bs-ce-date-badge__month {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.6px;
    background: #206389;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 2px;
}

.bs-ce-date-badge__day {
    font-size: 13px;
    font-weight: 700;
    color: #206389;
    line-height: 1.15;
    white-space: nowrap;
}

/* Body */
.bs-ce-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    gap: 2px;
}

.bs-ce-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bs-ce-desc {
    font-size: 11px;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row */
.bs-ce-meta {
    font-size: 11px;
    color: #64748b;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.bs-ce-location {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.bs-ce-flag {
    width: 14px;
    height: 10px;
    border-radius: 1px;
    vertical-align: middle;
    object-fit: cover;
}

.bs-ce-flag-icon {
    display: inline-flex;
    width: 12px;
    height: 12px;
}

.bs-ce-flag-icon svg {
    width: 12px;
    height: 12px;
}

.bs-ce-format {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    color: #9ca3af;
}

.bs-ce-format svg {
    width: 11px;
    height: 11px;
}

/* Status: postponed / cancelled */
.bs-ce-item--postponed,
.bs-ce-item--cancelled {
    opacity: 0.65;
}

.bs-ce-name--struck {
    text-decoration: line-through;
    text-decoration-color: #dc2626;
    text-decoration-thickness: 1.5px;
}

.bs-ce-date-badge--postponed,
.bs-ce-date-badge--cancelled {
    border-color: #9ca3af;
}

.bs-ce-date-badge--postponed .bs-ce-date-badge__month,
.bs-ce-date-badge--cancelled .bs-ce-date-badge__month {
    background: #9ca3af;
}

.bs-ce-date-badge--postponed .bs-ce-date-badge__day,
.bs-ce-date-badge--cancelled .bs-ce-date-badge__day {
    color: #9ca3af;
}

.bs-ce-status {
    display: inline-block;
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 2px;
    width: fit-content;
    letter-spacing: 0.2px;
}

.bs-ce-status--cancelled {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.bs-ce-status--postponed {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* Type badges */
.bs-ce-type {
    display: inline-block;
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 2px;
    width: fit-content;
    letter-spacing: 0.2px;
}

.bs-ce-type--conference {
    background: rgba(29, 176, 225, 0.1);
    color: #1DB0E1;
}

.bs-ce-type--meetup {
    background: rgba(243, 215, 88, 0.12);
    color: #9a8420;
}

.bs-ce-type--hackathon {
    background: rgba(32, 99, 137, 0.1);
    color: #206389;
}

.bs-ce-type--seminar {
    background: rgba(154, 224, 247, 0.15);
    color: #1a6a82;
}

.bs-ce-type--webinar {
    background: rgba(23, 23, 23, 0.06);
    color: #64748b;
}

/* External link chevron */
.bs-ce-external {
    flex-shrink: 0;
    color: #cbd5e1;
    width: 14px;
    align-self: center;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.bs-ce-link:hover .bs-ce-external {
    color: #1DB0E1;
}

.bs-ce-external svg {
    width: 14px;
    height: 14px;
}

/* Empty state */
.bs-ce-empty {
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    padding: 20px 4px;
    margin: 0;
}

/* CTA Button */
.bs-ce-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.elementor-widget-crypto-events a.bs-ce-cta,
.elementor-widget-crypto-events a.bs-ce-cta:link,
.elementor-widget-crypto-events a.bs-ce-cta:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #1DB0E1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.elementor-widget-crypto-events a.bs-ce-cta:hover {
    background: #1899c5;
    color: #fff;
}
