/* =========================================================
   AnteEnti Telugu Q&A UI

   File:
   assets/css/components/profile-card.css

   Component:
   Profile Card Component v1

   Explanation:
   This file controls the visual styling for the reusable Profile Card
   component rendered from:

   includes/components/profile-card.php

   Current flow:

   BuddyPress profile page
   ↓
   includes/buddypress-profile.php
   ↓
   Profile Card Component
   ↓
   Profile Card Connector
   ↓
   BuddyPress + WordPress + AnsPress data

   Why this file exists:
   Earlier, the profile hero styles lived mainly inside:

   assets/css/bp-profile.css

   That file also controls BuddyPress layout, navigation, profile tabs,
   activity areas, and other page-level styling.

   Moving the actual Profile Card styles here makes the component easier
   to reuse and maintain.

   This keeps the project moving toward:

   Pages
   ↓
   Components
   ↓
   Templates
   ↓
   Connectors
   ↓
   Data Sources
========================================================= */


/* ---------------------------------------------------------
   Profile Card Base
--------------------------------------------------------- */

body.anteenti-qa-ui .anteenti-profile-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 18px;
	background:
		radial-gradient(circle at top left, rgba(255, 201, 128, 0.28), transparent 34%),
		linear-gradient(135deg, #fff8ee 0%, #ffffff 52%, #fff4e6 100%);
	border: 1px solid var(--anteenti-color-border);
	border-radius: 26px;
	box-shadow: 0 14px 34px rgba(31, 24, 18, 0.08);
}

body.anteenti-qa-ui .anteenti-profile-pattern {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		radial-gradient(circle, rgba(122, 31, 43, 0.08) 1px, transparent 1px);
	background-size: 18px 18px;
	opacity: 0.45;
}

body.anteenti-qa-ui .anteenti-profile-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 28px 28px 20px;
}


/* ---------------------------------------------------------
   Avatar
--------------------------------------------------------- */

body.anteenti-qa-ui .anteenti-profile-avatar-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

body.anteenti-qa-ui .anteenti-profile-avatar-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 112px;
	border-radius: 50%;
	text-decoration: none;
}

body.anteenti-qa-ui .anteenti-profile-avatar,
body.anteenti-qa-ui .anteenti-profile-avatar img {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #ffffff;
	box-shadow: 0 8px 20px rgba(31, 24, 18, 0.16);
	background: #ffffff;
}


/* ---------------------------------------------------------
   Info
--------------------------------------------------------- */

body.anteenti-qa-ui .anteenti-profile-info {
	min-width: 0;
}

body.anteenti-qa-ui .anteenti-profile-name {
	margin: 0;
	color: var(--anteenti-color-text);
	font-family: var(--anteenti-font-main);
	font-size: 1.75rem;
	font-weight: 900;
	line-height: 1.16;
	letter-spacing: -0.02em;
}

body.anteenti-qa-ui .anteenti-profile-username {
	margin-top: 4px;
	color: var(--anteenti-color-muted);
	font-family: var(--anteenti-font-main);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
}

body.anteenti-qa-ui .anteenti-profile-bio {
	max-width: 720px;
	margin: 10px 0 0;
	color: var(--anteenti-color-text-soft);
	font-family: var(--anteenti-font-main);
	font-size: 0.96rem;
	font-weight: 500;
	line-height: 1.65;
}

body.anteenti-qa-ui .anteenti-profile-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

body.anteenti-qa-ui .anteenti-profile-meta span {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 5px 10px;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--anteenti-color-border);
	border-radius: 999px;
	color: var(--anteenti-color-muted);
	font-family: var(--anteenti-font-main);
	font-size: 0.78rem;
	font-weight: 750;
	line-height: 1.2;
}


/* ---------------------------------------------------------
   Actions
--------------------------------------------------------- */

body.anteenti-qa-ui .anteenti-profile-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
}

body.anteenti-qa-ui .anteenti-profile-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 16px;
	border-radius: 999px;
	font-family: var(--anteenti-font-main);
	font-size: 0.86rem;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

body.anteenti-qa-ui .anteenti-profile-btn-primary {
	background: var(--anteenti-color-action);
	border: 1px solid var(--anteenti-color-action);
	color: #ffffff;
	box-shadow: 0 6px 14px rgba(37, 127, 76, 0.18);
}

body.anteenti-qa-ui .anteenti-profile-btn-primary:hover {
	background: var(--anteenti-color-action-dark);
	border-color: var(--anteenti-color-action-dark);
	color: #ffffff;
	text-decoration: none;
}

body.anteenti-qa-ui .anteenti-profile-btn-outline {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--anteenti-color-border);
	color: var(--anteenti-color-primary);
}

body.anteenti-qa-ui .anteenti-profile-btn-outline:hover {
	background: var(--anteenti-color-primary-soft);
	border-color: rgba(122, 31, 43, 0.18);
	color: var(--anteenti-color-primary-dark);
	text-decoration: none;
}


/* ---------------------------------------------------------
   Stats
--------------------------------------------------------- */

body.anteenti-qa-ui .anteenti-profile-stats {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	padding: 0 28px 18px;
}

body.anteenti-qa-ui .anteenti-profile-stat {
	padding: 14px 12px;
	background: var(--anteenti-color-bg-soft);
	border: 1px solid var(--anteenti-color-border);
	border-radius: 16px;
	text-align: center;
}

body.anteenti-qa-ui .anteenti-profile-stat strong {
	display: block;
	color: var(--anteenti-color-text);
	font-family: var(--anteenti-font-main);
	font-size: 1.12rem;
	font-weight: 900;
	line-height: 1.1;
}

body.anteenti-qa-ui .anteenti-profile-stat span {
	display: block;
	margin-top: 4px;
	color: var(--anteenti-color-muted);
	font-family: var(--anteenti-font-main);
	font-size: 0.78rem;
	font-weight: 750;
	line-height: 1.2;
}


/* ---------------------------------------------------------
   Chips
--------------------------------------------------------- */

body.anteenti-qa-ui .anteenti-profile-chips {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 28px 24px;
}

body.anteenti-qa-ui .anteenti-profile-chips span {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 6px 11px;
	background: rgba(122, 31, 43, 0.07);
	border: 1px solid rgba(122, 31, 43, 0.12);
	border-radius: 999px;
	color: var(--anteenti-color-primary-dark);
	font-family: var(--anteenti-font-main);
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1.2;
}


/* ---------------------------------------------------------
   Tablet
--------------------------------------------------------- */

@media (max-width: 980px) {
	body.anteenti-qa-ui .anteenti-profile-inner {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: flex-start;
	}

	body.anteenti-qa-ui .anteenti-profile-actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
		padding-left: 130px;
	}

	body.anteenti-qa-ui .anteenti-profile-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 768px) {
	body.anteenti-qa-ui .anteenti-profile-hero {
		margin-bottom: 16px;
		border-radius: 22px;
	}

	body.anteenti-qa-ui .anteenti-profile-inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 12px;
		padding: 24px 16px 16px;
		text-align: center;
	}

	body.anteenti-qa-ui .anteenti-profile-avatar-link,
	body.anteenti-qa-ui .anteenti-profile-avatar,
	body.anteenti-qa-ui .anteenti-profile-avatar img {
		width: 96px;
		height: 96px;
	}

	body.anteenti-qa-ui .anteenti-profile-name {
		font-size: 1.42rem;
	}

	body.anteenti-qa-ui .anteenti-profile-username {
		font-size: 0.86rem;
	}

	body.anteenti-qa-ui .anteenti-profile-bio {
		font-size: 0.9rem;
		line-height: 1.6;
	}

	body.anteenti-qa-ui .anteenti-profile-meta {
		justify-content: center;
		max-width: 100%;
	}

	body.anteenti-qa-ui .anteenti-profile-actions {
		justify-content: center;
		width: 100%;
		padding-left: 0;
	}

	body.anteenti-qa-ui .anteenti-profile-btn {
		min-height: 36px;
		padding: 8px 14px;
		font-size: 0.82rem;
	}

	body.anteenti-qa-ui .anteenti-profile-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		padding: 0 16px 16px;
	}

	body.anteenti-qa-ui .anteenti-profile-stat {
		padding: 12px 8px;
		border-radius: 14px;
	}

	body.anteenti-qa-ui .anteenti-profile-stat strong {
		font-size: 1rem;
	}

	body.anteenti-qa-ui .anteenti-profile-stat span {
		font-size: 0.72rem;
	}

	body.anteenti-qa-ui .anteenti-profile-chips {
		justify-content: center;
		padding: 0 16px 18px;
	}

	body.anteenti-qa-ui .anteenti-profile-chips span {
		min-height: 28px;
		padding: 5px 9px;
		font-size: 0.74rem;
	}
}


/* ---------------------------------------------------------
   Very Small Mobile
--------------------------------------------------------- */

@media (max-width: 380px) {
	body.anteenti-qa-ui .anteenti-profile-stats {
		grid-template-columns: 1fr 1fr;
	}

	body.anteenti-qa-ui .anteenti-profile-name {
		font-size: 1.28rem;
	}

	body.anteenti-qa-ui .anteenti-profile-bio {
		font-size: 0.86rem;
	}
}