@charset "utf-8";

/* Set up default styles for entire website desktop version */
@font-face {
	font-family: 'Raleway-Regular';
	src: url( '../../../fonts/Raleway/Raleway-Regular.ttf');
}

@font-face {
	font-family: 'Raleway-Bold';
	src: url( '../../../fonts/Raleway/Raleway-Bold.ttf');
}

body{
	background-color: black;
	background-image: none !important;
	color: #ffffff;
	padding: 0px;
	margin: 0px;
	font-family: Raleway-Regular;
	overflow-x: hidden; /* prevent horizontal wobble globally */
}

html { overflow-x: hidden; }

a {
	text-decoration: none;
}

h1{
	margin: 0px;
	font-size: 26px;

}

.body-container{
	padding: 20px;
	padding-top: 85px ;
}

 .section-container{
	background: rgba(18, 18, 18, 0.8);
	max-width: 400px;
	border-radius: 5px;
	padding: 15px;
	margin: 0 auto;
	box-shadow: 0 0px 1px rgba(255, 255, 255, 0.3), 0 0px 10px rgba(255, 255, 255, 0.3);
}

/* Add vertical spacing between consecutive containers */
.section-container + .section-container {
	margin-top: 15px;
}

/* Remove extra top spacing inside a section: first row should sit flush to the container padding */
.section-container > .section-row:first-child {
	margin-top: 0;
}

.section-title{
	text-align: center;
}

.section-row {
	margin-top: 15px;
}

.section-or {
	margin-top: 20px;
	margin-bottom: 20px;
	text-align: center;
	color: #666666;
	font-size: 12px;
	user-select: none;
}

.input-default {
	outline: none;
	border: 1px solid #3b3b3b;
	border-radius: 5px;
	width: 100%;
	padding: 10px;
	font-size: 16px;
	box-sizing: border-box;
	font-family: Raleway-Bold;
	color: #ffffff;
	background: #1f1f1f;
}

.input-default:hover {
	background: #363636;
}

.input-default:focus {
	background: #363636;
	box-shadow: 0 0px 1px rgba(255, 255, 255, 0.3), 0 0px 10px rgba(255, 255, 255, 0.3);
}

.input-error-message {
	display: none;
	color: #b70a0a;
	margin-top: 5px;
	font-size: 12px;
}

.input-default-error{
	border: 1px solid #b70a0a;
}

.default-button{
	font-size: 16px;
	padding: 12px;
	text-align: center;
	border-radius: 5px;
	color: #ffffff;
	user-select: none;
	border: 0 !important; /* remove default button border */
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none; /* ensure no shadow looks like a border */
	box-sizing: border-box; /* prevent 100% width + padding from overflowing container */
	max-width: 100%; /* extra safety in narrow layouts */
}

/* Ensure deep-red variant also stays borderless across states */
.default-button.deep-red { border: 0 !important; }

/* Remove outline when focused/clicked */
.default-button:focus,
.default-button:active {
	outline: none;
}

.default-button:active {
	box-shadow: inset 0 0 20px;
}

.default-button.deep-red {
	background: #b70a0a;
}

.default-button.deep-red:hover {
	background: #cf0909;
	cursor: pointer;
}

.header-container {
	position:fixed;
	width: 100%;
	background: rgba(18, 18, 18, 0.8);
	box-shadow: 0 0px 1px rgba(255, 255, 255, 0.3), 0 0px 10px rgba(255, 255, 255, 0.3);
}

.header-container-inner{
	padding: 10px;
	user-select: none;
}

.header-logo{
	font-family: Raleway-Bold;
	color: #b70a0a;
	display: inline-block;
	font-size: 24px;
}

.header-logo img{
	display: block;
	float: left;
	margin-right: 10px;
	height: 32px;
}

.header-user-menu-container{
	float: right;
	position: relative;
	cursor: pointer;
	color: #b70a0a;
	font-size: 30px;
}

/* Inline header extras (mini avatar + mini thumb) placed after logo */
.header-inline-extras{
	display:inline-flex;
	align-items:center;
	gap:10px;
	margin-left:10px;
	vertical-align:middle;
	opacity:0;
	transition:opacity .15s ease;
}
.header-inline-extras.active{ opacity:1; }
.header-mini-avatar{
	width:28px; height:28px; border-radius:50%; object-fit:cover; display:block; background:#222;
}
/* Mini thumb meter sizing (generic) */
.header-mini-thumb .thumb-meter{ width:38px; height:38px; }
.header-mini-thumb .thumb-meter .thumb-text{ font-size:11px; }
@media (max-width:600px){
	.header-mini-thumb .thumb-meter{ width:34px; height:34px; }
	.header-mini-thumb .thumb-meter .thumb-text{ font-size:10px; }
}

/* Hide mini thumb in the fixed header; keep only the profile picture */
.header-inline-extras .header-mini-thumb { display: none !important; }

.user-menu-overlay{
	display: none;
	background: rgba(18, 18, 18, 0.8);
	position: fixed;
	height: 100%;
	width: 100%;
	top: 0;
	z-index: 1;
}

.user-menu-bars{
	z-index: 2;
	position: relative;
	cursor: pointer;
	font-size: 30px;
}

.user-menu-container{
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 2;
	margin-top: 5px; /* keep visual gap below icons */
}

.user-menu-container.hide{
	display: none;
}

.user-menu-container-inner{
	position: absolute;
	background: rgba(39, 39, 39, 0.8);
	right: 0;
	width: 200px;
}

.user-menu{
	font-size: 16px;
	box-shadow: 0 0px 1px rgba(255, 255, 255, 0.3), 0 0px 10px rgba(255, 255, 255, 0.3);
}

.user-menu-item{
	color: #b70a0a;
	cursor: pointer;
	border-bottom: 1px solid #3b3b3b;
	padding: 10px;
}

.user-menu-item:hover{
	background: #7d7d7d;
}

.user-menu-item.last{
	border-bottom: 0px;
}

.user-menu-item-text{
	font-weight: bold;
	display: inline-block;
}

.user-menu-item-icon{
	float: right;
}

.loader-overlay{
    background:rgba(26,26,26,0.8);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: 10050; /* above all modals (messages modal z-index:5000) */
    display: none;
}

.loader-container{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10051; /* keep spinner above overlay */
    display: none;
}

.loader img{
    animation: rotation 2s infinite linear;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

/* Set up default styles for entire website mobile version */
@media only screen and ( max-width: 1200px ){
	.body-container{
		padding: 10px;
		padding-top: 65px ;
	}
	.section-container{
		max-width: 100%;
	}
	h1{
		font-size: 20px;
	}

}
/* ... existing code ... */

/* Mobile footer nav: visible only on small screens */
.mobile-footer-nav {
	display: none; /* hidden by default, shown in mobile query */
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 56px;
	background: rgba(18,18,18,0.9);
	box-shadow: 0 -1px 0 rgba(255,255,255,0.3), 0 -6px 10px rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: space-evenly; /* even spacing */
	z-index: 1000;
}
.mobile-footer-nav .mf-item {
	color: #bcbcbc;
	text-decoration: none;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 20%;
	height: 100%;
	font-size: 12px;
}
.mobile-footer-nav .mf-item .fa-solid { font-size: 18px; color: #ffffff; }
.mobile-footer-nav .mf-item .mf-label { font-size: 10px; color: #d0d0d0; }

/* On very small screens, reveal footer and add safe padding to body */
@media (max-width: 600px) {
	:root { --footerH: 56px; }
	.mobile-footer-nav { display: flex; }
	.body-container { padding-bottom: calc(56px + 10px); }
}
.header-container {
    position: fixed;
    width: 100%;
    background: rgba(18, 18, 18, 0.8);
    box-shadow: 0 0px 1px rgba(255, 255, 255, 0.3), 0 0px 10px rgba(255, 255, 255, 0.3);
    z-index: 1000; /* ensure header is above page content */
}

/* Ensure the dropdown menu sits on top of the header and content */
/* Keep the container absolutely positioned so it doesn't push layout */
.user-menu-container {
    /* do not override absolute positioning defined above */
    z-index: 1002; /* raise above header */
}
.user-menu-container-inner,
.user-menu {
    position: relative;
    z-index: 1002;
}

/* Overlay should sit above content but below the dropdown menu */
.user-menu-overlay {
    z-index: 1001;
}

/* Avoid content (like profile images) from overlapping the header */
.body-container,
.section-container,
.profile-picture-container {
    position: relative;
    /* removed z-index to allow modals to overlay properly */
}
.header-bell {
	position: relative;
	display: inline-block;
	margin-right: 0;
	font-size: 22px;
	vertical-align: middle;
	color: #b70a0a;
	cursor: pointer;
}
.notif-badge {
	position: absolute;
	bottom: -4px;
	left: 6px;
	background: #cf0909;
	color: #fff;
	border-radius: 999px;
	padding: 1px 5px;
	font-size: 10px;
	line-height: 1.2;
}
.notifications-container { position: absolute; right: 0; top: 100%; margin-right: 0; }
/* Keep wrapper in flow to avoid icon shift; hide only the inner dropdown */
.notifications-container.hide .notifications-container-inner { display: none; }
.notifications-container-inner {
	position: absolute;
	right: 0; /* anchor to the right so it opens leftwards and stays on-screen */
	left: auto;
	margin-top: 6px;
	background: rgba(39,39,39,0.92);
	box-shadow: 0 0px 1px rgba(255,255,255,0.3), 0 0px 10px rgba(255,255,255,0.3);
	border-radius: 4px;
	min-width: 260px;
	max-width: calc(100vw - 20px); /* prevent overflowing the viewport on tiny screens */
	z-index: 1003;
	padding: 8px;
}
.notification-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #333; }
.notification-item:last-child { border-bottom: none; }
.notification-item.empty { color: #aaa; font-size: 12px; justify-content: center; }
.notif-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.notif-text { flex: 1; font-size: 12px; color: #ddd; }
.notif-actions { margin-top: 6px; }


/* Layout hardening: prevent header icons from shifting when menus open */
.header-container-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Let logo take remaining space on the left */
.header-logo {
    flex: 1 1 auto;
}

/* Keep bell + burger anchored on the right and stable width */
.header-user-menu-container {
    position: relative; /* anchor absolutely positioned dropdowns */
    float: none; /* override previous float */
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* keep icons flush right even if container wider */
    gap: 16px; /* even spacing between Back, Bell, and Hamburger */
    min-width: 90px; /* reserve space so badge/dropdowns don’t nudge layout */
}

/* Ensure dropdowns do not affect layout flow */
.user-menu-container { position: absolute; right: 0; top: 100%; }
/* notifications dropdown anchor positioned absolutely so it doesn't affect icon spacing */
.notifications-container { position: absolute; right: 0; top: 100%; }

/* Slightly darken inactive vote icons on comment cards (profile and judge pages) */
.recent-rates-list .vote-controls .vote-btn.up i {
    color: #dddddd !important; /* was #ffffff inline; make inactive a bit darker */
}
.recent-rates-list .vote-controls .vote-btn.down i {
    color: #9a0909 !important; /* was #b70a0a inline; slightly darker */
}


/* Back icon: spacing handled by flex gap for evenness */
.header-back {
    margin-right: 0;
}


/* Pagination controls in feedback sections: make page numbers and buttons smaller */
.section-container.feedback-section .section-row:last-child .default-button {
	font-size: 12px;
	padding: 6px 8px;
	/* Normalize alignment across <a> and <span> buttons */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	line-height: 1.2;
}

/* Prevent press-state visual from changing height */
.section-container.feedback-section .section-row:last-child .default-button:active {
	box-shadow: inset 0 0 20px; /* keep but ensure no size change */
}

/* Ensure pagination wrappers are flex and bottom-align their children to avoid diagonal layout */
.section-container.feedback-section .section-row:last-child > div {
	display: flex;
	align-items: flex-end;
}

/* Reserve space so rating card footers don't overlap pagination row */
.section-container.feedback-section .recent-rates-list {
	padding-bottom: 52px; /* matches card bottom footer area (approx 42px) plus gap */
}

/* Provide a bit of bottom padding for snap/anchor alignment */
.main-container { scroll-padding-bottom: 20px; }

/* Ensure pagination row is a single horizontal line at the bottom */
.section-container.feedback-section .section-row:last-child {
	display: flex;               /* lay out Prev | Page | Next horizontally */
	align-items: flex-end;       /* bottom-align controls */
	justify-content: space-between; /* spread three columns */
	width: 100%;
}


/* Pagination wrappers: enforce left/center/right justification so buttons align correctly */
.section-container.feedback-section .section-row:last-child > div:first-child { justify-content: flex-start; }
.section-container.feedback-section .section-row:last-child > div:nth-child(2) { justify-content: center; }
.section-container.feedback-section .section-row:last-child > div:last-child { justify-content: flex-end; }
