/*
------------------------------------------------------------
YAWC Frontend Styles
------------------------------------------------------------
Safe for SWELL
Scoped under .yawc-
------------------------------------------------------------
*/

.yawc-hidden {
	display: none !important;
}

.yawc-text-muted {
	color: #888;
}

.yawc-link {
	text-decoration: none;
}

.yawc-link:hover {
	text-decoration: underline;
}


/* --------------------------------------------------
Auto Context Wrapper
-------------------------------------------------- */

.yawc-auto-context {
	margin-bottom: 28px;
}


/* --------------------------------------------------
Post Context Block
-------------------------------------------------- */

.yawc-post-context-block {
	display: flex;
	align-items: center;
	gap: 10px;

	font-size: 13px;
	color: #666;

	padding: 8px 0;
}

.yawc-post-context-block a {
	color: inherit;
	text-decoration: none;
}

.yawc-post-context-block a:hover {
	text-decoration: underline;
}

.yawc-context-icon {
	font-size: 16px;
	line-height: 1;
}

.yawc-context-label {
	font-weight: 600;
}

.yawc-context-value {
	opacity: .9;
}


/* --------------------------------------------------
Author Organization Block
-------------------------------------------------- */

.yawc-post-author-org-block {
	display: flex;
	align-items: center;
	gap: 10px;

	padding: 10px 0;
	font-size: 13px;
}

.yawc-post-author-org-icon {
	font-size: 18px;
}

.yawc-post-author-org-name {
	font-weight: 600;
}

.yawc-post-author-org-link {
	text-decoration: none;
}

.yawc-post-author-org-link:hover {
	text-decoration: underline;
}


/* --------------------------------------------------
Organization HERO
-------------------------------------------------- */

.yawc-org-hero {
	border: 1px solid #eee;
	border-radius: 10px;

	padding: 24px;
	margin: 40px 0;

	background: #fafafa;
}

.yawc-org-hero-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.yawc-org-hero-icon {
	font-size: 32px;
}

.yawc-org-hero-title {
	font-size: 22px;
	font-weight: 700;
}

.yawc-org-hero-description {
	margin-top: 6px;
	font-size: 14px;
	color: #666;
}


/* --------------------------------------------------
Organization Badges
-------------------------------------------------- */

.yawc-org-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;

	margin-top: 8px;
}

.yawc-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;

	padding: 4px 8px;
	border-radius: 20px;

	font-size: 12px;

	background: #f0f0f0;
}

.yawc-badge-icon {
	font-size: 12px;
}


/* --------------------------------------------------
Organization Members
-------------------------------------------------- */

.yawc-org-members {
	margin-top: 18px;
}

.yawc-org-members-title {
	font-weight: 600;
	font-size: 14px;

	margin-bottom: 8px;
}

.yawc-org-member-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.yawc-org-member-card {
	display: flex;
	align-items: center;
	gap: 8px;

	padding: 6px 10px;

	border-radius: 6px;
	background: #fff;
	border: 1px solid #eee;

	font-size: 13px;
}

.yawc-org-member-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}


/* --------------------------------------------------
Organization Activity
-------------------------------------------------- */

.yawc-org-activity {
	margin-top: 20px;
}

.yawc-org-activity-title {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
}

.yawc-activity-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.yawc-activity-item {
	display: flex;
	align-items: center;
	gap: 8px;

	font-size: 13px;
}

.yawc-activity-time {
	color: #999;
	font-size: 12px;
}


/* --------------------------------------------------
Feed Cards
-------------------------------------------------- */

.yawc-feed {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.yawc-card {
	border: 1px solid #eee;
	border-radius: 10px;

	padding: 16px;
	background: #fff;
}

.yawc-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.yawc-card-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.yawc-card-author {
	font-weight: 600;
	font-size: 14px;
}

.yawc-card-meta {
	font-size: 12px;
	color: #888;
}

.yawc-card-body {
	font-size: 14px;
	line-height: 1.6;
}

.yawc-card-footer {
	margin-top: 12px;
	font-size: 13px;
	color: #666;
}


/* --------------------------------------------------
Cards Grid
-------------------------------------------------- */

.yawc-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}


/* --------------------------------------------------
Responsive
-------------------------------------------------- */

@media (max-width: 640px) {

	.yawc-org-hero {
		padding: 18px;
	}

	.yawc-org-hero-title {
		font-size: 18px;
	}

	.yawc-card {
		padding: 14px;
	}

}