/* =========================================
	 VARIÁVEIS DE CORES (TEMA ESCURO - PADRÃO)
	 ========================================= */
:root {
	--bg-outer: #0d0c1d;
	--bg-desktop-gradient: radial-gradient(circle at top, #231e4a 0%, #0b0a17 100%);
	--bg-card-top: #ffffff;
	--card-overlay: linear-gradient(rgba(22, 18, 48, 0.88), rgba(16, 13, 38, 0.94));
	--card-border: rgba(255, 255, 255, 0.08);

	--text-primary: #ffffff;
	--text-muted: #d1cde6;
	--accent-pink: #b84b8a;
	--icon-hover: #e082b8;

	--pill-bg: rgba(133, 121, 189, 0.75);
	--pill-hover: rgba(152, 140, 210, 0.92);
	--pill-text: #ffffff;

	--btn-purple: #6c3b7c;
	--btn-purple-hover: #824895;
	--phone-blue: #362e78;
	--whatsapp-green: #12a84e;

	--qr-hover-bg: rgba(255, 255, 255, 0.1);
	--modal-bg: #1e1a42;
	--theme-btn-bg: rgba(255, 255, 255, 0.85);
	--theme-btn-color: #191636;
}

/* =========================================
	 VARIÁVEIS DE CORES (TEMA CLARO)
	 ========================================= */
[data-theme="light"] {
	--bg-outer: #e5e2f0;
	--bg-desktop-gradient: radial-gradient(circle at top, #f0eef7 0%, #dcd7eb 100%);
	--bg-card-top: #ffffff;
	--card-overlay: linear-gradient(rgba(246, 244, 252, 0.93), rgba(235, 231, 247, 0.96));
	--card-border: rgba(25, 22, 54, 0.08);
	
	--text-primary: #1b173a;
	--text-muted: #524b75;
	--accent-pink: #a83276;
	--icon-hover: #a83276;
	
	--pill-bg: #dcd6f2;
	--pill-hover: #cec5ed;
	--pill-text: #1b173a;
	
	--btn-purple: #6c3b7c;
	--btn-purple-hover: #562c63;
	--phone-blue: #362e78;
	--whatsapp-green: #12a84e;
	
	--qr-hover-bg: rgba(27, 23, 58, 0.08);
	--modal-bg: #ffffff;
	--theme-btn-bg: rgba(255, 255, 255, 0.85);
	--theme-btn-color: #191636;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Inter', sans-serif;
	-webkit-tap-highlight-color: transparent;
}

body {
	background-color: var(--bg-outer);
	color: var(--text-primary);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container Principal (Modo Escuro - Padrão) */
.card-container {
	width: 100%;
	min-height: 100vh;
	background-color: var(--bg-outer);
	background-image: linear-gradient(rgba(13, 12, 29, 0.25), rgba(13, 12, 29, 0.45)), url('../img/fundo.webp'); /* Imagem escura */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Container Principal (Modo Claro) */
[data-theme="light"] .card-container {
	background-image: url('../img/fundo-claro.webp'); /* Imagem clara */
}

/* Adaptação para Desktop */
@media (min-width: 480px) {
	body {		
		align-items: center;
		padding: 10px 15px;
		background: var(--bg-desktop-gradient);
	}

	.card-container {
		max-width: 430px;
		min-height: auto;
		border-radius: 25px;
		box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
		border: 1px solid var(--card-border);
		overflow: hidden;
	}
}

/* Cabeçalho Branco com Ilustração */
.card-header {
	background-color: var(--bg-card-top);
	width: 100%;
	height: 155px;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	padding: 0;
	position: relative;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Botão Flutuante de Alternância de Tema */
.theme-btn {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background-color: var(--theme-btn-bg);
	color: var(--theme-btn-color);
	font-size: 1.05rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.theme-btn:hover {
	transform: rotate(20deg) scale(1.08);
	background-color: rgba(120, 110, 170, 0.8);
}

.cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Corpo do Cartão */
.card-body {
	padding: 0 20px 30px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Foto de Perfil + Nome/Cargo */
.profile-section {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: -55px;
	position: relative;
	z-index: 2;
}

.avatar-wrapper {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	padding: 3px;
	background: linear-gradient(135deg, #d66ba0, #6c5ce7);
	flex-shrink: 0;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.avatar-img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	background-color: #2c2559;
}

.profile-info {
	padding-top: 60px;
}

.profile-info h1 {
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: 0.5px;
	line-height: 1.1;
	color: var(--text-primary);
}

.profile-info h2 {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--accent-pink);
	letter-spacing: 0.6px;
	margin-top: 4px;
}

/* Texto de Descrição */
.bio-text {
	text-align: center;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--text-primary);
	margin: 14px 0 14px;
}

/* Botões Ligar e WhatsApp */
.primary-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 0 -20px 20px;
}

.btn-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--pill-bg);
	backdrop-filter: blur(6px);
	text-decoration: none;
	color: var(--pill-text);
	padding: 7px;
	transition: background 0.25s ease, transform 0.2s ease, color 0.25s ease;
}

.btn-pill:hover {
	background: var(--pill-hover);
	transform: translateY(-2px);
}

.btn-call {
	border-radius: 0 50px 50px 0;
	padding-left: 16px;
	text-align: right;
}

.btn-whatsapp {
	border-radius: 50px 0 0 50px;
	padding-right: 14px;
	text-align: left;
}

.btn-pill span {
	font-size: 0.675rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.3px;
	flex: 1;
}

.btn-call span {
	margin-right: 10px;
}

.btn-whatsapp span {
	margin-left: 10px;
}

.icon-circle {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	flex-shrink: 0;
}

.phone-bg {
	background-color: var(--phone-blue);
	color: #ffffff;
}

.whatsapp-bg {
	background-color: var(--whatsapp-green);
	color: #ffffff;
	font-size: 1.6rem;
}

/* Grade de Ícones Sociais */
.social-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px 10px;
	margin-bottom: 20px;
}

.social-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: var(--text-primary);
	transition: transform 0.2s ease, color 0.2s ease;
}

.social-item:hover {
	transform: translateY(-3px);
	color: var(--icon-hover);
}

.social-item i {
	font-size: 2.1rem;
	margin-bottom: 8px;
}

.social-item span {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-align: center;
}

/* Botões Secundários */
.secondary-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 20px;
}

.btn-secondary {
	background-color: var(--btn-purple);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 11px 12px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background 0.2s ease, transform 0.15s ease;
}

.btn-secondary:hover {
	background-color: var(--btn-purple-hover);
	transform: translateY(-1px);
}

/* Rodapé QR Code e Copyright */
.card-footer {
	display: flex;
	text-align: center;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 1px;
}

.btn-qr {
	background: transparent;
	border: none;
	color: var(--text-primary);
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 8px;
	transition: background 0.2s ease, color 0.2s ease;
}

.btn-qr:hover {
	background: var(--qr-hover-bg);
}

.copyright {
	font-size: 0.72rem;
	font-weight: 500;
	color: var(--text-muted);
	letter-spacing: 0.3px;
	opacity: 0.85;
	text-align: center;
	padding-bottom: 1px;
}

/* Modal do QR Code */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 8, 25, 0.8);
	backdrop-filter: blur(5px);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 100;
	padding: 20px;
}

.modal-overlay.active {
	display: flex;
}

.modal-content {
	background: var(--modal-bg);
	color: var(--text-primary);
	border: 1px solid var(--card-border);
	border-radius: 20px;
	padding: 28px 24px;
	text-align: center;
	max-width: 320px;
	width: 100%;
	position: relative;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.close-btn {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	color: var(--text-primary);
	font-size: 1.6rem;
	cursor: pointer;
}

.modal-content h3 {
	font-size: 1.15rem;
	margin-bottom: 6px;
}

.modal-content p {
	font-size: 0.82rem;
	color: var(--text-muted);
	margin-bottom: 18px;
}

#qrcode-box {
	background: #ffffff;
	padding: 14px;
	border-radius: 12px;
	display: inline-block;
	border: 1px solid #e2e8f0;
}

/* Toast Notification */
.toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: #12a84e;
	color: #fff;
	padding: 10px 20px;
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 600;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transition: all 0.3s ease;
	z-index: 200;
}

.toast.show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}