/* ==========================================================================
   ALENA2 WIKI - OFFICIAL METIN2 DARK RPG THEME (MEDIAWIKI GAMEFORGE STYLE)
   ========================================================================== */

:root {
	--wiki-bg: #14110F;
	--wiki-content-bg: #1E1915;
	--wiki-sidebar-bg: #181310;
	--wiki-card-bg: #26201A;
	--wiki-border: #3A2F25;
	--wiki-border-dark: #4F3F32;
	--wiki-border-gold: #735532;
	
	--m2-red: #A82424;
	--m2-red-dark: #6E1414;
	--m2-red-hover: #BF3030;
	
	--m2-gold: #E5B842;
	--m2-gold-light: #FCE8A6;
	--m2-gold-dark: #8C6A1E;

	--text-main: #E8E0D5;
	--text-muted: #A39686;
	--text-link: #E5B842;
	--text-link-hover: #FFE79E;

	--table-head-bg: linear-gradient(180deg, #7A1919 0%, #4D0E0E 100%);
	--table-head-text: #FFFFFF;
	--table-stripe: #191410;
	--table-border: #382C22;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: var(--wiki-bg);
	background-image: radial-gradient(circle at 50% 0%, #291E17 0%, #14110F 60%);
	color: var(--text-main);
	font-family: Arial, Helvetica, 'DejaVu Sans', sans-serif;
	font-size: 13px;
	line-height: 1.6;
	min-height: 100vh;
}

a {
	color: var(--text-link);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--text-link-hover);
	text-decoration: underline;
}

/* ==========================================================================
   TOP BAR & LANGUAGE SWITCHER
   ========================================================================== */
.official-top-bar {
	background: #0E0C0A;
	border-bottom: 2px solid var(--wiki-border-gold);
	height: 38px;
	font-size: 12px;
	color: #B5A898;
	display: flex;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.top-bar-inner {
	width: 1280px;
	max-width: 96%;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.top-bar-branding {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: bold;
	color: var(--m2-gold);
	letter-spacing: 0.5px;
}

.top-bar-badge {
	background: var(--m2-red);
	color: #FFFFFF;
	font-size: 9.5px;
	padding: 2px 6px;
	border-radius: 3px;
	letter-spacing: 1px;
}

.top-bar-links {
	display: flex;
	list-style: none;
	gap: 16px;
}

.top-bar-links a {
	color: #B5A898;
	font-weight: normal;
}

.top-bar-links a:hover {
	color: var(--m2-gold);
	text-decoration: none;
}

/* Language Dropdown */
.lang-selector-dropdown {
	position: relative;
}

.lang-current-btn {
	background: #1C1713;
	border: 1px solid var(--wiki-border-gold);
	color: var(--text-main);
	border-radius: 4px;
	padding: 3px 10px;
	font-size: 11.5px;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

.lang-current-btn:hover {
	background: #2D231C;
	border-color: var(--m2-gold);
}

.lang-flag-img {
	width: 18px;
	height: 12px;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

.lang-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	background: #1E1814;
	border: 1px solid var(--wiki-border-gold);
	border-radius: 4px;
	box-shadow: 0 6px 16px rgba(0,0,0,0.6);
	min-width: 140px;
	z-index: 1010;
	margin-top: 2px;
	overflow: visible;
}

/* Farenin butondan menüye inerken hover kaybetmesini önleyen görünmez köprü */
.lang-dropdown-menu::before {
	content: '';
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
	height: 14px;
	background: transparent;
}

.lang-selector-dropdown:hover .lang-dropdown-menu,
.lang-selector-dropdown.open .lang-dropdown-menu {
	display: block;
}

.lang-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	color: var(--text-main);
	font-size: 12px;
	text-decoration: none;
	border-bottom: 1px solid #2B211A;
	transition: background 0.15s;
}

.lang-item:hover,
.lang-item.active {
	background: #33271E;
	color: var(--m2-gold);
	text-decoration: none;
}

/* ==========================================================================
   MAIN LAYOUT WRAPPER (DARK OFFICIAL MEDIAWIKI)
   ========================================================================== */
.wiki-wrapper {
	width: 1540px;
	max-width: 98%;
	margin: 20px auto 40px;
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

/* Left Sidebar */
.wiki-sidebar {
	width: 230px;
	flex-shrink: 0;
}

.sidebar-logo-box {
	background: #1C1713;
	border: 1px solid var(--wiki-border-gold);
	border-radius: 6px;
	padding: 18px 12px;
	text-align: center;
	margin-bottom: 14px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.sidebar-logo-box img {
	max-width: 160px;
	max-height: 55px;
	object-fit: contain;
}

.sidebar-logo-title {
	font-size: 16px;
	font-weight: bold;
	color: var(--m2-gold);
	margin-top: 8px;
	letter-spacing: 1px;
	text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.sidebar-box {
	background: #1C1713;
	border: 1px solid var(--wiki-border);
	border-radius: 6px;
	margin-bottom: 14px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.sidebar-header {
	background: linear-gradient(180deg, #33271E 0%, #201914 100%);
	color: var(--m2-gold);
	padding: 8px 12px;
	font-size: 12px;
	font-weight: bold;
	border-bottom: 1px solid var(--wiki-border);
	letter-spacing: 0.5px;
}

.sidebar-menu {
	list-style: none;
	padding: 6px 0;
}

.sidebar-menu li a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 12px;
	color: #CFC5B8;
	font-size: 12px;
	border-left: 3px solid transparent;
	transition: all 0.15s ease;
	font-weight: normal;
	text-decoration: none;
}

.sidebar-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
	background: #2B2119;
	color: var(--m2-gold);
	border-left-color: var(--m2-gold);
	text-decoration: none;
	padding-left: 15px;
}

.sidebar-search {
	padding: 10px 12px;
	display: flex;
	gap: 6px;
}

.sidebar-search-input {
	flex: 1;
	padding: 6px 8px;
	background: #120F0C;
	border: 1px solid var(--wiki-border);
	border-radius: 4px;
	font-size: 12px;
	color: #EDE4D8;
	outline: none;
}

.sidebar-search-input:focus {
	border-color: var(--m2-gold);
}

.sidebar-search-btn {
	background: linear-gradient(180deg, #7A1919 0%, #4D0E0E 100%);
	color: #FFFFFF;
	border: 1px solid #3B0B0B;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: bold;
	cursor: pointer;
}

.sidebar-search-btn:hover {
	background: linear-gradient(180deg, #992020 0%, #631212 100%);
}

/* Right Main Content Area */
.wiki-main-container {
	flex: 1;
	background: var(--wiki-content-bg);
	border: 1px solid var(--wiki-border);
	border-radius: 6px;
	padding: 26px 30px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	min-width: 0;
}

/* Breadcrumb */
.wiki-breadcrumb {
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 12px;
}

.wiki-breadcrumb a {
	color: var(--text-muted);
	font-weight: normal;
}

.wiki-breadcrumb a:hover {
	color: var(--m2-gold);
}

/* First Heading */
.firstHeading {
	font-size: 26px;
	font-weight: normal;
	color: var(--m2-gold);
	border-bottom: 1px solid var(--wiki-border);
	padding-bottom: 8px;
	margin-bottom: 20px;
	line-height: 1.2;
	text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* H2 & H3 Headers */
h2.wiki-h2 {
	font-size: 18px;
	color: var(--m2-gold);
	border-bottom: 1px solid var(--wiki-border-gold);
	padding-bottom: 6px;
	margin: 28px 0 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

h3.wiki-h3 {
	font-size: 15px;
	color: #D6C8B6;
	margin: 18px 0 10px;
	border-bottom: 1px dotted var(--wiki-border);
	padding-bottom: 4px;
}

/* ==========================================================================
   OFFICIAL METIN2 TABLES (DARK RPG)
   ========================================================================== */
.m2-table {
	width: 100%;
	border-collapse: collapse;
	margin: 14px 0 24px;
	font-size: 12.5px;
	border: 1px solid var(--table-border);
	background: #181410;
}

.m2-table th {
	background: var(--table-head-bg);
	color: var(--table-head-text);
	padding: 9px 12px;
	font-weight: bold;
	text-align: center;
	border: 1px solid #3E1010;
	font-size: 12px;
	letter-spacing: 0.3px;
}

.m2-table td {
	padding: 8px 10px;
	border: 1px solid var(--table-border);
	text-align: center;
	vertical-align: middle;
	color: var(--text-main);
}

.m2-table tbody tr:nth-child(even) {
	background: #1C1713;
}

.m2-table tbody tr:hover {
	background: #2C221A;
}

.m2-table td.align-left {
	text-align: left;
}

.m2-mat-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #221B15;
	border: 1px solid var(--wiki-border);
	border-radius: 4px;
	padding: 3px 8px;
	margin: 2px 4px 2px 0;
	font-size: 12px;
	color: var(--text-main);
}

.m2-mat-chip:hover {
	border-color: var(--m2-gold);
	color: var(--m2-gold);
	text-decoration: none;
}

.m2-mat-chip img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

/* ==========================================================================
   SAĞ BİLGİ KUTUSU (INFOBOX)
   ========================================================================== */
.m2-infobox {
	float: right;
	width: 300px;
	margin: 0 0 20px 24px;
	background: #1C1713;
	border: 1px solid var(--wiki-border-gold);
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
	overflow: hidden;
}

.infobox-title {
	background: linear-gradient(180deg, #7A1919 0%, #4D0E0E 100%);
	color: #FFFFFF;
	font-size: 14px;
	font-weight: bold;
	padding: 9px 12px;
	text-align: center;
	border-bottom: 2px solid var(--wiki-border-gold);
	letter-spacing: 0.5px;
}

.infobox-image {
	padding: 18px 12px;
	background: radial-gradient(circle, #2A211A 0%, #171310 80%);
	text-align: center;
	min-height: 130px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.infobox-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.infobox-table th {
	width: 42%;
	background: #241D17;
	color: var(--m2-gold);
	padding: 7px 10px;
	text-align: left;
	font-weight: bold;
	border-bottom: 1px solid var(--wiki-border);
	border-right: 1px solid var(--wiki-border);
}

.infobox-table td {
	padding: 7px 10px;
	border-bottom: 1px solid var(--wiki-border);
	color: #DCD2C4;
}

/* ==========================================================================
   MODERN HERO BANNER & ARMA
   ========================================================================== */
.wiki-hero-banner {
	background: linear-gradient(135deg, #2D0B0B 0%, #451010 50%, #1A0606 100%);
	border: 2px solid var(--wiki-border-gold);
	border-radius: 8px;
	padding: 34px 24px;
	margin-bottom: 24px;
	color: #FFFFFF;
	position: relative;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
	text-align: center;
}

.wiki-hero-title {
	font-size: 26px;
	font-weight: bold;
	color: var(--m2-gold);
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
	margin-bottom: 8px;
	letter-spacing: 1px;
}

.wiki-hero-subtitle {
	font-size: 13.5px;
	color: #D6C8B6;
	max-width: 720px;
	margin: 0 auto 22px;
	line-height: 1.5;
}

.hero-search-wrapper {
	max-width: 620px;
	margin: 0 auto;
	position: relative;
}

.hero-search-bar {
	display: flex;
	align-items: center;
	background: #14100D;
	border-radius: 30px;
	padding: 4px 6px 4px 18px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
	border: 2px solid var(--wiki-border-gold);
}

.hero-search-icon {
	font-size: 18px;
	color: var(--m2-gold);
	margin-right: 10px;
}

.hero-search-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 14.5px;
	color: #EDE4D8;
	background: transparent;
	padding: 8px 0;
}

.hero-search-btn {
	background: linear-gradient(180deg, #A82424 0%, #6E1414 100%);
	color: #FFFFFF;
	border: 1px solid #4D0E0E;
	border-radius: 24px;
	padding: 10px 22px;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0,0,0,0.3);
	transition: all 0.2s;
}

.hero-search-btn:hover {
	background: linear-gradient(180deg, #BF3030 0%, #851818 100%);
}

.hero-quick-tags {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.hero-tag {
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(229, 184, 66, 0.3);
	color: #E0D3C1;
	padding: 4px 12px;
	border-radius: 14px;
	font-size: 11.5px;
	text-decoration: none;
	transition: all 0.2s;
}

.hero-tag:hover {
	background: #A82424;
	color: #FFFFFF;
	border-color: #BF3030;
}

/* ==========================================================================
   STAT CARDS
   ========================================================================== */
.home-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}

.stat-card {
	background: #1C1713;
	border: 1px solid var(--wiki-border);
	border-radius: 6px;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	transition: all 0.2s;
}

.stat-card:hover {
	transform: translateY(-2px);
	border-color: var(--wiki-border-gold);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.stat-icon {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	background: #272019;
	border: 1px solid var(--wiki-border-gold);
}

.stat-number {
	font-size: 20px;
	font-weight: bold;
	color: var(--m2-gold);
	line-height: 1.1;
}

.stat-label {
	font-size: 12px;
	color: #9E9284;
	margin-top: 2px;
}

/* ==========================================================================
   FEATURED PORTAL CARDS (OFFICIAL MEDIAWIKI STYLE)
   ========================================================================== */
.home-categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}

.home-cat-card {
	background: #1C1713;
	border: 1px solid var(--wiki-border);
	border-radius: 6px;
	padding: 18px 16px;
	text-decoration: none;
	color: var(--text-main);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.home-cat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--m2-gold);
	opacity: 0;
	transition: opacity 0.2s;
}

.home-cat-card:hover {
	transform: translateY(-3px);
	border-color: var(--wiki-border-gold);
	box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.home-cat-card:hover::before {
	opacity: 1;
}

.home-cat-icon {
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	background: radial-gradient(circle, #2F241C 0%, #15110E 80%);
	border-radius: 6px;
	border: 1px solid var(--wiki-border);
}

.home-cat-icon img {
	max-width: 40px;
	max-height: 40px;
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
	transition: transform 0.2s ease;
}

.home-cat-card:hover .home-cat-icon img {
	transform: scale(1.12);
}

/* ==========================================================================
   OFFICIAL CHARACTER CLASSES PORTAL (5 SINIFA ÖZEL 3D VİTRİN)
   ========================================================================== */
.class-portals-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 28px;
}

.class-card {
	background: #1C1713;
	border: 1px solid var(--wiki-border);
	border-radius: 6px;
	padding: 16px 14px;
	text-decoration: none;
	color: var(--text-main);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 3px 8px rgba(0,0,0,0.25);
	transition: all 0.25s ease;
	position: relative;
	overflow: hidden;
}

.class-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--m2-red);
	opacity: 0;
	transition: opacity 0.2s;
}

.class-card:hover {
	transform: translateY(-4px);
	border-color: var(--wiki-border-gold);
	box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.class-card:hover::before {
	opacity: 1;
}

.class-avatar-wrap {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background: radial-gradient(circle, #382A20 0%, #171310 80%);
	border: 2px solid var(--wiki-border-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.4);
	overflow: hidden;
}

.class-avatar-wrap img {
	width: 76px;
	height: 76px;
	object-fit: contain;
	transition: transform 0.25s ease;
}

.class-card:hover .class-avatar-wrap img {
	transform: scale(1.1);
}

.class-name {
	font-size: 15px;
	font-weight: bold;
	color: var(--m2-gold);
	margin-bottom: 4px;
	letter-spacing: 0.5px;
}

.class-subtypes {
	font-size: 11.5px;
	color: #D65A5A;
	font-weight: bold;
	margin-bottom: 6px;
}

.class-desc {
	font-size: 11px;
	color: #9C8E7E;
	line-height: 1.4;
}

/* ==========================================================================
   OFFICIAL WIKI PORTALS (BOL ÇEŞİTLİ PORTAL KUTULARI)
   ========================================================================== */
.portal-showcase-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.portal-box-dark {
	background: #1C1713;
	border: 1px solid var(--wiki-border);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.portal-box-header {
	background: linear-gradient(180deg, #33271E 0%, #201914 100%);
	color: var(--m2-gold);
	padding: 10px 14px;
	font-size: 13px;
	font-weight: bold;
	border-bottom: 1px solid var(--wiki-border-gold);
	display: flex;
	align-items: center;
	gap: 10px;
}

.portal-box-header img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.portal-box-content {
	padding: 12px 14px;
}

.portal-box-content ul {
	list-style: none;
}

.portal-box-content li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	border-bottom: 1px dotted #2E251E;
	font-size: 12.5px;
}

.portal-box-content li:last-child {
	border-bottom: none;
}

.portal-item-icon {
	width: 24px;
	height: 24px;
	object-fit: contain;
	flex-shrink: 0;
}

.portal-box-content a {
	color: #CFC5B8;
	font-weight: normal;
}

.portal-box-content a:hover {
	color: var(--m2-gold);
}

/* ==========================================================================
   BOSS CARDS SHOWCASE (3D GÖRSELLİ VITRİN)
   ========================================================================== */
.home-bosses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}

.home-boss-card {
	background: #1C1713;
	border: 1px solid var(--wiki-border);
	border-radius: 6px;
	padding: 14px;
	text-decoration: none;
	color: var(--text-main);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
	transition: all 0.2s ease;
}

.home-boss-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.4);
	border-color: var(--m2-gold);
}

.home-boss-img-wrap {
	width: 100%;
	height: 95px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	background: radial-gradient(circle, #2E241D 0%, #15110E 75%);
	border-radius: 4px;
	border: 1px solid #2B211A;
}

.home-boss-img-wrap img {
	max-height: 85px;
	max-width: 120px;
	object-fit: contain;
	transition: transform 0.25s ease;
}

.home-boss-card:hover .home-boss-img-wrap img {
	transform: scale(1.08);
}

.home-boss-name {
	font-weight: bold;
	font-size: 13px;
	color: var(--m2-gold);
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

.home-boss-level {
	font-size: 11px;
	color: #D65A5A;
	font-weight: bold;
	margin-bottom: 4px;
}

.home-boss-hp {
	font-size: 11px;
	color: #8C8072;
}

/* ==========================================================================
   SEARCH DROPDOWN (DARK)
   ========================================================================== */
.search-dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #1C1713;
	border: 1px solid var(--wiki-border-gold);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
	max-height: 440px;
	overflow-y: auto;
	display: none;
	z-index: 1000;
}

.search-dropdown-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid #29201A;
	font-size: 13px;
	color: #DCD2C4;
	text-decoration: none;
	transition: background 0.15s ease;
}

.search-dropdown-item:hover,
.search-dropdown-item.selected {
	background: #2E231B;
	color: var(--m2-gold);
}

.search-dropdown-item img {
	width: 36px;
	height: 36px;
	object-fit: contain;
	background: #14100D;
	border: 1px solid #3A2F25;
	border-radius: 4px;
	padding: 2px;
	flex-shrink: 0;
}

.search-dropdown-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.search-dropdown-name {
	font-weight: bold;
	font-size: 13px;
	color: #EDE4D8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-dropdown-level {
	font-weight: normal;
	color: #9C8F80;
	font-size: 11px;
}

.search-dropdown-badge {
	display: inline-block;
	align-self: flex-start;
	font-size: 10px;
	font-weight: bold;
	padding: 2px 7px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.badge-boss {
	background: #4D1212;
	color: #FFB3B3;
	border: 1px solid #751A1A;
}

.badge-metin {
	background: #14324D;
	color: #B3DCFF;
	border: 1px solid #1D4F7A;
}

.badge-mob {
	background: #3B1A4D;
	color: #DCB3FF;
	border: 1px solid #5C2B78;
}

.badge-chest {
	background: #4D3512;
	color: #FFE0B3;
	border: 1px solid #78531D;
}

.badge-item {
	background: #1A3D1E;
	color: #B8EBB8;
	border: 1px solid #2B6130;
}

.search-dropdown-arrow {
	color: #6E6152;
	font-size: 14px;
	padding-right: 4px;
}

/* ==========================================================================
   FOOTER (DARK)
   ========================================================================== */
.wiki-footer {
	background: #0E0C0A;
	border-top: 2px solid var(--wiki-border-gold);
	padding: 24px;
	text-align: center;
	font-size: 12px;
	color: #8C8072;
	margin-top: 40px;
}

.wiki-footer-links {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 10px;
}

.wiki-footer-links a {
	color: #B5A898;
	font-weight: normal;
}

.wiki-footer-links a:hover {
	color: var(--m2-gold);
}

/* ==========================================================================
   DENGELİ MOB & ITEM DETAY SAYFASI DÜZENİ (MODERN RPG LAYOUT)
   ========================================================================== */
.detail-hero-card {
	background: linear-gradient(135deg, #241A14 0%, #17120E 100%);
	border: 1px solid var(--wiki-border-gold);
	border-radius: 8px;
	padding: 22px 26px;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 24px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	position: relative;
	overflow: hidden;
}

.detail-hero-card::after {
	content: '';
	position: absolute;
	top: -50px;
	right: -50px;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(229, 184, 66, 0.08) 0%, transparent 70%);
	pointer-events: none;
}

.detail-hero-avatar-box {
	width: 120px;
	height: 120px;
	background: radial-gradient(circle, #2E231B 0%, #14100D 80%);
	border: 2px solid var(--wiki-border-gold);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.detail-hero-avatar-box img {
	max-width: 104px;
	max-height: 104px;
	object-fit: contain;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.detail-hero-content {
	flex: 1;
	min-width: 0;
}

.detail-hero-title {
	font-size: 26px;
	font-weight: bold;
	color: var(--m2-gold);
	margin: 0 0 8px 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.detail-hero-badges {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.detail-badge {
	font-size: 11.5px;
	font-weight: bold;
	padding: 3px 10px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	letter-spacing: 0.3px;
}

.detail-badge-level {
	background: #3B2A18;
	color: #FFD97D;
	border: 1px solid #7D5C28;
}

.detail-badge-boss {
	background: #4D1212;
	color: #FFB3B3;
	border: 1px solid #8B2020;
}

.detail-badge-metin {
	background: #14324D;
	color: #B3DCFF;
	border: 1px solid #245A8A;
}

.detail-badge-mob {
	background: #242A33;
	color: #B8C7D9;
	border: 1px solid #3B4654;
}

.detail-badge-class {
	background: #1C2B1D;
	color: #A9DFBF;
	border: 1px solid #2E5C32;
}

.detail-badge-category {
	background: #2E1A38;
	color: #E8B4F8;
	border: 1px solid #5A2D6E;
}

.detail-badge-element {
	background: #3D2214;
	color: #FFB07D;
	border: 1px solid #783C1C;
}

.detail-hero-desc {
	font-size: 13.5px;
	color: #D6C8B6;
	line-height: 1.5;
	margin: 0;
}

/* 5'li Canavar / Karakter Stat Izgarası */
.detail-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 12px;
	margin: 20px 0;
}

.detail-stat-box {
	background: #181310;
	border: 1px solid var(--wiki-border);
	border-radius: 6px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	transition: all 0.2s;
}

.detail-stat-box:hover {
	border-color: var(--wiki-border-gold);
	transform: translateY(-2px);
}

.detail-stat-label {
	font-size: 11px;
	color: #9C8F80;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.detail-stat-value {
	font-size: 15px;
	font-weight: bold;
	color: #EDE4D8;
}

.stat-hp .detail-stat-value { color: #FF6B6B; }
.stat-def .detail-stat-value { color: #6EA8FE; }
.stat-att .detail-stat-value { color: #FFA94D; }
.stat-exp .detail-stat-value { color: #D0BFFF; }
.stat-gold .detail-stat-value { color: #FFD43B; }

/* 2 Sütunlu Dengeli Bölüm (Left: Tooltip/Info, Right: Infobox) */
.detail-two-col {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 24px;
	align-items: start;
	margin-bottom: 24px;
}

.detail-two-col .m2-infobox {
	float: none;
	width: 100%;
	margin: 0;
}

/* Tam Genişlik Tablo Bölümü */
.detail-full-section {
	width: 100%;
	margin-bottom: 28px;
}

.m2-table-wrapper {
	width: 100%;
	overflow-x: auto;
	border-radius: 6px;
	border: 1px solid var(--table-border);
	background: #181410;
	margin: 14px 0 20px;
}

.m2-table-wrapper .m2-table {
	margin: 0;
	border: none;
}

/* İtem Yükseltme Tablosu Satır Vurgusu */
.m2-table tr.active-refine-row {
	background: rgba(229, 184, 66, 0.14) !important;
	border-left: 3px solid var(--m2-gold);
	font-weight: bold;
}

.m2-table tr.active-refine-row td {
	color: #FFF2D1;
}

/* Elde Ediliş (Canavarlar & Sandıklar) 2 Sütunlu Grid */
.detail-sources-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 10px;
}

@media (max-width: 900px) {
	.detail-two-col,
	.detail-sources-grid {
		grid-template-columns: 1fr;
	}
	.detail-hero-card {
		flex-direction: column;
		text-align: center;
	}
	.detail-hero-avatar-box {
		margin: 0 auto;
	}
	.detail-hero-title,
	.detail-hero-badges {
		justify-content: center;
	}
}

/* Oyun İçi Metin2 Tooltip Stili */
.m2-tooltip {
	background: rgba(12, 10, 8, 0.96);
	border: 1px solid #A88448;
	border-radius: 5px;
	padding: 14px 16px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
	font-family: inherit;
	text-align: center;
	line-height: 1.45;
}

.m2-tooltip-title {
	font-size: 14.5px;
	font-weight: bold;
	color: #F5D38A;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(168, 132, 72, 0.35);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.m2-tooltip-line {
	font-size: 12px;
	margin: 3px 0;
}

.m2-tooltip-line.m2-gold { color: #E5B842; font-weight: bold; }
.m2-tooltip-line.m2-yellow { color: #FFDD77; }
.m2-tooltip-line.m2-green { color: #5CE672; }
.m2-tooltip-line.m2-yang { color: #FFDF6D; font-weight: bold; }
.m2-tooltip-line.m2-muted { color: #A89C8D; }

/* ==========================================================================
   SAĞ SİDEBAR (ETKİNLİKLER & BOSS SAATLERİ)
   ========================================================================== */
.wiki-sidebar-right {
	width: 270px;
	flex-shrink: 0;
}

.today-event-highlight {
	background: linear-gradient(135deg, #4A1212 0%, #290808 100%) !important;
	border: 1px solid var(--wiki-border-gold) !important;
	padding: 16px;
	text-align: center;
	position: relative;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.today-event-badge {
	background: var(--m2-gold);
	color: #140D07;
	font-size: 10px;
	font-weight: bold;
	padding: 3px 8px;
	border-radius: 10px;
	display: inline-block;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.today-event-title {
	font-size: 14.5px;
	font-weight: bold;
	color: #FFFFFF;
	margin-bottom: 4px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.today-event-time {
	font-size: 12px;
	color: #FFD97D;
	font-weight: 500;
	margin-bottom: 6px;
}

.today-event-desc {
	font-size: 11px;
	color: #D6C8B6;
	line-height: 1.35;
}

.events-list {
	display: flex;
	flex-direction: column;
}

.event-item {
	display: flex;
	align-items: center;
	padding: 8px 10px;
	border-bottom: 1px solid #281F18;
	font-size: 12px;
	transition: background 0.15s;
	gap: 8px;
}

.event-item:hover {
	background: #251D17;
}

.event-item-active {
	background: rgba(229, 184, 66, 0.12) !important;
	border-left: 3px solid var(--m2-gold);
}

.event-day-col {
	width: 72px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.event-day-name {
	font-weight: bold;
	color: #D6C8B6;
	font-size: 11.5px;
}

.event-today-pill {
	font-size: 9px;
	background: var(--m2-red);
	color: #FFF;
	padding: 1px 4px;
	border-radius: 3px;
	display: inline-block;
	width: fit-content;
	font-weight: bold;
}

.event-info-col {
	flex: 1;
	min-width: 0;
}

.event-name {
	font-weight: bold;
	color: var(--m2-gold);
	font-size: 11.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.event-time {
	font-size: 10.5px;
	color: #9C8F80;
}

.boss-timers-list {
	display: flex;
	flex-direction: column;
}

.boss-timer-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-bottom: 1px solid #281F18;
	font-size: 12px;
}

.boss-timer-avatar img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	vertical-align: middle;
}

.boss-timer-info {
	flex: 1;
	min-width: 0;
}

.boss-timer-name {
	font-weight: bold;
	font-size: 12px;
	color: #EDE4D8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.boss-timer-loc {
	font-size: 10.5px;
	color: #8C8072;
}

.boss-timer-badge {
	font-size: 10.5px;
	font-weight: bold;
	color: #FFD97D;
	background: #2D2218;
	border: 1px solid #5C4524;
	padding: 2px 6px;
	border-radius: 4px;
	white-space: nowrap;
}

.server-status-row {
	display: flex;
	align-items: center;
	font-size: 12px;
	color: #D6C8B6;
}

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

.status-indicator-dot.online {
	background: #5CE672;
	box-shadow: 0 0 8px rgba(92, 230, 114, 0.7);
}

.discord-sidebar-btn {
	display: block;
	background: #5865F2;
	color: #FFF !important;
	text-align: center;
	padding: 9px;
	border-radius: 4px;
	font-weight: bold;
	font-size: 12px;
	margin-top: 12px;
	text-decoration: none;
	transition: background 0.2s;
}

.discord-sidebar-btn:hover {
	background: #4752C4;
}

@media (max-width: 1280px) {
	.wiki-sidebar-right {
		display: none;
	}
}

@media (max-width: 992px) {
	.class-portals-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Efsun Bağlantıları (Clickable Attributes) */
.m2-attr-link {
	color: #5CE672;
	text-decoration: none;
	border-bottom: 1px dotted rgba(92, 230, 114, 0.45);
	transition: all 0.15s;
	display: inline-block;
}

.m2-attr-link:hover {
	color: var(--m2-gold) !important;
	border-bottom-color: var(--m2-gold);
	text-decoration: none;
}

.m2-attr-title-link {
	transition: all 0.15s;
}

.m2-attr-title-link:hover {
	color: #FFF !important;
	text-decoration: underline !important;
}



