/*
Theme Name: Fanda Chat
Theme URI: https://chat.digitalhaider.com/
Author: Digital Haider
Author URI: https://digitalhaider.com/
Description: The official frontend theme for Fanda Chat — a fictional dating-profile engagement experience. Ships with 6 switchable styles (VVIP Purple, Rose, Midnight, Ocean, Sunset, Emerald), a persona grid homepage, rich profile pages with AI chat, quizzes, polls and flip-cards, plus auto-created legal pages. Works with the Fanda Chat Experience plugin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fanda-chat
Tags: dating, chat, engagement, purple, responsive, customizer
*/

/* ============================================================
   Fanda Chat — base styles
   Style-specific variables live in styles/{style}/style.css.
   ============================================================ */

:root {
	--fanda-primary: #7c3aed;
	--fanda-primary-dark: #5b21b6;
	--fanda-primary-light: #a78bfa;
	--fanda-accent: #7c3aed;
	--fanda-accent-dark: #5b21b6;
	--fanda-accent-light: #a78bfa;
	--fanda-bg: #ffffff;
	--fanda-bg-soft: #f7f2ff;
	--fanda-text: #2e2440;
	--fanda-muted: #7a6f94;
	--fanda-card: #ffffff;
	--fanda-line: #e7d9fb;
	--fanda-radius: 20px;
	--fanda-shadow: 0 8px 28px rgba(124, 58, 237, 0.10);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--fanda-bg);
	color: var(--fanda-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--fanda-accent);
}

/* ---------- minimal theme header ---------- */

.fanda-site-header {
	background: var(--fanda-card);
	border-bottom: 1px solid var(--fanda-line);
	position: sticky;
	top: 0;
	z-index: 50;
}

.fanda-header-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 12px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.fanda-logo {
	display: flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	color: var(--fanda-text);
	font-weight: 800;
	font-size: 20px;
}

.fanda-logo-heart {
	font-size: 22px;
}

.fanda-logo em {
	font-style: normal;
	color: var(--fanda-primary);
}

.fanda-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.fanda-nav a {
	color: var(--fanda-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 12px;
	border-radius: 999px;
}

.fanda-nav a:hover {
	background: var(--fanda-bg-soft);
	color: var(--fanda-primary-dark);
}

.fanda-header-cta {
	background: var(--fanda-primary);
	color: #fff !important;
}

.fanda-header-cta:hover {
	background: var(--fanda-primary-dark) !important;
}

.fanda-burger {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}

.fanda-burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--fanda-text);
	margin: 5px 0;
	border-radius: 2px;
}

@media (max-width: 640px) {
	.fanda-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--fanda-card);
		border-bottom: 1px solid var(--fanda-line);
		flex-direction: column;
		align-items: stretch;
		padding: 8px 16px 16px;
	}

	.fanda-nav.open {
		display: flex;
	}

	.fanda-burger {
		display: block;
	}

	.fanda-site-header {
		position: relative;
	}
}

/* ---------- theme footer ---------- */

.fanda-site-footer {
	border-top: 1px solid var(--fanda-line);
	background: var(--fanda-card);
	margin-top: 40px;
}

.fanda-footer-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 28px 22px;
	text-align: center;
	font-size: 13px;
	color: var(--fanda-muted);
}

.fanda-footer-links {
	margin-bottom: 12px;
}

.fanda-footer-links a {
	color: var(--fanda-accent);
	text-decoration: none;
	margin: 0 7px;
	font-weight: 600;
}

.fanda-footer-links a:hover {
	text-decoration: underline;
}

.fanda-footer-disclaimer {
	max-width: 640px;
	margin: 0 auto 12px;
	font-size: 12px;
	line-height: 1.6;
}

.fanda-footer-brand strong {
	color: var(--fanda-text);
}

/* ---------- generic content ---------- */

.fanda-content {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 20px 60px;
}

.fanda-content h1 {
	font-size: 30px;
	margin: 0 0 16px;
}

/* ---------- 404 ---------- */

.fanda-404 {
	text-align: center;
	padding: 80px 20px;
}

.fanda-404 h1 {
	font-size: 72px;
	margin: 0;
	color: var(--fanda-primary);
}

.fanda-404 p {
	color: var(--fanda-muted);
}

.fanda-btn {
	display: inline-block;
	background: var(--fanda-primary);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	padding: 12px 32px;
	border-radius: 999px;
	margin-top: 16px;
}

.fanda-btn:hover {
	background: var(--fanda-primary-dark);
	color: #fff;
}

/* ---------- screen reader ---------- */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
