/* BNO Widgets Styles */
.bno-user-activity-widget {
    overflow: hidden;
}
aside#block-33 p, aside#block-37 p {
    display: none;
}
.bno-widget-header svg {
    width: 16px;
    height: 16px;
}
.bno-widget-info {
    color: rgba(0, 0, 0, 0.61);
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 10px;
}
.bno-cat-parent:last-child {
    border-bottom: 0px;
}
.bno-widget-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .065);
}
li.bno-activity-item svg {
    width: 15px;
    height: 15px;
}
.bno-activity-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.bno-widget-header h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    text-transform: uppercase;
}

.bno-widget-info {
    font-size: 11px;
    color: #7f8c8d;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .065);
    margin-bottom: 10px;
    font-style: italic;
    line-height: 14px;
}
.bno-widget-content {
    padding: 0px 0px;
    position: relative;
}
.bno-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bno-activity-item {
    padding: 0px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.bno-activity-item:last-child {
    border-bottom: none;
}
.bno-activity-item a {
    color: #000000;
    font-weight: 500;
    line-height: 19px;
    flex: 1;
    transition: color 0.2s ease;
    font-size: 13px;
    max-height: 17px;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    text-overflow: ellipsis;
    overflow: hidden;
}

.bno-activity-item a:hover {
    color: #667eea;
    text-decoration: underline;
}

.bno-activity-time {
    color: #7f8c8d;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.bno-no-activity {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* Loading state */
.bno-user-activity-widget .bno-widget-content:contains("Loading") {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

/* Error state */
.bno-widget-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}
ul.bno-activity-list {
    max-height: 150px;
    height: 100%;
    overflow-y: scroll;
    mask-image: linear-gradient(to bottom, black, black 20%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, black 43%, transparent);
    position: relative;
    transition: max-height 0.3s ease;
}

ul.bno-activity-list.expanded {
    max-height: none;
    mask-image: none;
    -webkit-mask-image: none;
}

.bno-expand-arrow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.bno-expand-arrow:hover {
    background: #f8f9fa;
}

.bno-expand-arrow svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.bno-expand-arrow.expanded svg {
    transform: rotate(180deg);
}

.bno-activity-list li {
    margin-bottom: 0px !important;
}
/* Widget placeholder - Skeleton Loading */
.bno-widget-placeholder {
    min-height: 120px;
    padding: 15px 0;
}

.bno-widget-placeholder::before {
    content: '';
    display: block;
    width: 60px;
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 15px;
}

.bno-widget-placeholder::after {
    content: '';
    display: block;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
} 

/* Category Accordion Styles */
.bno-category-accordion {
    background: #fff;
    font-family: inherit;
    overflow: hidden;
}
.bno-cat-parent {
    border-bottom: 1px solid #f2f2f2;
}
.bno-cat-header {
    font-size: 15px;
    font-weight: 400;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    border-radius: 0;
    padding: 10px 0px;
}

.bno-cat-header.active {
    font-weight: 600;
}
.bno-cat-sub-header {
    padding: 10px 0px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    border-radius: 0;
}
.bno-cat-posts {
    background: #fff;
    list-style: none;
    max-height: 600px;
    height: 100%;
    overflow-y: scroll;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    margin-left: 10px !important;
}

.bno-cat-post-title {
    font-size: 13px;
    transition: background 0.2s;
    padding: 5px 0px;
    line-height: 20px;
}
.bno-cat-post-title:last-child {
    border-bottom: none;
}
.bno-cat-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}
.bno-cat-post-title a:hover {
    color: #667eea;
    text-decoration: underline;
} 

/* Arrow always right-aligned and rotates on .active */
.bno-cat-header, .bno-cat-sub-header {
    position: relative;
    display: flex;
    align-items: center;
}
.bno-cat-arrow {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.bno-cat-header.active .bno-cat-arrow svg,
.bno-cat-sub-header.active .bno-cat-arrow svg,
.bno-cat-header.active > .bno-cat-arrow > svg,
.bno-cat-sub-header.active > .bno-cat-arrow > svg {
    transform: rotate(180deg);
}
.bno-cat-arrow svg {
    display: block;
    transition: transform 0.3s;
} 

.bno-cat-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    min-height: 32px;
}

.bno-cat-loading::after {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    border: 3px solid #ccc;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: bno-spin 1s linear infinite;
}

@keyframes bno-spin {
    to { transform: rotate(360deg); }
} 

/* Social Links Widget Styles */

.bno-social-links-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    padding: 0px 0;
    max-width: 100%;
}
.bno-social-links-list {
    list-style: none;
    margin: 10px 0px 0px 0px !important;
    padding: 0;
}
.bno-social-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    transition: background 0.15s;
    background: #f8f9fa;
    margin-bottom: 3px !important;
}
.bno-social-link-row:last-child {
    margin-bottom: 0px !important;
}
aside#block-34 p {
    display: none;
}
.bno-social-link-row a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: #222;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    gap: 10px;
}
.bno-social-link-row:hover {
  background: #f7f7f7;
}
.bno-social-icon svg {
    width: 20px;
    height: 20px;
}
.bno-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bno-social-name {
    flex: 1 1 auto;
    font-size: 12px;
    font-weight: 600;
}
.bno-social-count {
    font-size: 14px;
    font-weight: 400;
    color: #222;
    margin-left: 16px;
}