





	:root{
  --img-shift: 12px; /* how far the image moves down on hover (8–14px is good) */
}

/* card frame */
.list-thumbnail{
  position: relative;
  border-radius: 14px;
  background: var(--tile-bg, rgb(65 109 147)); /* matches your page color */
}

/* image (moves DOWN on hover) */
.list-thumbnail img{
  width: 100%;
  display: block;
  border-radius: inherit;
  transform: translateY(0);
  transition: transform .25s ease;
}

/* caption (slides UP from bottom, clear background) */
.list-thumbnail .caption{
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  transform: translateY(100%);      /* hidden below initially */
  background: #00000070;           /* transparent black */
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  opacity: 0;
  text-align: center;
  transition: transform .25s ease, opacity .25s ease;  /* Corrected transition */
  pointer-events: none;              /* keep link clickable */
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

/* HOVER: full image DOWN a little; name UP into view */
.list-thumbnail:hover img{
  transform: translateY(var(--img-shift));
}

.list-thumbnail:hover .caption{
  transform: translateY(0);
  opacity: 1;
}

/* make sure old effects don't interfere */
.list-thumbnail:hover{
  box-shadow: none;
}



/* ================================
   Search Bar Styles (Top Nav)
   ================================ */

.cg-input--nav {
  height: 34px;
  line-height: 34px;
  padding: 0 12px;
  margin-left: 15px;
  max-width: 320px;
  flex: 1 0 auto;

  border-radius: 10px;
  border: 1px solid #22304a;
  background: #0c1220;
  color: #e9eef7;
  font-size: 14px;
  outline: none;

  -webkit-appearance: none;
  appearance: none;
}

.cg-input--nav::placeholder {
  color: #7d8ba3;
}

.cg-input--nav:focus {
  border-color: #2e4673;
  box-shadow: 0 0 0 2px rgba(142, 203, 255, .15);
}

/* Suggestions dropdown */
.cg-suggest {
  background: #0f1420;
  color: #e9eef7;
  border: 1px solid #22304a;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  z-index: 1200;
}

.cg-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.cg-suggest-item:last-child {
  border-bottom: 0;
}

.cg-suggest-item:hover,
.cg-suggest-item.active {
  background: #142246;
}

.cg-suggest-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 40px;
}

.cg-suggest-title {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}








.user-avatar img {
	width: 40px;
}
.user-avatar {
	border-radius: 50%;
	overflow: hidden;
	cursor: pointer;
}
ul.user-links {
    position: absolute;
    background: #fff;
    right: 0;
    top: 100%;
    z-index: 2;
    text-align: left;
    list-style: none;
    font-weight: normal;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: .25rem;
    padding-left: 0;
    box-shadow: 0 4px 12px 0 rgba(43, 43, 43, 0.1);
}
ul.user-links li {
    padding: 1rem;
    min-width: 220px;
    color: #2c3e50;
}
ul.user-links.hidden {
	display: none;
}
.user-links hr {
	margin: 0;
}
#mainNav .container {
	position: relative;
	padding: 0 10px;
}
.section {
	background-color: #2e4e6a;
	border-radius: 10px;
	padding: 15px;
	margin-bottom: 30px;
	box-shadow: 2px 2px 5px 0 rgba(0,0,0,0.05);
}
.section-title {
	font-size: 1.3rem;
}
.page-title {
	margin-top: 5px;
	margin-bottom: 20px;
}
.profile-username {
	font-size: 20px;
	font-weight: bold;
	margin-top: 20px;
}
.user-page {
	background-color: #f6f8fb;
}
.user-page .single-title {
	margin-top: 0;
	margin-bottom: 10px;
	padding-top: 25px;
	font-size: 1.5rem;
}
.user-page .section-title {
	font-weight: bold;
	margin-bottom: 15px;
}
.profile-bio {
	margin-top: 10px;
}
.profile-join {
	color: #d6793a;
	font-style: italic;
}
.progress-bar {
	background-color: #19bae0;
}
.level-badge {
	float: left;
	margin-right: 10px;
}
.profile-game-item {
	max-width: 80px;
	border-radius: 10px;
	overflow: hidden;
	margin-right: 15px;
}
.profile-gamelist-horizontal {
	position: relative;
}
.profile-gamelist-horizontal ul {
	overflow: hidden;
	white-space: nowrap;
	display: block;
	list-style: none;
	padding: 0;
	margin-bottom: 0;
}

.profile-gamelist-horizontal li {
	display: inline-block;
	text-align: center;
}

.profile-comment-item {
	position: relative;
	border: 1px solid #dcdfe3;
	padding: 15px;
	border-radius: 10px;
	margin-top: 20px;
}

.comment-date {
	font-style: italic;
}

.btn-left {
	position: absolute;
	left: 0;
	background-color: #fff;
	border-radius: 50%;
	top: 14px;
	margin: 5px;
	box-shadow: 0 0 5px 0 rgba(0,0,0,0.3);
	z-index: 1;
}
.btn-right {
	position: absolute;
	right: 0;
	background-color: #fff;
	border-radius: 50%;
	top: 14px;
	margin: 5px;
	box-shadow: 0 0 5px 0 rgba(0,0,0,0.3);
	z-index: 1;
}
.label-xp {
	color: #d6793a;
	font-style: italic;
}
.delete-comment {
	position: absolute;
	right: 10px;
	bottom: 10px;
	cursor: pointer;
}
.input-hidden {
  position: absolute;
  left: -9999px;
}

input[type=radio]:checked + label>img {
  border: 1px solid #fff;
  box-shadow: 0 0 0 3px #14ca14;
}

.avatar-chooser .col-3 {
	padding-right: 5px;
	padding-left: 5px;
}

.avatar-chooser {
	margin-right: 0;
	margin-left: 0;
}

@media (min-width: 768px) {
	.user-avatar {
		margin-left: 20px;
	}
}