/**
 * PN-RED C-SEO Frontend Stylesheet
 * Breadcrumbs, Public Apps Hub Grid, and Sitelinks Links Widget.
 */

/* ==========================================================================
   1. Breadcrumbs
   ========================================================================== */
.c-seo-breadcrumbs {
	margin: 12px 0 20px 0;
	padding: 8px 14px;
	background: #f8fafc;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	font-size: 13px;
	line-height: 1.4;
}

.c-seo-bc-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 6px;
}

.c-seo-bc-item {
	display: inline-flex;
	align-items: center;
	color: #64748b;
}

.c-seo-bc-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #b91c1c;
	text-decoration: none;
	transition: color 0.2s ease;
}

.c-seo-bc-link:hover {
	color: #991b1b;
	text-decoration: underline;
}

.c-seo-bc-sep {
	margin: 0 4px;
	color: #94a3b8;
	font-size: 14px;
	line-height: 1;
}

.c-seo-bc-current {
	color: #334155;
	font-weight: 600;
	max-width: 320px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ==========================================================================
   2. Sitelinks Widget
   ========================================================================== */
.widget_pnred_seo_links .c-seo-widget-links-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget_pnred_seo_links .c-seo-widget-item {
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px dashed #e2e8f0;
}

.widget_pnred_seo_links .c-seo-widget-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.widget_pnred_seo_links .c-seo-widget-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	text-decoration: none;
	color: #1e293b;
	font-size: 13px;
	transition: all 0.2s;
}

.widget_pnred_seo_links .c-seo-widget-link:hover {
	color: #b91c1c;
	transform: translateX(3px);
}

.widget_pnred_seo_links .c-seo-item-title {
	flex: 1;
	font-weight: 500;
}

.widget_pnred_seo_links .c-seo-badge {
	font-size: 10px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
	white-space: nowrap;
}

.widget_pnred_seo_links .badge-profil { background: #f3e8ff; color: #7e22ce; }
.widget_pnred_seo_links .badge-layanan { background: #dbeafe; color: #1d4ed8; }
.widget_pnred_seo_links .badge-informasi { background: #ffedd5; color: #c2410c; }
.widget_pnred_seo_links .badge-aplikasi { background: #dcfce7; color: #15803d; }

/* ==========================================================================
   3. Public Applications Hub Grid
   ========================================================================== */
.c-seo-apps-grid {
	display: grid;
	gap: 20px;
	margin: 20px 0 30px 0;
}

.c-seo-cols-2 { grid-template-columns: repeat(2, 1fr); }
.c-seo-cols-3 { grid-template-columns: repeat(3, 1fr); }
.c-seo-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.c-seo-cols-3, .c-seo-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.c-seo-cols-2, .c-seo-cols-3, .c-seo-cols-4 { grid-template-columns: 1fr; }
}

.c-seo-app-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 4px rgba(0,0,0,0.03);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
	position: relative;
}

.c-seo-app-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.07);
	border-color: #fca5a5;
}

.c-seo-app-icon {
	width: 50px;
	height: 50px;
	background: #fee2e2;
	color: #b91c1c;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.c-seo-app-icon .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
}

.c-seo-app-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.c-seo-app-title a {
	color: #0f172a;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.c-seo-app-title a:hover {
	color: #b91c1c;
}

.c-seo-ext-icon {
	font-size: 14px;
	width: 14px;
	height: 14px;
	color: #94a3b8;
}

.c-seo-app-desc {
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
	margin: 0 0 18px 0;
	flex: 1;
}

.c-seo-app-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid #f1f5f9;
}

.c-seo-app-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #b91c1c;
	color: #ffffff !important;
	padding: 7px 14px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.c-seo-app-btn:hover {
	background: #991b1b;
}

.c-seo-app-btn .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.c-seo-app-sublink {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #64748b;
	font-size: 12px;
	text-decoration: none;
}

.c-seo-app-sublink:hover {
	color: #0f172a;
	text-decoration: underline;
}
