:root {
    --st-max-width: 1000px;
    --st-grid-min: 280px;
    --st-grid-gap: 20px;
    --st-pad-card: 24px;
    --st-bg: #f8fafc;
    --st-panel: #ffffff;
    --st-text-primary: #1e293b;
    --st-text-secondary: #64748b;
    --st-accent: #6366f1;
    --st-border: #e2e8f0;
    --st-border-hover: #cbd5e1;
    --st-shadow: 0 1px 3px rgba(0,0,0,0.05);
    --st-shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

/* Subnav icons: ensure Font Awesome glyphs render for st-bp-subnav markup */
body.buddypress #subnav.item-list-tabs ul > li > a::before,
body.buddypress .st-bp-subnav ul > li > a::before {
	display: inline-flex;
	width: 1.2em;
	margin-right: 6px;
	justify-content: center;
	align-items: center;
	font: var(--fa-font-solid, normal 900 16px/1 "Font Awesome 6 Free");
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	content: '';
}

body.buddypress #subnav.item-list-tabs li#dashboard-personal-li > a::before,
body.buddypress .st-bp-subnav li#dashboard-personal-li > a::before {
	content: "\f015"; /* home (dashboard) */
}

body.buddypress #subnav.item-list-tabs li#create-post-personal-li > a::before,
body.buddypress .st-bp-subnav li#create-post-personal-li > a::before {
	content: "\f067"; /* plus (create post) */
}

/* Mobile helper: keep the toggle centered and show "More" inside its background */
@media (max-width: 480px) {
	#buddypress #item-nav .item-list-tabs li.tabdrop > a.dropdown-toggle,
	#buddypress #subnav.item-list-tabs li.tabdrop > a.dropdown-toggle,
	body.buddypress .st-bp-subnav li.tabdrop > a.dropdown-toggle {
		text-align: center;
	}

	#buddypress #item-nav .item-list-tabs li.tabdrop > a.dropdown-toggle::before,
	#buddypress #subnav.item-list-tabs li.tabdrop > a.dropdown-toggle::before,
	body.buddypress .st-bp-subnav li.tabdrop > a.dropdown-toggle::before {
		content: "\e97c\A MORE";
		display: inline-block;
		white-space: pre;
		text-align: center;
		font-family: "fontello", "Helvetica Neue", Arial, sans-serif;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.2;
		letter-spacing: 0.4px;
		padding: 8px 10px 7px;
	}
}

.st-create-scope {
    background: var(--st-bg);
    color: var(--st-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 40px 20px;
}

.st-create-container {
    max-width: var(--st-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.st-create-header {
    text-align: center;
    margin-bottom: 48px;
}

.st-create-heading {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
}

.st-create-subheading {
    color: var(--st-text-secondary);
    font-size: 16px;
    margin: 0;
}

.st-create-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--st-grid-min), 1fr));
    gap: var(--st-grid-gap);
    list-style: none;
    padding: 0;
    margin: 0;
}

.st-create-card {
    background-color: var(--st-panel);
    border: 1px solid var(--st-border);
    border-radius: 16px;
    padding: var(--st-pad-card);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-shadow: var(--st-shadow);
    color: inherit;
}

.st-create-card:hover {
    transform: translateY(-4px);
    background-color: var(--st-panel);
    border-color: var(--st-border-hover);
    box-shadow: var(--st-shadow-hover);
}

.st-create-card:active {
    transform: translateY(-1px);
}

.st-create-card:hover .st-create-icon {
    transform: scale(1.1);
}

.st-create-icon__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.st-create-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.st-create-card[data-type="exposure"] .st-create-icon { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.st-create-card[data-type="story"]    .st-create-icon { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.st-create-card[data-type="gallery"]  .st-create-icon { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.st-create-card[data-type="poll"]     .st-create-icon { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.st-create-card[data-type="link"]     .st-create-icon { background: #f5f3ff; color: #7c3aed; border-color: #ddd6fe; }
.st-create-card[data-type="blog"]     .st-create-icon { background: #fdf2f8; color: #db2777; border-color: #fbcfe8; }

.st-create-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--st-text-primary);
    margin: 0 0 8px 0;
}

.st-create-desc {
    font-size: 14px;
    color: var(--st-text-secondary);
    line-height: 1.5;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.st-create-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    max-width: max-content;
}

.st-create-card.selected {
    border-color: var(--st-accent);
    background-color: #eef2ff;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Hero single-card adjustments (preview) */
.st-create-card.hero-mode {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    align-items: flex-start;
    text-align: left;
}
.st-create-card.hero-mode .st-create-icon { width: 56px; height: 56px; font-size: 28px; margin-bottom: 14px; }
.st-create-card.hero-mode .st-create-title { font-size: 22px; margin-bottom: 6px; }
.st-create-card.hero-mode .st-create-desc { font-size: 15px; max-width: 92%; margin-bottom: 14px; }
.st-create-card.hero-mode .st-create-pill { margin-top: 6px; }

@media (max-width: 768px) {
    :root {
        --st-pad-card: 22px;
        --st-grid-gap: 16px;
    }
    .st-create-heading { font-size: 28px; }
}

@media (max-width: 480px) {
    .st-create-grid { grid-template-columns: 1fr; }
    .st-create-card { padding: 18px; }
    .st-create-heading { font-size: 24px; }
    .st-create-header { margin-bottom: 32px; }
}

/* BuddyPress dashboard subnav (SafeTick style) */
/* Desktop-only: on mobile/tablet we fall back to BuddyPress/theme defaults. */
@media (min-width: 769px) {
	body.buddypress #item-body #subnav.item-list-tabs,
	body.buddypress #subnav.item-list-tabs,
	body.buddypress .st-bp-subnav {
		margin: 0 0 16px !important;
		background: #0f172a !important;
		border: 1px solid #1f2937 !important;
		border-radius: 12px;
		padding: 6px;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
		overflow: visible !important;
	}

	body.buddypress #item-body #subnav.item-list-tabs ul,
	body.buddypress #subnav.item-list-tabs ul,
	body.buddypress .st-bp-subnav ul {
		display: flex !important;
		gap: 6px;
		flex-wrap: wrap;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none;
	}

	body.buddypress #subnav.item-list-tabs li,
	body.buddypress .st-bp-subnav li {
		margin: 0 !important;
		padding: 0 !important;
		float: none !important;
		clear: none !important;
		list-style: none;
	}

	body.buddypress #item-body #subnav.item-list-tabs li a,
	body.buddypress #subnav.item-list-tabs li a,
	body.buddypress .st-bp-subnav li a {
		display: inline-flex;
		align-items: center;
		padding: 10px 14px;
		border-radius: 10px;
		font-weight: 700;
		font-size: 14px;
		text-decoration: none;
		color: #e5e7eb;
		border: 1px solid transparent;
		background: rgba(255, 255, 255, 0.04);
		transition: all 0.15s ease;
		text-transform: uppercase;
		letter-spacing: 0.2px;
	}

	/* BuddyPress nav icons using Font Awesome (plugin-provided) */
	body.buddypress #item-nav .item-list-tabs ul > li > a::before,
	body.buddypress #item-body #subnav.item-list-tabs ul > li > a::before {
		display: inline-flex;
		width: 1.2em;
		margin-right: 6px;
		justify-content: center;
		align-items: center;
		font-family: "Font Awesome 6 Free";
		font-weight: 900;
		font-style: normal;
		font-size: 16px;
		line-height: 1;
		text-rendering: auto;
		-webkit-font-smoothing: antialiased;
		content: '';
	}

	/* Dashboard icon - show on all BP pages */
	body.buddypress #item-nav li#dashboard-personal-li > a::before,
	body.buddypress #item-nav li#nav-dashboard > a::before,
	body #buddypress div#item-nav ul #dashboard-personal-li a:before,
	#buddypress ul.item-list-tabs li#dashboard-personal-li > a:before,
	#buddypress ul.item-list-tabs a#user-dashboard:before,
	#buddypress ul.item-list-tabs li#user-dashboard > a:before,
	#buddypress ul.item-list-tabs li.dashboard > a:before {
		content: "\f015" !important; /* home icon (dashboard) */
		font-family: "Font Awesome 6 Free" !important;
		font-weight: 900 !important;
	}

	body.buddypress #item-nav li#xprofile-personal-li > a::before {
		content: "\f007"; /* user */
	}

	body.buddypress #item-nav li#messages-personal-li > a::before,
	body.buddypress #item-nav li#nav-messages > a::before {
		content: "\f0e0"; /* envelope */
	}

	body.buddypress #item-nav li#notifications-personal-li > a::before,
	body.buddypress #item-nav li#nav-notifications > a::before {
		content: "\f0f3"; /* bell */
	}

	/* Override Kleo's Fontello icon with a better verification icon */
	#buddypress div#item-nav ul li#verify-personal-li a:before,
	body.buddypress #item-nav li#verify-personal-li > a::before {
		content: "\e822" !important; /* ok-circled - checkmark in circle (verification icon) */
		font-family: "fontello" !important;
		font-weight: 400 !important;
		font-style: normal !important;
		font-size: 48px !important;
		display: block !important;
		text-align: center !important;
		margin-bottom: 0 !important;
		margin-top: 5px !important;
		line-height: 1 !important;
		transition: all 0.4s ease-in-out 0s !important;
	}
	.bp-light-icons #buddypress div#item-nav ul li#verify-personal-li a:before,
	.bp-light-icons body.buddypress #item-nav li#verify-personal-li > a::before {
		font-size: 38.5px !important;
		margin-bottom: 10px !important;
		margin-top: 3px !important;
	}

	/* Icons in tabdrop dropdown */
	body.buddypress #item-nav li.tabdrop ul.dropdown-menu li > a::before,
	body.buddypress #item-body #subnav.item-list-tabs li.tabdrop ul.dropdown-menu li > a::before {
		display: inline-block;
		width: 1em;
		margin-right: 8px;
		font: var(--fa-font-solid, normal 900 15px/1 "Font Awesome 6 Free");
		font-size: 15px;
		line-height: 1;
		content: '\f111'; /* dot fallback */
	}

	body.buddypress #item-nav li.tabdrop ul.dropdown-menu li#friends-personal-li > a::before,
	body.buddypress #item-body #subnav.item-list-tabs li.tabdrop ul.dropdown-menu li#friends-personal-li > a::before { content: "\f500"; }
	body.buddypress #item-nav li.tabdrop ul.dropdown-menu li#verify-personal-li > a::before,
	body.buddypress #item-body #subnav.item-list-tabs li.tabdrop ul.dropdown-menu li#verify-personal-li > a::before {
		content: "\e822" !important; /* ok-circled - checkmark in circle */
		font-family: "fontello" !important;
	}
	body.buddypress #item-nav li.tabdrop ul.dropdown-menu li#groups-personal-li > a::before,
	body.buddypress #item-body #subnav.item-list-tabs li.tabdrop ul.dropdown-menu li#groups-personal-li > a::before { content: "\f0c0"; }
	body.buddypress #item-nav li.tabdrop ul.dropdown-menu li#notifications-personal-li > a::before,
	body.buddypress #item-body #subnav.item-list-tabs li.tabdrop ul.dropdown-menu li#notifications-personal-li > a::before { content: "\f0f3"; }
	body.buddypress #item-nav li.tabdrop ul.dropdown-menu li#settings-personal-li > a::before,
	body.buddypress #item-body #subnav.item-list-tabs li.tabdrop ul.dropdown-menu li#settings-personal-li > a::before { content: "\f013"; }
	body.buddypress #item-nav li.tabdrop ul.dropdown-menu li#queue-personal-li > a::before,
	body.buddypress #item-body #subnav.item-list-tabs li.tabdrop ul.dropdown-menu li#queue-personal-li > a::before { content: "\f0ae"; }
	body.buddypress #item-nav li.tabdrop ul.dropdown-menu li#points-personal-li > a::before,
	body.buddypress #item-body #subnav.item-list-tabs li.tabdrop ul.dropdown-menu li#points-personal-li > a::before { content: "\f51e"; }
	body.buddypress #item-nav li.tabdrop ul.dropdown-menu li#awards-personal-li > a::before,
	body.buddypress #item-body #subnav.item-list-tabs li.tabdrop ul.dropdown-menu li#awards-personal-li > a::before { content: "\f559"; }
	body.buddypress #item-nav li.tabdrop ul.dropdown-menu li#ranks-personal-li > a::before,
	body.buddypress #item-body #subnav.item-list-tabs li.tabdrop ul.dropdown-menu li#ranks-personal-li > a::before { content: "\f521"; }

	body.buddypress #item-body #subnav.item-list-tabs li a:hover,
	body.buddypress #subnav.item-list-tabs li a:hover,
	body.buddypress .st-bp-subnav li a:hover {
		border-color: #2563eb;
		background: rgba(37, 99, 235, 0.12);
		color: #ffffff;
	}

	body.buddypress #item-body #subnav.item-list-tabs li.current a,
	body.buddypress #item-body #subnav.item-list-tabs li.selected a,
	body.buddypress #subnav.item-list-tabs li.current a,
	body.buddypress #subnav.item-list-tabs li.selected a,
	body.buddypress .st-bp-subnav li.current a,
	body.buddypress .st-bp-subnav li.selected a {
		border-color: #2563eb;
		background: linear-gradient(120deg, #2563eb, #1d4ed8);
		color: #ffffff;
		box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
	}
}
