/* 
 * Jade Dynasty: Infinite Revival - Main Theme
 * Dark fantasy UI with gold accents and magical elements
 */

:root {
	--primary-bg: #191515;
	--secondary-bg: #1a0e20;
	--card-bg: rgb(26 14 32 / 85%);
	--accent-color: #ffd24b; /* Gold */
	--accent-glow: rgb(212 175 55 / 50%);
	--accent-hover: #e5c158;
	--accent-dark: #9c7c21;
	--secondary-accent: #a83232; /* Deep red */
	--third-accent: #6b3fa0; /* Purple */
	--text-color: #e0e0e0;
	--text-muted: #a0a0a0;
	--text-highlight: #fff;
	--border-color: rgb(212 175 55 / 30%);
	--shadow-color: rgb(0 0 0 / 50%);
	--glow-shadow: 0 0 10px var(--accent-glow);
	--button-gradient: linear-gradient(to bottom, #d4af37, #9c7c21);
	--header-gradient: linear-gradient(
		to bottom,
		rgb(26 14 32 / 90%),
		rgb(10 6 15 / 90%)
	);
	--card-gradient: linear-gradient(
		135deg,
		rgb(26 14 32 / 80%),
		rgb(10 6 15 / 80%)
	);
	--success-color: #2ecc71;
	--danger-color: #e74c3c;
}

/* Base styles */
body,
html {
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--primary-bg);
	font-family: Cinzel, 'Noto Sans', sans-serif;
	min-height: 100vh;
	overflow-x: hidden;
}

body {
	position: relative;
	background-attachment: fixed;
	background-image: url('../images/landscape2.jpg');
	background-position: center;
	background-size: cover;
}

body::before {
	position: absolute;
	z-index: 0;
	background: radial-gradient(
		ellipse at center,
		rgb(10 6 15 / 30%) 0%,
		rgb(10 6 15 / 80%) 100%
	);
	content: '';
	inset: 0;
}

.container {
	position: relative;
	z-index: 2;
	width: 100%;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
	max-width: 1200px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	color: var(--accent-color);
	font-family: Cinzel, serif;
	margin-top: 0;
	text-shadow: 0 0 5px rgb(0 0 0 / 70%), 0 0 10px var(--accent-glow);
}

h1 {
	font-size: 3rem;
	letter-spacing: 2px;
	text-transform: uppercase;
}

h2 {
	font-size: 2.2rem;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

h3 {
	font-size: 1.7rem;
	letter-spacing: 1px;
}

a {
	color: var(--accent-color);
	transition: all 0.3s ease;
	text-decoration: none;
	text-shadow: 0 0 3px var(--accent-glow);
}

a:hover {
	color: var(--accent-hover);
	text-shadow: 0 0 8px var(--accent-glow);
}

/* Utility classes */
.text-success {
	color: var(--success-color);
}

.text-danger {
	color: var(--danger-color);
}

.text-center {
	text-align: center;
}

.mt-4 {
	margin-top: 1.5rem;
}

.float-effect {
	animation: float 6s ease-in-out infinite;
}

.glow-effect {
	animation: glow 2s infinite;
}

/* Header */
header {
	position: relative;
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--header-gradient);
	box-shadow: 0 2px 10px var(--shadow-color);
	border-bottom: 1px solid var(--border-color);
}

.header-top {
	padding: 5px 0;
	font-size: 0.8rem;
	background-color: rgb(0 0 0 / 40%);
	border-bottom: 1px solid rgb(212 175 55 / 10%);
}

.server-info {
	display: flex;
	justify-content: space-between;
}

.server-time {
	display: flex;
	align-items: center;
}

.server-time i {
	color: var(--accent-color);
	margin-right: 5px;
}

.header-main {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
}

.header-main::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 1px;
	background: linear-gradient(
		to right,
		transparent,
		var(--accent-color),
		transparent
	);
	opacity: 0.3;
	content: '';
}

.logo {
	position: relative;
	display: inline-block;
}

.logo img {
	transition: all 0.3s ease;
	filter: drop-shadow(0 0 5px var(--accent-glow));
	max-height: 80px;
}

.logo:hover img {
	transform: scale(1.05);
	filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo::after {
	position: absolute;
	background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
	opacity: 0.5;
	content: '';
	inset: 0;
	pointer-events: none;
}

/* Navigation */
.main-nav ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav li {
	position: relative;
	margin: 0 5px;
}

.main-nav a {
	position: relative;
	z-index: 1;
	display: block;
	padding: 10px 15px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-color);
	border-radius: 3px;
	transition: all 0.3s ease;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.main-nav a::before {
	position: absolute;
	z-index: -1;
	background: linear-gradient(
		to bottom,
		rgb(212 175 55 / 10%),
		rgb(212 175 55 / 5%)
	);
	border-radius: 3px;
	opacity: 0;
	transition: opacity 0.3s ease;
	content: '';
	inset: 0;
}

.main-nav a:hover::before,
.main-nav a.active::before {
	opacity: 1;
}

.main-nav a:hover,
.main-nav a.active {
	color: var(--accent-color);
}

.main-nav a.active::after {
	position: absolute;
	right: 15%;
	bottom: 5px;
	left: 15%;
	height: 2px;
	box-shadow: 0 0 5px var(--accent-glow);
	background-color: var(--accent-color);
	content: '';
}

/* Special Navigation Items (Login/Register) */
.main-nav a#LoginButton,
.main-nav a#RegButton {
	background: rgb(10 6 15 / 50%);
	border: 1px solid var(--accent-color);
	transition: all 0.3s ease;
}

.main-nav a#LoginButton:hover,
.main-nav a#RegButton:hover {
	background: rgb(212 175 55 / 20%);
	box-shadow: 0 0 10px var(--accent-glow);
	transform: translateY(-2px);
}

.main-nav a#RegButton {
	font-weight: bold;
	color: var(--primary-bg);
	background: var(--button-gradient);
}

.main-nav a#RegButton:hover {
	color: var(--text-highlight);
}

/* Full-screen hero banner */
.hero-banner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 105vh; /* Full viewport height */
	min-height: 600px;
	overflow: hidden;
}

/* Radial gradient overlay
.hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(10, 6, 15, 0.3) 0%,
        rgba(10, 6, 15, 0.8) 100%
    );
    z-index: 1;
} */

/* Custom title image container */
.hero-title-image {
	position: relative;
	z-index: 10;
	text-align: center;
	margin-bottom: 50px;
	max-width: 100%;
}

.hero-title-image img {
	height: auto;
	max-width: 70%;
}

.hero-logo {
	display: flex;
	justify-content: center;
}

.hero-logo img {
	width: 100%;
	transition: all 0.3s ease;
	filter: drop-shadow(0 0 5px var(--accent-glow));
}

.hero-logo:hover img {
	transform: scale(1.05);
	filter: drop-shadow(0 0 8px var(--accent-glow));
}

/* Custom button container */
.hero-button-container {
	position: relative;
	z-index: 10;
	text-align: center;
}

.hero-button-container img {
	height: auto;
	transition: all 0.3s ease;
	cursor: pointer;
	max-width: 60%;
}

.hero-button-container img:hover {
	transform: scale(1.05);
	filter: brightness(1.1);
}

/* Floating elements */
.hero-floating-elements {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.floating-element {
	position: absolute;
	opacity: 0.6;
	animation: floatRandom 10s ease-in-out infinite;
	filter: drop-shadow(0 0 5px rgb(212 175 55 / 50%));
}

@keyframes floatRandom {
	0% {
		transform: translate(0, 0) rotate(0deg);
	}

	33% {
		transform: translate(30px, -30px) rotate(10deg);
	}

	66% {
		transform: translate(-20px, 20px) rotate(-5deg);
	}

	100% {
		transform: translate(0, 0) rotate(0deg);
	}
}

/* Character images */
.hero-character {
	position: absolute;
	right: 5%;
	bottom: 0;
	z-index: 5;
	height: 90%;
	animation: float 6s ease-in-out infinite;
	filter: drop-shadow(0 0 15px rgb(0 0 0 / 80%));
}

.hero-character-2 {
	position: absolute;
	right: 25%;
	bottom: 0;
	z-index: 3;
	height: 75%;
	animation: float 8s ease-in-out infinite reverse;
	filter: drop-shadow(0 0 15px rgb(0 0 0 / 50%));
}

@keyframes float {
	0% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-20px);
	}

	100% {
		transform: translateY(0);
	}
}

/* Responsive adjustments */
@media (width <= 992px) {
	.hero-character,
	.hero-character-2 {
		height: 70%;
		opacity: 0.8;
	}

	.hero-title-image {
		margin-bottom: 30px;
		max-width: 90%;
	}
}

@media (width <= 768px) {
	.hero-character {
		right: auto;
		opacity: 0.6;
	}

	.hero-character-2 {
		display: none;
	}

	.hero-title-image {
		margin-bottom: 20px;
		max-width: 95%;
	}
}

/* Server Status */
.server-status {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	color: var(--text-color);
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	box-shadow: 0 5px 15px var(--shadow-color);
	margin-bottom: 30px;
	overflow: hidden;
}

.server-status::before {
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
	opacity: 0.1;
	content: '';
	pointer-events: none;
}

.server-status .status-indicator {
	display: flex;
	align-items: center;
}

.server-status .status-indicator::before {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-shadow: 0 0 5px currentcolor;
	content: '';
	margin-right: 10px;
}

.server-status .online::before {
	animation: pulse 2s infinite;
	background-color: var(--success-color);
}

.server-status .offline::before {
	background-color: var(--danger-color);
}

.server-details {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.server-details span {
	padding-right: 15px;
}

.server-details strong {
	color: var(--accent-color);
}

/* Stats Counter */
.stats-counter {
	display: flex;
	gap: 20px;
	margin-bottom: 40px;
}

.stat-item {
	position: relative;
	flex: 1;
	padding: 25px 20px;
	text-align: center;
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	box-shadow: 0 5px 15px var(--shadow-color);
	transition: all 0.3s ease;
	overflow: hidden;
}

.stat-item::before {
	position: absolute;
	top: -10px;
	right: -10px;
	left: -10px;
	height: 1px;
	background: linear-gradient(
		to right,
		transparent,
		var(--accent-color),
		transparent
	);
	opacity: 0.3;
	content: '';
}

.stat-item:hover {
	box-shadow: 0 8px 20px var(--shadow-color), 0 0 15px var(--accent-glow);
	transform: translateY(-5px);
}

.stat-value {
	font-size: 2.8rem;
	font-weight: bold;
	color: var(--accent-color);
	font-family: Cinzel, serif;
	margin-bottom: 10px;
	text-shadow: 0 0 5px var(--accent-glow);
}

.stat-label {
	font-size: 1rem;
	color: var(--text-muted);
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/* Featured Video Section */
.featured-video-section {
	position: relative;
	display: flex;
	justify-content: center;
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	box-shadow: 0 5px 15px var(--shadow-color);
	margin-bottom: 40px;
	overflow: hidden;
}

.featured-video-section::before {
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
	opacity: 0.05;
	content: '';
	pointer-events: none;
}

.featured-video {
	position: relative;
	z-index: 1;
	flex: 1;
	padding: 20px;
	max-width: 700px;
}

.featured-video iframe {
	width: 100%;
	height: 400px;
	border-radius: 5px;
	box-shadow: 0 0 20px rgb(0 0 0 / 50%);
}

.featured-hero {
	position: relative;
	display: flex;
	flex: 1;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.hero-float {
	position: relative;
	z-index: 1;
	animation: float 6s ease-in-out infinite;
	filter: drop-shadow(0 0 15px rgb(0 0 0 / 80%));
	max-height: 280px;
}

@media (width <= 992px) {
	.featured-video {
		width: 100%;
	}

	.featured-video iframe {
		height: 300px;
	}

	.featured-hero {
		width: 100%;
		height: 300px;
	}

	.hero-float {
		max-height: 300px;
	}
}

/* Main Content */
.main-content {
	padding: 30px 0;
}

.content-grid {
	display: grid;
	gap: 30px;
	grid-template-columns: 1fr;
	margin-bottom: 30px;
}

/* Leaderboard Styles */
.leaderboard {
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	box-shadow: 0 5px 15px var(--shadow-color);
	margin-bottom: 30px;
	overflow: hidden;
}

.leaderboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background-color: rgb(10 6 15 / 50%);
	border-bottom: 1px solid var(--border-color);
}

.leaderboard-header h3 {
	margin: 0;
	color: var(--accent-color);
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.leaderboard-tabs {
	display: flex;
}

.leaderboard-tab {
	position: relative;
	padding: 8px 15px;
	font-size: 0.9rem;
	color: var(--text-muted);
	border: none;
	transition: all 0.3s ease;
	background-color: transparent;
	cursor: pointer;
	font-family: inherit;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.leaderboard-tab.active {
	color: var(--accent-color);
}

.leaderboard-tab.active::after {
	position: absolute;
	right: 15%;
	bottom: 0;
	left: 15%;
	height: 2px;
	box-shadow: 0 0 5px var(--accent-glow);
	background-color: var(--accent-color);
	content: '';
}

.leaderboard-content {
	padding: 0;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

.leaderboard-table {
	width: 100%;
	border-collapse: collapse;
}

.leaderboard-table tr {
	transition: background-color 0.3s ease;
}

.leaderboard-table tr:nth-child(odd) {
	background-color: rgb(0 0 0 / 20%);
}

.leaderboard-table tr:hover {
	background-color: rgb(212 175 55 / 10%);
}

.leaderboard-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.leaderboard-table .rank {
	width: 40px;
	font-weight: bold;
	color: var(--accent-color);
	text-align: center;
	text-shadow: 0 0 5px var(--accent-glow);
}

.leaderboard-table .player {
	display: flex;
	align-items: center;
}

.leaderboard-table .player-avatar {
	width: 30px;
	height: 30px;
	border: 1px solid var(--border-color);
	border-radius: 50%;
	box-shadow: 0 0 5px rgb(0 0 0 / 50%);
	margin-right: 10px;
}

.leaderboard-table .score {
	font-weight: bold;
	color: var(--text-highlight);
	text-align: right;
}

/* Discord Widget */
.discord-widget {
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	box-shadow: 0 5px 15px var(--shadow-color);
	margin-bottom: 30px;
	overflow: hidden;
}

.discord-header {
	display: flex;
	align-items: center;
	padding: 15px;
	background-color: #7289da;
}

.discord-logo {
	width: 30px;
	height: 30px;
	margin-right: 10px;
}

.discord-title {
	margin: 0;
	font-weight: bold;
	color: white;
	text-shadow: none;
}

.discord-content {
	padding: 20px;
}

.discord-stats {
	display: flex;
	justify-content: space-around;
	margin-bottom: 15px;
}

.discord-stat {
	text-align: center;
}

.discord-stat-value {
	font-size: 2rem;
	font-weight: bold;
	color: var(--accent-color);
	font-family: Cinzel, serif;
	text-shadow: 0 0 5px var(--accent-glow);
}

.discord-stat-label {
	font-size: 0.8rem;
	color: var(--text-muted);
	letter-spacing: 1px;
	text-transform: uppercase;
}

.discord-members {
	margin-bottom: 15px;
}

.discord-member {
	display: flex;
	align-items: center;
	padding: 8px;
	border-radius: 4px;
	transition: all 0.3s ease;
	margin-bottom: 10px;
}

.discord-member:hover {
	background-color: rgb(0 0 0 / 20%);
}

.discord-member-avatar {
	width: 30px;
	height: 30px;
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: 50%;
	margin-right: 10px;
}

.discord-member-name {
	font-size: 0.9rem;
}

.discord-join {
	display: block;
	padding: 10px;
	font-weight: bold;
	color: white;
	text-align: center;
	border-radius: 3px;
	transition: all 0.3s ease;
	background-color: #7289da;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.discord-join:hover {
	color: white;
	box-shadow: 0 5px 15px rgb(0 0 0 / 30%);
	transform: translateY(-2px);
	background-color: #5b6eae;
}

/* News Section */
.news-section {
	margin-bottom: 30px;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 20px;
	padding-bottom: 10px;
}

.section-title {
	position: relative;
	display: inline-block;
	margin: 0;
	font-size: 2rem;
	color: var(--accent-color);
	letter-spacing: 2px;
	text-transform: uppercase;
}

.section-title::after {
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 60px;
	height: 3px;
	box-shadow: 0 0 5px var(--accent-glow);
	background-color: var(--accent-color);
	content: '';
}

.view-all {
	font-size: 0.9rem;
	color: var(--text-muted);
	transition: all 0.3s ease;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.view-all:hover {
	color: var(--accent-color);
}

.news-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr 1fr;
}

.featured-news {
	display: flex;
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	box-shadow: 0 5px 15px var(--shadow-color);
	transition: all 0.3s ease;
	grid-column: 1 / -1;
	overflow: hidden;
}

.featured-news:hover {
	box-shadow: 0 8px 25px var(--shadow-color), 0 0 15px var(--accent-glow);
	transform: translateY(-5px);
}

.featured-news-image {
	position: relative;
	width: 40%;
	overflow: hidden;
}

.featured-news-image img {
	width: 100%;
	height: 100%;
	transition: transform 0.5s ease;
	object-fit: cover;
}

.featured-news:hover .featured-news-image img {
	transform: scale(1.05);
}

.featured-news-content {
	width: 60%;
	padding: 20px;
}

.news-date {
	display: inline-block;
	padding: 5px 10px;
	font-size: 0.8rem;
	font-weight: bold;
	color: var(--primary-bg);
	border-radius: 3px;
	background-color: var(--accent-color);
	letter-spacing: 1px;
	margin-bottom: 15px;
	text-transform: uppercase;
}

.featured-news-title {
	font-size: 1.5rem;
	color: var(--text-highlight);
	margin-bottom: 10px;
}

.featured-news-excerpt {
	color: var(--text-color);
	margin-bottom: 15px;
}

.read-more {
	display: inline-flex;
	align-items: center;
	font-weight: bold;
	color: var(--accent-color);
	transition: all 0.3s ease;
}

.read-more i {
	transition: transform 0.3s ease;
	margin-left: 5px;
}

.read-more:hover {
	color: var(--accent-hover);
}

.read-more:hover i {
	transform: translateX(5px);
}

.news-card {
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	box-shadow: 0 5px 15px var(--shadow-color);
	transition: all 0.3s ease;
	overflow: hidden;
}

.news-card:hover {
	box-shadow: 0 8px 25px var(--shadow-color), 0 0 15px var(--accent-glow);
	transform: translateY(-5px);
}

.news-card-image {
	position: relative;
	height: 180px;
	overflow: hidden;
}

.news-card-image img {
	width: 100%;
	height: 100%;
	transition: transform 0.5s ease;
	object-fit: cover;
}

.news-card:hover .news-card-image img {
	transform: scale(1.05);
}

.news-card-content {
	padding: 20px;
}

.news-card-title {
	font-size: 1.2rem;
	color: var(--text-highlight);
	margin-bottom: 10px;
}

.news-card-excerpt {
	font-size: 0.9rem;
	color: var(--text-color);
	margin-bottom: 15px;
}

/* All News Grid (for Updates Page) */
.all-news-grid {
	display: grid;
	gap: 25px;
	grid-template-columns: repeat(3, 1fr);
	margin-bottom: 30px;
}

.all-news-grid .news-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.all-news-grid .news-card-content {
	display: flex;
	flex-grow: 1;
	flex-direction: column;
}

.all-news-grid .news-card-excerpt {
	flex-grow: 1;
}

.pagination {
	display: flex;
	justify-content: center;
	margin: 30px 0;
}

.pagination a,
.pagination span {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	margin: 0 5px;
	font-weight: bold;
	color: var(--text-color);
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 50%;
	transition: all 0.3s ease;
	text-decoration: none;
}

.pagination a:hover {
	color: var(--accent-color);
	box-shadow: 0 5px 15px rgb(0 0 0 / 30%);
	transform: translateY(-2px);
	background-color: rgb(212 175 55 / 20%);
}

.pagination .active {
	color: var(--primary-bg);
	background: var(--button-gradient);
}

/* Single Article Page */
.article-container {
	padding: 30px;
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	box-shadow: 0 5px 15px var(--shadow-color);
	margin-bottom: 30px;
}

.article-header {
	position: relative;
	text-align: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
}

.article-header::after {
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 100px;
	height: 3px;
	box-shadow: 0 0 5px var(--accent-glow);
	transform: translateX(-50%);
	background-color: var(--accent-color);
	content: '';
}

.article-title {
	font-size: 2.5rem;
	color: var(--accent-color);
	margin-bottom: 15px;
}

.article-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 0.9rem;
	color: var(--text-muted);
}

.article-meta span {
	display: flex;
	align-items: center;
	margin: 0 10px;
}

.article-meta i {
	color: var(--accent-color);
	margin-right: 5px;
}

.article-featured-image {
	width: 100%;
	border-radius: 5px;
	box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
	margin-bottom: 30px;
	max-height: 500px;
	overflow: hidden;
}

.article-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-content {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--text-color);
}

.article-content p {
	margin-bottom: 20px;
}

.article-content h2,
.article-content h3 {
	margin: 30px 0 15px;
	color: var(--accent-color);
}

.article-content img {
	margin: 20px 0;
	border-radius: 5px;
	box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
	max-width: 100%;
}

.article-content blockquote {
	margin: 20px 0;
	padding: 15px 20px;
	border-radius: 0 5px 5px 0;
	background-color: rgb(0 0 0 / 20%);
	border-left: 4px solid var(--accent-color);
	font-style: italic;
}

.article-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--border-color);
	margin-top: 40px;
	padding-top: 20px;
}

.article-tags {
	display: flex;
	flex-wrap: wrap;
}

.article-tag {
	display: inline-block;
	padding: 3px 10px;
	font-size: 0.8rem;
	color: var(--accent-color);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	transition: all 0.3s ease;
	background-color: rgb(212 175 55 / 10%);
	margin-bottom: 8px;
	margin-right: 8px;
}

.article-tag:hover {
	transform: translateY(-2px);
	background-color: rgb(212 175 55 / 20%);
}

.article-share {
	display: flex;
}

.share-button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 36px;
	height: 36px;
	color: var(--text-color);
	border: 1px solid var(--border-color);
	border-radius: 50%;
	transition: all 0.3s ease;
	background-color: rgb(0 0 0 / 30%);
	margin-left: 10px;
}

.share-button:hover {
	color: var(--primary-bg);
	transform: translateY(-2px);
	background-color: var(--accent-color);
}

.related-articles {
	margin-top: 40px;
}

.related-articles h3 {
	font-size: 1.8rem;
	color: var(--accent-color);
	letter-spacing: 1.5px;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.related-articles-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, 1fr);
}

/* Admin Panel Styles */
.admin-panel {
	padding: 30px;
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	box-shadow: 0 5px 15px var(--shadow-color);
	margin-bottom: 30px;
}

.admin-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 30px;
	padding-bottom: 15px;
}

.admin-title {
	margin: 0;
	font-size: 2rem;
	color: var(--accent-color);
}

.admin-actions {
	display: flex;
	gap: 10px;
}

.admin-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

.admin-table th,
.admin-table td {
	padding: 15px;
	text-align: left;
	border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.admin-table th {
	font-weight: bold;
	color: var(--accent-color);
	background-color: rgb(0 0 0 / 30%);
	letter-spacing: 1px;
	text-transform: uppercase;
}

.admin-table tr:hover {
	background-color: rgb(212 175 55 / 5%);
}

.admin-table .actions {
	width: 120px;
	text-align: center;
}

.admin-table .action-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 30px;
	height: 30px;
	margin: 0 3px;
	color: var(--text-color);
	border: 1px solid var(--border-color);
	border-radius: 50%;
	transition: all 0.3s ease;
	background-color: rgb(0 0 0 / 30%);
}

.admin-table .action-button:hover {
	color: var(--primary-bg);
	transform: translateY(-2px);
	background-color: var(--accent-color);
}

.admin-table .delete-button:hover {
	background-color: var(--danger-color);
}

.admin-form {
	margin: 0 auto;
	max-width: 800px;
}

.admin-form-group {
	margin-bottom: 25px;
}

.admin-form-group label {
	display: block;
	font-size: 1rem;
	font-weight: bold;
	color: var(--accent-color);
	margin-bottom: 8px;
}

.admin-form-group input[type='text'],
.admin-form-group input[type='url'],
.admin-form-group textarea {
	width: 100%;
	padding: 12px 15px;
	font-size: 1rem;
	color: var(--text-color);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	transition: all 0.3s ease;
	background-color: rgb(0 0 0 / 20%);
	font-family: inherit;
}

.admin-form-group textarea {
	min-height: 300px;
	resize: vertical;
}

.admin-form-group input:focus,
.admin-form-group textarea:focus {
	box-shadow: 0 0 0 2px rgb(212 175 55 / 20%);
	border-color: var(--accent-color);
	outline: none;
}

.file-upload {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 150px;
	border: 2px dashed var(--border-color);
	border-radius: 5px;
	transition: all 0.3s ease;
	background-color: rgb(0 0 0 / 20%);
	cursor: pointer;
	overflow: hidden;
}

.file-upload:hover {
	background-color: rgb(212 175 55 / 5%);
}

.file-upload input[type='file'] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.file-upload-icon {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	pointer-events: none;
}

.file-upload-icon i {
	font-size: 3rem;
	color: var(--accent-color);
	margin-bottom: 15px;
}

.file-upload-icon span {
	color: var(--text-muted);
}

.admin-form-actions {
	display: flex;
	justify-content: space-between;
	margin-top: 30px;
}

.admin-form-actions .btn {
	padding: 12px 25px;
	font-size: 1rem;
}

/* WYSIWYG Editor Override Styles */
.tox-tinymce {
	border: 1px solid var(--border-color) !important;
	border-radius: 5px;
	overflow: hidden;
}

.tox-editor-container {
	background-color: rgb(0 0 0 / 20%) !important;
}

.tox-toolbar {
	background-color: rgb(0 0 0 / 40%) !important;
	border-bottom: 1px solid var(--border-color) !important;
}

.tox-toolbar__group {
	border-right: 1px solid rgb(255 255 255 / 10%) !important;
}

.tox-tbtn {
	color: var(--text-color) !important;
}

.tox-tbtn:hover {
	background-color: rgb(212 175 55 / 10%) !important;
}

.tox-edit-area__iframe {
	background-color: rgb(0 0 0 / 20%) !important;
}

.tox-statusbar {
	color: var(--text-muted) !important;
	background-color: rgb(0 0 0 / 40%) !important;
	border-top: 1px solid var(--border-color) !important;
}

/* Alert Messages */
.alert {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	border-radius: 5px;
	margin-bottom: 20px;
}

.alert i {
	font-size: 1.5rem;
	margin-right: 15px;
}

.alert-success {
	color: var(--success-color);
	border: 1px solid rgb(46 204 113 / 30%);
	background-color: rgb(46 204 113 / 10%);
}

.alert-danger {
	color: var(--danger-color);
	border: 1px solid rgb(231 76 60 / 30%);
	background-color: rgb(231 76 60 / 10%);
}

.alert-warning {
	color: #f1c40f;
	border: 1px solid rgb(241 196 15 / 30%);
	background-color: rgb(241 196 15 / 10%);
}

.alert-info {
	color: #3498db;
	border: 1px solid rgb(52 152 219 / 30%);
	background-color: rgb(52 152 219 / 10%);
}

/* Footer */
footer {
	position: relative;
	z-index: 2;
	padding: 50px 0 20px;
	color: var(--text-color);
	background-color: var(--primary-bg);
	margin-top: 50px;
}

footer::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 1px;
	background: linear-gradient(
		to right,
		transparent,
		var(--border-color),
		transparent
	);
	content: '';
}

.footer-content {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.footer-section {
	flex: 1;
	margin-bottom: 30px;
	margin-right: 30px;
	min-width: 200px;
}

.footer-section:last-child {
	margin-right: 0;
}

.footer-section h3 {
	position: relative;
	font-size: 1.2rem;
	color: var(--accent-color);
	letter-spacing: 1.5px;
	margin-bottom: 15px;
	padding-bottom: 10px;
	text-transform: uppercase;
}

.footer-section h3::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	box-shadow: 0 0 5px var(--accent-glow);
	background-color: var(--accent-color);
	content: '';
}

.footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links li {
	margin-bottom: 10px;
}

.footer-links a {
	font-size: 0.9rem;
	color: var(--text-muted);
	transition: all 0.3s ease;
}

.footer-links a:hover {
	color: var(--accent-color);
	padding-left: 5px;
}

.social-links {
	display: flex;
	margin-top: 15px;
}

.social-link {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--border-color);
	border-radius: 50%;
	transition: all 0.3s ease;
	background-color: rgb(0 0 0 / 30%);
	margin-right: 10px;
}

.social-link:hover {
	transform: translateY(-3px);
	background-color: var(--accent-color);
}

.social-link i {
	font-size: 1rem;
	color: var(--text-color);
}

.footer-bottom {
	font-size: 0.8rem;
	color: var(--text-muted);
	text-align: center;
	border-top: 1px solid rgb(255 255 255 / 5%);
	margin-top: 20px;
	padding-top: 20px;
}

/* Modal/Dialog Styles */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	display: none;
	width: 100%;
	height: 100%;
	animation: fadeIn 0.3s;
	background-color: rgb(0 0 0 / 70%);
	overflow: auto;
}

.modal-content {
	position: relative;
	width: 400px;
	margin: 10% auto;
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	box-shadow: 0 5px 30px var(--shadow-color);
	animation: slideDown 0.3s;
	max-width: 90%;
	overflow: hidden;
}

.modal-content::before {
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
	opacity: 0.05;
	content: '';
	pointer-events: none;
}

.modal-header {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	color: var(--primary-bg);
	background: linear-gradient(
		to right,
		var(--accent-dark),
		var(--accent-color)
	);
	border-radius: 5px 5px 0 0;
}

.modal-header::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: linear-gradient(to right, transparent, white, transparent);
	opacity: 0.2;
	content: '';
}

.modal-header h3 {
	margin: 0;
	font-size: 1.3rem;
	color: var(--primary-bg);
	text-shadow: none;
}

.close {
	font-size: 24px;
	font-weight: bold;
	color: var(--primary-bg);
	transition: all 0.3s ease;
	cursor: pointer;
}

.close:hover {
	color: var(--text-highlight);
	text-shadow: 0 0 5px rgb(255 255 255 / 50%);
}

.modal-body {
	padding: 20px;
}

/* Form Styles */
.form-group {
	position: relative;
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	font-size: 0.9rem;
	font-weight: bold;
	color: var(--text-color);
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.form-group small {
	display: block;
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-top: 5px;
}

.form-control {
	display: block;
	width: 100%;
	padding: 12px 15px;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--text-color);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	background-clip: padding-box;
	background-color: rgb(0 0 0 / 20%);
	box-sizing: border-box;
}

.form-control:focus {
	box-shadow: 0 0 0 0.2rem rgb(212 175 55 / 25%);
	border-color: var(--accent-color);
	outline: 0;
}

/* Form Message Styles */
.form-message {
	display: none;
	margin: 15px 0;
	padding: 10px 15px;
	font-size: 0.9rem;
	border-radius: 4px;
	transition: all 0.3s ease;
}

/* Success Message */
.form-message.success {
	display: block;
	color: #2ecc71;
	border: 1px solid rgb(46 204 113 / 30%);
	animation: fadeIn 0.3s ease-out;
	background-color: rgb(46 204 113 / 20%);
}

.form-message.success::before {
	font-weight: bold;
	content: '✓ ';
}

/* Error Message */
.form-message.error {
	display: block;
	color: #e74c3c;
	border: 1px solid rgb(231 76 60 / 30%);
	animation: fadeIn 0.3s ease-out;
	background-color: rgb(231 76 60 / 20%);
}

.form-message.error::before {
	font-weight: bold;
	content: '✗ ';
}

/* Image CAPTCHA Styles */
.captcha-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 15px;
	background: linear-gradient(135deg, rgb(35 25 40 / 90%), rgb(26 14 32 / 90%));
	border: 1px solid var(--border-color);
	border-radius: 5px;
	gap: 10px;
	margin-bottom: 10px;
}

.captcha-container img {
	border: 1px solid var(--border-color);
	border-radius: 3px;
	box-shadow: 0 0 8px var(--shadow-color);
}

.refresh-captcha {
	padding: 5px 10px;
	font-size: 0.8rem;
	color: var(--text-color);
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	background-color: rgb(0 0 0 / 30%);
	cursor: pointer;
}

.refresh-captcha:hover {
	color: var(--accent-color);
	background-color: rgb(0 0 0 / 50%);
}

.btn-sm {
	padding: 5px 10px;
	font-size: 0.8rem;
}

/* Checkbox Styles */
.checkbox-container {
	position: relative;
	display: block;
	font-size: 0.9rem;
	cursor: pointer;
	margin-bottom: 12px;
	padding-left: 35px;
	user-select: none;
}

.checkbox-container input {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
	cursor: pointer;
}

.checkmark {
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	border: 1px solid var(--border-color);
	border-radius: 3px;
	transition: all 0.2s ease;
	background-color: rgb(0 0 0 / 20%);
}

.checkbox-container:hover input ~ .checkmark {
	background-color: rgb(0 0 0 / 30%);
}

.checkbox-container input:checked ~ .checkmark {
	box-shadow: 0 0 5px var(--accent-glow);
	background-color: var(--accent-color);
	border-color: var(--accent-color);
}

.checkmark::after {
	position: absolute;
	display: none;
	content: '';
}

.checkbox-container input:checked ~ .checkmark::after {
	display: block;
}

.checkbox-container .checkmark::after {
	top: 3px;
	left: 7px;
	width: 5px;
	height: 10px;
	border: solid white;
	transform: rotate(45deg);
	border-width: 0 2px 2px 0;
}

.form-actions {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

/* Button Styles */
.btn {
	display: inline-block;
	padding: 10px 20px;
	font-size: 0.9rem;
	font-weight: 500;
	text-align: center;
	border: none;
	border-radius: 3px;
	transition: all 0.3s ease;
	box-sizing: border-box;
	cursor: pointer;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.btn-primary {
	color: var(--text-highlight);
	background: var(--button-gradient);
	border: 1px solid var(--accent-color);
	box-shadow: 0 0 10px rgb(212 175 55 / 30%);
}

.btn-primary:hover {
	box-shadow: 0 0 15px rgb(212 175 55 / 50%);
	transform: translateY(-2px);
}

.btn-secondary {
	color: var(--text-color);
	border: 1px solid var(--border-color);
	background-color: rgb(0 0 0 / 20%);
}

.btn-secondary:hover {
	transform: translateY(-2px);
	background-color: rgb(0 0 0 / 30%);
}

/* Global Message Styles */
.global-message {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;
	padding: 15px 20px;
	border-radius: 5px;
	box-shadow: 0 5px 15px rgb(0 0 0 / 30%);
	transition: transform 0.5s ease;
	transform: translateX(120%);
	min-width: 300px;
}

.global-message.show {
	transform: translateX(0);
}

.global-message.success {
	color: white;
	background: linear-gradient(
		135deg,
		rgb(46 204 113 / 90%),
		rgb(39 174 96 / 90%)
	);
	border-left: 5px solid #27ae60;
}

.message-content {
	display: flex;
	align-items: center;
}

.message-content i {
	font-size: 1.5rem;
	margin-right: 10px;
}

.message-content span {
	font-size: 1rem;
	font-weight: 500;
}

/* Animation Keyframes */
@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes glow {
	0% {
		box-shadow: 0 0 5px var(--accent-glow);
	}

	50% {
		box-shadow: 0 0 15px var(--accent-glow);
	}

	100% {
		box-shadow: 0 0 5px var(--accent-glow);
	}
}

@keyframes float {
	0% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}

	100% {
		transform: translateY(0);
	}
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgb(46 204 113 / 70%);
	}

	70% {
		box-shadow: 0 0 0 6px rgb(46 204 113 / 0%);
	}

	100% {
		box-shadow: 0 0 0 0 rgb(46 204 113 / 0%);
	}
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: rgb(0 0 0 / 30%);
}

::-webkit-scrollbar-thumb {
	background: var(--accent-color);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--accent-dark);
}

/* Responsive Styles */
@media (width <= 992px) {
	.header-main {
		flex-direction: column;
		text-align: center;
	}

	.logo {
		margin-bottom: 15px;
	}

	.main-nav ul {
		justify-content: center;
		flex-wrap: wrap;
	}

	.hero-banner {
		height: auto;
		padding: 50px 0;
	}

	.content-grid {
		grid-template-columns: 1fr;
	}

	.news-grid {
		grid-template-columns: 1fr;
	}

	.all-news-grid {
		grid-template-columns: 1fr 1fr;
	}

	.related-articles-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (width <= 768px) {
	.footer-content {
		flex-direction: column;
	}

	.footer-section {
		margin-right: 0;
	}

	.server-status {
		flex-direction: column;
		text-align: center;
	}

	.server-status .status-indicator {
		justify-content: center;
		margin-bottom: 10px;
	}

	.server-details {
		justify-content: center;
	}

	.featured-news {
		flex-direction: column;
	}

	.featured-news-image,
	.featured-news-content {
		width: 100%;
	}

	.stats-counter {
		flex-direction: column;
	}

	.stat-item {
		margin: 0 0 15px;
	}

	.modal-content {
		margin: 20% auto;
	}

	.all-news-grid,
	.related-articles-grid {
		grid-template-columns: 1fr;
	}

	.article-meta {
		flex-direction: column;
		gap: 5px;
	}

	.article-footer {
		flex-direction: column;
		gap: 15px;
	}

	.article-tags {
		margin-bottom: 15px;
	}
}

@media (width <= 576px) {
	.form-actions {
		flex-direction: column;
	}

	.btn {
		width: 100%;
		margin-bottom: 10px;
	}

	.admin-header {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}

	.admin-table {
		display: block;
		overflow-x: auto;
	}
}

/* Add these styles to your jade-dynasty-main.css file */

/* Loading Indicator */
.loading-indicator {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 30px;
	font-size: 1.2rem;
	color: var(--accent-color);
	text-align: center;
}

.loading-indicator i {
	animation: spin 2s linear infinite;
	margin-right: 10px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Additional styles for article page responsiveness */
@media (width <= 576px) {
	.article-title {
		font-size: 1.8rem;
	}

	.article-container {
		padding: 15px;
	}

	.article-content {
		font-size: 1rem;
	}

	.article-footer {
		flex-direction: column;
	}

	.article-share {
		margin-top: 15px;
	}
}

/* Fix for overflow issues in content */
.article-content img {
	height: auto;
	max-width: 100%;
}

.article-content iframe {
	max-width: 100%;
}

/* Enhanced hover effects for articles */
.read-more {
	position: relative;
	transition: all 0.3s ease;
	padding-right: 5px;
}

.read-more::after {
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1px;
	transition: width 0.3s ease;
	background-color: var(--accent-color);
	content: '';
}

.read-more:hover::after {
	width: 100%;
}

.read-more i {
	transition: transform 0.3s ease;
	transform: translateX(0);
}

.read-more:hover i {
	transform: translateX(5px);
}

/* Login and Registration  */

body.login-page {
	background-image: url('../images/bg/landscape.jpg');
}

.login-page .hero-logo {
	margin: 0 auto;
	max-width: 400px;
}

.login-page .form-actions {
	margin-bottom: 15px;
}

.login-page .form-actions .btn {
	width: 100%;
}
