@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
	--coral: #E07A5F;
	--coral-dark: #c9664c;
	--teal: #3D8B8B;
	--cream: #FDF8F3;
	--warm-gray: #6B5E5E;
	--sand: #F2E9E4;
	--text: #2D2A2A;
}

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

body {
	margin: 0;
	padding: 0;
	font-family: 'DM Sans', system-ui, sans-serif;
	background: linear-gradient(160deg, var(--cream) 0%, var(--sand) 100%);
	min-height: 100vh;
	color: var(--text);
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: white;
	padding: 16px 24px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

header h1 {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	color: var(--coral);
	letter-spacing: -0.5px;
}

.hero {
	text-align: center;
	padding: 24px 20px 8px;
}

.tagline {
	margin: 0;
	font-size: clamp(13px, 3.5vw, 17px);
	color: var(--warm-gray);
	font-weight: 500;
	line-height: 1.5;
}

.stats {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 20px;
}

.stats span {
	background: white;
	padding: 10px 16px;
	border-radius: 12px;
	font-weight: 700;
	font-size: clamp(12px, 3.5vw, 16px);
	color: var(--text);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	display: flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.actions {
	display: flex;
	justify-content: center;
	gap: 14px;
	padding: 12px 20px;
}

.actions button {
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	background: var(--coral);
	color: white;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(224, 122, 95, 0.3);
	transition: all 0.2s ease;
}

.actions button:hover {
	background: var(--coral-dark);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
}

.actions button:first-child {
	background: var(--teal);
	box-shadow: 0 4px 14px rgba(61, 139, 139, 0.3);
}

.actions button:first-child:hover {
	background: #347676;
	box-shadow: 0 6px 20px rgba(61, 139, 139, 0.4);
}

.tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--sand);
	color: var(--warm-gray);
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	margin-left: 6px;
}

.tab.active .tab-badge {
	background: var(--coral);
	color: white;
}

.filled-badge {
	background: #22c55e;
	animation: pulse-badge 2s ease-in-out infinite;
}

.tab.active .filled-badge {
	background: #22c55e;
	color: white;
}

@keyframes pulse-badge {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.1);
	}
}

.tabs {
	display: flex;
	gap: 0;
	padding: 0 20px;
	margin-top: 16px;
	border-bottom: 2px solid #e5dcd6;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
	.tabs {
		margin-top: 28px;
	}
}

.tab {
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 12px 20px;
	border-radius: 0;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: var(--warm-gray);
	transition: all 0.2s ease;
	white-space: nowrap;
	margin-bottom: -2px;
}

.tab:hover {
	color: var(--coral);
}

.tab.active {
	background: transparent;
	color: var(--coral);
	border-bottom-color: var(--coral);
}

#cardsContainer {
	padding: 10px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.card {
	background: white;
	padding: 16px 18px;
	border-radius: 14px;
	border: none;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: all 0.2s ease;
}

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

.card-header {
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 6px;
	color: var(--text);
}

.card-meta {
	font-size: 14px;
	color: var(--warm-gray);
	margin-bottom: 4px;
}

.discord-link {
	color: var(--teal);
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.discord-link:hover {
	text-decoration: underline;
}

.discord-link.copied {
	color: #22c55e;
}

.card button {
	margin-top: 10px;
	padding: 8px 16px;
	background: var(--teal);
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.2s ease;
}

.card button:hover {
	background: #347676;
}

.matched-info {
	margin-top: 10px;
	padding: 8px 12px;
	background: #ecfdf5;
	border-radius: 8px;
	font-size: 14px;
	color: #166534;
}

.matched-label {
	display: inline-block;
	margin-top: 10px;
	color: #22c55e;
	font-weight: 600;
}

.feed {
	margin-top: 24px;
	padding: 10px 20px;
}

.feed h2 {
	margin-bottom: 12px;
	font-size: 18px;
	color: var(--text);
}

.feed-entry {
	background: white;
	padding: 12px 14px;
	border-radius: 10px;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	font-size: 14px;
	margin-bottom: 8px;
}

.modal {
	position: fixed;
	inset: 0;
	background: rgba(45, 42, 42, 0.5);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal-content {
	background: white;
	width: 90%;
	max-width: 380px;
	padding: 24px;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.modal.hidden {
	display: none;
}

.modal-content h3 {
	margin: 0 0 8px 0;
	font-size: 20px;
	color: var(--text);
}

.modal-content h4 {
	margin: 8px 0 4px 0;
	font-size: 14px;
	color: var(--warm-gray);
	font-weight: 500;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
	width: 100%;
	padding: 12px;
	border: 2px solid var(--sand);
	border-radius: 10px;
	margin: 0;
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.2s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
	outline: none;
	border-color: var(--coral);
}

.modal-content button {
	width: 100%;
	padding: 12px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

#submitTask {
	background: var(--coral);
	color: #fff;
}

#submitTask:hover {
	background: var(--coral-dark);
}

#closeModal {
	background: var(--sand);
	color: var(--warm-gray);
}

#closeModal:hover {
	background: #e5dcd6;
}

#saveProfile {
	background: var(--teal);
	color: white;
}

#saveProfile:hover {
	background: #347676;
}

#profileBadge {
	font-size: 14px;
	background: var(--sand);
	color: var(--text);
	padding: 8px 14px;
	border-radius: 20px;
	font-weight: 500;
	transition: all 0.2s ease;
}

#profileBadge:hover {
	background: #e5dcd6;
}

#profileBadge span {
	color: var(--warm-gray);
	font-size: 12px;
	margin-left: 6px;
}

.comp-options {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	margin: 4px 0;
}

.comp-btn {
	flex: 1;
	text-align: center;
	font-size: 14px;
	padding: 4px 0;
	border-radius: 10px;
	border: 2px solid var(--sand);
	background: white;
	color: var(--text);
	cursor: pointer;
	font-weight: 500;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	-webkit-appearance: none;
	-webkit-text-fill-color: var(--text);
}

.comp-btn:hover {
	border-color: var(--coral);
	color: var(--coral);
	-webkit-text-fill-color: var(--coral);
}

.comp-btn.selected {
	background: var(--coral);
	border-color: var(--coral);
	color: white;
	-webkit-text-fill-color: white;
}