/* Posts */

#cpc_activity_items {
	clear: both;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */	
    overflow:hidden;
}
#cpc_activity_post_div {
	margin-bottom:20px;
}
#cpc_activity_post {
	width:100%;
	margin-bottom:10px;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */	
}
.cpc_background_edit_icon {
	background-image: url('images/edit.png') !important;
	background-repeat: no-repeat !important;
    background-size: 16px 16px;
    background-position: 5px 5px;
    padding-top: 4px;
    padding-left: 28px;	
}
#cpc_activity_post_button {
	margin-bottom:10px;
	margin-right:10px;
	float:left;
}
.cpc_activity_item {
	margin-bottom:10px;
    overflow:hidden;
}
.cpc_activity_item_avatar {
	padding-top:4px;
}

.cpc_p_content {
}
.cpc_p_content a {
}
.cpc_quoted_content {
    border: 1px solid #efefef;
    font-size: 0.8em;
    font-style: italic;
    padding: 6px;
    margin-top: 1em;
    margin-bottom: 1em;
}

.activity_item_more {
    text-decoration: underline;
    cursor: pointer;
}

.cpc_activity_item_attachments {
    margin: 12px 0 12px 0;
}

#cpc_activity_load_more_div {
	text-align:center;
}

#cpc_activity_load_more {
	width:33%;
}

/* Comments */

.cpc_activity_content {
}
.cpc_activity_comments {
	margin-top: 10px;
}
.cpc_activity_comment {
	clear: both;
	position:relative;
}
.cpc_activity_comment p {
	margin-bottom: 6px !important;
}
.cpc_activity_post_comment_div {
	margin-top:6px;
	margin-bottom:20px;
}
.cpc_activity_post_comment {
	width:100%;
	margin-bottom:10px;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */	
}
.cpc_activity_post_comment_avatar {
	padding-top:4px;
}

.cpc_activity_post_comment_button {
	margin-bottom:10px;
}

.cpc_activity_hidden_comments {
	font-style: italic;
	cursor: pointer;
}

/* Activity Settings */

.cpc_activity_settings, .cpc_comment_settings {
	z-index: 100;
	cursor:pointer;
	position:absolute;
	top:0px;
	right:0px;
}

.cpc_activity_settings_options, .cpc_comment_settings_options {
	z-index: 101;
	display:none;
	position:absolute;
	top:0px;
	right:0px;
	font-size: 10px;
	padding: 5px 10px 5px 5px;
	text-align:center;
	border:1px solid #666;
	background-color:#fff;
	color: #666;
}
.cpc_activity_settings_options a, .cpc_comment_settings_options a {
	color: #666 !important;
	margin-left: 5px;
}
.cpc_activity_settings_options a:hover, .cpc_comment_settings_options a:hover {
	color: #000 !important;
}

/* Responsive */


@media all and (max-width: 1104px) {
  .cpc_activity_settings {
      display: block !important;
  }
}

/* Activity Plus */

.cpc_activity_plus {
    margin-top: 10px;
}

.cpc_activity_plus_cloud_info {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #444;
}

.cpc_activity_plus_cloud_notice {
    margin: 0 0 8px 0;
    padding: 8px 10px;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 4px;
    font-size: 12px;
    color: #7a4f01;
}

.cpc_activity_plus_toolbar {
    margin-bottom: 8px;
}

.cpc_activity_plus_toolbar .cpc_button {
    margin-right: 6px;
}

.cpc_activity_plus_wrap input,
.cpc_activity_plus_wrap textarea {
    width: 100%;
    max-width: 100%;
    margin-bottom: 8px;
}

.cpc_activity_plus_link_preview_card {
    margin-bottom: 8px;
}

.cpc_activity_plus_link_preview_table {
    width: 100%;
    border-collapse: collapse;
}

.cpc_activity_plus_link_preview_table td {
    vertical-align: top;
    padding: 8px;
}

.cpc_activity_plus_link_preview_image_container {
    width: 180px;
    height: 135px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.cpc_activity_plus_link_preview_image {
    width: 100%;
    height: auto;
    display: none;
}

.cpc_activity_plus_link_preview_image.active {
    display: block;
}

.cpc_activity_plus_link_preview_title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 6px;
}

.cpc_activity_plus_link_preview_url {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 8px;
    word-break: break-all;
}

.cpc_activity_plus_link_preview_desc {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.cpc_activity_plus_thumbnail_chooser {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

.cpc_activity_plus_thumbnail_nav {
    display: inline-block;
    margin-bottom: 8px;
}

.cpc_activity_plus_thumbnail_nav button {
    background: #5fb3c9;
    color: #fff;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.85em;
    margin: 0 4px;
}

.cpc_activity_plus_thumbnail_nav button:hover {
    background: #4a9cb5;
}

.cpc_activity_plus_thumbnail_nav span {
    display: inline-block;
    margin: 0 4px;
    font-size: 0.85em;
}

.cpc_activity_plus_no_thumbnail_option {
    display: block;
    margin-top: 8px;
}

.cpc_activity_plus_no_thumbnail_option input {
    margin-right: 4px;
}

.cpc_activity_plus_no_thumbnail_option label {
    font-size: 0.9em;
    color: #666;
}

.cpc_activity_plus_video_preview_loading {
    width: 100%;
    height: 50px;
    background: url(images/loading.gif) center top no-repeat;
    margin-bottom: 8px;
}

.cpc_activity_plus_video_preview_card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.cpc_activity_plus_video_preview_thumb {
    margin-bottom: 8px;
    max-width: 300px;
}

.cpc_activity_plus_video_preview_thumb img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.cpc_activity_plus_video_preview_embed {
    overflow: auto;
}

.cpc_activity_plus_video_preview_embed iframe {
    max-width: 100%;
    height: auto;
}

.cpc_activity_plus_images {
    margin-top: 8px;
}

.cpc_activity_plus_image {
    display: inline-block;
    margin: 0 6px 6px 0;
}

.cpc_activity_plus_image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.cpc_activity_plus_lightbox_open {
    overflow: hidden;
}

.cpc_activity_plus_lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.cpc_activity_plus_lightbox.is-open {
    display: block;
}

.cpc_activity_plus_lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.cpc_activity_plus_lightbox__content {
    position: relative;
    width: min(96vw, 1200px);
    max-height: 92vh;
    margin: 4vh auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cpc_activity_plus_lightbox__close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cpc_activity_plus_lightbox__image {
    max-width: 100%;
    max-height: 84vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.cpc_activity_plus_lightbox__caption_wrap {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.cpc_activity_plus_lightbox__caption_wrap.is-hidden {
    display: none;
}

.cpc_activity_plus_lightbox__caption_toggle {
    border: 0;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
}

.cpc_activity_plus_lightbox__caption {
    margin-top: 8px;
    padding: 10px 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 4px;
    text-align: left;
}

.cpc_activity_plus_lightbox__caption.is-hidden {
    display: none;
}

.cpc_activity_plus_video {
    margin-top: 10px;
}

.cpc_profile_slot {
    margin-top: 10px;
}

.cpc_profile_slot_profile_header_right {
    min-width: 220px;
}

/* ================================================ */
/* THEMES VARIANT */
/* ================================================ */

/* Shared action bar layout (like original plugin) */
.cpc_activity_plus .cpc_activity_plus_toolbar {
    clear: left;
    padding-top: 5px;
}

.cpc_activity_plus.cpcap-alignment-right .cpc_activity_plus_toolbar {
    clear: right;
    text-align: right;
}

.cpc_activity_plus .cpc_activity_plus_toggle {
    border: none;
    text-decoration: none;
    display: inline-block;
    float: left;
    min-width: 34px;
    height: 32px;
    margin-right: 8px;
    overflow: hidden;
}

.cpc_activity_plus.cpcap-alignment-right .cpc_activity_plus_toggle {
    float: right;
    margin-right: 0;
    margin-left: 8px;
}

/* Default (legacy) */
.cpc_activity_plus.cpcap-theme-default .cpc_activity_plus_toggle span {
    display: inline-block;
    line-height: 20px;
}

/* New theme (icon style, based on original bpfb-theme-new) */
.cpc_activity_plus.cpcap-theme-new .cpc_activity_plus_toggle {
    background: none !important;
    color: #5FB3C9;
    font-size: 24px;
    line-height: 32px;
    font-weight: normal;
    text-align: center;
    min-width: 32px;
    padding: 0 2px;
}

.cpc_activity_plus.cpcap-theme-new .cpc_activity_plus_toggle:hover,
.cpc_activity_plus.cpcap-theme-new .cpc_activity_plus_toggle:focus {
    color: #F33;
}

.cpc_activity_plus.cpcap-theme-new .cpc_activity_plus_toggle span {
    display: none;
}

.cpc_activity_plus.cpcap-theme-new .cpc_activity_plus_toggle_images:before {
    content: "📷";
}

.cpc_activity_plus.cpcap-theme-new .cpc_activity_plus_toggle_links:before {
    content: "🔗";
}

.cpc_activity_plus.cpcap-theme-new .cpc_activity_plus_toggle_videos:before {
    content: "▶";
}

/* Round theme (based on original bpfb-theme-round) */
.cpc_activity_plus.cpcap-theme-round .cpc_activity_plus_toggle {
    line-height: 32px;
    border-radius: 32px;
    color: #eee;
    background: #555 !important;
    border: 1px solid #444;
    min-width: 34px;
    text-align: center;
    font-size: 15px;
}

.cpc_activity_plus.cpcap-theme-round .cpc_activity_plus_toggle:hover,
.cpc_activity_plus.cpcap-theme-round .cpc_activity_plus_toggle:focus {
    color: #333;
    background: #eee !important;
}

.cpc_activity_plus.cpcap-theme-round .cpc_activity_plus_toggle span {
    display: none;
}

.cpc_activity_plus.cpcap-theme-round .cpc_activity_plus_toggle_images:before {
    content: "📷";
}

.cpc_activity_plus.cpcap-theme-round .cpc_activity_plus_toggle_links:before {
    content: "🔗";
}

.cpc_activity_plus.cpcap-theme-round .cpc_activity_plus_toggle_videos:before {
    content: "▶";
}

/* ========================================
   PROFILE TABS SYSTEM
   ======================================== */

.cpc-profile-tabs-nav {
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #ddd;
    clear: both;
}

.cpc-profile-tabs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.cpc-profile-tab-item {
    margin: 0 5px -2px 0;
}

.cpc-profile-tab-link {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.cpc-profile-tab-link:hover {
    color: #0073aa;
    text-decoration: none;
}

.cpc-profile-tab-item.active .cpc-profile-tab-link {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.cpc-profile-tab-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
    vertical-align: middle;
    margin-right: 4px;
}

.cpc-profile-tab-content-wrapper {
    padding: 20px 0;
    min-height: 200px;
}

/* Responsive tabs */
@media screen and (max-width: 768px) {
    .cpc-profile-tabs-list {
        flex-direction: column;
    }
    
    .cpc-profile-tab-item {
        margin: 0;
        border-bottom: 1px solid #ddd;
    }
    
    .cpc-profile-tab-link {
        display: block;
        padding: 15px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .cpc-profile-tab-item.active .cpc-profile-tab-link {
        border-left-color: #0073aa;
        border-bottom-color: transparent;
        background-color: #f7f7f7;
    }
}

/* ========================================
   PM INTEGRATION - PROFILE BADGE
   ======================================== */

.cpc-pm-profile-badge {
    display: inline-block;
    margin-top: 10px;
}

.cpc-pm-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.cpc-pm-badge-link:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cpc-pm-icon {
    font-size: 18px;
    line-height: 1;
}

.cpc-pm-label {
    font-size: 14px;
}

.cpc-pm-unread-badge {
    background: #d63638;
    color: #fff;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* PM Badge in profile slot - alternative compact style */
.cpc_profile_slot .cpc-pm-profile-badge {
    margin-top: 0;
}

.cpc_profile_slot .cpc-pm-badge-link {
    padding: 8px 12px;
    font-size: 13px;
}

.cpc_profile_slot .cpc-pm-icon {
    font-size: 16px;
}

.cpc-profile-header-block {
    clear: both;
    max-width: 100%;
}

.cpc-profile-header-right-slot {
    margin-top: 10px;
    min-height: 20px;
}

.cpc-profile-header-meta {
    float: left;
    margin-right: 15px;
}

.cpc-profile-header-right-slot-wrap {
    float: right;
    text-align: right;
    min-width: 180px;
}

/* Responsive badge */
@media screen and (max-width: 768px) {
    .cpc-profile-header-meta,
    .cpc-profile-header-right-slot-wrap {
        float: none;
        margin-right: 0;
        text-align: left;
        min-width: 0;
    }

    .cpc-pm-badge-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .cpc-pm-icon {
        font-size: 16px;
    }
    
    .cpc-pm-label {
        display: none;
    }
}

/* ========================================
   PROFILE GROUPS TAB
   ======================================== */

.cpc-profile-groups-tab h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.4em;
}

.cpc-profile-groups-empty {
    padding: 40px 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 4px;
}

.cpc-profile-groups-empty p {
    margin: 0 0 15px 0;
    color: #666;
}

.cpc-profile-groups-empty .cpc-button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.cpc-profile-groups-empty .cpc-button:hover {
    background: #005a87;
    text-decoration: none;
}
/* Profile Tabs - Additional Styles */
.cpc-profile-tab-item {
    list-style: none !important;
}

.cpc-profile-tab-link {
    cursor: pointer;
}

.cpc-profile-tab-content-wrapper {
    transition: opacity 0.3s ease;
    position: relative;
}

.cpc-profile-tab-content-wrapper.loading {
    pointer-events: none;
}

.cpc-profile-tab-content-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: cpc-spin 1s linear infinite;
}

@keyframes cpc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
