/* Ultimate Blog Social Features Styles */

/* Social buttons container */
.social-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0;
	padding: 15px;
	background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
	backdrop-filter: blur(15px);
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Like/Dislike buttons */
.like-buttons {
	display: flex;
	align-items: center;
	gap: 8px;
}

.like-button, .dislike-button {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 15px;
	border: none;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	position: relative;
	overflow: hidden;
}

.like-button {
	background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.dislike-button {
	background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.like-button:hover, .dislike-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
	text-decoration: none;
	color: white;
}

.like-button.active {
	background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
	box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.dislike-button.active {
	background: linear-gradient(135deg, #C62828 0%, #B71C1C 100%);
	box-shadow: 0 4px 15px rgba(198, 40, 40, 0.4);
}

.like-button::before, .dislike-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s;
}

.like-button:hover::before, .dislike-button:hover::before {
	left: 100%;
}

/* Subscribe button */
.subscribe-button {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 15px;
	border: none;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
	position: relative;
	overflow: hidden;
}

.subscribe-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
	text-decoration: none;
	color: white;
}

.subscribe-button.subscribed {
	background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
	box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.subscribe-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s;
}

.subscribe-button:hover::before {
	left: 100%;
}

/* Favorite button */
.favorite-button {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 15px;
	border: none;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
	position: relative;
	overflow: hidden;
}

.favorite-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
	text-decoration: none;
	color: white;
}

.favorite-button.favorited {
	background: linear-gradient(135deg, #FF5722 0%, #D84315 100%);
	box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.favorite-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s;
}

.favorite-button:hover::before {
	left: 100%;
}

/* Share buttons */
.share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.share-button {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 12px;
	border: none;
	border-radius: 15px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	color: white;
	position: relative;
	overflow: hidden;
}

.share-button.facebook {
	background: linear-gradient(135deg, #3B5998 0%, #2E4A7B 100%);
	box-shadow: 0 2px 8px rgba(59, 89, 152, 0.3);
}

.share-button.twitter {
	background: linear-gradient(135deg, #1DA1F2 0%, #0D8BD9 100%);
	box-shadow: 0 2px 8px rgba(29, 161, 242, 0.3);
}

.share-button.vk {
	background: linear-gradient(135deg, #4C75A3 0%, #3A5A7A 100%);
	box-shadow: 0 2px 8px rgba(76, 117, 163, 0.3);
}

.share-button.telegram {
	background: linear-gradient(135deg, #0088CC 0%, #006699 100%);
	box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.share-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
	text-decoration: none;
	color: white;
}

.share-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s;
}

.share-button:hover::before {
	left: 100%;
}

/* Social stats */
.social-stats {
	display: flex;
	align-items: center;
	gap: 15px;
	margin: 15px 0;
	padding: 10px 15px;
	background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 100%);
	backdrop-filter: blur(10px);
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-stat {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
	color: #666;
}

.social-stat .icon {
	font-size: 16px;
}

.social-stat.likes .icon { color: #4CAF50; }
.social-stat.dislikes .icon { color: #f44336; }
.social-stat.favorites .icon { color: #E91E63; }
.social-stat.shares .icon { color: #2196F3; }

/* Author profile social info */
.author-social-info {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 15px 0;
	padding: 15px;
	background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
	backdrop-filter: blur(15px);
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.author-stat {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #333;
}

.author-stat .icon {
	font-size: 18px;
	color: #667eea;
}

/* Loading states */
.social-button.loading {
	opacity: 0.7;
	pointer-events: none;
}

.social-button.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top: 2px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
	.social-buttons {
		flex-direction: column;
		gap: 8px;
		padding: 10px;
	}
	
	.like-buttons {
		justify-content: center;
	}
	
	.share-buttons {
		justify-content: center;
	}
	
	.social-stats {
		flex-wrap: wrap;
		gap: 10px;
		justify-content: center;
	}
	
	.author-social-info {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.like-button, .dislike-button, .subscribe-button, .favorite-button {
		padding: 6px 12px;
		font-size: 12px;
	}
	
	.share-button {
		padding: 6px 10px;
		font-size: 11px;
	}
	
	.social-stats {
		padding: 8px 10px;
	}
	
	.author-social-info {
		padding: 10px;
	}
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
	.social-buttons {
		background: linear-gradient(135deg, rgba(45, 55, 72, 0.9) 0%, rgba(45, 55, 72, 0.7) 100%);
	}
	
	.social-stats {
		background: linear-gradient(135deg, rgba(45, 55, 72, 0.8) 0%, rgba(45, 55, 72, 0.6) 100%);
	}
	
	.social-stat {
		color: #e2e8f0;
	}
	
	.author-social-info {
		background: linear-gradient(135deg, rgba(45, 55, 72, 0.9) 0%, rgba(45, 55, 72, 0.7) 100%);
	}
	
	.author-stat {
		color: #e2e8f0;
	}
}



