/* ======================================================
   HOA SEN GAMING - Optimized Hybrid Font CSS
   - Orbitron for English (Headings / Brand)
   - Roboto for Vietnamese (Full Accent Support)
   - Smooth animations, minimal reflows
====================================================== */

/* === Variables === */
:root {
	--bg-primary: #0a0a0a;
	--bg-secondary: #121212;
	--bg-tertiary: #1a1a1a;
	--text-primary: #ffffff;
	--text-secondary: #b3b3b3;
	--text-muted: #808080;
	--accent-primary: #ff3366;
	--accent-secondary: #00ffff;
	--accent-glow: rgba(255, 51, 102, 0.4);
	--accent-glow-cyan: rgba(0, 255, 255, 0.4);
	--border-color: rgba(255, 255, 255, 0.1);
	--radius: 8px;
	--transition-speed: 0.3s;
	--header-height: 70px;
}

/* === Global Reset === */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

/* === Language-based Font Setup === */
html[lang="en"] {
	font-family: 'Rajdhani', sans-serif;
}

html[lang="vi"] {
	font-family: 'Roboto', sans-serif;
}

/* === Common Elements === */
body {
	background: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
	position: relative;
}

/* === Headings Hybrid === */
/* English headings → Orbitron, Vietnamese headings → Roboto */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] .brand,
html[lang="vi"] .brand,
html[lang="en"] .section-title,
html[lang="en"] .stat-number {
	font-family: 'Orbitron', sans-serif;
	font-weight: 800;
}

html[lang="vi"] h1,
html[lang="vi"] h2,
html[lang="vi"] h3,
html[lang="vi"] .section-title,
html[lang="vi"] .stat-number {
	font-family: 'Roboto', sans-serif;
	font-weight: 900;
}

/* === Background Effects === */
body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image:
		repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
		repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
	pointer-events: none;
	z-index: 1;
}

body::after {
	content: '';
	position: fixed;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 70%);
	pointer-events: none;
	z-index: 2;
}

.content-wrapper {
	position: relative;
	z-index: 3;
}

/* === Glowing Orbs === */
.orb {
	position: fixed;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.4;
	pointer-events: none;
	z-index: 2;
	animation: float 20s infinite ease-in-out;
}

.orb-1 {
	width: 400px;
	height: 400px;
	background: var(--accent-primary);
	top: 10%;
	left: 10%;
}

.orb-2 {
	width: 300px;
	height: 300px;
	background: var(--accent-secondary);
	bottom: 20%;
	right: 15%;
	animation-delay: -10s;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(50px, -50px) scale(1.1); }
	66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* === Layout === */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* === Header === */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--header-height);
	background: rgba(10, 10, 10, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
	z-index: 1000;
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--text-primary);
	text-decoration: none;
}

.brand-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 20px var(--accent-glow);
}

/* === Language Toggle === */
.lang-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--bg-tertiary);
	padding: 6px;
	border-radius: 20px;
	border: 1px solid var(--border-color);
}

.lang-btn {
	padding: 6px 16px;
	background: transparent;
	border: none;
	color: var(--text-secondary);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 16px;
	transition: all var(--transition-speed);
}

.lang-btn.active {
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
	color: var(--bg-primary);
	box-shadow: 0 0 15px var(--accent-glow);
}

/* === Hero === */
main {
	padding-top: var(--header-height);
}

.hero {
	min-height: calc(100vh - var(--header-height));
	display: flex;
	align-items: center;
	padding: 60px 0;
	position: relative;
}

.hero-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.hero-text h1 {
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.1;
	margin-bottom: 20px;
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
	0%, 100% { filter: drop-shadow(0 0 10px var(--accent-glow)); }
	50% { filter: drop-shadow(0 0 20px var(--accent-glow)); }
}

.hero-text p {
	color: var(--text-secondary);
	font-size: 18px;
	margin-bottom: 30px;
	line-height: 1.8;
}

/* === Buttons === */
.hero-cta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--radius);
	transition: all var(--transition-speed);
	position: relative;
	overflow: hidden;
	border: 2px solid transparent;
}

.btn-primary {
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
	color: var(--bg-primary);
	box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
	background: transparent;
	color: var(--text-primary);
	border-color: var(--accent-secondary);
}

.btn-secondary:hover {
	background: var(--accent-secondary);
	color: var(--bg-primary);
	box-shadow: 0 0 20px var(--accent-glow-cyan);
}

        /* Club Card */
        .club-card {
            background: var(--bg-secondary);
            border: 2px solid var(--border-color);
            border-radius: var(--radius);
            padding: 30px;
            position: relative;
            overflow: hidden;
        }

        .club-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
        }

        .club-card h2 {
            font-family: 'Orbitron', sans-serif;
            font-size: 24px;
            margin-bottom: 20px;
            color: var(--accent-secondary);
        }

        .club-card ul {
            list-style: none;
            margin-bottom: 24px;
        }

        .club-card li {
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
            color: var(--text-secondary);
        }

        .club-card li:last-child {
            border-bottom: none;
        }

        .club-card strong {
            color: var(--text-primary);
            margin-right: 8px;
        }

        /* Section */
        .section {
            padding: 80px 0;
        }

        .section-title {
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(28px, 4vw, 40px);
            font-weight: 800;
            margin-bottom: 16px;
            position: relative;
            display: inline-block;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 60%;
            height: 3px;
            background: linear-gradient(90deg, var(--accent-primary), transparent);
        }

        .section-subtitle {
            color: var(--text-muted);
            margin-bottom: 40px;
            font-size: 16px;
        }

        /* Stats */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 40px;
        }

        .stat-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 30px;
            text-align: center;
            transition: all var(--transition-speed);
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 51, 102, 0.1), transparent);
            transition: left 0.5s;
        }

        .stat-card:hover::before {
            left: 100%;
        }

        .stat-card:hover {
            border-color: var(--accent-primary);
            transform: translateY(-5px);
            box-shadow: 0 5px 20px var(--accent-glow);
        }

        .stat-number {
            font-family: 'Orbitron', sans-serif;
            font-size: 48px;
            font-weight: 800;
            color: var(--accent-primary);
            display: block;
            margin-bottom: 10px;
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Highlights - Redesigned */
        .highlights-container {
            position: relative;
            margin-top: 40px;
        }

        .highlights-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
        }

        .highlight-card {
            position: relative;
            height: 350px;
            border-radius: var(--radius);
            overflow: hidden;
            cursor: pointer;
            transition: all var(--transition-speed);
            border: 2px solid var(--border-color);
        }

        .highlight-card:hover {
            transform: translateY(-10px);
            border-color: var(--accent-primary);
            box-shadow: 0 10px 40px var(--accent-glow);
        }

        .highlight-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform var(--transition-speed);
        }

        .highlight-card:hover .highlight-image {
            transform: scale(1.1);
        }

        .highlight-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
            transform: translateY(0);
            transition: all var(--transition-speed);
        }

        .highlight-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--accent-secondary);
        }

        .highlight-description {
            font-size: 14px;
            color: var(--text-secondary);
        }

        /* Blog Posts */
        .posts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .post-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            overflow: hidden;
            transition: all var(--transition-speed);
        }

        .post-card:hover {
            border-color: var(--accent-primary);
            transform: translateY(-5px);
            box-shadow: 0 5px 20px var(--accent-glow);
        }

        .post-thumbnail {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .post-content {
            padding: 20px;
        }

        .post-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 20px;
            margin-bottom: 12px;
            color: var(--text-primary);
        }

        .post-excerpt {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 16px;
        }

        .post-link {
            color: var(--accent-secondary);
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all var(--transition-speed);
        }

        .post-link:hover {
            color: var(--accent-primary);
            gap: 12px;
        }

        /* Sponsors */
        .sponsors-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 24px;
            margin-top: 40px;
        }

        .sponsor-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 30px;
            text-align: center;
            transition: all var(--transition-speed);
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }

        .sponsor-card:hover {
            border-color: var(--accent-secondary);
            transform: translateY(-5px);
            box-shadow: 0 5px 20px var(--accent-glow-cyan);
        }

        .sponsor-logo {
            width: 120px;
            height: 80px;
            object-fit: contain;
            filter: grayscale(100%) brightness(200%);
            transition: filter var(--transition-speed);
        }

        .sponsor-card:hover .sponsor-logo {
            filter: grayscale(0%) brightness(100%);
        }

        .sponsor-name {
            font-weight: 700;
            font-size: 18px;
            color: var(--text-primary);
        }

        .sponsor-role {
            color: var(--text-muted);
            font-size: 14px;
        }

        /* Footer */
        .site-footer {
            border-top: 1px solid var(--border-color);
            padding: 30px 0;
            margin-top: 80px;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .footer-text {
            color: var(--text-muted);
            font-size: 14px;
        }

        .back-to-top {
            color: var(--accent-secondary);
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all var(--transition-speed);
        }

        .back-to-top:hover {
            color: var(--accent-primary);
            gap: 12px;
        }

        /* Loading State */
        .loading {
            text-align: center;
            padding: 40px;
            color: var(--text-muted);
        }

        /* Error State */
        .error-message {
            background: rgba(255, 51, 102, 0.1);
            border: 1px solid var(--accent-primary);
            border-radius: var(--radius);
            padding: 16px;
            color: var(--accent-primary);
            text-align: center;
            margin: 20px 0;
        }

/* === Responsive === */
@media (max-width: 768px) {
	.hero-content { grid-template-columns: 1fr; gap: 40px; }
	.brand-text { display: none; }
}

@media (max-width: 480px) {
	.hero-cta { flex-direction: column; width: 100%; }
	.btn { width: 100%; justify-content: center; }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

*:focus-visible {
	outline: 2px solid var(--accent-secondary);
	outline-offset: 2px;
}
