/**
 * Aura — styles for the editable (native-block) header & footer.
 * Loaded on the front end and in the editor, so what you see while
 * editing matches the live site.
 */

/* ── Sticky header ──────────────────────────────────────────── */
.aura-site-header {
	z-index: 100;
	box-shadow: 0 1px 0 var(--wp--preset--color--surface-alt);
}

.aura-site-title a {
	color: var(--wp--preset--color--text-primary);
	text-decoration: none;
}

/* ── Primary navigation (Navigation block) ──────────────────── */
.aura-primary-nav .wp-block-navigation-item__content {
	display: block;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease;
}
.aura-primary-nav .wp-block-navigation-item__content:hover,
.aura-primary-nav .current-menu-item > .wp-block-navigation-item__content,
.aura-primary-nav [aria-current="page"] {
	color: var(--wp--preset--color--primary);
	background: rgba(108, 92, 231, 0.06);
}
.aura-primary-nav .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-radius: 12px;
	padding: 0.5rem;
	min-width: 200px;
	background: var(--wp--preset--color--surface) !important;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ── Dark-mode toggle (a Buttons block) ─────────────────────── */
.aura-theme-toggle .wp-block-button__link {
	background: none !important;
	border: 0 !important;
	padding: 0.25rem 0.4rem !important;
	font-size: 1.1rem;
	line-height: 1;
	color: inherit !important;
	box-shadow: none !important;
}

/* ── লগইন / সাইন আপ (a Buttons block) ─────────────────────────── */
.aura-auth-buttons {
	gap: 0.5rem;
	flex-wrap: nowrap;
}
.aura-auth-buttons .wp-block-button__link {
	padding: 0.6rem 1.5rem;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-weight: 700;
	white-space: nowrap;
}
.aura-auth-buttons .is-style-outline .wp-block-button__link {
	background: none;
	color: var(--wp--preset--color--text-primary);
	border: 1px solid var(--wp--preset--color--surface-alt);
}

/* ── Account menu (shown instead of the buttons when logged in) ─ */
.aura-user-menu { position: relative; display: inline-block; }
.aura-user-trigger {
	display: flex; align-items: center; gap: 0.5rem;
	background: none; border: 0; cursor: pointer;
	padding: 0.35rem 0.75rem; border-radius: 9999px;
	color: var(--wp--preset--color--text-primary);
	font: inherit;
}
.aura-user-trigger:hover { background: rgba(108, 92, 231, 0.06); }
.aura-user-avatar {
	width: 32px; height: 32px; border-radius: 9999px;
	background: var(--wp--preset--color--primary); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 0.85rem;
}
.aura-user-name { font-weight: 600; font-size: 0.85rem; }
.aura-user-dropdown {
	display: none; position: absolute; right: 0; top: 100%;
	margin-top: 0.5rem; min-width: 200px; padding: 0.5rem;
	border-radius: 12px; z-index: 200;
	background: var(--wp--preset--color--surface);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.aura-user-menu.open .aura-user-dropdown { display: block; }
.aura-user-link {
	display: block; padding: 0.6rem 1rem; border-radius: 8px;
	font-size: 0.85rem; font-weight: 500; text-decoration: none;
	color: var(--wp--preset--color--text-primary);
}
.aura-user-link:hover { background: rgba(108, 92, 231, 0.06); }
.aura-user-link.is-logout { color: var(--wp--preset--color--warning); }

/* ── Small screens ──────────────────────────────────────────── */
@media (max-width: 782px) {
	.aura-site-header > .wp-block-group { padding-left: 1rem !important; padding-right: 1rem !important; }
	.aura-currency { display: none; }
	.aura-user-name { display: none; }
	.aura-auth-buttons .wp-block-button__link { padding: 0.5rem 1rem; }
	.aura-auth-buttons .aura-login-btn { display: none; } /* keep one clear call to action */
}

/* ── SSLCommerz payment banner (footer) ─────────────────────── */
.aura-pay-banner {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.aura-pay-banner .wp-block-image,
.aura-pay-banner figure { margin: 0; }
.aura-pay-banner img {
	display: block;
	width: 100% !important;
	min-width: 980px; /* on phones: scroll sideways instead of shrinking the logos */
	height: auto;
}
@media (min-width: 981px) {
	.aura-pay-banner img { min-width: 0; }
}

/* ── Footer business details & legal links ──────────────────── */
.aura-footer-legal p { margin: 0.25rem 0; }
.aura-footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
.aura-checkout-footer p { text-align: center; }

/* ── FJG homepage ───────────────────────────────────────────── */
.aura-center { text-align: center; }
p.aura-center { max-width: 720px; margin-left: auto !important; margin-right: auto !important; }
.aura-pill {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border-radius: 9999px;
	background: rgba(108, 92, 231, 0.08);
}
.aura-card { height: 100%; box-sizing: border-box; }
.wp-block-columns > .wp-block-column > .aura-card { height: 100%; }
.aura-checklist { list-style: none; padding-left: 0; margin: 0.5rem 0 0; }
.aura-checklist li { position: relative; padding-left: 1.6rem; margin: 0.45rem 0; line-height: 1.6; }
.aura-checklist li::before {
	content: "✓"; position: absolute; left: 0; top: 0;
	color: var(--wp--preset--color--success, #00b894); font-weight: 800;
}
.aura-faq {
	background: var(--wp--preset--color--surface);
	border-radius: 12px;
	padding: 1rem 1.25rem;
}
.aura-faq summary { cursor: pointer; font-weight: 700; line-height: 1.6; }
.aura-faq[open] summary { margin-bottom: 0.5rem; }
html { scroll-behavior: smooth; }
#packages, #faq { scroll-margin-top: 90px; } /* land below the sticky header */

/* Footer lists: clean link columns */
.aura-footer-links { list-style: none; padding-left: 0; margin: 0.75rem 0 0; }
.aura-footer-links li { margin: 0.45rem 0; }
.aura-site-footer a { text-decoration: none; }
.aura-site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.aura-site-footer .wp-block-heading { font-size: 1rem; letter-spacing: 0.02em; }
