/* ==============================================
   components.css - Buttons, banners, typography
   ============================================== */

/* ── Typography Helpers ── */
.noevent {
	padding-bottom: 10px;
}

.event-details h2 {
	margin-top: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 18px;
	color: #ffffff;
	font-family: sans-serif;
}

.tableheader {
	font-size: 14px;
	color: #ffffff;
}

.tableanswer {
	font-size: 12px;
	color: #ffffff;
}

/* ── Banner ── */
.banner {
	position: relative;
	min-width: 100%;
	z-index: 1;
	top: 90px;
	margin-bottom: 20px;
}

.banner img {
	display: block;
	width: 100%;
	height: 350px;
	object-fit: cover;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.banner-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 90%;
	text-align: center;
	color: #fff;
	z-index: 2;
}

.banner-text h2 {
	font-family: "Termina", sans-serif;
	font-weight: 900;
	line-height: 1.2;
	font-size: 2.5em;
	margin-bottom: 20px;
}

.banner-text p {
	font-size: 1rem;
}

/* ── Buttons ── */
.join-button {
	margin-top: 1.25rem !important;
	display: inline-block;
	padding: 10px 20px;
	background-color: #1f9617;
	color: #fff;
	font-family: "Termina", sans-serif;
	font-weight: 700;
	line-height: 2.375rem;
	text-decoration: none;
	border-radius: 3px;
	transition: background-color 0.3s;
}

.join-button:hover {
	background-color: #45a049;
}

.submit {
	background-color: #0056b3;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.3s ease;
	margin-top: 20px;
}

.results {
	background-color: rgb(139, 0, 0);
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s ease;
	width: 100%;
	font-weight: bold;
}

.event-register-button {
	display: inline-block;
	padding: 10px 20px;
	background-color: #1f9617;
	color: #fff;
	font-family: "Termina", sans-serif;
	font-weight: 700;
	line-height: 2.375rem;
	text-decoration: none;
	border-radius: 3px;
	transition: background-color 0.3s;
	border: none;
	cursor: pointer;
	outline: none;
}

.banner-text .event-register-button,
.banner-text .event-unregister-button {
	margin-top: 1.25rem !important;
}

.event-register-button:hover {
	background-color: #0c5f0e;
}

.event-unregister-button {
	display: inline-block;
	padding: 10px 20px;
	background-color: #dc3545;
	color: #fff;
	font-family: "Termina", sans-serif;
	font-weight: 700;
	line-height: 2.375rem;
	text-decoration: none;
	border-radius: 3px;
	transition: background-color 0.3s;
	border: none;
	cursor: pointer;
	outline: none;
}

.event-unregister-button:hover {
	background-color: #9c1f2c;
}

.details-btn {
	padding: 20px;
	border: none;
	border-radius: 4px;
	width: 100%;
	background-color: #0d6efd;
	color: #ffffff;
	cursor: pointer;
	font-family: "Termina", sans-serif;
	font-weight: 700;
	transition: background-color 0.3s;
	margin-bottom: 20px;
}

.details-btn:hover {
	background-color: #0b5ed7;
}

.seeall-btn {
	padding: 20px;
	border: none;
	border-radius: 4px;
	width: 100%;
	background-color: #0d6efd;
	color: #ffffff;
	cursor: pointer;
	font-family: "Termina", sans-serif;
	font-weight: 700;
	transition: background-color 0.3s;
	margin-bottom: 20px;
}

.join-btn {
	padding: 20px;
	border: none;
	border-radius: 4px;
	width: 100%;
	background-color: #1f9617;
	color: #ffffff;
	cursor: pointer;
	font-family: "Termina", sans-serif;
	font-weight: 700;
	transition: background-color 0.3s;
}

.join-btn:hover {
	background-color: #1a7d13;
}

.leave-btn {
	padding: 20px;
	border: none;
	border-radius: 4px;
	width: 100%;
	background-color: #dc3545;
	color: #ffffff;
	cursor: pointer;
	font-family: "Termina", sans-serif;
	font-weight: 700;
	transition: background-color 0.3s;
}

.results-btn {
	padding: 20px;
	border: none;
	width: 100%;
	border-radius: 4px;
	background-color: #dc3545;
	color: #ffffff;
	cursor: pointer;
	font-family: "Termina", sans-serif;
	font-weight: 700;
}

.results-btn:hover {
	background-color: #c82333;
}

/* ── Steam Button ── */
.steambutton {
	position: relative;
	display: block;
	background-color: #6f9f31;
	width: 100%;
	max-width: 270px;
	height: 50px;
	line-height: 50px;
	margin: 20px auto 0;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	text-decoration: none;
	font-weight: bold;
	overflow: hidden;
	transition: background-color 0.3s ease;
}

.steambutton span {
	font-family: 'Exo 2', sans-serif;
	font-weight: bold;
	letter-spacing: 0.1em;
	font-size: 14px;
	text-transform: uppercase;
	position: absolute;
	width: 75%;
	left: 0;
	top: 0;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s cubic-bezier(0.31, -0.105, 0.43, 1.4);
}

.steambutton .icon {
	position: absolute;
	top: 0;
	right: 0;
	width: 25%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s cubic-bezier(0.31, -0.105, 0.43, 1.4);
}

.steambutton .icon .fab {
	font-size: 30px;
	line-height: 1;
	transition: all 0.25s cubic-bezier(0.31, -0.105, 0.43, 1.4), height 0.25s ease;
}

.steambutton span::after {
	content: '';
	background-color: #5d8628;
	width: 2px;
	height: 70%;
	position: absolute;
	top: 15%;
	right: 0;
}

.steambutton:hover span, .steambutton.success span {
	left: -100%;
	opacity: 0;
}

.steambutton:hover .icon, .steambutton.success .icon {
	width: 100%;
}

.steambutton:hover .icon .fab, .steambutton.success .icon .fab {
	font-size: 45px;
}

/* ── Responsive ── */
@media screen and (max-width: 768px) {
	.banner-text p {
		display: none;
	}
	.banner-text h2 {
		font-size: 2em;
	}
	.join-button {
		font-size: 0.8em;
	}
}
