/**
 * NC Muslim Tech — community pages (join, Discord, events).
 *
 * Version: 2.3.0
 */

.ncmst-community-page {
	--ncmst-bg: #061f1b;
	--ncmst-surface: #0d4a42;
	--ncmst-accent: #3dd6c3;
	--ncmst-gold: #c9a84c;
	--ncmst-text: rgba(255, 255, 255, 0.92);
	--ncmst-text-muted: rgba(255, 255, 255, 0.65);
	--ncmst-radius: 1rem;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	background: var(--ncmst-bg);
	color: var(--ncmst-text);
	min-height: 100vh;
}

.ncmst-community-main {
	padding-top: 1rem;
	padding-bottom: 3rem;
}

/* Community panels must not stay hidden — reveal JS only runs on the homepage */
.ncmst-community-page .ncmst-reveal {
	opacity: 1;
	transform: none;
}

.ncmst-header--compact .ncmst-nav {
	padding: 0.75rem 0;
}

.ncmst-panel {
	background: linear-gradient(145deg, rgba(13, 74, 66, 0.95), rgba(6, 31, 27, 0.98));
	border: 1px solid rgba(61, 214, 195, 0.2);
	border-radius: calc(var(--ncmst-radius) + 0.25rem);
	padding: 2.5rem 2rem;
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
	.ncmst-panel {
		padding: 3rem 2.75rem;
	}
}

.ncmst-panel--success {
	border-color: rgba(61, 214, 195, 0.35);
}

.ncmst-panel__title {
	font-family: "Instrument Serif", Georgia, serif;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 400;
	margin-bottom: 0.75rem;
	line-height: 1.2;
}

.ncmst-panel__lead {
	color: var(--ncmst-text-muted);
	font-size: 1.05rem;
	line-height: 1.65;
	margin-bottom: 2rem;
}

.ncmst-panel__footer {
	margin-top: 2rem;
	margin-bottom: 0;
	font-size: 0.95rem;
	color: var(--ncmst-text-muted);
}

.ncmst-panel__footer a {
	color: var(--ncmst-accent);
}

.ncmst-join-step {
	margin-bottom: 2rem;
}

.ncmst-join-step__title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--ncmst-accent);
}

.ncmst-join-step__badge {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(61, 214, 195, 0.15);
	border: 1px solid rgba(61, 214, 195, 0.3);
	font-size: 0.9rem;
	margin: 0;
}

.ncmst-join-account-switch {
	margin: 0.75rem 0 0;
}

.ncmst-link-button {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ncmst-accent);
	font-weight: 600;
	font-size: 0.9rem;
	font-family: inherit;
	text-decoration: none;
	cursor: pointer;
}

.ncmst-link-button:hover {
	text-decoration: underline;
}

.ncmst-form__hint--step {
	margin-top: -0.5rem;
	margin-bottom: 1.25rem;
}

.ncmst-form__required {
	color: var(--ncmst-gold);
}

.ncmst-form__hint--submit {
	margin-top: 0.75rem;
	margin-bottom: 0;
	color: #f5b8b8;
}

/* Keep submit button above fixed cookie banner */
.ncmst-community-page .ncmst-panel {
	margin-bottom: 6rem;
}

.ncmst-form__group {
	margin-bottom: 1.35rem;
}

.ncmst-form__label,
.ncmst-form fieldset legend {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 0.5rem;
}

.ncmst-form__input,
.ncmst-form__select {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(6, 31, 27, 0.6);
	color: var(--ncmst-text);
	font-size: 1rem;
}

.ncmst-form__input:focus,
.ncmst-form__select:focus {
	outline: 2px solid var(--ncmst-accent);
	outline-offset: 2px;
}

.ncmst-form__checks {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ncmst-form__check {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.95rem;
	cursor: pointer;
}

.ncmst-form__check input {
	margin-top: 0.2rem;
	accent-color: var(--ncmst-accent);
}

.ncmst-form__check--guidelines {
	margin: 1.25rem 0 1.5rem;
	font-weight: 500;
}

.ncmst-form__hint {
	font-size: 0.88rem;
	color: var(--ncmst-text-muted);
	margin-top: 0.75rem;
	line-height: 1.5;
}

.ncmst-guidelines-box {
	background: rgba(6, 31, 27, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--ncmst-radius);
	padding: 1.25rem 1.5rem;
	margin-bottom: 0.5rem;
}

.ncmst-guidelines-list {
	margin: 0;
	padding-left: 1.25rem;
	color: var(--ncmst-text-muted);
	line-height: 1.65;
}

.ncmst-alert {
	padding: 0.85rem 1rem;
	border-radius: 0.5rem;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
}

.ncmst-alert--error {
	background: rgba(220, 53, 69, 0.15);
	border: 1px solid rgba(220, 53, 69, 0.4);
}

.ncmst-alert--warn {
	background: rgba(201, 168, 76, 0.12);
	border: 1px solid rgba(201, 168, 76, 0.35);
}

.ncmst-btn--google {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.85rem 1.5rem;
	border-radius: 0.5rem;
	background: #fff;
	color: #333;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}

.ncmst-btn--google__icon {
	display: inline-flex;
	flex-shrink: 0;
	line-height: 0;
}

.ncmst-btn--google:hover {
	background: #f5f5f5;
	color: #111;
}

.ncmst-btn--discord {
	background: #5865f2;
	color: #fff;
	border: none;
}

.ncmst-btn--discord:hover {
	background: #4752c4;
	color: #fff;
}

/* ExamReady — member learning tool. Uses the site accent so it reads as a first-class
   community perk, distinct from the Discord (blurple) action. */
.ncmst-btn--examready {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: var(--ncmst-accent);
	color: var(--ncmst-bg);
	border: none;
	font-weight: 600;
	text-decoration: none;
}

.ncmst-btn--examready:hover {
	background: #34bdac;
	color: var(--ncmst-bg);
}

/* ExamReady call-to-action block on the member Discord page. */
.ncmst-examready-cta {
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ncmst-examready-cta .ncmst-btn--examready {
	margin-top: 0.5rem;
}

.ncmst-discord-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

@media (min-width: 576px) {
	.ncmst-discord-actions {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

.ncmst-discord-channel-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ncmst-discord-channel-list li {
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--ncmst-text-muted);
}

.ncmst-discord-channel-list li:last-child {
	border-bottom: none;
}

.ncmst-discord-channel-list strong {
	color: var(--ncmst-accent);
	font-weight: 600;
}

/* Homepage upcoming events strip */
.ncmst-events-strip {
	padding: 3rem 0;
	background: rgba(13, 74, 66, 0.35);
	border-top: 1px solid rgba(61, 214, 195, 0.15);
	border-bottom: 1px solid rgba(61, 214, 195, 0.15);
}

.ncmst-events-list__item {
	padding: 1rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ncmst-events-list__item:last-child {
	border-bottom: none;
}

.ncmst-events-list__date {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ncmst-accent);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.25rem;
}

.ncmst-events-list__title {
	display: block;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--ncmst-text);
	text-decoration: none;
	margin-bottom: 0.2rem;
}

.ncmst-events-list__title:hover {
	color: var(--ncmst-accent);
}

.ncmst-events-list__meta {
	font-size: 0.9rem;
	color: var(--ncmst-text-muted);
}

.ncmst-events-empty {
	color: var(--ncmst-text-muted);
	margin: 0;
}

.ncmst-events-archive-link a {
	color: var(--ncmst-accent);
	font-weight: 600;
	text-decoration: none;
}

.ncmst-events-archive-link a:hover {
	text-decoration: underline;
}

.ncmst-footer--compact {
	padding: 1.5rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Nextend Social Login button alignment */
.ncmst-join-step .nsl-container {
	margin: 0 !important;
}

.ncmst-join-step .nsl-container-buttons a {
	width: 100% !important;
	border-radius: 0.5rem !important;
}

/* The Events Calendar list view on dark panel */
.ncmst-events-embed .tribe-common {
	--tec-color-background: transparent;
}

.ncmst-events-embed .tribe-events .tribe-events-c-view-selector__list-item-link,
.ncmst-events-embed .tribe-events-calendar-list__event-title a {
	color: var(--ncmst-accent);
}

/* ─── ExamReady landing page (/examready/) ─────────────────────────────── */

.ncmst-beta-banner {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: rgba(201, 168, 76, 0.1);
	border: 1px solid rgba(201, 168, 76, 0.35);
	border-radius: var(--ncmst-radius);
	padding: 0.9rem 1.1rem;
	margin: 1.25rem 0 0.5rem;
	color: var(--ncmst-text-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.ncmst-beta-pill {
	flex-shrink: 0;
	display: inline-block;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: var(--ncmst-gold);
	color: #2a2207;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ncmst-examready-section {
	margin-top: 2rem;
}

.ncmst-examready-section__heading {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--ncmst-text);
	margin-bottom: 1rem;
}

.ncmst-feature-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.ncmst-feature-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ncmst-feature-card {
	background: rgba(6, 31, 27, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--ncmst-radius);
	padding: 1.1rem 1.2rem;
}

.ncmst-feature-card__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--ncmst-accent);
	margin: 0 0 0.4rem;
}

.ncmst-feature-card p {
	margin: 0;
	color: var(--ncmst-text-muted);
	font-size: 0.92rem;
	line-height: 1.55;
}

.ncmst-exam-columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.ncmst-exam-columns {
		grid-template-columns: 1fr 1fr;
	}
}

.ncmst-exam-col__title {
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 0.6rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.ncmst-exam-col__title--available {
	color: var(--ncmst-accent);
}

.ncmst-exam-col__title--available::before {
	content: "●";
	font-size: 0.6rem;
}

.ncmst-exam-col__title--soon {
	color: var(--ncmst-text-muted);
}

.ncmst-exam-col__title--soon::before {
	content: "○";
	font-size: 0.6rem;
}

.ncmst-exam-list {
	margin: 0;
	padding-left: 1.1rem;
	color: var(--ncmst-text-muted);
	line-height: 1.7;
	font-size: 0.92rem;
}

.ncmst-exam-list--soon {
	opacity: 0.75;
}

.ncmst-examready-cta-block {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ncmst-examready-cta-note {
	margin-top: 0.75rem;
}
