/*!
Theme Name: Sanctuary Of Aden Custom
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: soaaden-custom
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Sanctuary Of Aden Custom is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* Import Fantasy Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Metamorphous&display=swap');

/* Custom EnchantedSword Font */
@font-face {
    font-family: 'EnchantedSword';
    src: url('fonts/EnchantedSword.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Custom ShmupInTheZone Font */
@font-face {
    font-family: 'ShmupInTheZone';
    src: url('fonts/shmup-in-the-zone-font/ShmupInTheZone-8Dng.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Custom Blood Red Theme variables - updated with darker red background and white text */
:root {
    --primary-color: #400000; /* Darker Blood Red (was #8B0000) */
    --primary-dark: #300000; /* Even darker red for hover states (was #610000) */
    --primary-light: #500000; /* Slightly lighter dark red (was #C41E3A) */
    --secondary-color: #200000; /* Very dark red (was #400000) */
    --text-color: var(--accent-color); /* Was #ffffff, now using accent gold */
    --background-color: #300000; /* Deep dark red background - keeping this */
    --background-light: #400000; /* Slightly lighter background (was #500000) */
    --accent-color: #ffcc99; /* Light orange/gold for accents - keeping this */
    --border-color: #500000; /* Border color matching theme (was #6b0000) */
    
    /* New complementary colors */
    --deep-purple: #2a0040; /* Deep purple for contrast with reds */
    --dark-blue: #001a33; /* Dark blue for additional contrast */
    --rich-gold: #996633; /* Richer gold for important borders */
    --ember-orange: #993300; /* Deep orange for fiery elements */
    --dark-green: #003300; /* Dark green for earthy elements */
    --highlight: rgba(255, 204, 153, 0.2); /* Transparent gold for subtle highlights */
    
    --font-primary: 'ShmupInTheZone', 'Metamorphous', serif;
    --font-secondary: 'ShmupInTheZone', 'EnchantedSword', 'Cinzel', serif;
}

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    background-color: var(--dark-blue); /* Set root background to dark blue */
    height: 100%; /* Force html to take full height */
    overflow-y: scroll; /* Always show scrollbar to prevent layout shifts */
    overscroll-behavior-y: none; /* Prevent bounce/rubber-band effect */
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
	font-family: var(--font-primary);
	color: var(--text-color);
	min-height: 100%; 
	height: 100%; /* Ensure full height for background */
	display: flex;
	flex-direction: column;
	overflow-x: hidden; 
	background-color: var(--dark-blue); /* Fallback color */
    background-image: url('images/starrybackground.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Apply to the whole page */
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1, .site-title, .hero-section h1 {
	font-family: var(--font-secondary);
	letter-spacing: 1.5px;
	font-weight: normal;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	line-height: 1.4;
	text-transform: uppercase;
}

.site-title {
	font-size: 2.0em;
	margin: 0;
	line-height: 1.1; /* Reduced line-height */
	font-weight: normal;
	text-transform: uppercase;
	letter-spacing: 1px; /* Corrected from 1.5px */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	position: static !important; /* Override any other positioning */
	left: auto !important;       /* Neutralize horizontal offsets */
	right: auto !important;      /* Neutralize horizontal offsets */
}

.section-title, h2 {
	font-family: var(--font-secondary);
	letter-spacing: 1px;
	line-height: 1.5;
	font-weight: normal;
	font-size: 1.8em;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	color: var(--accent-color);
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: var(--text-color);
	font-family: var(--font-primary);
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: 0.5px; /* Added for better readability with pixel font */
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-family: var(--font-secondary);
	font-weight: normal;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	letter-spacing: 1.5px;
	line-height: 1.4;
}

h2 {
	font-size: 1.9em;
	margin: 0.83em 0;
}

h3 {
	font-size: 1.6em;
	margin: 1em 0;
	font-weight: normal;
}

p {
	margin-bottom: 1.3em;
	font-size: 1em;
	line-height: 1.7;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background-color: var(--primary-dark);
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--border-color);
}

th {
	background-color: var(--primary-dark);
	color: var(--text-color);
	border: 1px solid var(--border-color);
	padding: 8px;
}

td {
	background-color: var(--secondary-color);
	color: var(--text-color);
	border: 1px solid var(--border-color);
	padding: 8px;
}

/* Links
--------------------------------------------- */
a:visited {
	color: var(--accent-color);
	opacity: 0.9;
}

a:hover,
a:focus,
a:active {
	color: var(--text-color);
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	background-color: var(--primary-color);
	border: 1px solid var(--primary-light);
	color: var(--text-color);
	padding: 8px 20px;
	cursor: pointer;
	font-family: var(--font-primary);
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: all 0.3s ease;
	line-height: 1.3;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background-color: var(--primary-dark);
	border-color: var(--primary-light);
}

button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
	transform: translateY(1px);
}

/* Form Elements - REPLACED WITH STANDARDIZED STYLES BELOW */
/* Old dark theme styles removed - see standardized input styles section */

/* Old select and textarea styles removed - using standardized styles */

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	flex: 0 0 auto;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	/* outline: 1px solid blue !important; */ /* Removed debugging outline */
}

.primary-menu-container {
	position: relative;
	width: 100%; /* Ensure this container takes full width of .main-navigation */
}

.primary-menu {
	display: flex !important;
	flex-direction: row !important;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 8px; /* Add spacing between menu items */
}

.primary-menu li {
	display: inline-block !important;
	margin: 0 !important;
}

.primary-menu a {
	display: inline-block !important;
	padding: 12px 15px;
	color: var(--text-color);
	text-decoration: none;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	position: relative;
	transition: all 0.3s ease;
	font-size: 1.1em; /* Slightly reduced for better layout */
}

.primary-menu a:hover {
	color: var(--accent-color);
}

.primary-menu a::after {
	content: '';
	position: absolute;
	bottom: 5px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 2px;
	background-color: var(--accent-color);
	transition: width 0.3s ease;
}

.primary-menu a:hover::after {
	width: 50%;
}

/* Mobile Menu Toggle */
.menu-toggle {
	background: rgba(255, 255, 255, 0.15);
	border: 2px solid var(--rich-gold);
	border-radius: 6px;
	padding: 8px;
	cursor: pointer;
	display: none; /* Hidden by default, shown on mobile */
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 44px;
	height: 44px;
	position: relative;
	z-index: 1001;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.menu-toggle-icon {
	display: block;
	width: 24px;
	height: 3px;
	background-color: var(--rich-gold);
	position: relative;
	transition: background-color 0.3s ease;
	border-radius: 2px;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
	content: '';
	position: absolute;
	width: 24px;
	height: 3px;
	background-color: var(--rich-gold);
	transition: transform 0.3s ease;
	border-radius: 2px;
}

.menu-toggle-icon::before {
	top: -8px;
}

.menu-toggle-icon::after {
	bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
	background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
	transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
	transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu - Updated breakpoint */
@media screen and (max-width: 768px) {
	.menu-toggle {
		display: flex;
	}
	
	.menu-toggle:hover {
		background: rgba(255, 255, 255, 0.25);
		border-color: var(--accent-color);
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
	}
	
	.menu-toggle:active {
		transform: scale(0.95);
	}
	
	.main-navigation {
		position: relative;
	}
	
	.primary-menu-container {
		position: absolute;
		top: calc(100% + 2px);
		left: -16px;
		right: -16px;
		background-color: var(--secondary-color);
		border: 2px solid var(--rich-gold);
		border-top: none;
		padding: 1rem;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
		display: none;
		z-index: 999;
		margin-top: 0;
		box-sizing: border-box;
	}

	.primary-menu-container.toggled {
		display: block;
	}

	.primary-menu {
		flex-direction: column;
		gap: 0.75rem;
	}

	.primary-menu a {
		display: block;
		padding: 1rem 0.75rem;
		border-bottom: 1px solid var(--rich-gold);
		transition: all 0.3s ease;
		color: var(--text-color);
		text-decoration: none;
		font-weight: 500;
		min-height: 44px;
		display: flex;
		align-items: center;
	}
	
	.primary-menu a:hover {
		padding-left: 1.25rem;
		background-color: rgba(255, 204, 153, 0.1);
		color: var(--accent-color);
	}
	
	.primary-menu li:last-child a {
		border-bottom: none;
	}
	
	/* Hide desktop menu on mobile */
	.main-navigation .primary-menu {
		display: none;
	}
	
	.primary-menu-container .primary-menu {
		display: flex;
	}
}

/* Enhanced mobile header styles */
@media screen and (max-width: 768px) {
	.header-container {
		flex-wrap: nowrap;
		padding: 12px 16px;
		gap: 12px;
		align-items: center;
	}

	.site-branding {
		flex: 1;
		min-width: 0;
	}
	
	.site-branding .site-title {
		font-size: 1.25rem;
		margin: 0;
	}

	.main-navigation {
		order: 3;
		flex: 0 0 auto;
		position: relative;
	}

	.user-profile-area {
		order: 2;
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.user-name {
		display: none; /* Hide username on very small screens */
	}
	
	.user-avatar {
		width: 32px;
		height: 32px;
	}
	
	.user-avatar img {
		width: 32px;
		height: 32px;
	}

	.login-register {
		gap: 0.5rem;
	}

	.login-link, .register-link {
		padding: 0.5rem 0.75rem;
		font-size: 0.875rem;
		min-height: 44px; /* Better touch target */
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* Extra small mobile optimization */
@media screen and (max-width: 480px) {
	.header-container {
		padding: 0.75rem;
	}
	
	.site-branding .site-title {
		font-size: 1rem;
	}
	
	.login-link, .register-link {
		padding: 0.375rem 0.5rem;
		font-size: 0.8125rem;
	}
	
	.menu-toggle {
		width: 28px;
		height: 18px;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	margin: 0 !important; /* Keep for WP defaults */
	padding: 0 !important; /* Keep for WP defaults */
	display: inline-block;
	vertical-align: middle;
}

.custom-logo {
	margin: 0 !important; /* Keep for WP defaults */
	padding: 0 !important; /* Keep for WP defaults */
	display: inline-block;
	vertical-align: middle;
	max-height: 50px;
}

.site-branding {
	flex: 0 0 auto;
	padding: 0; 
	margin: 0; 
	/* display: block; */ 
	/* outline property should be removed */
	/* outline-color property should be removed */
}

.site-title, 
h1.site-title,
p.site-title {
	margin: 0; 
	padding: 0; 
	font-size: 2.0em;
	line-height: 1.1; 
	font-weight: normal;
	text-transform: uppercase;
	letter-spacing: 1px; 
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	position: static !important; 
	left: auto !important;      
	right: auto !important;     
	/* outline property should be removed */ 
	/* outline-color property should be removed */
}

/* Target the <a> tag directly within h1.site-title or p.site-title */
h1.site-title a,
p.site-title a {
    padding: 0; 
    margin: 0; 
    display: inline-block !important; 
    text-decoration: none !important; /* Remove underline */
}

.site-description {
	margin: 0;
	font-size: 0.9em;
	color: var(--text-color);
	font-family: var(--font-primary);
	letter-spacing: 0.5px;
	opacity: 0.9;
}

/* User Profile Area */
.user-profile-area {
	flex: 0 0 auto;
	text-align: right;
	padding-right: 0; 
	margin-right: 0; 
	/* outline: 1px solid yellow !important; */ /* Outline removed for now */
}

.user-profile-dropdown {
	position: relative;
	display: inline-block;
}

.user-profile-toggle {
	display: flex;
	align-items: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px 10px;
	color: var(--text-color);
}

.user-profile-toggle:hover {
	color: var(--accent-color);
}

.user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	margin-right: 10px;
	border: 2px solid var(--rich-gold);
}

.user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.user-name {
	margin-right: 5px;
	font-weight: 500;
	font-family: var(--font-primary);
}

.dropdown-icon {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid var(--text-color);
}

.user-dropdown-menu {
	position: absolute;
	top: 100%;
	right: 0;
	background-color: var(--background-color); /* Changed back to red */
	border: 1px solid var(--rich-gold);
	border-top: 2px solid var(--accent-color);
	min-width: 160px;
	z-index: 100;
	display: none;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.user-profile-dropdown.active .user-dropdown-menu {
	display: block;
}

.user-dropdown-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.user-dropdown-menu li {
	border-bottom: 1px solid var(--border-color);
}

.user-dropdown-menu a {
	display: block;
	padding: 10px 15px;
	color: var(--text-color);
	text-decoration: none;
	transition: all 0.3s ease;
	font-family: var(--font-primary);
	font-size: 0.95rem;
}

.user-dropdown-menu a:hover {
	background-color: var(--primary-dark);
}

.login-register {
	display: flex;
	align-items: center;
}

.login-link, .register-link {
	padding: 8px 15px;
	margin-left: 10px;
	text-decoration: none;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-family: var(--font-primary);
}

.login-link {
	color: var(--text-color);
	border: 1px solid var(--rich-gold);
	transition: all 0.3s ease;
}

.login-link:hover {
	background-color: var(--deep-purple);
}

.register-link {
	background-color: var(--ember-orange);
	color: var(--text-color);
	transition: all 0.3s ease;
	border: 1px solid var(--rich-gold);
}

.register-link:hover {
	background-color: var(--rich-gold);
}

/* This header responsive section is now replaced by enhanced mobile styles above */

/* Footer Styles */
.site-footer {
	background-color: transparent; /* Was dark-blue + image */
    /* background-image, repeat, size, position, attachment removed */
	padding: 10px 0 0; 
	margin-top: auto; 
}

.footer-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-bottom: 10px; /* Further reduced margin */
}

.footer-logo {
	flex: 1;
	min-width: 250px;
	margin-bottom: 10px; /* Reduced margin */
}

.footer-logo .site-title {
	font-size: 1.6em; /* Reduced font size */
	margin-bottom: 5px; /* Reduced margin */
}

.footer-logo .site-title a {
	color: var(--text-color) !important; /* Force white in footer too */
}

.footer-menu {
	flex: 2;
	text-align: right;
}

.footer-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-menu li {
	display: inline-block;
	margin-left: 20px;
}

.footer-menu a {
	color: var(--text-color);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-family: var(--font-primary);
	font-size: 0.9em; /* Reduced font size */
}

.footer-menu a:hover {
	color: var(--accent-color);
}

.site-info {
	text-align: center;
	padding-top: 5px; /* Further reduced padding */
	border-top: 1px solid var(--rich-gold); /* Changed from --ember-orange */
	color: var(--text-color);
	opacity: 0.8;
	font-family: var(--font-primary);
	font-size: 0.8em; /* Reduced font size */
	letter-spacing: 0.5px;
}

.site-info p {
	margin: 0 0 5px; /* Reduced margin */
}

@media screen and (max-width: 768px) {
	.footer-content {
		flex-direction: column;
		text-align: center;
	}
	
	.footer-logo, .footer-menu {
		flex: 0 0 100%;
		margin-bottom: 1rem;
		text-align: center;
	}
	
	.footer-menu ul {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
	}
	
	.footer-menu li {
		display: block;
		margin: 0;
	}
}

/* Page Layout */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: transparent; /* Changed from var(--dark-blue) */
    position: relative; 
    z-index: 1; 
}

#primary.site-main {
    background-color: transparent; /* Was dark-blue + image */
    /* background-image, repeat, size, position, attachment removed */
    flex: 1; 
    padding: 1.5rem 0; 
    position: relative; /* Establish positioning context */
    z-index: 2; /* Higher than page container */
}

.page-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.page .entry-title {
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: 2rem;
	color: #333;
}

.page .entry-content {
	margin-top: 0;
}

.entry-content h2 {
	font-size: 1.8em;
	color: var(--text-color);
	margin-top: 1.5em;
	margin-bottom: 0.8em;
	position: relative;
	padding-left: 15px;
}

.entry-content h2::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10%;
	height: 80%;
	width: 5px;
	background-color: var(--accent-color);
}

.entry-content h3 {
	font-size: 1.5em;
	color: var(--text-color);
	margin-top: 1.2em;
	margin-bottom: 0.6em;
}

.entry-content p {
	margin-bottom: 1.3em;
	font-size: 1em;
	line-height: 1.7;
}

.entry-content ul,
.entry-content ol {
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}

.entry-content li {
	margin-bottom: 0.7em;
}

/* Hide widget areas on regular pages */
.widget-area {
	display: none;
}

/* Only show widgets on blog/archive pages if needed */
.blog .widget-area,
.archive .widget-area,
.single-post .widget-area {
	display: block;
}

/* Home Page Styles */
.home-page section {
	margin-bottom: 4rem;
}

/* Hero Section */
.hero-section {
	background-color: var(--background-color);
	background-image: linear-gradient(rgba(32, 0, 0, 0.7), rgba(32, 0, 0, 0.9)), url('../images/hero-bg.jpg');
	border-bottom: 3px solid var(--primary-light);
}

.hero-section::before {
	background: radial-gradient(circle, rgba(64, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
}

.hero-container {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: center;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
}

.hero-section h1 {
	font-size: 3.2em;
	color: var(--text-color);
	margin-bottom: 0.6em;
	text-shadow: 0 0 10px rgba(64, 0, 0, 0.8);
	transform: scale(1.02);
	letter-spacing: 2px;
}

.hero-tagline {
	font-size: 1.2em;
	color: var(--text-color);
	margin-bottom: 30px;
	line-height: 1.6;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

/* Buttons */
.btn {
	display: inline-block;
	font-family: var(--font-primary);
	padding: 8px 20px;
	margin: 10px 5px;
	border: 2px solid;
	border-radius: 0;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: normal;
	font-size: 1em;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	transform: skew(-2deg); /* Slight skew for a dynamic look */
}

.btn:before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
	z-index: -1;
}

.btn:hover:before {
	left: 0;
}

.btn-primary {
	background-color: var(--deep-purple);
	border-color: var(--rich-gold);
	color: var(--text-color);
}

.btn-primary:hover {
	background-color: var(--dark-blue);
	border-color: var(--accent-color);
	transform: skew(-2deg) translateY(-2px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
	background-color: var(--dark-blue);
	border-color: var(--rich-gold);
	color: var(--text-color);
}

.btn-secondary:hover {
	background-color: var(--ember-orange);
	color: var(--text-color);
}

/* Featured Sections */
.section-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.featured-section {
	background-color: var(--secondary-color);
	border: 1px solid var(--border-color);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	color: var(--text-color);
	padding: 2rem;
	border-radius: 8px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-section:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
	background-color: var(--primary-dark);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.section-icon i {
	font-size: 2rem;
	color: #007bff;
}

.section-icon-accounts,
.section-icon-info,
.section-icon-wiki {
	display: inline-block;
	width: 40px;
	height: 40px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.section-icon-accounts {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007bff"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
}

.section-icon-info {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007bff"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>');
}

.section-icon-wiki {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007bff"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/></svg>');
}

.featured-section h2 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--text-color);
}

.featured-section p {
	margin-bottom: 1.5rem;
	color: var(--text-color);
	opacity: 0.9;
}

.section-link {
	color: var(--accent-color);
	text-decoration: none;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
}

.section-link:hover {
	color: var(--accent-color);
	text-decoration: underline;
}

.section-link::after {
	content: '→';
	margin-left: 0.5rem;
	transition: transform 0.3s ease;
}

.section-link:hover::after {
	transform: translateX(3px);
}

/* Latest News Section */
.section-title {
	font-size: 2.1em;
	text-align: center;
	margin-bottom: 1.8rem;
	color: var(--text-color);
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.news-card {
	background-color: var(--secondary-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-thumbnail {
	height: 200px;
	overflow: hidden;
}

.news-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.news-card:hover .news-thumbnail img {
	transform: scale(1.05);
}

.news-content {
	padding: 1.5rem;
	color: var(--text-color);
}

.news-title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.news-title a {
	color: var(--text-color);
	text-decoration: none;
}

.news-title a:hover {
	color: var(--accent-color);
}

.news-meta {
	color: var(--text-color);
	opacity: 0.8;
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.news-excerpt {
	color: var(--text-color);
	opacity: 0.9;
	margin-bottom: 1rem;
}

.news-read-more {
	color: var(--accent-color);
	text-decoration: none;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
}

.news-read-more:hover {
	text-decoration: underline;
}

.news-read-more::after {
	content: '→';
	margin-left: 0.5rem;
	transition: transform 0.3s ease;
}

.news-read-more:hover::after {
	transform: translateX(3px);
}

.view-all-news {
	text-align: center;
}

.view-all-news .btn-secondary {
	background-color: rgba(42, 0, 64, 0.3);
	border-color: var(--rich-gold);
	color: var(--accent-color);
}

.view-all-news .btn-secondary:hover {
	background-color: var(--ember-orange);
	color: var(--text-color);
	border-color: var(--rich-gold);
}

/* Community Section */
.community-section {
	background-color: var(--dark-blue);
	padding: 4rem 1rem;
	text-align: center;
	border-top: 3px solid var(--rich-gold);
	border-bottom: 3px solid var(--rich-gold);
}

.community-section .section-title {
	color: var(--accent-color);
	margin-bottom: 1.5rem;
}

.community-content p {
	max-width: 800px;
	margin: 0 auto 2rem;
	color: var(--text-color);
	font-size: 1.1rem;
}

.community-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.btn-social {
	padding: 0.75rem 2rem;
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--rich-gold);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-discord {
	background-color: #5865F2; /* Official Discord brand color */
	color: #fff;
	transition: all 0.3s ease;
	box-shadow: 0 0 10px rgba(88, 101, 242, 0.4); /* Matching glow */
}

.btn-discord:hover {
	background-color: #4752c4; /* Slightly darker shade for hover */
	box-shadow: 0 0 15px rgba(88, 101, 242, 0.6); /* Enhanced glow on hover */
	transform: translateY(-2px); /* Slight lift effect */
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
	.hero-section {
		padding: 3rem 1rem;
	}
	
	.hero-section h1 {
		font-size: 2.25rem;
		line-height: 1.2;
	}
	
	.hero-tagline {
		font-size: 1.125rem;
		margin-bottom: 2rem;
	}
	
	.hero-buttons {
		flex-direction: column;
		gap: 0.75rem;
		align-items: center;
	}
	
	.hero-buttons .btn {
		width: 100%;
		max-width: 280px;
		text-align: center;
	}
	
	.community-buttons {
		flex-direction: column;
		gap: 0.75rem;
		align-items: center;
	}
	
	.community-buttons .btn {
		width: 100%;
		max-width: 280px;
	}
}

/* Game Accounts Page Styles */
.game-accounts-page .dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.game-accounts-page .dashboard-actions {
	display: flex;
	gap: 1rem;
}

.game-accounts-page .no-accounts-message {
	text-align: center;
	padding: 3rem 2rem;
	background-color: rgba(0, 0, 0, 0.05);
	border-radius: 8px;
	margin-bottom: 2rem;
}

.game-accounts-page .account-buttons {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
}

/* Account Modal Styles */
.account-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.5);
}

.account-modal .modal-content {
	background-color: var(--secondary-color);
	color: var(--text-color);
	border: 1px solid var(--border-color);
	margin: 10% auto;
	padding: 0;
	width: 90%;
	max-width: 500px;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.account-modal .modal-header {
	padding: 1.5rem;
	border-bottom: 1px solid var(--border-color);
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: var(--primary-dark);
}

.account-modal .modal-header h3 {
	margin: 0;
	color: var(--text-color);
}

.account-modal .close-modal {
	font-size: 28px;
	font-weight: bold;
	color: var(--text-color);
	cursor: pointer;
}

.account-modal .close-modal:hover {
	color: var(--accent-color);
}

.account-modal .modal-body {
	padding: 1.5rem;
}

/* Form Styles */
.account-modal .form-group {
	margin-bottom: 1.5rem;
}

.account-modal label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--text-color);
}

.account-modal input[type="text"],
.account-modal input[type="password"] {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

.account-modal .field-hint {
	font-size: 0.875rem;
	color: var(--text-color);
	margin-top: 0.25rem;
	opacity: 0.8;
}

.account-modal .form-actions {
	margin-top: 2rem;
	text-align: right;
}

.account-modal .btn-primary {
	background-color: #0073aa;
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
}

.account-modal .btn-primary:hover {
	background-color: #005a87;
}

/* Game Accounts List */
#accounts-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 1rem;
}

.accounts-loading,
.characters-loading {
	text-align: center;
	padding: 2rem;
	color: #6c757d;
	font-style: italic;
}

.no-accounts-message,
.no-characters-message {
	text-align: center;
	padding: 3rem 2rem;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	color: #6c757d;
}

.no-accounts-message h3 {
	color: #495057;
	margin-bottom: 1rem;
}

.no-accounts-message .message-icon,
.no-characters-message .message-icon {
	font-size: 3rem;
	color: #dee2e6;
	margin-bottom: 1rem;
}

.account-card {
	background-color: #ffffff;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	color: #333;
	width: 100%;
	margin-bottom: 1rem;
}

.account-card .account-header {
	background-color: #f8f9fa;
	border-bottom: 1px solid #dee2e6;
	padding: 12px 16px;
	border-radius: 6px 6px 0 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.account-card .account-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #495057;
}

.account-card .account-status {
	font-size: 12px;
	font-weight: 500;
	padding: 4px 8px;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.account-card .account-status.active {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.account-card .account-status.banned {
	background-color: #f5c6cb;
	color: #721c24;
	border: 1px solid #f1b0b7;
}

.account-card .account-details {
	display: flex;
	padding: 16px;
	gap: 16px;
}

.account-card .account-info p {
	margin: 4px 0;
	font-size: 13px;
	color: #495057;
}

.account-card .account-info .change-password-btn {
	font-size: 12px;
	padding: 4px 8px;
	margin-top: 8px;
}

.account-card .account-actions .btn {
	font-size: 12px;
	padding: 6px 12px;
}

.account-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.unlink-account-btn {
	background: #dc3545;
	color: white;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	display: flex;
	align-items: center;
	gap: 4px;
}

.unlink-account-btn:hover {
	background: #c82333;
}

.unlink-account-btn:active {
	transform: translateY(1px);
}

.unlink-icon {
	font-size: 10px;
}

.account-card .account-characters {
	border-top: 1px solid #dee2e6;
	margin-top: 12px;
	padding-top: 12px;
}

.account-card .account-characters .characters-header h4 {
	margin: 0 0 12px 0;
	font-size: 14px;
	font-weight: 600;
	color: #495057;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Character section styles */
.account-characters {
	background-color: var(--primary-dark);
	padding: 15px 20px;
	border-top: 1px solid var(--border-color);
}

.characters-header {
	margin-bottom: 15px;
}

.characters-header h4 {
	font-size: 16px;
	color: var(--text-color);
	margin: 0;
}

.characters-loading {
	text-align: center;
	padding: 20px 0;
	color: #666;
}

.characters-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 0.5rem;
}

.no-characters-message {
	text-align: center;
	padding: 20px 0;
	color: #666;
}

/* Character card styles */
.character-card {
	background-color: #ffffff;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	color: #333;
	transition: box-shadow 0.2s ease;
	margin-bottom: 12px;
}

.character-card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.character-card .character-header {
	background-color: #f8f9fa;
	border-bottom: 1px solid #dee2e6;
	padding: 10px 14px;
	border-radius: 6px 6px 0 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.character-card .character-header h5 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #495057;
}

.character-card .character-status {
	font-size: 11px;
	font-weight: 500;
	padding: 3px 6px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.character-card .character-status.online {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.character-card .character-status.offline {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.character-card .character-body {
	display: flex;
	padding: 14px;
	gap: 14px;
}

.character-card .character-sprite {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6c757d;
	font-size: 11px;
	text-align: center;
}

.character-card .character-sprite img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.character-card .character-info-primary {
	flex: 1;
}

.character-card .character-info-primary p {
	margin: 2px 0;
	font-size: 12px;
	color: #495057;
}

.character-card .character-info-primary p strong {
	color: #333;
}

.character-card .character-stats-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 8px;
	font-size: 11px;
}

.character-card .stats-column h6 {
	margin: 0 0 4px 0;
	font-size: 10px;
	font-weight: 600;
	color: #6c757d;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.character-card .stats-column p {
	margin: 1px 0;
	color: #495057;
}

.character-card .stats-column p strong {
	color: #333;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
	.characters-list {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.account-details {
		flex-direction: column;
		gap: 1rem;
	}
	
	.account-actions {
		margin-top: 1rem;
		justify-content: center;
	}
	
	.account-actions .btn {
		min-height: 44px; /* Better touch target */
		padding: 0.75rem 1rem;
	}
	
	/* Character card mobile adjustments */
	.character-summary {
		padding: 1rem;
		gap: 1rem;
	}
	
	.character-card .character-sprite {
		width: 70px;
		height: 70px;
	}
	
	.character-name {
		font-size: 1rem;
		line-height: 1.3;
	}
	
	.character-quick-info {
		gap: 0.5rem;
		line-height: 1.4;
	}
	
	.character-class,
	.character-level {
		font-size: 0.875rem;
	}
	
	.character-details {
		padding: 1rem;
	}
	
	.character-card .character-stats-container {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

.btn-outline {
	background-color: transparent;
	color: var(--accent-color);
	border: 1px solid var(--accent-color);
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
}

.btn-outline:hover {
	background-color: rgba(255, 204, 153, 0.1);
}

/*--------------------------------------------------------------
# Server Status Widget
--------------------------------------------------------------*/
.server-status-widget {
	background-color: #3a1266; /* Using solid color with background-color property */
	border: none; /* Remove inner border */
	border-radius: 8px; /* Match container's rounded corners */
	padding: 15px;
	box-shadow: none; /* Remove shadow as container has it */
	margin: 0; /* Remove any margin */
	text-align: center;
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 100%;
	box-sizing: border-box; /* Ensure padding is included in width/height */
}

.server-status-widget h3 {
	color: var(--accent-color); /* Changed to lighter gold accent color */
	border-bottom: 1px solid var(--rich-gold); /* Keep border as darker gold */
	padding-bottom: 8px;
	margin-bottom: 15px;
	margin-top: 0;
	font-size: 1.2rem;
	font-family: var(--font-primary);
}

.status-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

.status-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin-right: 8px;
}

.status-indicator.online .status-dot {
	background-color: #4ade80;
	box-shadow: 0 0 5px #4ade80;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 5px #4ade80;
	}
	50% {
		box-shadow: 0 0 10px #4ade80, 0 0 15px #4ade80;
	}
	100% {
		box-shadow: 0 0 5px #4ade80;
	}
}

.status-indicator.offline .status-dot {
	background-color: #ff6b6b;
	box-shadow: 0 0 5px #ff6b6b;
}

.status-text {
	font-weight: bold;
}

.status-indicator.online .status-text {
	color: #4ade80;
}

.status-indicator.offline .status-text {
	color: #ff6b6b;
}

.player-count {
	font-size: 0.9rem;
}

.player-count span {
	font-weight: bold;
	font-size: 1.1rem;
}

.server-stats {
	margin-top: 8px;
	font-size: 0.8rem;
	opacity: 0.9;
}

.server-stats .stat-item {
	margin: 2px 0;
	color: rgba(255, 255, 255, 0.8);
}

/* Server status in the hero section */
.hero-section .server-status-widget {
	position: absolute;
	top: 60px;
	right: 20px;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	width: 180px;
	z-index: 10;
	margin-bottom: 30px;
}

.hero-section .server-status-widget h3 {
	color: white;
}

@media (max-width: 768px) {
	.hero-section .server-status-widget {
		position: relative;
		top: auto;
		right: auto;
		width: auto;
		margin: 0 auto 20px;
		max-width: 200px;
	}
}

.status-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
	padding-top: 8px;
	border-top: 1px solid var(--rich-gold); /* Changed from ember-orange to rich-gold for consistency */
	font-size: 0.8rem;
}

.last-updated {
	color: rgba(255, 255, 255, 0.7);
	font-style: italic;
}

.refresh-status {
	background: transparent;
	border: none;
	color: var(--text-color);
	cursor: pointer;
	font-size: 1rem;
	padding: 4px;
	border-radius: 50%;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.refresh-status:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--accent-color);
}

.refresh-icon {
	display: inline-block;
	transition: transform 0.3s ease;
}

.refresh-status:hover .refresh-icon {
	transform: rotate(180deg);
}

.refresh-status.refreshing .refresh-icon {
	animation: spinning 1s linear infinite;
}

@keyframes spinning {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.cooldown-message {
	position: absolute;
	bottom: -30px;
	left: 0;
	right: 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.9);
	background-color: rgba(0, 0, 0, 0.6);
	padding: 5px;
	border-radius: 4px;
	font-size: 0.8rem;
	z-index: 5;
}

/*--------------------------------------------------------------
# Magical Effects
--------------------------------------------------------------*/
/* Magic glow effect for headings */
h1, h2, .hero-section h3, .site-title {
    position: relative;
    overflow: hidden;
}

.magic-glow {
    display: none; /* Hide the distracting mouse aura effect */
}

/* Magic particles for buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.magic-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: rise 1s ease-out forwards;
    z-index: 2;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-50px) scale(0);
        opacity: 0;
    }
}

/* Blood Pulse Effect */
.blood-pulse-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: 0 0 0 rgba(64, 0, 0, 0.4);
    /* animation: blood-pulse 3s infinite; */
    z-index: 0;
}

/* Magic Text Effects - STATIC COLORS INSTEAD OF ANIMATION */
.site-title a, 
.hero-section h1,
.section-title {
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(64, 0, 0, 0.5);
    /* Remove the gradient and animation */
}

/* Force site title to be white */
.site-title,
.site-title a {
    color: var(--text-color) !important;
}

/* Sharp Edge Border Effects */
.featured-section,
.news-card,
.btn,
.account-card,
.server-status-widget {
    position: relative;
    clip-path: polygon(
        0 5px,
        5px 0,
        calc(100% - 5px) 0,
        100% 5px,
        100% calc(100% - 5px),
        calc(100% - 5px) 100%,
        5px 100%,
        0 calc(100% - 5px)
    );
    border: none !important;
}

/* Special focus for primary buttons */
.btn-primary:focus::before,
.btn-primary:active::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color));
    z-index: -1;
    animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Magic aura for site logo */
.site-title::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(
        ellipse at center,
        rgba(64, 0, 0, 0.2) 0%,
        rgba(64, 0, 0, 0) 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.site-title:hover::before {
    opacity: 1;
}

/* Server status magic effect - DISABLED */
.server-status-widget.online::after {
    display: none; /* Disable the gradient effect */
}

/* Final touches for ShmupInTheZone font */

/* Game navigation menu with pixel font style */
.primary-menu {
    gap: 8px; /* Add spacing between menu items */
}

.primary-menu a {
    transition: all 0.2s ease; /* Faster for pixel-style font */
}

.primary-menu a:hover {
    transform: translateY(-2px);
}

/* Widget Titles */
.widget-title {
    font-family: var(--font-primary);
    font-size: 1.3em;
    letter-spacing: 1px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Footer Elements */
.footer-menu a {
    font-family: var(--font-primary);
    font-size: 0.95em;
    letter-spacing: 0.8px;
}

/* Site description with pixel font */
.site-description {
    font-family: var(--font-primary);
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

/* Top Content Container - News and Server Status */
.top-content-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

/* Top News Section */
.latest-news.top-news {
    flex: 1;
    background-color: var(--background-color); /* Set to the midpoint color #300000 */
    border: 1px solid var(--rich-gold);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 3px var(--highlight);
    min-height: 250px; /* Added to increase its height a bit */
}

.latest-news.top-news .section-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    text-align: left;
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-card-compact {
    padding: 10px 0;
    border-bottom: 1px solid var(--highlight);
    transition: background-color 0.2s ease;
}

.news-card-compact:hover {
    background-color: rgba(42, 0, 64, 0.2); /* Subtle purple highlight on hover */
}

.news-card-compact:last-child {
    border-bottom: none;
}

.news-card-compact .news-title {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.news-card-compact .news-title a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-compact .news-title a:hover {
    color: var(--text-color);
    text-shadow: 0 0 3px rgba(255, 204, 153, 0.5);
}

.news-card-compact .news-meta {
    font-size: 0.8em;
    color: var(--text-color);
    opacity: 0.7;
}

.top-news .view-all-news {
    margin-top: 15px;
    text-align: right;
}

.top-news .view-all-news .btn-secondary {
    background-color: rgba(42, 0, 64, 0.3);
    border-color: var(--rich-gold);
    color: var(--accent-color);
}

.top-news .view-all-news .btn-secondary:hover {
    background-color: var(--ember-orange);
    color: var(--text-color);
    border-color: var(--rich-gold);
}

/* Updated Server Status Container */
.server-status-container {
    max-width: 250px;
    margin: 0;
    padding: 0; /* Remove padding completely */
    background-color: #2a1040; /* Use background-color for solid fill */
    border: 2px solid var(--rich-gold); /* Thicker border */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(58, 18, 102, 0.5);
    animation: server-container-pulse 4s infinite; /* Use a container-specific animation */
    flex-shrink: 0; /* Prevent container from shrinking */
}

/* Wrapper for Server Status and Discord Button */
.server-status-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items if they are narrower than the group's width */
    max-width: 250px;    /* To match the server-status-container's max-width */
    width: 100%;         /* Ensures it takes up the space allocated by the flex parent if less than 250px */
    flex-shrink: 0;      /* Matches server-status-container */
}

.server-status-group .server-status-container {
    width: 100%; /* Ensures the server status widget takes the full width of the group */
}

.server-status-group .btn-discord {
    margin-top: 15px; /* Space between server status and button */
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
    text-align: center; /* Centers the text within the button */
}

/* Animation specific to the server status container only */
@keyframes server-container-pulse {
	0% {
		border-color: var(--rich-gold);
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(153, 102, 51, 0.5);
	}
	50% {
		border-color: var(--accent-color);
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 204, 153, 0.7);
	}
	100% {
		border-color: var(--rich-gold);
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(153, 102, 51, 0.5);
	}
}

/* Responsive adjustments for server status */
@media (max-width: 768px) {
    .top-content-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 16px;
        margin: 20px auto;
    }
    
    .latest-news.top-news {
        width: 100%;
        max-width: 100%;
        order: 1;
        margin-bottom: 0;
    }
    
    .server-status-group {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 2;
    }
    
    .server-status-container {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .home-page-logo-container {
        order: 3;
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }
    
    .home-page-logo-container img {
        max-width: 200px;
        width: 100%;
        height: auto;
    }
}

/* Home Page Logo */
.home-page-logo-container {
    text-align: center;
    margin-top: 20px; /* Add space above the logo */
    padding: 0; /* Remove previous padding */
}

.home-page-logo-container img {
    max-width: 250px; /* Match server status widget width */
    height: auto;
    display: inline-block; /* To respect text-align: center */
}

/* Header Styles */
.site-header {
	background-color: var(--background-color); /* Changed back to red */
	border-bottom: 2px solid var(--rich-gold);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	position: relative;
	padding: 5px 0; /* Reduced padding */
	z-index: 100; /* Higher z-index to ensure it appears on top */
	width: 100%; /* Ensure full width */
}

.header-container {
	display: flex;
	align-items: center; 
	justify-content: space-between;
	flex-wrap: nowrap; 
	width: 100%;
	max-width: 1440px; 
	margin: 0 auto;
	padding: 6px 4px; 
	/* outline property should be removed */
	/* outline-color property should be removed */
}

/*--------------------------------------------------------------
# Game Accounts Page
--------------------------------------------------------------*/
.game-accounts-page .page-container {
    max-width: 1200px; /* Or your theme's standard container width */
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

.account-dashboard .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.account-dashboard .dashboard-header h2 {
    margin: 0;
}

.account-dashboard .dashboard-actions .btn {
    margin-left: 10px;
}

#accounts-list {
    display: grid; /* Already set by JS, but good to have in CSS */
    grid-template-columns: 1fr; /* Default to single column, will adjust for larger screens */
    gap: 30px;
}

/* Account Card Styling */
.account-card {
    background-color: #f9f9f9; /* Light grey background */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.account-card .account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.account-card .account-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.account-card .account-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
}

.account-card .account-status.active {
    background-color: #d4edda; /* Greenish for active */
    color: #155724;
    border: 1px solid #c3e6cb;
}

.account-card .account-status.banned {
    background-color: #f8d7da; /* Reddish for banned */
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.account-card .account-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.account-card .account-info p {
    margin: 5px 0;
    font-size: 0.95em;
}

.account-card .account-info .change-password-btn {
    font-size: 0.9em;
    padding: 3px 8px;
    margin-top: 10px;
    text-decoration: none; /* Assuming it's an <a> or styled like one */
}

.account-card .account-actions .btn {
    /* Styles for future buttons in account-actions if any */
}

.account-card .account-characters {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.account-card .account-characters .characters-header h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Loading and No Accounts/Characters Messages */
.accounts-loading,
.no-accounts-message,
.no-characters-message {
    padding: 20px;
    text-align: center;
    background-color: #fff;
    border: 1px dashed #ddd;
    border-radius: 4px;
    margin-top: 20px;
}

.no-accounts-message h3 {
    margin-top: 0;
}

.no-accounts-message .message-icon,
.no-characters-message .message-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: #6c757d;
}

/* Modals - Basic structure, assuming some theme defaults exist */
.account-modal .modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    max-width: 500px; /* Adjust as needed */
    margin: 50px auto; /* For centering if modal itself is position:fixed with full overlay */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.account-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.account-modal .modal-header h3 {
    margin: 0;
}

.account-modal .close-modal {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    cursor: pointer;
}
.account-modal .close-modal:hover {
    opacity: 0.8;
}

.account-modal .form-group {
    margin-bottom: 15px;
}

.account-modal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.account-modal input[type="text"],
.account-modal input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.account-modal .field-hint {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 5px;
}

.account-modal .form-actions {
    margin-top: 20px;
    text-align: right;
}

.account-modal .form-actions .btn {
    /* Assuming your theme has .btn styles */
}

/* Responsive adjustments for accounts list */
@media (min-width: 768px) {
    #accounts-list {
        /* Could go to 2 columns on medium screens if desired */
        /* grid-template-columns: repeat(2, 1fr); */
    }
}

@media (min-width: 992px) {
    #accounts-list {
        /* Or keep single column for clarity if cards are wide */
    }
}

/* ... existing CSS for .account-card ... */

.account-card .account-characters .characters-header h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Character Card Styling */
.character-card {
    background-color: var(--secondary-color); /* Using theme variable */
    border: 1px solid var(--border-color);    /* Using theme variable */
    border-radius: 6px;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    color: var(--text-color); /* Using theme variable */
    overflow: hidden;
}

/* Character Summary (Always visible) */
.character-summary {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    gap: 15px;
}

.character-summary.expanded {
    background-color: rgba(255, 215, 0, 0.1); /* Fallback to gold */
    border-bottom: 1px solid var(--border-color);
}

.character-card .character-sprite {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-card .character-sprite img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.character-basic-info {
    flex-grow: 1;
    min-width: 0; /* Allow text to shrink */
}

.character-name {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    font-family: var(--font-secondary);
    color: var(--accent-color);
}

.character-quick-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.character-class,
.character-level {
    font-size: 0.85em;
    color: var(--text-color);
    opacity: 0.8;
}

.character-status {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
}

.character-status.online {
    background-color: rgba(74, 222, 128, 0.2); /* Lighter green from theme */
    color: #4ade80; /* Bright green from theme */
    border: 1px solid #4ade80;
}

.character-status.offline {
    background-color: rgba(100, 100, 100, 0.2);
    color: #aaa;
    border: 1px solid #888;
}

.character-expand-icon {
    flex-shrink: 0;
    padding: 5px;
    color: var(--accent-color);
    transition: transform 0.2s ease;
}

.character-summary.expanded .character-expand-icon {
    transform: rotate(180deg);
}

.expand-arrow {
    font-size: 0.8em;
    user-select: none;
}

/* Character Details (Expandable section) */
.character-details {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(30, 30, 30, 0.03);
}

.character-info-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.character-info-section h6 {
    font-family: var(--font-secondary);
    font-size: 0.95em;
    color: var(--accent-color);
    margin: 0 0 10px 0;
}

.character-info-section p {
    margin: 0 0 5px 0;
    font-size: 0.9em;
}

.character-info-section p strong {
    color: var(--accent-color);
}

.character-card .character-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive columns */
    gap: 15px;
}

.character-card .stats-column h6 {
    font-family: var(--font-secondary);
    font-size: 0.95em;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.character-card .stats-column p {
    margin: 0 0 4px 0;
    font-size: 0.85em;
}

.character-card .stats-column p strong {
    color: var(--accent-color);
}

/* Loading and No Accounts/Characters Messages - ensure they use theme colors */
.accounts-loading,
.no-accounts-message,
.characters-loading, /* Added for character loading message */
.no-characters-message {
    padding: 20px;
    text-align: center;
    background-color: var(--secondary-color); /* Theme variable */
    border: 1px dashed var(--border-color);    /* Theme variable */
    border-radius: 4px;
    margin-top: 20px;
    color: var(--text-color); /* Theme variable */
}

.no-accounts-message h3 {
    margin-top: 0;
    color: var(--accent-color);
}

.no-accounts-message .message-icon,
.login-required .message-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--accent-color); /* Theme variable */
}

/* Adjusting modal styles slightly for theme consistency */
.account-modal .modal-content {
    background-color: var(--background-color);
    border: 1px solid var(--rich-gold);
    color: var(--text-color);
}

.account-modal .modal-header {
    border-bottom: 1px solid var(--rich-gold);
    background-color: var(--primary-dark);
}

.account-modal .modal-header h3 {
    color: var(--accent-color);
    font-family: var(--font-secondary);
}

.account-modal .close-modal {
    color: var(--accent-color);
}
.account-modal .close-modal:hover {
    color: var(--text-color);
}

.account-modal .form-group label {
    color: var(--accent-color);
}

.account-modal .form-group input[type="text"],
.account-modal .form-group input[type="password"],
.account-modal .form-group input[type="email"] {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.account-modal .form-group input[type="text"]:focus,
.account-modal .form-group input[type="password"]:focus,
.account-modal .form-group input[type="email"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 5px var(--highlight);
}

.account-modal .field-hint {
    color: var(--text-color);
    opacity: 0.7;
}

.account-card {
    background-color: var(--secondary-color); /* Use theme variable */
    border: 1px solid var(--border-color); /* Use theme variable */
    clip-path: polygon( /* Apply sharp edge from theme */
        0 5px,
        5px 0,
        calc(100% - 5px) 0,
        100% 5px,
        100% calc(100% - 5px),
        calc(100% - 5px) 100%,
        5px 100%,
        0 calc(100% - 5px)
    );
}

/* Responsive adjustments for accounts list */
/* ... existing media queries ... */

/*--------------------------------------------------------------
# Game Info Page / Database Browser
--------------------------------------------------------------*/
.game-info-page .page-description p {
    margin-bottom: 2rem; /* Add some space below the description */
}

.database-navigation {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 10px; /* Spacing between buttons */
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.db-nav-btn {
    /* Using existing .btn styles and extending/overriding */
    padding: 10px 20px;
    font-size: 1em;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    transform: skew(0deg); /* Override general .btn skew if not desired here */
}

.db-nav-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.db-nav-btn.active {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
    font-weight: bold;
}

.database-content-area {
    margin-top: 2rem;
    padding: 20px;
    background-color: rgba(0,0,0,0.1); /* Slight dark overlay */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-height: 200px; /* Ensure it has some height initially */
}

.database-content-area .initial-message,
.database-content-area .loading-message,
.database-content-area .error-message,
.database-content-area .info-message {
    font-style: italic;
    color: var(--text-color);
    opacity: 0.8;
    text-align: center;
    padding: 20px;
}

.database-content-area .error-message {
    color: #ff6b6b; /* A more prominent error color */
    font-weight: bold;
}

.database-content-area h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 0.5rem;
    color: var(--accent-color);
}

/* Basic table styling for database content - REMOVED, using cards instead */

.pagination-info {
    margin-top: 20px;
    font-size: 12px;
    color: #6c757d;
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Responsive table design - REMOVED, using cards instead */

/* Game Database Card Layout */
.db-cards-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 1rem;
}

.db-item-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    transition: box-shadow 0.2s ease;
    width: 100%;
}

.db-item-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.db-card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 16px;
    border-radius: 6px 6px 0 0;
}

.db-card-header .item-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

/* Item Variant Styles */
.item-variant {
    font-size: 14px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-variant.blessed {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.item-variant.cursed {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.db-card-body {
    display: flex;
    padding: 16px;
    gap: 16px;
}

.db-card-sprite {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 12px;
    text-align: center;
}

.db-card-sprite img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.db-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-attributes {
    margin-bottom: 0;
}

.main-attrs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.attr-item {
    display: flex;
    flex-direction: column;
    padding: 6px 8px;
    background-color: #f8f9fa;
    border-radius: 3px;
    font-size: 13px;
}

.attr-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.class-usage {
    padding: 8px 12px;
    background-color: #e3f2fd;
    border-radius: 4px;
    font-size: 13px;
}

.class-usage .attribute-label {
    font-weight: 600;
    color: #1976d2;
    margin-right: 8px;
}

.secondary-attributes {
    margin-bottom: 0;
}

.secondary-attributes .attribute-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 13px;
}

.attribute-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 4px;
}

.attribute-list li {
    padding: 4px 8px;
    background-color: #f1f3f4;
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
    color: #495057;
}

.special-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.special-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropped-by-section {
    border-top: 1px solid #dee2e6;
    padding-top: 12px;
    margin-top: 12px;
}

.dropped-by-section .section-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 13px;
}

.drop-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.drop-source {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    font-size: 12px;
}

.drop-ratio {
    font-weight: 600;
    color: #6c757d;
}

.loading-drops, .error-drops, .no-drops {
    font-style: italic;
    color: #6c757d;
    font-size: 12px;
}

.error-drops {
    color: #dc3545;
}

/* Responsive adjustments for cards */
@media screen and (max-width: 768px) {
    .db-card-body {
        flex-direction: column;
        gap: 12px;
    }
    
    .db-card-sprite {
        align-self: center;
    }
    
    .main-attrs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .attribute-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .main-attrs-grid {
        grid-template-columns: 1fr;
    }
    
    .attribute-list {
        grid-template-columns: 1fr;
    }
    
    .drop-sources {
        flex-direction: column;
        gap: 4px;
    }
}

/* Database Filter UI */
.db-filter-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.filter-section {
    margin-bottom: 15px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-search {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background-color: #ffffff;
    color: #495057;
}

.filter-search:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.letter-filters,
.type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    background-color: #ffffff;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
}

.filter-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.filter-btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.filter-btn.active:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Letter filter specific styling */
.letter-filter {
    min-width: 36px;
    font-weight: 600;
}

/* Type filter specific styling */
.type-filter {
    min-width: auto;
    padding: 6px 16px;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments for filters */
@media screen and (max-width: 768px) {
    .db-filter-container {
        padding: 15px;
    }
    
    .filter-search {
        max-width: 100%;
    }
    
    .letter-filters {
        gap: 4px;
    }
    
    .filter-btn {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 30px;
    }
    
    .type-filter {
        padding: 5px 12px;
    }
}

@media screen and (max-width: 480px) {
    .letter-filters {
        gap: 3px;
    }
    
    .filter-btn {
        padding: 4px 6px;
        font-size: 11px;
        min-width: 28px;
    }
}

/* Override modal input font for better case distinction */
.account-modal input[type="text"],
.account-modal input[type="password"],
.account-modal input[type="email"] {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
}

/* Ensure placeholders also use the clear font */
.account-modal input[type="text"]::placeholder,
.account-modal input[type="password"]::placeholder,
.account-modal input[type="email"]::placeholder {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
    opacity: 0.7;
}

/* Authentication Page Styles */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    margin-top: 1rem;
}

.auth-container {
    background-color: var(--background-color);
    border: 2px solid var(--rich-gold);
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    clip-path: polygon(
        0 8px,
        8px 0,
        calc(100% - 8px) 0,
        100% 8px,
        100% calc(100% - 8px),
        calc(100% - 8px) 100%,
        8px 100%,
        0 calc(100% - 8px)
    );
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.auth-left {
    flex: 1;
    min-width: 280px;
}

.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color);
}

.welcome-content h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-primary);
}

.welcome-content p {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.feature-list li {
    color: var(--text-color);
    padding: 0.3rem 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.server-info {
    background-color: rgba(255, 204, 153, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
}

.server-info h4 {
    color: var(--accent-color);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    font-family: var(--font-primary);
}

.server-info p {
    margin: 0.2rem 0;
    font-size: 0.8rem;
}

.auth-title {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-primary);
    text-shadow: 0 0 5px rgba(255, 204, 153, 0.3);
}

.auth-subtitle {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
    font-size: 1rem;
}

.auth-notice {
    background-color: rgba(255, 204, 153, 0.15);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 1rem;
    text-align: center;
}

.auth-notice p {
    margin: 0;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.auth-tab:hover {
    color: var(--accent-color);
    background-color: rgba(255, 204, 153, 0.1);
}

.auth-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background-color: rgba(255, 204, 153, 0.1);
}

.auth-form-container {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form-container .form-group {
    margin-bottom: 1rem;
}

.auth-form-container label {
    display: block;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.auth-form-container .form-control {
    width: 100%;
    padding: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    color: #000000 !important;
    font-size: 1rem;
    font-family: Arial, sans-serif !important;
    box-sizing: border-box;
}

.auth-form-container .form-control:focus {
    outline: none;
    border-color: #666666;
}

.auth-form-container .field-hint {
    display: block;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-right: 0.5rem;
    position: relative;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--background-color);
    font-size: 12px;
    font-weight: bold;
}

.form-actions {
    margin: 1.5rem 0 0.75rem;
}

.auth-form-container .btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--text-color);
    text-shadow: 0 0 3px rgba(255, 204, 153, 0.5);
}

.auth-info {
    background-color: rgba(255, 204, 153, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

.auth-info p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .auth-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .auth-right {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 2rem;
    }
    
    .auth-container {
        max-width: 600px;
    }
}

@media screen and (max-width: 480px) {
    .auth-page {
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }
    
    .auth-container {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.3rem;
    }
    
    .auth-header {
        margin-bottom: 1.5rem;
    }
    
    .auth-content {
        gap: 1.5rem;
    }
    
    .auth-tabs {
        margin-bottom: 1rem;
    }
    
    .auth-tab {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .auth-form-container .form-group {
        margin-bottom: 0.75rem;
    }
    
    .auth-right {
        padding-top: 1.5rem;
    }
    
    .welcome-content h3 {
        font-size: 1.2rem;
    }
    
    .feature-list li {
        font-size: 0.9rem;
    }
}

/* ==============================================
   MOBILE OPTIMIZATION ENHANCEMENTS
   ============================================== */

/* Better Touch Targets */
@media screen and (max-width: 768px) {
	/* Ensure all clickable elements meet minimum 44px touch target */
	button,
	.btn,
	a,
	input[type="submit"],
	input[type="button"] {
		min-height: 44px;
		min-width: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	
	/* Navigation improvements */
	.primary-menu a {
		min-height: 48px;
		padding: 0.75rem 1rem;
		display: flex;
		align-items: center;
	}
	
	/* Form improvements */
	input[type="text"],
	input[type="email"],
	input[type="password"],
	textarea,
	select {
		min-height: 44px;
		font-size: 16px; /* Prevents zoom on iOS */
		padding: 0.75rem;
		border-radius: 4px;
		-webkit-appearance: none;
		appearance: none;
	}
	
	/* Better modal interactions */
	.account-modal .close-modal {
		min-width: 44px;
		min-height: 44px;
		padding: 0.5rem;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	/* Improve table responsiveness */
	table {
		font-size: 0.875rem;
	}
	
	th, td {
		padding: 0.5rem;
		word-wrap: break-word;
	}
	
	/* Better spacing for mobile */
	.page-container,
	.hero-container {
		padding: 0 1rem;
	}
	
	/* Section grid improvements */
	.section-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.featured-section {
		padding: 1.5rem;
		text-align: center;
	}
	
	/* News grid mobile optimization */
	.news-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.news-card {
		max-width: 100%;
	}
	
	/* Database cards mobile optimization */
	.db-cards-container {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.db-item-card {
		padding: 1rem;
	}
}

/* Ultra small screens (phones in portrait) */
@media screen and (max-width: 480px) {
	/* Typography scaling */
	.hero-section h1 {
		font-size: 1.875rem;
		line-height: 1.2;
	}
	
	.section-title, h2 {
		font-size: 1.5rem;
	}
	
	h3 {
		font-size: 1.25rem;
	}
	
	/* Tighter spacing */
	.hero-section {
		padding: 2rem 0.75rem;
	}
	
	.page-container,
	.hero-container {
		padding: 0 0.75rem;
	}
	
	/* Stack everything vertically */
	.hero-buttons,
	.community-buttons,
	.account-buttons {
		flex-direction: column;
		gap: 0.75rem;
	}
	
	.hero-buttons .btn,
	.community-buttons .btn {
		width: 100%;
		max-width: none;
	}
	
	/* Smaller modals */
	.account-modal .modal-content {
		width: 95%;
		margin: 5% auto;
	}
	
	/* Compact forms */
	.auth-form-container .form-group {
		margin-bottom: 1rem;
	}
	
	.auth-tabs {
		flex-direction: column;
	}
	
	.auth-tab {
		width: 100%;
		text-align: center;
	}
}

/* Landscape mobile optimization */
@media screen and (max-width: 768px) and (orientation: landscape) {
	.hero-section {
		padding: 2rem 1rem;
	}
	
	.hero-section h1 {
		font-size: 2rem;
	}
	
	.hero-buttons {
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
		gap: 1rem;
	}
	
	.hero-buttons .btn {
		width: auto;
		min-width: 150px;
	}
}

/* High DPI screens optimization */
@media screen and (min-resolution: 2dppx) {
	.character-card .character-sprite img,
	.db-card-sprite img,
	.user-avatar img {
		image-rendering: -webkit-optimize-contrast;
		image-rendering: crisp-edges;
	}
}

/* Accessibility improvements for mobile */
@media screen and (max-width: 768px) {
	/* Focus indicators */
	button:focus,
	a:focus,
	input:focus,
	select:focus,
	textarea:focus {
		outline: 3px solid var(--accent-color);
		outline-offset: 2px;
	}
	
	/* Skip links */
	.skip-link {
		position: absolute;
		left: -9999px;
		z-index: 999999;
		padding: 8px 16px;
		background: var(--background-color);
		color: var(--text-color);
		text-decoration: none;
	}
	
	.skip-link:focus {
		left: 6px;
		top: 7px;
	}
	
	/* Reduced motion preferences */
	@media (prefers-reduced-motion: reduce) {
		*,
		*::before,
		*::after {
			animation-duration: 0.01ms !important;
			animation-iteration-count: 1 !important;
			transition-duration: 0.01ms !important;
		}
	}
}

/* Print styles for mobile */
@media print {
	.menu-toggle,
	.user-profile-area,
	.hero-buttons,
	.community-buttons,
	.server-status-widget {
		display: none !important;
	}
	
	.site-header,
	.site-footer {
		position: static !important;
	}
	
	body {
		font-size: 12pt;
		line-height: 1.4;
	}
}

/* ==============================================
   STANDARDIZED INPUT FIELD STYLES
   White background, black text, standard fonts
   ============================================== */

/* Global input field reset - applies to all input types */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    padding: 10px !important;
    width: 100% !important;
    font-family: Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: normal !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

/* Focus states for all inputs */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
select:focus {
    background-color: #ffffff !important;
    color: #000000 !important;
    outline: none !important;
    border-color: #666666 !important;
    box-shadow: 0 0 3px rgba(102, 102, 102, 0.3) !important;
}

/* Placeholder text styling */
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
    color: #666666 !important;
    opacity: 1 !important;
    font-family: Arial, sans-serif !important;
}

/* Account modal specific inputs */
.account-modal input[type="text"],
.account-modal input[type="password"],
.account-modal input[type="email"] {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    padding: 12px !important;
    font-family: Arial, sans-serif !important;
    font-size: 1rem !important;
    border-radius: 4px !important;
}

.account-modal input[type="text"]:focus,
.account-modal input[type="password"]:focus,
.account-modal input[type="email"]:focus {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #666666 !important;
    box-shadow: 0 0 3px rgba(102, 102, 102, 0.3) !important;
}

.account-modal input[type="text"]::placeholder,
.account-modal input[type="password"]::placeholder,
.account-modal input[type="email"]::placeholder {
    color: #666666 !important;
    opacity: 1 !important;
    font-family: Arial, sans-serif !important;
}

/* Auth form inputs (already correct, but ensuring consistency) */
.auth-form-container .form-control {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    padding: 0.75rem !important;
    font-family: Arial, sans-serif !important;
    font-size: 1rem !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

.auth-form-container .form-control:focus {
    background-color: #ffffff !important;
    color: #000000 !important;
    outline: none !important;
    border-color: #666666 !important;
    box-shadow: 0 0 3px rgba(102, 102, 102, 0.3) !important;
}

/* Database filter search input */
.filter-search {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    padding: 8px 12px !important;
    font-family: Arial, sans-serif !important;
    font-size: 1rem !important;
    border-radius: 4px !important;
}

.filter-search:focus {
    background-color: #ffffff !important;
    color: #000000 !important;
    outline: none !important;
    border-color: #666666 !important;
    box-shadow: 0 0 3px rgba(102, 102, 102, 0.3) !important;
}

.filter-search::placeholder {
    color: #666666 !important;
    opacity: 1 !important;
    font-family: Arial, sans-serif !important;
}

/* WordPress default form elements */
.widget select,
.widget input[type="text"],
.widget input[type="email"],
.widget input[type="password"] {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    font-family: Arial, sans-serif !important;
}

/* Comment form inputs (if any) */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    font-family: Arial, sans-serif !important;
}

/* Search form inputs */
.search-form input[type="search"],
.search-form input[type="text"] {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    font-family: Arial, sans-serif !important;
}

/* Mobile optimization for inputs */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    textarea,
    select,
    .account-modal input[type="text"],
    .account-modal input[type="password"],
    .account-modal input[type="email"],
    .auth-form-container .form-control,
    .filter-search {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
    }
}

/* ==============================================
   ENHANCED MOBILE OPTIMIZATIONS & ERROR HANDLING
   Critical fixes for mobile UI/UX issues
   ============================================== */

/* Error notification styles */
.game-accounts-error-notification {
    background-color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 4px;
    color: white;
    padding: 12px 16px;
    margin-bottom: 20px;
    position: relative;
    font-family: Arial, sans-serif;
}

.game-accounts-error-notification .error-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.game-accounts-error-notification .dismiss-error {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.game-accounts-error-notification .dismiss-error:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Enhanced Mobile Modal Optimizations */
@media screen and (max-width: 768px) {
    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Enhanced touch targets - minimum 44px */
    button, .btn, a.button-like,
    input[type="submit"], input[type="button"],
    .menu-toggle, .close-modal,
    .user-profile-toggle,
    .unlink-account-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        touch-action: manipulation; /* Improves tap responsiveness */
    }
    
    /* Mobile-optimized modals - Full screen approach */
    .account-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 9999;
        background: rgba(0, 0, 0, 0.9);
        /* Prevent background scrolling */
        overflow: hidden;
    }
    
    .account-modal .modal-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: var(--background-color, #1a1a1a);
        display: flex;
        flex-direction: column;
    }
    
    .account-modal .modal-header {
        position: sticky;
        top: 0;
        background: var(--secondary-color, #2a2a2a);
        z-index: 10;
        border-bottom: 1px solid var(--border-color, #444);
        padding: 16px 20px;
        flex-shrink: 0;
    }
    
    .account-modal .close-modal {
        position: absolute;
        top: 16px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 24px;
        line-height: 1;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
    
    .account-modal .modal-body {
        padding: 20px;
        padding-bottom: 60px; /* Extra space for safe area */
        flex: 1;
        overflow-y: auto;
    }
    
    /* Enhanced form spacing on mobile */
    .account-modal .form-group {
        margin-bottom: 24px;
    }
    
    .account-modal .form-actions {
        padding: 20px 0;
        margin-top: 24px;
        border-top: 1px solid var(--border-color, #444);
        position: sticky;
        bottom: 0;
        background: var(--background-color, #1a1a1a);
    }
    
    /* Improve button spacing on mobile */
    .dashboard-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .dashboard-actions .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        margin-bottom: 0;
    }
    
    /* Better account card mobile layout */
    .account-card {
        margin-bottom: 20px;
        padding: 16px;
    }
    
    .account-card .account-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
    }
    
    .account-card .account-actions .btn {
        width: 100%;
        min-height: 44px;
    }
    
    /* Character cards mobile optimization */
    .character-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .character-card .character-stats-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Better error message styling on mobile */
    .game-accounts-error-notification {
        margin: 16px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Modal scroll lock utility */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Improve tap targets for small elements */
@media screen and (max-width: 480px) {
    .user-avatar {
        width: 40px !important;
        height: 40px !important;
    }
    
    .user-avatar img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .menu-toggle {
        width: 48px;
        height: 48px;
        padding: 12px;
    }
    
    /* Larger tap targets for critical actions */
    .close-modal,
    .unlink-account-btn,
    .change-password-btn {
        min-height: 48px;
        min-width: 48px;
        padding: 12px;
    }
}
