/* Chat Reactions - Custom Core Code Styles */

/* Inline reactions next to username */
.chat_reactions_inline_container {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 3px !important;
	vertical-align: middle !important;
	margin-left: 6px !important;
}

/* Wall react button - positioned after time, next to context menu */
.post_react_btn {
	cursor: pointer;
	width: 40px;
	font-size: 15px;
	position: relative;
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	transition: all 0.2s ease;
	color: rgba(255, 255, 255, 0.7);
}

.post_react_btn:hover {
	color: rgba(255, 255, 255, 0.9);
	transform: scale(1.1);
}

.post_react_btn i {
	font-size: 16px;
}

/* Ensure reactions wrapper inside inline container displays correctly */
.chat_reactions_inline_container .chat_reactions_wrapper {
	display: inline-flex !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Chat message reactions container - Discord style, below message bubble (for private messages) */
.chat_reactions_container {
	margin-top: 4px !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
	display: flex !important;
	justify-content: flex-start !important;
	position: relative;
	width: auto !important;
}

/* Reactions wrapper - Discord style */
.chat_reactions_wrapper {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 4px !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
}

/* Reactions compact container - Discord style horizontal row */
.chat_reactions_compact {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	flex-wrap: wrap !important;
	justify-content: flex-start !important;
}

/* Reaction buttons - Discord style pills */
.chat_reactions_wrapper .chat_reaction_btn,
.chat_reactions_wrapper .chat_reaction_btn.like_count {
	font-size: 13px !important;
	padding: 2px 6px !important;
	margin: 0 !important;
	border-radius: 12px !important;
	background-color: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.05) !important;
	transition: all 0.15s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	line-height: 1.2 !important;
	cursor: pointer !important;
	color: rgba(255, 255, 255, 0.9) !important;
	min-height: 22px;
}

.chat_reactions_wrapper .like_icon {
	width: 16px !important;
	height: 16px !important;
	vertical-align: middle;
	display: inline-block !important;
}

.chat_reactions_wrapper .reaction_count {
	font-weight: 500 !important;
	font-size: 13px !important;
	color: rgba(255, 255, 255, 0.9) !important;
	margin-left: 2px;
}

.chat_reactions_wrapper .chat_reaction_btn:hover,
.chat_reactions_wrapper .chat_reaction_btn.like_count:hover {
	background-color: rgba(255, 255, 255, 0.12) !important;
	border-color: rgba(255, 255, 255, 0.1) !important;
	transform: translateY(-1px) !important;
}

/* Active state - when user has reacted (Discord style) */
.chat_reactions_wrapper .chat_reaction_btn.liked,
.chat_reactions_wrapper .chat_reaction_btn.liked.like_count {
	background-color: rgba(88, 101, 242, 0.2) !important;
	border-color: rgba(88, 101, 242, 0.4) !important;
}

.chat_reactions_wrapper .chat_reaction_btn.disliked,
.chat_reactions_wrapper .chat_reaction_btn.disliked.like_count {
	background-color: rgba(88, 101, 242, 0.2) !important;
	border-color: rgba(88, 101, 242, 0.4) !important;
}

.chat_reactions_wrapper .chat_reaction_btn.loved,
.chat_reactions_wrapper .chat_reaction_btn.loved.like_count {
	background-color: rgba(88, 101, 242, 0.2) !important;
	border-color: rgba(88, 101, 242, 0.4) !important;
}

.chat_reactions_wrapper .chat_reaction_btn.funned,
.chat_reactions_wrapper .chat_reaction_btn.funned.like_count {
	background-color: rgba(88, 101, 242, 0.2) !important;
	border-color: rgba(88, 101, 242, 0.4) !important;
}


/* Chat icon colors for extended reactions */
.chat_reactions_wrapper .chat_reaction_btn[data-type="5"] i {
	color: #fbbf24; /* Yellow for Wow */
}
.chat_reactions_wrapper .chat_reaction_btn[data-type="6"] i {
	color: #3b82f6; /* Blue for Sad */
}
.chat_reactions_wrapper .chat_reaction_btn[data-type="7"] i {
	color: #ef4444; /* Red for Angry */
}
.chat_reactions_wrapper .chat_reaction_btn[data-type="8"] i {
	color: #f97316; /* Orange for Fire */
}

/* Ensure font awesome icons in chat are properly sized/aligned */
.chat_reactions_wrapper .chat_reaction_btn i {
	font-size: 14px;
	width: 16px;
	text-align: center;
	vertical-align: middle;
	display: inline-block;
}

.chat_reactions_wrapper .view_likes_link {
	opacity: 0.6;
	cursor: pointer;
	transition: opacity 0.2s;
	font-size: 10px; 
	color: #999;
	padding: 2px 4px;
	margin-left: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.chat_reactions_wrapper .view_likes_link:hover {
	opacity: 1;
}

/* Upload reactions container */
.upload_reactions_container {
	margin-top: 3px;
}

.upload_reactions_wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.upload_reactions_wrapper .like_container {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-wrap: nowrap;
}

.upload_reactions_wrapper .like_count {
	font-size: 10px;
	padding: 2px 6px;
	margin: 0;
	border-radius: 12px;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	line-height: 1.2;
	cursor: pointer;
}

.upload_reactions_wrapper .like_icon {
	width: 12px;
	height: 12px;
	vertical-align: middle;
}

.upload_reactions_wrapper .reaction_count {
	font-weight: 500;
}

.upload_reactions_wrapper .like_count:hover {
	transform: scale(1.05);
	opacity: 0.9;
}

.upload_reactions_wrapper .view_likes_link {
	opacity: 0.6;
	cursor: pointer;
	transition: opacity 0.2s;
	font-size: 9px;
	color: #999;
	padding: 2px 4px;
	margin-left: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.upload_reactions_wrapper .view_likes_link:hover {
	opacity: 1;
}

/* Menu reactions row - single horizontal row with all 4 reactions */
.menu_reaction_btn:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* PM menu reactions */
.pm_reaction_btn:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* PM message reactions - inside PM bubbles (.hunter_private, .target_private) */
.hunter_private .chat_reactions_container,
.target_private .chat_reactions_container,
.hunt_quote .chat_reactions_container,
.targ_quote .chat_reactions_container {
	margin-top: 4px;
	width: 100%;
}

.hunter_private .chat_reactions_wrapper,
.target_private .chat_reactions_wrapper,
.hunt_quote .chat_reactions_wrapper,
.targ_quote .chat_reactions_wrapper {
	display: flex;
	align-items: center;
	gap: 3px;
	margin: 0;
	padding: 0;
}

/* PM reactions align based on message direction */
.hunter_private .chat_reactions_wrapper,
.hunt_quote .chat_reactions_wrapper {
	justify-content: flex-end;
}

.target_private .chat_reactions_wrapper,
.targ_quote .chat_reactions_wrapper {
	justify-content: flex-start;
}

/* Private message reaction popup */
.dsg_private_reaction_popup {
	position: fixed;
	background: rgba(30, 30, 30, 0.98);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	padding: 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.15);
	z-index: 10000;
	animation: dsgPopupFadeIn 0.2s ease;
}

@keyframes dsgPopupFadeIn {
	from {
		opacity: 0;
		transform: translateX(-5px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

.dsg_reaction_popup_content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* 4x2 grid layout for private message reactions */
.dsg_reaction_popup_content.dsg_reaction_grid_4x2 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 8px;
	width: 100%;
}

.dsg_reaction_option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	cursor: pointer;
	border-radius: 10px;
	transition: all 0.2s ease;
	background-color: rgba(255, 255, 255, 0.08);
	font-size: 18px;
}

.dsg_reaction_option:hover {
	background-color: rgba(255, 255, 255, 0.2);
	transform: scale(1.15);
}

/* Private message reaction icon in menu */
.ppreact {
	transition: all 0.2s ease;
}

.ppreact:hover {
	background-color: rgba(255, 255, 255, 0.1);
	transform: scale(1.1);
}

/* Chat reaction popup (same styling as private) */
.dsg_chat_reaction_popup {
	position: fixed;
	background: rgba(30, 30, 30, 0.98);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	padding: 8px 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.15);
	z-index: 10000;
	animation: dsgPopupFadeIn 0.2s ease;
}

/* Chat reaction row in menu */
.log_react_row {
	transition: all 0.2s ease;
}

.log_react_row:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

/* Inline reaction buttons next to chat message (like private messages) - always visible */
.chat_inline_reactions {
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.chat_log:hover .chat_inline_reactions {
	opacity: 1;
}

.chat_inline_reaction_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.2s ease;
	background-color: rgba(255, 255, 255, 0.05);
}

.chat_inline_reaction_btn:hover {
	background-color: rgba(255, 255, 255, 0.15);
	transform: scale(1.15);
}

/* Menu reaction buttons hover */
.submenu_reaction_btn:hover {
	background-color: rgba(255, 255, 255, 0.1) !important;
}

/* ============================================
   WALL REACTIONS - Friends Wall Styling
   ============================================ */

/* Wall reactions wrapper - matches chat reactions style */
.like_container .wall_reactions_wrapper {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	margin: 0;
	padding: 0;
	width: auto;
}

/* Wall reactions compact container - 2 rows layout */
.wall_reactions_wrapper .wall_reactions_compact {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: flex-start;
	row-gap: 12px;
	width: 100%;
	position: relative;
}

/* Container for view link and comment icon - right aligned on new row */
.wall_reactions_wrapper .wall_reactions_right_actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
	margin-top: 8px;
	order: 100;
	justify-content: flex-end;
	flex-basis: 100%;
	min-width: 100%;
}

/* Wall reaction buttons - Bigger size with pill styling, 2 rows of 4 */
.wall_reactions_wrapper .wall_reaction_btn,
.wall_reactions_wrapper .wall_reaction_btn.like_count {
	font-size: 14px;
	padding: 6px 12px;
	margin: 0;
	border-radius: 16px;
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.05);
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1.2;
	cursor: pointer;
	color: inherit;
	min-height: 32px;
	flex: 0 0 calc((100% - 36px) / 4); /* 4 buttons per row: (100% - 3 gaps of 12px) / 4 */
	max-width: calc((100% - 36px) / 4);
	float: none; /* Override main.css float */
	justify-content: center;
}

/* Wall reaction icons - Bigger */
.wall_reactions_wrapper .like_icon {
	width: 20px;
	height: 20px;
	vertical-align: middle;
	display: inline-block;
}

/* Font Awesome icons for extended reactions (Wow, Sad, Angry, Fire) - Bigger */
.wall_reactions_wrapper .like_icon_fa {
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: middle;
	font-size: 18px;
	text-align: center;
	line-height: 20px;
}

/* Color the Font Awesome icons based on reaction type - Consolidated */
.wall_reactions_wrapper .wall_reaction_btn[data-type="5"] .like_icon_fa {
	color: #fbbf24; /* Yellow for Wow */
}
.wall_reactions_wrapper .wall_reaction_btn[data-type="6"] .like_icon_fa {
	color: #3b82f6; /* Blue for Sad */
}
.wall_reactions_wrapper .wall_reaction_btn[data-type="7"] .like_icon_fa {
	color: #ef4444; /* Red for Angry */
}
.wall_reactions_wrapper .wall_reaction_btn[data-type="8"] .like_icon_fa {
	color: #f97316; /* Orange for Fire */
}

/* Reaction count styling - Bigger - Theme adaptive */
.wall_reactions_wrapper .reaction_count {
	font-weight: 500;
	font-size: 14px;
	color: inherit;
	margin-left: 2px;
	opacity: 0.9;
}

/* Hover effect */
.wall_reactions_wrapper .wall_reaction_btn:hover,
.wall_reactions_wrapper .wall_reaction_btn.like_count:hover {
	background-color: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.1);
	transform: translateY(-1px);
}

/* Base colors for each reaction type (always visible) - Consolidated */
.wall_reactions_wrapper .wall_reaction_btn[data-type="1"],
.wall_reactions_wrapper .wall_reaction_btn[data-type="6"] {
	background-color: rgba(59, 130, 246, 0.15);
	border-color: rgba(59, 130, 246, 0.3);
}
.wall_reactions_wrapper .wall_reaction_btn[data-type="2"] {
	background-color: rgba(107, 114, 128, 0.15);
	border-color: rgba(107, 114, 128, 0.3);
}
.wall_reactions_wrapper .wall_reaction_btn[data-type="3"] {
	background-color: rgba(236, 72, 153, 0.15);
	border-color: rgba(236, 72, 153, 0.3);
}
.wall_reactions_wrapper .wall_reaction_btn[data-type="4"],
.wall_reactions_wrapper .wall_reaction_btn[data-type="5"] {
	background-color: rgba(251, 191, 36, 0.15);
	border-color: rgba(251, 191, 36, 0.3);
}
.wall_reactions_wrapper .wall_reaction_btn[data-type="7"] {
	background-color: rgba(239, 68, 68, 0.15);
	border-color: rgba(239, 68, 68, 0.3);
}
.wall_reactions_wrapper .wall_reaction_btn[data-type="8"] {
	background-color: rgba(249, 115, 22, 0.15);
	border-color: rgba(249, 115, 22, 0.3);
}

/* Active state - when user has reacted (brighter colors) - Consolidated */
.wall_reactions_wrapper .wall_reaction_btn.liked,
.wall_reactions_wrapper .wall_reaction_btn.liked.like_count,
.wall_reactions_wrapper .wall_reaction_btn.sad,
.wall_reactions_wrapper .wall_reaction_btn.sad.like_count {
	background-color: rgba(59, 130, 246, 0.3);
	border-color: rgba(59, 130, 246, 0.5);
}

.wall_reactions_wrapper .wall_reaction_btn.disliked,
.wall_reactions_wrapper .wall_reaction_btn.disliked.like_count {
	background-color: rgba(107, 114, 128, 0.3);
	border-color: rgba(107, 114, 128, 0.5);
}

.wall_reactions_wrapper .wall_reaction_btn.loved,
.wall_reactions_wrapper .wall_reaction_btn.loved.like_count {
	background-color: rgba(236, 72, 153, 0.3);
	border-color: rgba(236, 72, 153, 0.5);
}

.wall_reactions_wrapper .wall_reaction_btn.funned,
.wall_reactions_wrapper .wall_reaction_btn.funned.like_count,
.wall_reactions_wrapper .wall_reaction_btn.wowed,
.wall_reactions_wrapper .wall_reaction_btn.wowed.like_count {
	background-color: rgba(251, 191, 36, 0.3);
	border-color: rgba(251, 191, 36, 0.5);
}

.wall_reactions_wrapper .wall_reaction_btn.angry,
.wall_reactions_wrapper .wall_reaction_btn.angry.like_count {
	background-color: rgba(239, 68, 68, 0.3);
	border-color: rgba(239, 68, 68, 0.5);
}

.wall_reactions_wrapper .wall_reaction_btn.fire,
.wall_reactions_wrapper .wall_reaction_btn.fire.like_count {
	background-color: rgba(249, 115, 22, 0.3);
	border-color: rgba(249, 115, 22, 0.5);
}

/* Brighter Font Awesome icon colors when user has reacted - Consolidated */
.wall_reactions_wrapper .wall_reaction_btn.wowed .like_icon_fa,
.wall_reactions_wrapper .wall_reaction_btn.wowed.like_count .like_icon_fa {
	color: #fbbf24; /* Bright yellow for Wow */
}
.wall_reactions_wrapper .wall_reaction_btn.sad .like_icon_fa,
.wall_reactions_wrapper .wall_reaction_btn.sad.like_count .like_icon_fa {
	color: #3b82f6; /* Bright blue for Sad */
}
.wall_reactions_wrapper .wall_reaction_btn.angry .like_icon_fa,
.wall_reactions_wrapper .wall_reaction_btn.angry.like_count .like_icon_fa {
	color: #ef4444; /* Bright red for Angry */
}
.wall_reactions_wrapper .wall_reaction_btn.fire .like_icon_fa,
.wall_reactions_wrapper .wall_reaction_btn.fire.like_count .like_icon_fa {
	color: #f97316; /* Bright orange for Fire */
}

/* View likes link and comment count - Right aligned - Consolidated common styles */
.wall_reactions_wrapper .view_likes_link,
.wall_reactions_wrapper .wall_comment_count {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	transition: opacity 0.2s;
}

/* View likes link - Right aligned - Theme adaptive */
.wall_reactions_wrapper .view_likes_link {
	opacity: 0.6;
	font-size: 12px;
	color: inherit;
	padding: 6px 8px;
	justify-content: center;
}

/* Wall comment count - Right aligned after view link - Theme adaptive */
.wall_reactions_wrapper .wall_comment_count {
	gap: 6px;
	font-size: 16px;
	font-weight: 500;
	color: inherit;
	padding: 8px 12px;
	opacity: 0.9;
}

.wall_reactions_wrapper .wall_comment_count:hover {
	opacity: 1;
	transform: scale(1.05);
}

.wall_reactions_wrapper .wall_comment_count .comment_icon {
	width: 24px;
	height: 24px;
	vertical-align: middle;
}

.wall_reactions_wrapper .view_likes_link:hover {
	opacity: 1;
}

/* Wall Likes Modal - Font Awesome icons use same wlike_icon class, just add font-size and colors */
.modal_menu_item[data-z="wow_it"] .wlike_icon,
.modal_menu_item[data-z="sad_it"] .wlike_icon,
.modal_menu_item[data-z="angry_it"] .wlike_icon,
.modal_menu_item[data-z="fire_it"] .wlike_icon {
	font-size: 20px;
	line-height: 20px;
	text-align: center;
}

.modal_menu_item[data-z="wow_it"] .wlike_icon {
	color: #fbbf24; /* Yellow for Wow */
}
.modal_menu_item[data-z="sad_it"] .wlike_icon {
	color: #3b82f6; /* Blue for Sad */
}
.modal_menu_item[data-z="angry_it"] .wlike_icon {
	color: #ef4444; /* Red for Angry */
}
.modal_menu_item[data-z="fire_it"] .wlike_icon {
	color: #f97316; /* Orange for Fire */
}

/* Wall react button - shown when no reactions exist yet or user hasn't reacted */
.wall_reactions_wrapper .wall_react_btn {
	font-size: 13px;
	padding: 2px 6px;
	margin: 0;
	border-radius: 12px;
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.05);
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	line-height: 1.2;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.9);
	min-height: 22px;
	min-width: 22px;
	float: none;
}

.wall_reactions_wrapper .wall_react_btn:hover {
	background-color: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.1);
	transform: translateY(-1px);
}

.wall_reactions_wrapper .wall_react_btn i {
	font-size: 14px;
}

/* Wall reaction popup */
.dsg_wall_reaction_popup {
	position: fixed;
	background: rgba(30, 30, 30, 0.98);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	padding: 8px 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.15);
	z-index: 10000;
	animation: dsgPopupFadeIn 0.2s ease;
}


