/* Industry Pulse Page */

/* Hero */
.pulse-hero {
    text-align: center;
    padding: 2rem 0 1rem;
}

.pulse-hero__indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.pulse-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.pulse-hero__live {
    font-size: 12px;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-hero__title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.pulse-hero__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-top: 6px;
}

/* Stats Bar */
.pulse-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.pulse-stats__item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pulse-stats__number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
}

.pulse-stats__label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Highlighted Alerts */
.pulse-alerts {
    margin-bottom: 24px;
}

.pulse-section-title {
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pulse-section-title i {
    color: #f59e0b;
    font-size: 18px;
}

.pulse-alerts__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pulse-alert-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid #6366f1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.pulse-alert-card:hover {
    transform: translateX(4px);
}

.pulse-alert-card__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.pulse-alert-card__content {
    flex: 1;
    min-width: 0;
}

.pulse-alert-card__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pulse-alert-card__time {
    font-size: 12px;
    color: #888;
}

/* Filter Pills */
.pulse-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

a.pulse-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    white-space: nowrap;
}

a.pulse-filter-pill:hover {
    border-color: #6366f1;
    color: #6366f1;
    text-decoration: none;
}

a.pulse-filter-pill.active {
    background: linear-gradient(100deg, #7A95F8 0%, #6453CA 100%);
    color: #fff;
    border-color: transparent;
}

.pulse-filter-pill i {
    font-size: 14px;
}

.pulse-filter-pill__count {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

.pulse-filter-pill.active .pulse-filter-pill__count {
    background: rgba(255, 255, 255, 0.25);
}

/* Firm Filter Active */
.pulse-firm-filter-active {
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
}

.pulse-firm-filter-clear {
    color: #6366f1;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.pulse-firm-filter-clear:hover {
    color: #4f46e5;
    text-decoration: none;
}

/* Event Feed */
.pulse-feed {
    display: flex;
    flex-direction: column;
}

/* Individual Event */
.pulse-event {
    display: flex;
    gap: 0;
    min-height: 90px;
}

.pulse-event__timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24px;
    flex-shrink: 0;
    padding-top: 18px;
}

.pulse-event__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6366f1;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.pulse-event__line {
    width: 2px;
    flex: 1;
    background: #e5e7eb;
    margin-top: 4px;
}

.pulse-event__card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pulse-event__card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pulse-event--highlighted .pulse-event__card {
    border: 1px solid #fbbf24;
    box-shadow: 0 2px 12px rgba(251, 191, 36, 0.15);
}

.pulse-event__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pulse-event__type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.pulse-event__type i {
    font-size: 14px;
}

.pulse-event__time {
    font-size: 12px;
    color: #888;
}

.pulse-event__body {
    /* body */
}

.pulse-event__firm {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pulse-event__firm-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: #f9fafb;
    padding: 2px;
}

.pulse-event__firm-name {
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
}

.pulse-event__firm-name:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.pulse-event__grade {
    font-size: 12px;
    font-weight: 800;
}

.pulse-event__title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.pulse-event__desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.pulse-event__change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 13px;
}

.pulse-event__old {
    color: #ef4444;
    font-weight: 600;
    text-decoration: line-through;
}

.pulse-event__arrow {
    color: #999;
    font-size: 16px;
}

.pulse-event__new {
    color: #10b981;
    font-weight: 600;
}

/* Empty State */
.pulse-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pulse-empty__icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 12px;
}

.pulse-empty__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.pulse-empty__text {
    font-size: 14px;
    color: #666;
    max-width: 400px;
    margin: 0 auto 16px;
}

.pulse-empty__btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(100deg, #7A95F8 0%, #6453CA 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.pulse-empty__btn:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}

/* Pagination */
.pulse-pagination {
    margin-top: 20px;
}

.pulse-pagination .pagination {
    justify-content: center;
}

.pulse-pagination .page-link,
.pulse-pagination a.page-link {
    background: #fff;
    color: #333;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 0 3px;
    font-size: 13px;
    text-decoration: none;
}

.pulse-pagination a.page-link:hover {
    background: #f3f4f6;
    color: #1a1a2e;
    text-decoration: none;
}

.pulse-pagination .page-item.active .page-link {
    background: linear-gradient(100deg, #7A95F8 0%, #6453CA 100%);
    border-color: transparent;
    color: #fff;
}

/* Sidebar Cards */
.pulse-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pulse-sidebar-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-sidebar-card__title i {
    color: #6366f1;
    font-size: 18px;
}

.pulse-sidebar-card__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Active Firm Item */
.pulse-active-firm {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.pulse-active-firm:hover {
    background: #f3f4f6;
    text-decoration: none;
}

.pulse-active-firm__logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    background: #f9fafb;
    padding: 2px;
}

.pulse-active-firm__info {
    display: flex;
    flex-direction: column;
}

.pulse-active-firm__name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
}

.pulse-active-firm__count {
    font-size: 11px;
    color: #888;
}

/* Event Type Legend */
.pulse-type-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.pulse-type-item__icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.pulse-type-item__label {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.pulse-type-item__count {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

/* CTA */
.pulse-sidebar-cta {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
}

.pulse-sidebar-cta__title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}

.pulse-sidebar-cta__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0 0 16px;
}

.pulse-sidebar-cta__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pulse-sidebar-cta__btn {
    display: block;
    padding: 10px 16px;
    background: #fff;
    color: #6366f1;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.pulse-sidebar-cta__btn:hover {
    background: #f0f0ff;
    color: #4f46e5;
    text-decoration: none;
}

.pulse-sidebar-cta__btn--outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.pulse-sidebar-cta__btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 991px) {
    .pulse-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .pulse-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
}

@media (max-width: 576px) {
    .pulse-hero__title {
        font-size: 1.5rem;
    }

    .pulse-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .pulse-stats__number {
        font-size: 1.2rem;
    }

    .pulse-event__timeline {
        display: none;
    }

    .pulse-event__card {
        margin-left: 0;
    }

    .pulse-alert-card__title {
        white-space: normal;
    }
}
