/* ==========================================================================
   Author Social Box — Frontend Styles
   Author Social Widget for Elementor  v1.0.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base card
   -------------------------------------------------------------------------- */
.asw-author-box {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	padding: 32px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
	position: relative;
	overflow: hidden;
	font-family: inherit;
	transition: box-shadow .25s ease;
}

.asw-author-box::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, #6c63ff 0%, #a89cff 100%);
	border-radius: 16px 16px 0 0;
}

.asw-author-box:hover {
	box-shadow: 0 8px 40px rgba(108, 99, 255, .15);
}

/* --------------------------------------------------------------------------
   2. Layouts
   -------------------------------------------------------------------------- */

/* -- Horizontal (default) ------------------------------------------------ */
.asw-layout-horizontal {
	flex-direction: row;
	align-items: flex-start;
}

.asw-layout-horizontal .asw-avatar {
	flex-shrink: 0;
}

/* -- Vertical (centered) ------------------------------------------------- */
.asw-layout-vertical {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.asw-layout-vertical .asw-author-footer {
	justify-content: center;
}

.asw-layout-vertical .asw-social-links {
	justify-content: center;
}

/* -- Card (large avatar, decorative) ------------------------------------- */
.asw-layout-card {
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-top: 48px;
}

.asw-layout-card .asw-avatar {
	margin-bottom: 4px;
}

.asw-layout-card .asw-avatar img {
	width: 120px;
	height: 120px;
	box-shadow: 0 0 0 6px rgba(108, 99, 255, .15);
}

.asw-layout-card .asw-author-footer {
	justify-content: center;
}

.asw-layout-card .asw-social-links {
	justify-content: center;
}

/* --------------------------------------------------------------------------
   3. Avatar
   -------------------------------------------------------------------------- */
.asw-avatar {
	display: block;
}

.asw-avatar img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border: 3px solid #f0eeff;
	transition: transform .3s ease, box-shadow .3s ease;
}

/* Shapes */
.asw-avatar-circle .asw-avatar img {
	border-radius: 50%;
}

.asw-avatar-rounded .asw-avatar img {
	border-radius: 12px;
}

.asw-avatar-square .asw-avatar img {
	border-radius: 0;
}

.asw-author-box:hover .asw-avatar img {
	transform: scale(1.04);
	box-shadow: 0 6px 20px rgba(108, 99, 255, .25);
}

/* --------------------------------------------------------------------------
   4. Content area
   -------------------------------------------------------------------------- */
.asw-author-content {
	flex: 1;
	min-width: 0;
}

.asw-author-name {
	margin: 0 0 6px;
	font-size: 1.2rem;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.25;
	letter-spacing: -.01em;
}

.asw-author-bio {
	margin: 0 0 16px;
	font-size: .93rem;
	line-height: 1.65;
	color: #555577;
}

/* --------------------------------------------------------------------------
   5. Footer row  (posts link + social icons)
   -------------------------------------------------------------------------- */
.asw-author-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: 4px;
}

/* Posts link */
.asw-posts-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .85rem;
	font-weight: 600;
	color: #6c63ff;
	text-decoration: none;
	letter-spacing: .02em;
	text-transform: uppercase;
	transition: color .2s ease, gap .2s ease;
}

.asw-posts-link:hover {
	color: #4a42cc;
	gap: 10px;
}

.asw-posts-link i {
	font-size: .75em;
	transition: transform .2s ease;
}

.asw-posts-link:hover i {
	transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   6. Social icons — shared base
   -------------------------------------------------------------------------- */
.asw-social-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.asw-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	text-decoration: none;
	transition:
		background-color .22s ease,
		color .22s ease,
		transform .22s ease,
		box-shadow .22s ease,
		border-color .22s ease;
}

.asw-social-link:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 18px rgba(108, 99, 255, .3);
}

.asw-social-link i {
	font-size: 16px;
	line-height: 1;
	display: block;
}

/* --------------------------------------------------------------------------
   7. Social styles
   -------------------------------------------------------------------------- */

/* -- Filled (default) ---------------------------------------------------- */
.asw-social-filled .asw-social-link {
	background-color: #6c63ff;
	color: #ffffff;
}

.asw-social-filled .asw-social-link i {
	color: #ffffff;
}

.asw-social-filled .asw-social-link:hover {
	background-color: #4a42cc;
}

/* -- Outline ------------------------------------------------------------- */
.asw-social-outline .asw-social-link {
	background-color: transparent;
	border: 2px solid #6c63ff;
	color: #6c63ff;
}

.asw-social-outline .asw-social-link i {
	color: #6c63ff;
}

.asw-social-outline .asw-social-link:hover {
	background-color: #6c63ff;
	color: #ffffff;
}

.asw-social-outline .asw-social-link:hover i {
	color: #ffffff;
}

/* -- Flat ---------------------------------------------------------------- */
.asw-social-flat .asw-social-link {
	background-color: transparent;
	color: #888;
	width: auto;
	height: auto;
	border-radius: 0;
}

.asw-social-flat .asw-social-link i {
	color: #888;
}

.asw-social-flat .asw-social-link:hover {
	background-color: transparent;
	box-shadow: none;
	transform: translateY(-2px);
	color: #6c63ff;
}

.asw-social-flat .asw-social-link:hover i {
	color: #6c63ff;
}

/* -- Pill / Rounded Square ----------------------------------------------- */
.asw-social-pill .asw-social-link {
	background-color: #6c63ff;
	color: #ffffff;
	border-radius: 8px;
}

.asw-social-pill .asw-social-link i {
	color: #ffffff;
}

.asw-social-pill .asw-social-link:hover {
	background-color: #4a42cc;
}

/* --------------------------------------------------------------------------
   8. Brand color mode  (--asw-brand CSS var set inline per icon)
   -------------------------------------------------------------------------- */
.asw-brand-colors .asw-social-link:hover {
	background-color: var(--asw-brand, #6c63ff) !important;
	border-color: var(--asw-brand, #6c63ff) !important;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--asw-brand, #6c63ff) 40%, transparent);
}

.asw-brand-colors.asw-social-outline .asw-social-link:hover i {
	color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
	.asw-author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 24px 20px;
	}

	.asw-author-box::before {
		border-radius: 16px 16px 0 0;
	}

	.asw-author-footer {
		justify-content: center;
	}

	.asw-social-links {
		justify-content: center;
	}
}

/* --------------------------------------------------------------------------
   10. Elementor editor — no-author placeholder
   -------------------------------------------------------------------------- */
.elementor-editor-active .asw-author-box {
	min-height: 80px;
}
