/*Fonts*/

/* Clash Display (Fontshare, ITF Free Font License), self-hosted from /fonts.
   One variable file covers every weight from 200 (extralight) to 700 (bold). */
@font-face {
	font-family: "Clash Display";
	src: url("fonts/ClashDisplay-Variable.woff2") format("woff2"),
	     url("fonts/ClashDisplay-Variable.woff") format("woff");
	font-weight: 200 700;
	font-style: normal;
	font-display: swap; /* show Arial instantly, swap in Clash Display once loaded */
}

:root {
	--font-display: "Clash Display", "Arial", sans-serif;
	--font-body: "Arial", sans-serif;
}

/* Clash Display for titles and buttons; body text stays Arial for readability */
h1, h2, h3, h4, h5, h6,
.btn,
.nav-link,
.badge,
.card-title {
	font-family: var(--font-display);
}

/* Bold Clash Display is tight at small sizes: open it up slightly */
.btn,
.badge {
	letter-spacing: 0.03em;
}

/*Body*/

body {
	background-color: #FCFCF7;
	margin: 0;
	font-family: var(--font-body);
}

/*Text*/

h1 {
	text-align: center;
}

h2 {
	text-align: center;
}

p {
	margin-left: 5px;
}

.page-subtitle {
	margin-left: 5px;
}

.footer {
	margin-top: auto;
	text-align: center;
	padding: 20px 0;
}

.site-title {
	font-size: clamp(2.75rem, 7vw, 5rem);
	font-weight: 700;
}

/*Images*/

.logo {
	border-radius: 10px;
	margin-top: 7px;
	margin-left: 7px;
	height: 50px;
	width: auto;
}

.logo_bottom {
	border-radius: 10px;
	height: auto;
	width: 100px;
}

/*Buttons*/

.top-buttons {
	gap: 5px;
	margin-top: 5px;
}

.filter-icon,
.inbox-icon,
.profile-icon {
	height: 23px;
	width: auto;
}

.add-icon {
	height: 20px;
	width: auto;
}

/* Purple icons would disappear on the dark hover background, so turn them white */
.btn-outline-dark:hover img,
.btn-outline-dark:active img,
.btn-outline-dark.show img {
	filter: brightness(0) invert(1);
}

/*Auth card (sign in / sign up)*/

.auth-card {
	background-color: #FFFFFF;
	border: 1px solid #E5E5E0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	margin-bottom: 60px;
}

.auth-card .nav-tabs {
	border-bottom: 1px solid #E5E5E0;
}

.auth-card .nav-link {
	color: #666;
	border: none;
	border-radius: 0;
}

.auth-card .nav-link:hover {
	color: #4843D6;
}

.auth-card .nav-link.active {
	color: #4843D6;
	font-weight: bold;
	border-bottom: 2px solid #4843D6;
	background-color: transparent;
}

/* Purple highlight (instead of Bootstrap blue) around the field you're typing in */
.auth-card .form-control:focus {
	border-color: #4843D6;
	box-shadow: 0 0 0 0.25rem rgba(72, 67, 214, 0.25);
}

.auth-message {
	margin-top: 10px;
	margin-bottom: 0;
	font-size: 0.9rem;
}

.logout {
	margin-right: 5px;
}

/* Search bar + filters */

.filters-menu {
	width: 280px;
}

/* The switch - the box around the slider */
.switch {
	position: relative;
	display: inline-block;
	width: 220px;
	height: 34px;
	font-family: var(--font-display);
	margin-left: 5px;
}
.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

/* Track */
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #4843D6;
	transition: .4s;
	display: flex;
	align-items: center;
}

/* The sliding knob (white pill) */
.slider:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 106px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .4s;
	z-index: 1;
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Text labels */
.switch-text {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	font-weight: 600;
	color: #333;
	z-index: 2;
	pointer-events: none;
	transition: .4s;
}
.off-text {
	left: 16px;
}
.on-text {
	right: 14px;
	color: white;
}

input:checked + .slider {
	background-color: #4843D6;
}
input:checked + .slider:before {
	transform: translateX(106px);
}

/* When checked, swap which text sits "on" the white knob */
input:checked + .slider .off-text {
	color: white;
}
input:checked + .slider .on-text {
	color: black;
}

/* Keyboard focus ring for the switch */
.switch input:focus-visible + .slider {
	outline: 2px solid #2196F3;
	outline-offset: 2px;
}

.slider.round {
	border-radius: 34px;
}
.slider.round:before {
	border-radius: 17px;
}

/* Checkboxes */
.checkbox-group {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Hide the real checkbox visually, but keep it reachable with the keyboard */
.box-checkbox {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

/* Style the label as the visible box */
.box-label {
	display: inline-block;
	padding: 10px 20px;
	border: 2px solid #ccc;
	border-radius: 999px;
	cursor: pointer;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	color: #333;
	background-color: white;
	transition: .3s;
	user-select: none;
}

/* Style when checked */
.box-checkbox:checked + .box-label {
	background-color: #2196F3;
	border-color: #2196F3;
	color: white;
}

.box-checkbox:focus-visible + .box-label {
	outline: 2px solid #2196F3;
	outline-offset: 2px;
}

/* Forms inside modals */

#venture-form textarea,
#profile-form textarea {
	width: 100%;
}

/* How It Works */

.how-it-works-section {
	background-color: #4843D6; /* same purple as the logo */
	padding: 60px 40px 70px;
}

.how-it-works-title {
	text-align: center;
	color: #FFFFFF;
	font-weight: 700;
	font-size: 2.75rem;
	margin-bottom: 10px;
}

.how-it-works-subtitle {
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 40px;
	font-size: 1.1rem;
}

.step-card {
	background-color: #FFFFFF;
	border-radius: 16px;
	padding: 32px;
	height: 100%;
}

.step-label {
	color: #777;
	font-size: 0.9rem;
	margin-bottom: 4px;
}

.step-title {
	font-weight: 700;
	margin-bottom: 12px;
}

.step-description {
	color: #444;
	margin-left: 0;
}

.modal-header {
	align-items: center;
}

.modal-header .logo {
	margin-right: 12px;
}

.modal-header h3 {
	margin: 0;
	flex: 1;
}

/*Venture cards*/

.venture-card {
	position: relative;
}

/* Keep line breaks people type in their descriptions */
.venture-card .card-text,
.detail-description {
	white-space: pre-line;
}

.card-avatar-corner {
	position: absolute;
	top: 12px;
	right: 12px;
	height: 40px;
	width: 40px;
	object-fit: cover;
	border-radius: 50%;
	border: 1px solid #ddd;
	background-color: #fff;
}

.venture-card .card-title {
	padding-right: 50px;
}

/*Profile*/
.profile-avatar-wrapper {
	position: relative;
	margin-right: 12px;
}

.profile-avatar {
	height: 48px;
	width: 48px;
	object-fit: cover;
	border-radius: 50%;
	cursor: pointer;
	border: 1px solid #ddd;
}

.remove-avatar-btn {
	position: absolute;
	top: -4px;
	right: -4px;
	height: 18px;
	width: 18px;
	line-height: 16px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid #ccc;
	background-color: white;
	font-size: 12px;
	cursor: pointer;
}

/* Inbox button badge (invites waiting for your answer) */
.inbox-btn {
	position: relative;
}

.inbox-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background-color: #DC3545;
	color: white;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

/* Meeting invite: day and time chips */
.invite-heading {
	font-weight: 700;
	margin-bottom: 4px;
}

.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.slot-chip {
	font-family: var(--font-display);
	padding: 6px 14px;
	border: 2px solid #ccc;
	border-radius: 999px;
	background-color: white;
	color: #333;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: .2s;
}

.slot-chip:hover {
	border-color: #2196F3;
}

.slot-chip.active {
	background-color: #2196F3;
	border-color: #2196F3;
	color: white;
}

.slot-chip:focus-visible {
	outline: 2px solid #2196F3;
	outline-offset: 2px;
}

/* Invite cards */
.invite-card .invite-note {
	white-space: pre-line;
}

.invite-card p {
	margin-left: 0;
}

/* Availability list in the profile */
.availability-slot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 10px;
	margin-bottom: 6px;
	border: 1px solid #E5E5E0;
	border-radius: 8px;
	background-color: #FFFFFF;
}

.availability-remove {
	border: none;
	background: none;
	font-size: 18px;
	line-height: 1;
	color: #888;
	cursor: pointer;
}

.availability-remove:hover {
	color: #DC3545;
}

/* "Find your match" button (same purple as the logo).
   ".btn.find-match-btn" (two classes) beats Bootstrap's ".btn" no matter
   which stylesheet loads first; the --bs-btn-* variables cover every state. */
.btn.find-match-btn,
.btn.btn-brand {
	--bs-btn-bg: #4843D6;
	--bs-btn-border-color: #4843D6;
	--bs-btn-color: #FFFFFF;
	--bs-btn-hover-bg: #3A36B8;
	--bs-btn-hover-border-color: #3A36B8;
	--bs-btn-hover-color: #FFFFFF;
	--bs-btn-active-bg: #3A36B8;
	--bs-btn-active-border-color: #3A36B8;
	--bs-btn-active-color: #FFFFFF;
	--bs-btn-focus-shadow-rgb: 72, 67, 214;
	--bs-btn-font-weight: 700;
}
/* AI matching */

/* Banner above the list while it shows your matches */
.match-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 16px;
	margin-bottom: 16px;
	border-radius: 10px;
	background-color: #EEEDFB;
	border: 1px solid #D5D3F5;
	color: #2B2880;
}

.match-banner p {
	margin-left: 0;
}

/* A matched card gets a purple edge */
.venture-card.is-match {
	border: 2px solid #4843D6;
}

.match-rank {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	color: #4843D6;
	margin-left: 0;
}

.match-reasons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.match-reason {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background-color: #EEEDFB;
	color: #2B2880;
	font-size: 0.8rem;
}

.match-why {
	color: #2B2880;
	margin-left: 0;
}

.industry-badge {
	background-color: #EEEDFB;
	color: #2B2880;
	margin-left: 4px;
}

/* "Detected from your bio" line in the profile */
.profile-signals {
	padding: 8px 12px;
	border-radius: 8px;
	background-color: #EEEDFB;
	color: #2B2880;
	margin-left: 0;
}
