/* 1. Add this at the very top of style.css */
@font-face {
	 font-family: "menufont";
	 src: url(https://4love.ge/fonts/bpg_mrgvlovani_caps_2010.eot);
	 src:
		 local(☺),
		 url(https://4love.ge/fonts/bpg_mrgvlovani_caps_2010.woff) format("woff"),
		 url(https://4love.ge/fonts/bpg_mrgvlovani_caps_2010.ttf) format("truetype"),
		 url(https://4love.ge/fonts/bpg_mrgvlovani_caps_2010.svg) format("svg");
	 font-weight: 400;
	 font-style: normal;
}

/* --- PASTE YOUR ORIGINAL CSS HERE --- */
* {
	box-sizing: border-box;
}
:root {
	--pink: #ff6fb1;
	--pink-soft: #ffd1e6;
	--blue: #47b2ff;
	--blue-soft: #cfefff;
	--lavender-soft: #e7ddff;
	--primary-color: #47b2ff;
	--bg-gradient: linear-gradient(135deg, #cfefff 0%, #e7ddff 45%, #ffd1e6 100%);
	--glass-bg: rgba(255, 255, 255, 0.72);
	--bot-bubble: rgba(255, 255, 255, 0.92);
	--user-bubble: linear-gradient(135deg, #47b2ff 0%, #ff6fb1 100%);
	--border-soft: rgba(20, 20, 20, 0.06);
}
body,
html {
	margin: 0;
	padding: 0;
	height: 100dvh;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--bg-gradient);
	overflow: hidden;
}
#chat-container {
	display: flex;
	flex-direction: column;
	height: 100dvh;
	max-width: 600px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	position: relative;
	z-index: 1;
}
header {
	padding: 8px;
	text-align: center;
	background: var(--glass-bg);
	font-weight: 700;
	font-size: 1.1rem;
	border-bottom: 1px solid var(--border-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-image: linear-gradient(90deg, #47b2ff 0%, #ff6fb1 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	position: relative;
	z-index: 2;
}
.status-dot {
	width: 8px;
	height: 8px;
	background: #4caf50;
	border-radius: 50%;
	box-shadow: 0 0 5px #4caf50;
}
#messages {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	-webkit-overflow-scrolling: touch;
}
.message {
	max-width: 85%;
	padding: 12px 16px;
	border-radius: 18px;
	font-size: 15px;
	line-height: 1.5;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.bot {
	align-self: flex-start;
	background: var(--bot-bubble);
	color: #333;
	border-bottom-left-radius: 4px;
	border: 1px solid rgba(0, 0, 0, 0.03);
}
.user {
	align-self: flex-end;
	background: var(--user-bubble);
	color: white;
	border-bottom-right-radius: 4px;
	box-shadow: 0 10px 22px rgba(255, 111, 177, 0.14);
}
footer {
	flex-shrink: 0;
	position: relative;
	width: 100%;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	z-index: 100;
	padding: 10px 15px;
	padding-bottom: max(15px, env(safe-area-inset-bottom));
}
.input-wrapper {
	display: flex;
	align-items: flex-end;
	box-sizing: border-box;
	width: 100%;
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	border-radius: 24px;
	padding: 12px 16px;
	max-width: 800px;
	margin: 0 auto;
}
.input-wrapper:focus-within {
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 8px 25px rgba(71, 178, 255, 0.2);
	border-color: #fff;
}
#sendBtn {
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, #47b2ff 0%, #ff6fb1 100%);
	/* Added color white for the arrow */
	color: white; 
	border: none;
	border-radius: 50%;
	margin-left: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(71, 178, 255, 0.3);
}
.orb {
	position: fixed;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.45;
	z-index: 0;
	pointer-events: none;
}
.orb-1 {
	left: -140px;
	top: -140px;
	background: radial-gradient(circle at 30% 30%, #47b2ff, transparent 60%);
}
.orb-2 {
	right: -160px;
	bottom: -160px;
	background: radial-gradient(circle at 70% 70%, #ff6fb1, transparent 60%);
}
.logo-img {
	height: 46px;
	width: auto;
	display: block;
	user-select: none;
	filter: drop-shadow(0 6px 14px rgba(255, 111, 177, 0.25));
}

#userInput {
	flex: 1;
	width: 100%;
	box-sizing: border-box;
	background: transparent;
	border: none;
	outline: none;
	font-size: 16px;
	color: #000;
	resize: none;
	/* Custom Font Added */
	font-family: "menufont", sans-serif;
}

/* Optional: Ensures the placeholder text also uses the font */
#userInput::placeholder {
	font-family: "menufont", sans-serif;
	opacity: 0.6;
}

/* --- NEW ADDITIONS FOR LOGIN MODAL --- */
#login-modal {
	position: fixed; top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(15px);
	z-index: 999;
	display: flex; align-items: center; justify-content: center;
}
.glass-panel {
	background: white; padding: 30px; border-radius: 24px; text-align: center;
	box-shadow: 0 10px 40px rgba(71, 178, 255, 0.2);
	width: 90%; max-width: 320px;
}

.glass-panel h2 {
	font-family:menufont;
}

#usernameInput {
	width: 100%; padding: 12px; border-radius: 12px;
	border: 1px solid #ddd; background: #f9f9f9;
	margin-bottom: 15px; font-size: 16px; outline: none; text-align: center;
}
#joinBtn {
	background: linear-gradient(135deg, #47b2ff 0%, #ff6fb1 100%);
	color: white; border: none; width: 100%; height: 44px;
	border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer;
	font-family:menufont;
}

/* --- LINK PREVIEW CARD --- */
.link-card {
	display: block;
	margin-top: 8px;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: #333;
	border: 1px solid rgba(0,0,0,0.05);
	transition: transform 0.2s, box-shadow 0.2s;
	max-width: 100%;
}

.link-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.link-image {
	width: 100%;
	height: 140px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #eee;
}

.link-info {
	padding: 10px 12px;
}

.link-title {
	font-family: "menufont", sans-serif; /* Uses your custom font */
	font-size: 14px;
	font-weight: bold;
	margin: 0 0 4px 0;
	color: #222;
	line-height: 1.3;
}

.link-domain {
	font-size: 11px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* --- CSS LOGO STYLES --- */

/* Wrapper for Icon + Text */
.brand-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	gap: 8px; /* Space between icon and text */
	margin-right: auto; /* Pushes the status dot to the far right */
}

/* The Icon Styling */
.brand-icon {
	width: 32px;
	height: 32px;
	/* Soft drop shadow for depth */
	filter: drop-shadow(0 2px 4px rgba(71, 178, 255, 0.3));
	transition: transform 0.2s ease;
}

/* Hover Effect on Icon */
.brand-logo:hover .brand-icon {
	transform: scale(1.1) rotate(-5deg);
}

/* The Text Styling */
.brand-text {
	font-family: 'Nunito', sans-serif; /* Soft, rounded font */
	font-weight: 800;
	font-size: 20px;
	letter-spacing: 0.5px;
	
	/* GRADIENT TEXT MAGIC */
	background: linear-gradient(135deg, #4facfe 0%, #ff58a8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	
	/* Fallback color if gradient fails */
	color: #ff58a8;
}

/* Header Adjustment to fit the new logo */
header {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	background: rgba(255, 255, 255, 0.95);
	border-bottom: 1px solid rgba(0,0,0,0.05);
	/* Ensure elements are spaced correctly */
	justify-content: space-between; 
}

/* Mobile Responsiveness */
@media (max-width: 360px) {
	.brand-text {
		font-size: 18px; /* Slightly smaller on very old phones */
	}
	.brand-icon {
		width: 28px;
		height: 28px;
	}
}