/*
Theme Name: AoE3 Iran Official
Theme URI: http://2xf.ir
Author: FARID2XF
Description: Official Age of Empires 3 Iranian Community Theme. Features a custom dark/gold in-game UI style.
Version: 2.0
Text Domain: aoe3iran
*/


/* YekanBakh */

@font-face {
  /* default was font-display: fallback;  */
	font-display: swap;
    font-family: Yekan Bakh FaNum VF;
    font-weight: 100 950;
    src: url("assets/fonts/YekanBakh/YekanBakhFaNum-VF.76c6a4eb.ttf") format("truetype-variations");
} 
/* 
 * Yekan Bakh Font (no fa numbers)
*/

@font-face{font-family:'YekanBakh';font-style:normal;font-weight:100;
	src:url("assets/fonts/YekanBakh/YekanBakh-Thin.woff2") format("woff2"),
	url("assets/fonts/YekanBakh/YekanBakh-Thin.woff") format("woff"),
	url("assets/fonts/YekanBakh/YekanBakh-Thin.otf") format("opentype"),
	url("assets/fonts/YekanBakh/YekanBakh-Thin.ttf") format("truetype");font-display:swap}
@font-face{font-family:'YekanBakh';font-style:normal;font-weight:300;
	src:url("assets/fonts/YekanBakh/YekanBakh-Light.woff2") format("woff2"),
	url("assets/fonts/YekanBakh/YekanBakh-Light.woff") format("woff"),
	url("assets/fonts/YekanBakh/YekanBakh-Light.otf") format("opentype"),
	url("assets/fonts/YekanBakh/YekanBakh-Light.ttf") format("truetype");font-display:swap}
@font-face{font-family:'YekanBakh';font-style:normal;font-weight:400;
	src:url("assets/fonts/YekanBakh/YekanBakh-Regular.woff2") format("woff2"),
	url("assets/fonts/YekanBakh/YekanBakh-Regular.woff") format("woff"),
	url("assets/fonts/YekanBakh/YekanBakh-Regular.otf") format("opentype"),
	url("assets/fonts/YekanBakh/YekanBakh-Regular.ttf") format("truetype");font-display:swap}
@font-face{font-family:'YekanBakh';font-style:normal;font-weight:600;
	src:url("assets/fonts/YekanBakh/YekanBakh-SemiBold.woff2") format("woff2"),
	url("assets/fonts/YekanBakh/YekanBakh-SemiBold.woff") format("woff"),
	url("assets/fonts/YekanBakh/YekanBakh-SemiBold.otf") format("opentype"),
	url("assets/fonts/YekanBakh/YekanBakh-SemiBold.ttf") format("truetype");
font-display:swap}@font-face{font-family:'YekanBakh';font-style:normal;font-weight:700;
	src:url("assets/fonts/YekanBakh/YekanBakh-Bold.woff2") format("woff2"),
	url("assets/fonts/YekanBakh/YekanBakh-Bold.woff") format("woff"),
	url("assets/fonts/YekanBakh/YekanBakh-Bold.otf") format("opentype"),
	url("assets/fonts/YekanBakh/YekanBakh-Bold.ttf") format("truetype");font-display:swap}
@font-face{font-family:'YekanBakh';font-style:normal;font-weight:800;
	src:url("assets/fonts/YekanBakh/YekanBakh-ExtraBold.woff2") format("woff2"),
	url("assets/fonts/YekanBakh/YekanBakh-ExtraBold.woff") format("woff"),
	url("assets/fonts/YekanBakh/YekanBakh-ExtraBold.otf") format("opentype"),
	url("assets/fonts/YekanBakh/YekanBakh-ExtraBold.ttf") format("truetype");font-display:swap}
@font-face{font-family:'YekanBakh';font-style:normal;font-weight:900;
	src:url("assets/fonts/YekanBakh/YekanBakh-Black.woff2") format("woff2"),
	url("assets/fonts/YekanBakh/YekanBakh-Black.woff") format("woff"),
	url("assets/fonts/YekanBakh/YekanBakh-Black.otf") format("opentype"),
	url("assets/fonts/YekanBakh/YekanBakh-Black.ttf") format("truetype");font-display:swap}
@font-face{font-family:'YekanBakh';font-style:normal;font-weight:950;
	src:url("assets/fonts/YekanBakh/YekanBakh-ExtraBlack.woff2") format("woff2"),
	url("assets/fonts/YekanBakh/YekanBakh-ExtraBlack.woff") format("woff"),
	url("assets/fonts/YekanBakh/YekanBakh-ExtraBlack.otf") format("opentype"),
	url("assets/fonts/YekanBakh/YekanBakh-ExtraBlack.ttf") format("truetype");font-display:swap}
	
:root {
    --bg-dark: #0b0c10;
    --panel-bg: rgba(21, 24, 33, 0.85);
    --gold: #d4af37;
    --gold-hover: #f1c94f;
    --border-color: #2a2e37;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --font-fa: 'YekanBakh' , Yekan Bakh FaNum VF, shabnam , -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-en: 'YekanBakh', Yekan Bakh FaNum VF, shabnam , -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
	direction: rtl;
	scroll-behavior: smooth;  /* Smooth Scroll */
    font-size: 16px;
}
body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top center, #1a1e29 0%, #0b0c10 100%);
    color: var(--text-light);
    font-family: var(--font-fa);
    direction: rtl;
    line-height: 1.6;
    min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
/*    font-feature-settings: "ss01"; for fa numbers */
    letter-spacing: -.25px; 

}





a { color: var(--gold); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--gold-hover); text-shadow: 0 0 8px rgba(212, 175, 55, 0.4); }

/* Typography */
h1, h2, h3, h4 {
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.en-title { font-family: var(--font-en); direction: ltr; }

/* Header & Navigation */
.site-header {
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0));
    padding: 1.5rem 0;
    position: absolute;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.site-branding h2 {
	margin-bottom:0;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.main-nav ul { list-style: none; display: flex; gap: 25px; }
.main-nav ul li a {
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 5px 0;
    position: relative;
}
.main-nav ul li a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; right: 0;
    height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.3s;
}
.main-nav ul li a:hover::after { transform: scaleX(1); }

/* Hero Section */
.hero-section {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 3px solid var(--gold);
}
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11,12,16,0.95) 0%, rgba(11,12,16,0.2) 100%);
}
.hero-content { position: relative; z-index: 10; max-width: 650px; text-align:center }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 15px; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; color: #cbd5e1; }

/* Generic Section Styles */
.section-pad { padding: 10rem 0; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 3rem; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.aoe-panel {
    background: linear-gradient(135deg, rgba(21, 24, 33, 0.95), rgba(11, 12, 16, 0.95));
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--gold);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.aoe-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}
.aoe-panel img { border-radius: 4px; border: 1px solid var(--border-color); }

/* Buttons */
.btn-gold {
    display: inline-block; background: var(--gold); color: #000;
    padding: 8px 20px; border-radius: 4px; font-weight: bold;
    margin-top: 15px; font-size: 0.95rem; border: none; cursor: pointer;    font-family: inherit;
}
.btn-gold:hover { background: var(--gold-hover); color: #000; text-shadow: none; transform: translateY(-2px); }

/* =========================================================
   IRLN TOURNAMENT SECTION (STANDALONE)
   ========================================================= */
.irln-tournament {
    background-size: cover; background-position: center; background-attachment: fixed;
    position: relative; border-top: 3px solid var(--danger); border-bottom: 3px solid var(--danger);
}
.irln-tournament::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(11, 12, 16, 0.85); backdrop-filter: blur(4px);
}
.irln-content { position: relative; z-index: 10; text-align: center; }
.irln-title { color: var(--danger); font-size: 3rem; text-transform: uppercase; text-shadow: 0 0 15px rgba(239, 68, 68, 0.5); }

.countdown-timer { display: flex; justify-content: center; gap: 20px; margin: 3rem 0; direction: ltr; flex-wrap: wrap; }
.time-box {
    background: rgba(0,0,0,0.6); border: 2px solid var(--gold); border-radius: 12px;
    padding: 20px 30px; min-width: 120px; box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.2);
}
.time-box span { display: block; font-size: 3.5rem; color: #fff; font-family: var(--font-en); font-weight: bold; line-height: 1; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.time-box label { color: var(--gold); font-size: 1rem; text-transform: uppercase; margin-top: 5px; display: block; font-weight: bold; }

.social-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 2rem; }
.btn-social {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 25px; background: rgba(255,255,255,0.05); border: 1px solid var(--gold);
    border-radius: 6px; font-weight: bold; transition: all 0.3s;
}
.btn-social:hover { background: var(--gold); color: #000; box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }

.btn-signup { background: rgba(239, 68, 68, 0.1); border-color: var(--danger); color: var(--danger); }
.btn-signup:hover { background: var(--danger); color: #fff; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }

.ts-container { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn-ts { border-color: #38bdf8; color: #38bdf8; background: rgba(56, 189, 248, 0.05); }
.btn-ts:hover { background: #38bdf8; color: #000; box-shadow: 0 0 15px rgba(56, 189, 248, 0.4); }
.ts-url {
    background: rgba(0,0,0,0.8); border: 1px dashed #38bdf8; color: #e2e8f0;
    padding: 5px 15px; border-radius: 4px; font-family: var(--font-en); font-size: 0.9rem; letter-spacing: 1px;
}
.ts-url span { color: #38bdf8; user-select: all; }
/* =========================================================
   END IRLN TOURNAMENT SECTION
   ========================================================= */
/* Default Scroll */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f9f9f9;
}
::-webkit-scrollbar-thumb {
  background: #adb2be;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #454a53;
}

/* Footer */
.site-footer {
    background: #000; padding: 3rem 0; text-align: center;
    border-top: 2px solid var(--border-color); 
}











/* Scoped specific styles for the single view, merged with your theme */
.match-header { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 2rem; border: 1px solid var(--border-color); background: var(--panel-bg); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.match-bg { position: absolute; top: -20%; left: -20%; width: 140%; height: 140%; background-size: cover; background-position: center; filter: blur(5px); opacity: 0.25; z-index: 0; pointer-events: none; }
.match-content { position: relative; padding: 2.5rem; display: flex; align-items: center; gap: 3rem; z-index: 1; background: linear-gradient(-90deg, rgba(15, 17, 21, 0.95) 0%, rgba(15, 17, 21, 0.7) 30%);  }
.map-column { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; width: 190px; }
.map-pre-text { font-size: 0.8rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; text-align: center;margin-bottom: -10px; }
.map-circular-wrapper { position: relative;width: 200px;height: 200px;border-radius: 50%;overflow: hidden; }
.map-circular-img { width: 100%; height: 100%; object-fit: cover; }
.map-name-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%;  display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; font-family: var(--font-en); font-size: 1.3rem; font-weight: 700; text-shadow: 0px 2px 6px #000; padding: 10px; }
.match-info { flex-grow: 1; }
.match-title { font-size: 2.2rem; color: #fff; margin-bottom: 0.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8); line-height: 1.2; word-break: break-word; font-family: var(--font-en); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; }
.badge { background: rgba(0,0,0,0.6); border: 1px solid var(--border-color); color: var(--text-muted); padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; font-family: var(--font-en); }
a.badge { 
	transition: 0.3s; 
}
a.badge:hover {
	transform: translateY(-2px);
}
.badge-green { background: rgba(34, 197, 94, 0.1); color: #22c55e ; border-color: rgba(34, 197, 94, 0.5) }
.badge-green:hover { background: rgba(34, 197, 94, 0.3);     color: #00ff4e;}
.badge > i {
    vertical-align: middle;
    margin-left: 4px;
}
span.f-size {
	font-size: 0.8rem;
    display: inline-block;
    direction: ltr;
    background: #f7d461;
    padding: 5px 6px 2px;
    border-radius: 4px;
    margin-right: 10px;
    color: #000000;
    line-height: 1;
    font-weight: normal;
    letter-spacing: 0;
}

.badge-highlight { border-color: var(--gold); color: var(--gold); }
.badge-featured { background: linear-gradient(45deg, #d4af37, #f1c94f); color: #000; border: none; font-weight: bold; box-shadow: 0 0 10px rgba(212,175,55,0.4); }
.stat-item {
	transition: 0.3s;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    margin-top: 15px;
    border: none;
}
.stat-item:hover {
	color:#fff;
	text-shadow: none;
	transform: translateY(-2px);
	background: rgba(0, 0, 0, 0.5);
}
span.like-count,span.stat-count {margin-right: 8px;font-size: 18px;}
.action-bar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 2rem; }
.spoiler-box { display: none; margin-top: 1rem; padding: 1rem; background: rgba(34, 197, 94, 0.1); border: 1px solid #22c55e; border-radius: 8px; color: #22c55e; font-weight: bold; font-size: 1.1rem; direction: rtl; text-align: right; }
.vs-layout { display: flex; justify-content: space-between; align-items: stretch; gap: 2rem; margin-bottom: 3rem; }
.vs-team-col { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; }
.team-header-title { text-align: center; font-family: var(--font-en); font-size: 1.5rem; color: var(--gold); padding-bottom: 0.5rem; border-bottom: 1px dashed var(--border-color); margin-bottom: 0.5rem; }
.vs-badge-container { display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding-top: 3rem; }
.vs-badge { font-family: var(--font-en); font-size: 3.5rem; font-weight: 700; color: var(--gold); text-shadow: 0 0 20px rgba(212, 175, 55, 0.5); /* background: var(--bg-dark);*/ padding: 10px; border-radius: 50%; }
.ffa-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; direction: ltr; }
.player-card { background: var(--panel-bg); border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); border-left: 4px solid var(--player-color); transition: transform 0.2s, box-shadow 0.2s; position: relative; direction:ltr;}
.player-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.5), -2px 0 12px -2px var(--player-color); }
.civ-banner-wrap { position: relative; height: 140px; width: 100%; background: var(--panel-bg); }
.civ-banner-wrap img { position: absolute; right: 0; top: 0; width: 60%; height: 100%; object-fit: cover; object-position: right center; opacity: 0.6; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%); mask-image: linear-gradient(to right, transparent 0%, black 100%); }
.civ-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 15px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; z-index: 1; }
.player-name-hero { font-size: 1.45rem; font-weight: 700; color: #fff; text-shadow: 2px 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.6); display: flex; align-items: center; gap: 8px; font-family: var(--font-en); }
.clan-tag { color: var(--gold); font-weight: 700; font-size: 1.2rem; }
.civ-info-row { display: flex; align-items: center; gap: 10px; font-family: var(--font-en); }
.civ-name-text { font-size: 1.1rem; font-weight: 600; color: #e2e8f0; text-shadow: 1px 1px 3px rgba(0,0,0,0.9); }
.civ-level-badge { background: rgba(212, 175, 55, 0.15); color: var(--gold); font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; border: 1px solid rgba(212, 175, 55, 0.5); }
.meta-compact { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #cbd5e1; background: rgba(0,0,0,0.4); padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); font-family: var(--font-en); }
.meta-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }
.meta-item i { color: var(--gold); font-size: 0.9rem; }


/* Modern Compact Card Layout for Archive */
.rec-archive-card {
    background: rgba(21, 24, 33, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}
.rec-archive-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transform: translateY(-3px);
}
.rec-archive-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

/* Header Area: Map, Title, Badges */
.rec-arch-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    padding-bottom: 1rem;
}
.rec-arch-map {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}
.rec-arch-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rec-arch-map-name {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 3px #000;
    font-family: var(--font-en);
    padding: 2px;
}

.rec-arch-info {
    flex-grow: 1;
    overflow: hidden;
}
.rec-arch-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.4rem;
    font-family: var(--font-en);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
.rec-arch-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-sm {
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.badge-sm-gold { border-color: var(--gold); color: var(--gold); }
.badge-sm-feat { background: linear-gradient(45deg, #d4af37, #f1c94f); color: #000; border: none; box-shadow: 0 0 8px rgba(212, 175, 55, 0.4); }

/* Teams Layout Area */
.rec-arch-teams {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
	    direction: ltr;
}
.rec-arch-team-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px; /* Decreased gap for compact 3v3 and 4v4 viewing */
}
.rec-arch-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(212, 175, 55, 1);
    padding: 0 10px;
}
.rec-arch-ffa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
    width: 100%;
	 direction: ltr;
}
.rec-arch-ffa-grid .player-card-mini img{
width: 50%;
}
/* Slim Player Cards */
.player-card-mini {
    background: #0b0c10;
    border-radius: 6px;
    height: 50px; /* Slim height */
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--player-color);
    position: relative;
    overflow: hidden;
    transition: background 0.2s;
}
.player-card-mini:hover {
    background: rgba(255,255,255,0.05);
}
.player-card-mini img {
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 100%);
}
.player-mini-name {
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-en);
    text-shadow: 1px 1px 3px #000;
    z-index: 2;
    gap: 6px;
}
.player-mini-clan {
    color: var(--gold);
    font-size: 0.8rem;
}
/* Button Styles */
.rec-action-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rec-archive-card:hover .rec-action-btn {
    background: var(--gold);
    color: #000;
}
/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 2rem; direction: ltr; font-family: var(--font-en); }
.pagination a, .pagination span { padding: 8px 16px; background: var(--panel-bg); border: 1px solid var(--border-color); color: var(--gold); border-radius: 4px; font-weight: bold; text-decoration: none; }
.pagination .current { background: var(--gold); color: #000; }
.pagination a:hover { background: rgba(212, 175, 55, 0.2); }

@media (max-width: 768px) {
	/* single rec */
	.match-content { flex-direction: column; text-align: center; gap: 2rem; padding: 1.5rem; } 
	.action-bar, .badges, .match-info { text-align: center; justify-content: center; } 
	.vs-layout { flex-direction: column; gap: 0; } 
	.map-column { width: 100%; }
	/* archive rec */
	.player-card-mini img { width: 40%; }
}
@media (max-width: 600px) {
    .rec-arch-teams { gap: 0.5rem; }
	.player-card-mini img { width: 60%; }
    .rec-arch-vs { padding: 5px 0; font-size: 1.2rem; }
	.player-card-mini {  height: 42px; }
}




/* =========================================================
   FILTER FORM STYLES
   ========================================================= */
/* =========================================================
   FILTER FORM STYLES
   ========================================================= */
.rec-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    align-items: end; /* Aligns the bottoms of inputs and buttons */
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.filter-group label i { margin-left: 5px; color: var(--gold); }
.filter-group select {
    width: 100%;
    height: 42px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 6px;
    padding: 0 10px;
    font-family: var(--font-fa);
    outline: none;
    transition: border-color 0.3s;
}
.filter-group select:focus { border-color: var(--gold); }
.filter-group select option { background: var(--bg-dark); color: #fff; }

.feat-checkbox {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    height: 42px; /* Matches dropdown heights */
    margin: 0;
}
.feat-checkbox input { accent-color: var(--gold); width: 18px; height: 18px; cursor: pointer; }

@media (max-width: 768px) {
    .rec-filter-form { grid-template-columns: 1fr; }
}

/* =========================================================
   COMMENTS SECTION STYLES
   ========================================================= */
.comments-panel .comments-title {
    font-size: 1.5rem;
    color: var(--gold);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-list .comment {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.comment-list .children {
    list-style: none;
    padding-right: 2rem; /* Indent replies (RTL) */
    margin-top: 1.5rem;
    border-right: 2px solid var(--border-color);
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.comment-author img {
    border-radius: 50%;
    border: 2px solid var(--gold);
}
.comment-author b {
    color: #fff;
    font-size: 1.1rem;
}
.comment-metadata a {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.comment-content {
    color: var(--text-light);
    line-height: 1.8;
}
.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--gold);
}
.comment-reply-link:hover { background: var(--gold); color: #000; }

/* Comment Form Layout */
.comment-respond {
    margin-top: 2rem;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.comment-reply-title { color: var(--gold); font-size: 1.3rem; margin-bottom: 1rem; }
.comment-form { display: flex; flex-direction: column; gap: 15px; }
.comment-form label { display: block; margin-bottom: 5px; color: var(--text-muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-family: var(--font-fa);
    outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--gold); }
.comment-form .form-submit input[type="submit"] {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-fa);
    transition: 0.3s;
}
.comment-form .form-submit input[type="submit"]:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}




/* =========================================================
   UPLOAD LOADER & PROGRESS STYLES
   ========================================================= */
.upload-loader { 
    display: none; 
    text-align: center; 
    margin: 2rem 0; 
    padding: 1.5rem; 
    border: 1px dashed var(--gold); 
    background: rgba(212, 175, 55, 0.05); 
    border-radius: 8px; 
    transition: all 0.3s;
}
.upload-loader.active { display: block; animation: fadeIn 0.5s ease; }
.spinner { 
    border: 4px solid rgba(255, 255, 255, 0.1); 
    border-left-color: var(--gold); 
    border-radius: 50%; 
    width: 45px; 
    height: 45px; 
    animation: spin 1s linear infinite; 
    margin: 0 auto 15px; 
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   BENEFITS OF REPLAYS SECTION
   ========================================================= */
.benefits-section { padding-top: 4rem; border-top: 1px solid var(--border-color); }
.benefits-header { text-align: center; margin-bottom: 3rem; }
.benefits-hero-text { font-size: 1.15rem; color: #cbd5e1; max-width: 650px; margin: 1rem auto 0; line-height: 1.8; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.benefit-card { 
    background: rgba(21, 24, 33, 0.6); 
    border: 1px solid rgba(255,255,255,0.05); 
    padding: 1.5rem; 
    border-radius: 10px; 
    display: flex; 
    align-items: flex-start; 
    gap: 15px; 
    transition: all 0.3s ease; 
}
.benefit-card:hover { 
    transform: translateY(-5px); 
    background: rgba(21, 24, 33, 0.95); 
    border-color: rgba(212, 175, 55, 0.4); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.4); 
}
.benefit-icon { 
    background: rgba(212, 175, 55, 0.1); 
    color: var(--gold); 
    width: 45px; 
    height: 45px; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.3rem; 
    flex-shrink: 0; 
}
.benefit-text { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; font-weight: 500; }





/* --- UI/UX Enhancements for AoE3 Iran Update --- */

/* Upload Page Transitions */
.upload-fade-in { animation: uploadFadeIn 0.5s ease-out forwards; }
@keyframes uploadFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


.filter-search-group { grid-column: span 2; } /* make search box wider */
@media (max-width: 768px) { .filter-search-group { grid-column: span 1; } }

/* Search Input Styling */
.rec-search-input {
    width: 100%;
    height: 42px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 6px;
    padding: 0 10px;
    font-family: var(--font-fa);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.rec-search-input:focus { border-color: var(--gold); box-shadow: 0 0 8px rgba(212, 175, 55, 0.2); }



