/* Crypto Events Calendar Page */

#bs-events-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

#bs-events-page a,
#bs-events-page a:link,
#bs-events-page a:visited {
    color: inherit;
    text-decoration: none;
}

#bs-events-page a:hover,
#bs-events-page a:active {
    color: inherit;
    text-decoration: none;
}

/* Breadcrumb */
.bs-ev-breadcrumb {
    font-size: 13px;
    margin-bottom: 14px;
}

#bs-events-page .bs-ev-breadcrumb a,
#bs-events-page .bs-ev-breadcrumb a:link,
#bs-events-page .bs-ev-breadcrumb a:visited {
    color: #9ca3af;
}

#bs-events-page .bs-ev-breadcrumb a:hover {
    color: #1DB0E1;
}

.bs-ev-breadcrumb-sep {
    color: #9ca3af;
    margin: 0 6px;
}

.bs-ev-breadcrumb span:last-child {
    color: #475569;
}

/* Hero */
.bs-ev-hero {
    margin-bottom: 24px;
}

.bs-ev-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.bs-ev-h1-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bs-ev-h1 {
    font-size: 28px;
    font-weight: 700;
    color: #171717;
    margin: 0;
    line-height: 1.2;
}

.bs-ev-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 2px 0 0 46px;
}

.bs-ev-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.bs-ev-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(32, 99, 137, 0.1);
    border-radius: 8px;
    color: #206389;
    flex-shrink: 0;
}

.bs-ev-hero-icon svg {
    width: 20px;
    height: 20px;
}

#bs-events-page .bs-ev-submit-btn,
#bs-events-page .bs-ev-submit-btn:link,
#bs-events-page .bs-ev-submit-btn:visited {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: #206389;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease;
    white-space: nowrap;
}

#bs-events-page .bs-ev-submit-btn:hover,
#bs-events-page .bs-ev-submit-btn:active {
    background: #1a5070;
    color: #fff;
}

/* Filter bar */
.bs-ev-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.bs-ev-filter-row-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

#bs-events-page .bs-ev-country-select {
    padding: 5px 28px 5px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

#bs-events-page .bs-ev-country-select:focus {
    border-color: #1DB0E1;
    box-shadow: none;
}

.bs-ev-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

#bs-events-page .bs-ev-pill {
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    outline: none;
    box-shadow: none;
}

#bs-events-page .bs-ev-pill:hover {
    border-color: #1DB0E1;
    color: #1DB0E1;
    background: #fff;
}

#bs-events-page .bs-ev-pill:focus,
#bs-events-page .bs-ev-pill:active {
    border-color: #1DB0E1;
    color: #1DB0E1;
    background: #fff;
    outline: none;
    box-shadow: none;
}

#bs-events-page .bs-ev-pill--active,
#bs-events-page .bs-ev-pill--active:hover,
#bs-events-page .bs-ev-pill--active:focus,
#bs-events-page .bs-ev-pill--active:active {
    background: #1DB0E1;
    border-color: #1DB0E1;
    color: #fff;
    outline: none;
    box-shadow: none;
}

.bs-ev-filter-toggle {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
}

#bs-events-page .bs-ev-toggle {
    padding: 5px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    outline: none;
    box-shadow: none;
}

#bs-events-page .bs-ev-toggle:hover,
#bs-events-page .bs-ev-toggle:focus,
#bs-events-page .bs-ev-toggle:active {
    color: #475569;
    outline: none;
    box-shadow: none;
}

#bs-events-page .bs-ev-toggle--active,
#bs-events-page .bs-ev-toggle--active:hover,
#bs-events-page .bs-ev-toggle--active:focus,
#bs-events-page .bs-ev-toggle--active:active {
    background: #fff;
    color: #171717;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Sections */
.bs-ev-section--hidden {
    display: none;
}

/* Month headings */
.bs-ev-month-heading {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bs-ev-month-group {
    margin-bottom: 28px;
}

/* Cards */
.bs-ev-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bs-ev-card {
    display: flex;
    gap: 14px;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: flex-start;
    transition: background 0.15s ease;
    border-radius: 8px;
}

.bs-ev-card:hover {
    background: #f8fafc;
}

.bs-ev-card:last-child {
    border-bottom: none;
}

.bs-ev-card--past {
    opacity: 0.6;
}

/* Card date badge */
.bs-ev-card-date {
    flex-shrink: 0;
    width: 52px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    border: 1.5px solid #206389;
    padding: 4px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bs-ev-card-date__month {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.5px;
    background: #206389;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 2px;
}

.bs-ev-card-date__day {
    font-size: 14px;
    font-weight: 700;
    color: #206389;
    line-height: 1.2;
    white-space: nowrap;
}

/* Card body */
.bs-ev-card-body {
    flex: 1;
    min-width: 0;
}

.bs-ev-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.bs-ev-card-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

/* Card meta */
.bs-ev-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.bs-ev-card-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bs-ev-flag {
    width: 16px;
    height: 11px;
    border-radius: 1px;
    object-fit: cover;
}

#bs-events-page .bs-ev-card-country-link,
#bs-events-page .bs-ev-card-country-link:link,
#bs-events-page .bs-ev-card-country-link:visited {
    color: #64748b;
    text-decoration: none;
}

#bs-events-page .bs-ev-card-country-link:hover {
    color: #1DB0E1;
    text-decoration: underline;
}

.bs-ev-card-country-link::before {
    content: "\00b7";
    margin: 0 4px;
    text-decoration: none;
    display: inline-block;
}

.bs-ev-card-venue {
    color: #94a3b8;
}

.bs-ev-card-venue::before {
    content: "\00b7";
    margin: 0 4px;
}

.bs-ev-card-format {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.bs-ev-card-format svg {
    width: 13px;
    height: 13px;
}

/* Status: postponed / cancelled */
.bs-ev-card--postponed,
.bs-ev-card--cancelled {
    opacity: 0.6;
}

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

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

.bs-ev-card-date--postponed .bs-ev-card-date__month,
.bs-ev-card-date--cancelled .bs-ev-card-date__month {
    background: #9ca3af;
}

.bs-ev-card-date--postponed .bs-ev-card-date__day,
.bs-ev-card-date--cancelled .bs-ev-card-date__day {
    color: #9ca3af;
}

.bs-ev-card-status {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 2px;
    width: fit-content;
}

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

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

/* Card type badge */
.bs-ev-card-type {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 6px;
}

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

.bs-ev-card-type--meetup {
    background: rgba(243, 215, 88, 0.15);
    color: #8b7a20;
}

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

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

.bs-ev-card-type--webinar {
    background: rgba(23, 23, 23, 0.08);
    color: #555;
}

/* Card action */
.bs-ev-card-action {
    flex-shrink: 0;
    align-self: center;
}

#bs-events-page .bs-ev-card-link,
#bs-events-page .bs-ev-card-link:link,
#bs-events-page .bs-ev-card-link:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.15s ease;
    text-decoration: none;
}

#bs-events-page .bs-ev-card-link:hover,
#bs-events-page .bs-ev-card-link:active {
    background: #1DB0E1;
    color: #fff;
}

.bs-ev-card-link svg {
    width: 16px;
    height: 16px;
}

/* Empty state */
.bs-ev-empty {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
    padding: 40px 16px;
}

/* Mobile */
@media (max-width: 640px) {
    .bs-ev-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .bs-ev-hero-actions {
        gap: 8px;
    }

    .bs-ev-submit-btn {
        display: none;
    }

    .bs-ev-h1 {
        font-size: 22px;
    }

    .bs-ev-subtitle {
        margin-left: 0;
    }

    .bs-ev-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .bs-ev-card {
        gap: 10px;
        padding: 10px 4px;
    }

    .bs-ev-card-date {
        width: 44px;
    }

    .bs-ev-card-date__day {
        font-size: 15px;
    }

    .bs-ev-card-name {
        font-size: 14px;
    }
}

/* Dark mode */
html.bs-dark #bs-events-page .bs-ev-breadcrumb a {
    color: #555570;
}
html.bs-dark .bs-ev-breadcrumb-sep {
    color: #555570;
}
html.bs-dark .bs-ev-breadcrumb span:last-child {
    color: #8585a0;
}
html.bs-dark #bs-events-page .bs-ev-h1 {
    color: #e4e4ed;
}

html.bs-dark #bs-events-page .bs-ev-subtitle {
    color: #6e6e88;
}

html.bs-dark .bs-ev-hero-icon {
    background: rgba(42, 125, 168, 0.2);
    color: #5fa8e0;
}

html.bs-dark #bs-events-page .bs-ev-pill {
    background: #1e1e32;
    border-color: #2d2d48;
    color: #8585a0;
}

html.bs-dark #bs-events-page .bs-ev-pill:hover,
html.bs-dark #bs-events-page .bs-ev-pill:focus,
html.bs-dark #bs-events-page .bs-ev-pill:active {
    border-color: #1DB0E1;
    color: #1DB0E1;
    background: #1e1e32;
}

html.bs-dark #bs-events-page .bs-ev-pill--active,
html.bs-dark #bs-events-page .bs-ev-pill--active:hover,
html.bs-dark #bs-events-page .bs-ev-pill--active:focus,
html.bs-dark #bs-events-page .bs-ev-pill--active:active {
    background: #1DB0E1;
    border-color: #1DB0E1;
    color: #fff;
}

html.bs-dark #bs-events-page .bs-ev-country-select {
    background-color: #1e1e32;
    border-color: #2d2d48;
    color: #8585a0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238585a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

html.bs-dark #bs-events-page .bs-ev-country-select:focus {
    border-color: #1DB0E1;
}

html.bs-dark .bs-ev-filter-toggle {
    background: #1e1e32;
}

html.bs-dark #bs-events-page .bs-ev-toggle {
    color: #6e6e88;
}

html.bs-dark #bs-events-page .bs-ev-toggle:hover,
html.bs-dark #bs-events-page .bs-ev-toggle:focus,
html.bs-dark #bs-events-page .bs-ev-toggle:active {
    color: #8585a0;
}

html.bs-dark #bs-events-page .bs-ev-toggle--active,
html.bs-dark #bs-events-page .bs-ev-toggle--active:hover,
html.bs-dark #bs-events-page .bs-ev-toggle--active:focus,
html.bs-dark #bs-events-page .bs-ev-toggle--active:active {
    background: #2a2a44;
    color: #e4e4ed;
    box-shadow: none;
}

html.bs-dark .bs-ev-month-heading {
    color: #e4e4ed;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.bs-dark .bs-ev-card:hover {
    background: #242440;
}

html.bs-dark .bs-ev-card {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

html.bs-dark .bs-ev-card-date {
    background: #1c1c30;
    border-color: #2a7da8;
}
html.bs-dark .bs-ev-card-date__month {
    background: #2a7da8;
}

html.bs-dark .bs-ev-card-date__day {
    color: #e4e4ed;
}

html.bs-dark .bs-ev-card-name {
    color: #e4e4ed;
}

html.bs-dark .bs-ev-card-desc {
    color: #6e6e88;
}

html.bs-dark .bs-ev-card-meta {
    color: #6e6e88;
}

html.bs-dark #bs-events-page .bs-ev-card-country-link {
    color: #6e6e88;
}
html.bs-dark #bs-events-page .bs-ev-card-country-link:hover {
    color: #1DB0E1;
}
html.bs-dark .bs-ev-card-venue {
    color: #555570;
}

html.bs-dark .bs-ev-card-link {
    background: #2a2a44;
    color: #8585a0;
}

html.bs-dark .bs-ev-card-link:hover {
    background: #1DB0E1;
    color: #fff;
}

html.bs-dark .bs-ev-empty {
    color: #555570;
}

html.bs-dark #bs-events-page .bs-ev-submit-btn,
html.bs-dark #bs-events-page .bs-ev-submit-btn:link,
html.bs-dark #bs-events-page .bs-ev-submit-btn:visited {
    background: #2a7da8;
    color: #fff;
}

html.bs-dark #bs-events-page .bs-ev-submit-btn:hover,
html.bs-dark #bs-events-page .bs-ev-submit-btn:active {
    background: #1DB0E1;
    color: #fff;
}

html.bs-dark .bs-ev-card-type--conference {
    background: rgba(29, 176, 225, 0.15);
}

html.bs-dark .bs-ev-card-type--meetup {
    background: rgba(243, 215, 88, 0.12);
    color: #c4a930;
}

html.bs-dark .bs-ev-card-type--hackathon {
    background: rgba(32, 99, 137, 0.15);
    color: #5fa8e0;
}

html.bs-dark .bs-ev-card-type--seminar {
    background: rgba(154, 224, 247, 0.12);
    color: #7cc8df;
}

html.bs-dark .bs-ev-card-type--webinar {
    background: rgba(255, 255, 255, 0.06);
    color: #8585a0;
}
