/* ==========================================================================
   Author Social Box — Frontend Styles
   Styled to match Bitward Investment — dark, premium, financial
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base card  — dark background, gold accent bar
   -------------------------------------------------------------------------- */
.asw-author-box {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	padding: 36px 32px;
	background: #0d1117;
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: 4px;
	position: relative;
	overflow: hidden;
	font-family: inherit;
	transition: border-color .3s ease, box-shadow .3s ease;
}

/* Gold top accent bar */
.asw-author-box::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, #C1272D 0%, #C1272D 50%, #C1272D 100%);
	border-radius: 4px 4px 0 0;
}

/* Subtle ambient glow on hover */
.asw-author-box:hover {
	border-color: rgba(201, 168, 76, .3);
	box-shadow: 0 0 40px rgba(201, 168, 76, .08);
}

/* --------------------------------------------------------------------------
   2. Layouts
   -------------------------------------------------------------------------- */
.asw-layout-horizontal { flex-direction: row; align-items: flex-start; }
.asw-layout-horizontal .asw-avatar { flex-shrink: 0; }

.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; }

.asw-layout-card { flex-direction: column; align-items: center; text-align: center; padding-top: 48px; }
.asw-layout-card .asw-avatar { margin-bottom: 8px; }
.asw-layout-card .asw-avatar img { width: 120px; height: 120px; box-shadow: 0 0 0 4px rgba(201,168,76,.2), 0 0 30px rgba(201,168,76,.1); }
.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: 2px solid rgba(201, 168, 76, .4);
	transition: border-color .3s ease, transform .3s ease;
}

.asw-avatar-circle .asw-avatar img  { border-radius: 50%; }
.asw-avatar-rounded .asw-avatar img { border-radius: 8px; }
.asw-avatar-square .asw-avatar img  { border-radius: 0; }

.asw-author-box:hover .asw-avatar img {
	border-color: rgba(201, 168, 76, .8);
	transform: scale(1.03);
}

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

.asw-author-name {
	margin: 0 0 6px;
	font-size: 1.1rem;
	font-weight: 600;
	color: #f0e8d0;
	line-height: 1.25;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.asw-author-bio {
	margin: 0 0 18px;
	font-size: .9rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, .5);
}

/* --------------------------------------------------------------------------
   5. Footer row
   -------------------------------------------------------------------------- */
.asw-author-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .07);
}

/* Posts link */
.asw-posts-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: .75rem;
	font-weight: 700;
	color: #c9a84c;
	text-decoration: none;
	letter-spacing: .12em;
	text-transform: uppercase;
	transition: color .2s ease, gap .2s ease;
}

.asw-posts-link:hover { color: #e8c96a; gap: 12px; }
.asw-posts-link i { font-size: .75em; transition: transform .2s ease; }
.asw-posts-link:hover i { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Social icons — shared
   -------------------------------------------------------------------------- */
.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: 34px;
	height: 34px;
	border-radius: 50%;
	text-decoration: none;
	transition: background-color .22s ease, border-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.asw-social-link:hover { transform: translateY(-3px); }
.asw-social-link i { font-size: 14px; line-height: 1; display: block; }

/* --------------------------------------------------------------------------
   7. Social style variants
   -------------------------------------------------------------------------- */

/* Filled */
.asw-social-filled .asw-social-link {
	background-color: rgba(201, 168, 76, .1);
	border: 1px solid rgba(201, 168, 76, .25);
}
.asw-social-filled .asw-social-link i { color: #c9a84c; }
.asw-social-filled .asw-social-link:hover {
	background-color: #c9a84c;
	border-color: #c9a84c;
	box-shadow: 0 4px 20px rgba(201, 168, 76, .35);
}
.asw-social-filled .asw-social-link:hover i { color: #0d1117; }

/* Outline */
.asw-social-outline .asw-social-link {
	background-color: transparent;
	border: 1px solid rgba(201, 168, 76, .35);
}
.asw-social-outline .asw-social-link i { color: #c9a84c; }
.asw-social-outline .asw-social-link:hover {
	background-color: rgba(201, 168, 76, .1);
	border-color: #c9a84c;
	box-shadow: 0 4px 16px rgba(201, 168, 76, .2);
}

/* Flat */
.asw-social-flat .asw-social-link { background: transparent; border: none; width: auto; height: auto; border-radius: 0; }
.asw-social-flat .asw-social-link i { color: rgba(255, 255, 255, .35); }
.asw-social-flat .asw-social-link:hover { background: transparent; box-shadow: none; transform: translateY(-2px); }
.asw-social-flat .asw-social-link:hover i { color: #c9a84c; }

/* Pill */
.asw-social-pill .asw-social-link {
	background-color: rgba(201, 168, 76, .1);
	border: 1px solid rgba(201, 168, 76, .25);
	border-radius: 6px;
}
.asw-social-pill .asw-social-link i { color: #c9a84c; }
.asw-social-pill .asw-social-link:hover {
	background-color: #c9a84c;
	border-color: #c9a84c;
	box-shadow: 0 4px 20px rgba(201, 168, 76, .3);
}
.asw-social-pill .asw-social-link:hover i { color: #0d1117; }

/* --------------------------------------------------------------------------
   8. Brand color mode
   -------------------------------------------------------------------------- */
.asw-brand-colors .asw-social-link:hover {
	background-color: var(--asw-brand, #c9a84c) !important;
	border-color: var(--asw-brand, #c9a84c) !important;
	box-shadow: 0 4px 20px rgba(0,0,0,.4) !important;
}
.asw-brand-colors .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: 28px 20px; }
	.asw-author-footer { justify-content: center; }
	.asw-social-links { justify-content: center; }
}
