/**
 * Cirrusly Weather Theme - Social Share Buttons
 *
 * @package Cirrusly_Theme
 */

/* ==========================================================================
   Social Share Container
   ========================================================================== */

.cirrusly-social-share {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.cirrusly-social-share__label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--gray-600);
}

.cirrusly-social-share__buttons {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */

.cirrusly-social-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--gray-600);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.cirrusly-social-share__btn:hover,
.cirrusly-social-share__btn:focus {
	border-color: transparent;
	color: var(--wp--preset--color--white);
}

.cirrusly-social-share__btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(9, 69, 200, 0.2);
}

.cirrusly-social-share__btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* Platform-specific colors */
.cirrusly-social-share__btn--facebook:hover,
.cirrusly-social-share__btn--facebook:focus {
	background: #1877f2;
	border-color: #1877f2;
}

.cirrusly-social-share__btn--twitter:hover,
.cirrusly-social-share__btn--twitter:focus {
	background: #000000;
	border-color: #000000;
}

.cirrusly-social-share__btn--pinterest:hover,
.cirrusly-social-share__btn--pinterest:focus {
	background: #e60023;
	border-color: #e60023;
}

.cirrusly-social-share__btn--email:hover,
.cirrusly-social-share__btn--email:focus {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}

.cirrusly-social-share__btn--copy:hover,
.cirrusly-social-share__btn--copy:focus {
	background: var(--wp--preset--color--success);
	border-color: var(--wp--preset--color--success);
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 600px) {
	.cirrusly-social-share {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.cirrusly-social-share__btn {
		width: 36px;
		height: 36px;
	}

	.cirrusly-social-share__btn svg {
		width: 16px;
		height: 16px;
	}
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.cirrusly-social-share__btn {
		transition: none;
	}
}
