/*
Jade Vanity Gaming - Custom Theme
*/

@charset "utf-8";

/* --- Base & Variables --- */
:root {
    --primary-jade: #00a86b;
    --primary-accent: #9932cc;
    --secondary-accent: #ffd700;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --primary-grey: #e5e7eb;
    --border-color: rgba(229, 231, 235, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --card-bg: rgba(229, 231, 235, 0.03);
    --font-body: 'Montserrat', 'Roboto', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Background Effects --- */
.cyber-bg, .particles, .data-streams, .grid-overlay, .scanlines, .noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}
.cyber-bg { z-index: -5; }
.particles { z-index: -3; }
.data-streams { z-index: -3; }
.grid-overlay { z-index: -2; }
.scanlines, .noise-overlay { z-index: -1; }

/* Reduce background effect intensity for content pages */
.content-page .cyber-bg, 
.content-page .particles, 
.content-page .data-streams, 
.content-page .grid-overlay, 
.content-page .scanlines, 
.content-page .noise-overlay {
    opacity: 0.3;
}

.cyber-gradient {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 168, 107, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(153, 50, 204, 0.15) 0%, transparent 50%);
    animation: gradientRotate 30s linear infinite;
    filter: blur(40px);
}
@keyframes gradientRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.matrix-rain { opacity: 0.15; }
.matrix-column {
    position: absolute;
    top: -100vh;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--primary-jade);
    text-shadow: 0 0 5px var(--primary-jade);
    animation: matrixFall linear infinite;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

@keyframes matrixFall {
    to { transform: translateY(200vh); }
}

.grid-overlay {
    background-image: 
        linear-gradient(rgba(0, 168, 107, 0.05) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(0, 168, 107, 0.05) 1px, transparent 1px); 
    background-size: 50px 50px; 
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    to { transform: translate(50px, 50px); }
}

.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--primary-jade);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-jade);
    animation: float 20s infinite;
    opacity: 0;
}
.particle:nth-child(odd) { background: var(--primary-accent); box-shadow: 0 0 10px var(--primary-accent); animation-duration: 25s; }
@keyframes float {
    0% { transform: translateY(100vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

.orb { position: fixed; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: orbFloat 20s ease-in-out infinite; }
.orb1 { width: 300px; height: 300px; background: var(--primary-jade); top: 10%; left: -150px; }
.orb2 { width: 400px; height: 400px; background: var(--primary-accent); bottom: 10%; right: -200px; animation-delay: 5s; }
.orb3 { width: 250px; height: 250px; background: var(--secondary-accent); top: 50%; left: 50%; animation-delay: 10s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 100px) scale(0.9); }
}

.scanlines::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(transparent 0%, rgba(0, 168, 107, 0.03) 50%, transparent 100%);
    background-size: 100% 4px;
    animation: scanline 8s linear infinite;
}
@keyframes scanline {
    to { transform: translateY(100%); }
}

/* --- Navigation --- */
#fixed-logo {
    position: fixed;
    top: 15px; left: 2rem;
    height: 45px; width: auto;
    z-index: 10001;
    transition: all 0.3s ease;
}

nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 10000;
    transition: all 0.3s ease;
}

/* Content page specific navigation */
.content-page nav {
    background: rgba(10, 10, 15, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-jade);
    text-shadow: 0 0 20px var(--primary-jade);
    text-decoration: none;
    transition: all 0.3s ease;
}
.logo:hover { text-shadow: 0 0 30px var(--primary-jade); transform: scale(1.05); }

.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.nav-links a:hover { color: var(--primary-jade); text-shadow: 0 0 10px var(--primary-jade); }
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary-jade), var(--primary-accent));
    transition: width 0.3s ease;
}
.nav-links a:hover::before { width: 100%; }

.mobile-menu-button { display: none; }
.nav-bottom { margin-left: 2rem; }

/* --- Mobile Menu --- */
.mobile-menu-button {
    display: none;
    background: none; border: none;
    cursor: pointer;
    position: relative;
    width: 30px; height: 30px;
    z-index: 10002;
}
.hamburger span {
    display: block;
    position: absolute;
    height: 2px; width: 100%;
    background: var(--primary-jade);
    border-radius: 1px;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}
.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.mobile-menu-button.active .hamburger span:nth-child(1) { top: 9px; transform: rotate(135deg); }
.mobile-menu-button.active .hamburger span:nth-child(2) { opacity: 0; left: -25px; }
.mobile-menu-button.active .hamburger span:nth-child(3) { top: 9px; transform: rotate(-135deg); }

.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 350px;
    height: 100vh;
    background: var(--darker-bg);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex; flex-direction: column;
    visibility: hidden;
}
.mobile-menu.active { 
    right: 0;
    visibility: visible;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-menu-logo { font-size: 1.5rem; font-weight: 700; color: var(--primary-jade); text-decoration: none; }
.mobile-menu-close { background: none; border: none; color: var(--primary-jade); font-size: 1.5rem; cursor: pointer; }

.mobile-menu-nav { padding: 1rem 0; flex-grow: 1; display: block; position: static; width: auto; background: none; border: none; }
.mobile-menu-nav ul { list-style: none; }
.mobile-menu-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.mobile-menu-nav a:hover { color: var(--primary-jade); background: rgba(0, 168, 107, 0.05); }

.mobile-menu-cta { padding: 1.5rem; border-top: 1px solid var(--border-color); }

/* --- General & Reusable Components --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--primary-jade);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 168, 107, 0.5);
}
.section-subtitle { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.btn-primary, .btn-secondary, .cyber-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary, .cyber-button { background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent)); color: var(--darker-bg); }
.btn-secondary { background: transparent; color: var(--primary-jade); border-color: var(--primary-jade); }

.btn-primary:hover, .cyber-button:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 168, 107, 0.4); }
.btn-secondary:hover { background: var(--primary-jade); color: var(--darker-bg); box-shadow: 0 0 20px var(--primary-jade); }
.btn-secondary.disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary.disabled:hover { background: transparent; color: var(--primary-jade); transform: none; box-shadow: none; }

/* --- Content Layout --- */
.content-wrapper {
    padding-top: 80px; /* Space for fixed navigation */
    position: relative;
    z-index: 1;
}

.content-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
}

.content-area {
    background: rgba(18, 18, 18, 0.85);
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* --- Hero Section --- */
.hero { padding: 180px 2rem 120px; text-align: center; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
}
.hero-jade { background: linear-gradient(135deg, var(--primary-jade), #00cc99); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-vanity { background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 3rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* --- Hero Super Buttons --- */
/* These styles are specifically scoped to the hero section */
.hero .super-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  z-index: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.hero .super-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #00ffff, #ff00ff, #00ffff);
  animation: superButtonRotate 4s linear infinite;
  z-index: -2;
}

.hero .super-button::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(90deg, #00e6e6, #9966ff); /* Teal to purple gradient */
  border-radius: inherit;
  z-index: -1;
}

.hero .super-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
}

.hero .super-button:hover .arrow {
  transform: translateX(6px);
}

.hero .arrow {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease-in-out;
  color: #ffffff;
}

@keyframes superButtonRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --- Stats Section --- */
.stats { padding: 60px 2rem; background: rgba(0, 168, 107, 0.02); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    margin-right: 5px;
}
.stat-label { font-size: 1rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; display: block; margin-top: 0.5rem; }

/* --- Games Section --- */
.features { padding: 120px 2rem; }
.features-container { max-width: 1400px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.game-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 50px rgba(0, 168, 107, 0.1);
    border-color: var(--primary-jade);
}
.game-image { 
    position: relative; 
    height: 180px; 
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 166, 133, 0.4));
}
.game-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.game-card:hover .game-image img { transform: scale(1.05); }
.game-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    padding: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}
.game-category { 
    background: var(--primary-jade); 
    color: var(--darker-bg); 
    padding: 0.4rem 1rem; 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(0, 168, 107, 0.5);
}
.feature-content { 
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.feature-content h3 { 
    font-family: var(--font-heading); 
    font-size: 1.5rem; 
    color: var(--primary-jade); 
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.feature-content p { 
    color: var(--text-secondary); 
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.game-meta { 
    display: flex; 
    justify-content: space-between; 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.game-meta i { color: var(--primary-jade); margin-right: 0.5rem; }
.game-buttons { 
    display: flex; 
    gap: 1rem;
    margin-top: auto;
}
.game-info-btn, .game-store-btn { 
    flex: 1; 
    display: inline-block;
    padding: 0.8rem 0;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.game-info-btn {
    background: transparent;
    color: var(--primary-jade);
    border: 2px solid var(--primary-jade);
}

.game-store-btn {
    background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent));
    color: var(--darker-bg);
}

.game-info-btn:hover, 
.game-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 168, 107, 0.3);
}

.game-info-btn:hover {
    background: rgba(0, 168, 107, 0.1);
}

.game-store-btn:hover {
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-jade));
}

/* --- Game Modal --- */
.game-modal { display: none; position: fixed; z-index: 10002; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); }
.game-modal.active { display: flex; align-items: center; justify-content: center; }
.game-modal-content {
    background: var(--darker-bg);
    width: 90%; max-width: 900px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 50px rgba(0, 168, 107, 0.3);
    position: relative;
    animation: modalFadeIn 0.4s;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
.game-modal-close { position: absolute; top: 15px; right: 20px; color: var(--text-secondary); font-size: 28px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; background: none; border: none; }
.game-modal-close:hover { color: var(--primary-jade); transform: rotate(90deg); }
.game-modal-header { padding: 2rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.game-modal-header h2 { font-family: var(--font-heading); color: var(--primary-jade); margin: 0; font-size: 2rem; }
.game-modal-price { background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent)); color: var(--darker-bg); padding: 0.5rem 1.5rem; font-weight: 700; font-size: 1.2rem; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.game-modal-body { padding: 2rem; }
.modal-main-image { 
    width: 100%; 
    height: auto; 
    max-height: 300px; 
    object-fit: cover; 
    margin-bottom: 1.5rem; 
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 166, 133, 0.4));
}
.game-modal-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.detail-label { color: var(--text-secondary); font-size: 0.9rem; }
.detail-value { color: var(--text-primary); font-weight: 600; }
.game-modal-description { color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem; }
.game-modal-footer { text-align: center; padding: 0 2rem 2rem; }

/* --- Streams & Community Sections --- */
.streams, .community { padding: 120px 2rem; }
.streams-container, .community-container { max-width: 1400px; margin: 0 auto; }

/* Stream Cards Styling with Chat Support */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(410px, 1fr));
    gap: 36px;
    margin-top: 40px;
}

.stream-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.stream-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 168, 107, 0.1);
    border-color: var(--primary-jade);
}

.stream-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: rgba(15, 15, 35, 0.9);
    overflow: hidden;
}

.twitch-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    overflow: hidden; /* Ensure the chat section is fully visible */
}

/* Add this to your CSS file to support chat functionality */
.twitch-chat-enabled .stream-thumbnail {
    padding-bottom: 75%; /* Taller aspect ratio to accommodate chat */
}

.twitch-chat-enabled .twitch-embed {
    height: 100%;
}

.twitch-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 65, 165, 0.3), rgba(50, 50, 70, 0.3));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.twitch-logo {
    font-size: 3rem;
    color: #9146FF;
    margin-bottom: 1rem;
}

.twitch-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.twitch-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stream-status {
    color: #ff5252;
    font-style: italic;
}

.stream-info {
    padding: 1.5rem;
}

.stream-link {
    text-decoration: none !important;
    color: var(--text-primary) !important;
    display: block;
}

.stream-link h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-jade);
    transition: color 0.3s ease;
}

.stream-link:hover h3 {
    color: var(--primary-accent);
}

.streamer {
    color: var(--primary-jade);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.viewers {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.stream-btn {
    display: inline-block;
    background: #9146FF;
    color: white !important;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    width: 100%;
    text-align: center;
}

.stream-btn:hover {
    background: #7d3bdf;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(145, 70, 255, 0.3);
}

.stream-btn i {
    margin-right: 0.5rem;
}

.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.community-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    padding: 2rem;
    text-align: center;
}
.community-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0, 168, 107, 0.1); }
.community-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2.5rem; color: var(--darker-bg); }
.community-card p { margin-bottom: 1.5rem; }

/* Make all community card buttons consistent */
.community-card .btn-primary,
.community-card .btn-secondary {
    display: inline-block;
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

/* Primary button style (for JOIN DISCORD) */
.community-card .btn-primary {
    background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent));
    color: var(--darker-bg);
    box-shadow: 0 5px 15px rgba(0, 168, 107, 0.3);
}

/* Secondary button style (for VIEW SCHEDULE and LEARN MORE) */
.community-card .btn-secondary {
    background: transparent;
    color: var(--primary-jade);
    border: 2px solid var(--primary-jade);
    box-shadow: 0 5px 15px rgba(0, 168, 107, 0.1);
}

/* Hover effects for both button types */
.community-card .btn-primary:hover,
.community-card .btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 168, 107, 0.4);
}

.community-card .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent));
}

.community-card .btn-secondary:hover {
    background: var(--primary-jade);
    color: var(--darker-bg);
}

/* Fix for disabled buttons */
.community-card .btn-secondary.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    border-color: var(--primary-jade);
}

.community-card .btn-secondary.disabled:hover {
    background: transparent;
    color: var(--primary-jade);
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 168, 107, 0.1);
}

/* --- Contact Section --- */
.contact { padding: 120px 2rem; }
.contact-container { max-width: 1400px; margin: 0 auto; }
.contact-form-wrapper { max-width: 700px; margin: 0 auto; }
.contact-form { background: var(--card-bg); border: 1px solid var(--border-color); padding: 2rem; clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; color: var(--primary-jade); font-weight: 600; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 168, 107, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-jade); box-shadow: 0 0 15px rgba(0, 168, 107, 0.3); }
.btn-submit { width: 100%; }

/* --- Footer --- */
.footer { 
    padding: 80px 2rem 40px; 
    border-top: 1px solid var(--border-color); 
    text-align: center;
    background: rgba(10, 10, 15, 0.7);
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-jade), var(--primary-accent), transparent);
    opacity: 0.6;
}

.footer-content { max-width: 1400px; margin: 0 auto; }
.footer-logo { margin-bottom: 2.5rem; }
.footer-logo img { 
    max-width: 180px; 
    height: auto; 
    filter: drop-shadow(0 0 15px rgba(153, 50, 204, 0.5));
}
.footer-social { 
    display: flex; 
    justify-content: center; 
    gap: 2rem; 
    margin-bottom: 2.5rem;
}
.social-icon { width: 50px; height: 50px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 1.4rem; transition: all 0.3s ease; text-decoration: none; }
.social-icon:hover { background: var(--primary-jade); color: var(--darker-bg); transform: translateY(-5px); }
.footer-links { margin-bottom: 2rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; margin: 0 0.5rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-jade); }
.footer-separator { color: var(--primary-jade); opacity: 0.5; }
.footer-bottom { color: var(--text-secondary); font-size: 0.9rem; margin-top: 1.5rem; }

/* --- Guides Hub Specific Styles --- */
.guides-hub {
    padding-top: 80px; /* Space for fixed navigation */
}

.guides-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.guides-header {
    text-align: center;
    margin-bottom: 3rem;
}

.guides-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--primary-jade);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 168, 107, 0.5);
}

.guides-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Guide Categories */
.guide-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.guide-category {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.guide-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 168, 107, 0.1);
    border-color: var(--primary-jade);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--darker-bg);
}

.guide-category h3 {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.guide-category p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.category-btn {
    display: inline-block;
    background: transparent;
    color: var(--primary-jade);
    border: 2px solid var(--primary-jade);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    width: 100%;
}

.category-btn:hover {
    background: var(--primary-jade);
    color: var(--darker-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 168, 107, 0.3);
}

/* Featured Guides */
.featured-guides {
    margin-bottom: 4rem;
}

.section-heading {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.featured-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-guide {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-guide:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 168, 107, 0.1);
    border-color: var(--primary-jade);
}

.featured-guide-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-guide-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.featured-guide-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.guide-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.guide-meta span {
    display: inline-block;
    margin-right: 1rem;
}

.guide-meta i {
    color: var(--primary-jade);
    margin-right: 0.3rem;
}

.guide-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent));
    color: var(--darker-bg);
    padding: 0.8rem 0;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    text-align: center;
    width: 100%;
}

.guide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 168, 107, 0.3);
}

/* Recent Guides */
.recent-guides {
    margin-bottom: 4rem;
}

.recent-guides-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
}

.recent-guide-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.recent-guide-item:last-child {
    border-bottom: none;
}

.recent-guide-item:hover {
    background: rgba(0, 168, 107, 0.05);
}

.recent-guide-info {
    flex-grow: 1;
}

.recent-guide-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.recent-guide-item:hover h4 {
    color: var(--primary-jade);
}

.recent-guide-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.recent-guide-category {
    background: var(--primary-jade);
    color: var(--darker-bg);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    white-space: nowrap;
}

/* CTA Section */
.guides-cta {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.guides-cta h3 {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.guides-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Individual Guide Page */
.guide-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 2rem;
}

.guide-content h1 {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.guide-content h2 {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.guide-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.guide-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.guide-content ul, .guide-content ol {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.guide-content li {
    margin-bottom: 0.5rem;
}

.guide-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.guide-content blockquote {
    border-left: 4px solid var(--primary-jade);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

.guide-content code {
    background: rgba(0, 168, 107, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
    color: var(--primary-jade);
}

.guide-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.guide-content pre code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
}

.guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.guide-content th, .guide-content td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.guide-content th {
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-jade);
    font-weight: 700;
}

.guide-content td {
    color: var(--text-secondary);
}

/* Table of Contents */
.toc {
    background: rgba(0, 168, 107, 0.05);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc-title {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: var(--primary-jade);
}

.toc .toc-level-2 {
    padding-left: 1rem;
}

.toc .toc-level-3 {
    padding-left: 2rem;
}

/* Application Form */
#application-form {
    max-width: 700px;
    margin: 40px auto;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0, 168, 107, 0.1);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

#application-form label {
    display: block;
    color: var(--primary-jade);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#application-form textarea {
    width: 100%;
    height: 150px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 168, 107, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#application-form textarea:focus {
    outline: none;
    border-color: var(--primary-jade);
    box-shadow: 0 0 15px rgba(0, 168, 107, 0.3);
}

#open-email-client {
    background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent));
    color: var(--darker-bg);
    padding: 1rem 2rem;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
    cursor: pointer;
    width: 100%;
}

#open-email-client:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 168, 107, 0.4);
}

/* --- Utility & Animations --- */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Enhanced Hero Section --- */
.hero {
    padding: 180px 2rem 120px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 168, 107, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Enhanced Title Styling */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    cursor: pointer;
    line-height: 1.2;
    display: inline-block;
}

/* Jade and Gaming text styling */
.hero-jade {
    background: linear-gradient(135deg, var(--primary-jade), #00cc99);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: all 0.3s ease;
    animation: jadePulse 3s ease-in-out infinite;
    position: relative;
    text-shadow: 0 0 30px rgba(0, 168, 107, 0.8);
    filter: drop-shadow(0 0 15px rgba(0, 168, 107, 0.5));
}

/* Vanity text styling */
.hero-vanity {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 0.1em;
    display: inline-block;
    transition: all 0.3s ease;
    animation: vanityPulse 3s ease-in-out infinite;
    animation-delay: 1.5s;
    position: relative;
    text-shadow: 0 0 30px rgba(153, 50, 204, 0.8);
    filter: drop-shadow(0 0 15px rgba(153, 50, 204, 0.5));
}

/* Pulse animations for the text */
@keyframes jadePulse {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 15px rgba(0, 168, 107, 0.6));
        transform: translateY(0) scale(1);
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 25px rgba(0, 168, 107, 0.8));
        transform: translateY(-2px) scale(1.01);
    }
}

@keyframes vanityPulse {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 15px rgba(153, 50, 204, 0.6));
        transform: translateY(0) scale(1);
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 25px rgba(153, 50, 204, 0.8));
        transform: translateY(-2px) scale(1.01);
    }
}

/* Hover effects for the title */
.hero-title:hover .hero-jade {
    transform: translateX(-3px) scale(1.02);
    filter: brightness(1.3) drop-shadow(0 0 30px rgba(0, 168, 107, 0.9));
}

.hero-title:hover .hero-vanity {
    transform: translateX(3px) scale(1.02);
    filter: brightness(1.3) drop-shadow(0 0 30px rgba(153, 50, 204, 0.9));
}

/* Glow effects */
.hero-jade::before,
.hero-vanity::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.hero-jade::before {
    background: radial-gradient(circle, var(--primary-jade) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}

.hero-vanity::before {
    background: radial-gradient(circle, var(--primary-accent) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Underline effect on hover */
.hero-jade::after,
.hero-vanity::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    transition: width 0.5s ease;
}

.hero-jade::after {
    background: linear-gradient(90deg, var(--primary-jade), transparent);
}

.hero-vanity::after {
    background: linear-gradient(90deg, transparent, var(--secondary-accent));
    left: auto;
    right: 0;
}

.hero-title:hover .hero-jade::after,
.hero-title:hover .hero-vanity::after {
    width: 100%;
}

/* Enhanced subtitle */
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    opacity: 0.9;
    background: linear-gradient(135deg, var(--text-secondary), var(--primary-grey));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced buttons */
.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent));
    color: var(--darker-bg);
    padding: 1.2rem 3rem;
    border: none;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
    box-shadow: 0 5px 20px rgba(0, 168, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 168, 107, 0.5);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-jade);
    padding: 1.2rem 3rem;
    border: 2px solid var(--primary-jade);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
}

.btn-secondary:hover {
    background: var(--primary-jade);
    color: var(--darker-bg);
    box-shadow: 0 0 30px var(--primary-jade);
}

/* Floating particles in hero section */
.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-jade);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    animation: floatParticle 15s infinite linear;
}

.hero-particle:nth-child(odd) {
    background: var(--primary-accent);
}

.hero-particle:nth-child(3n) {
    background: var(--secondary-accent);
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(var(--move-x, 100px), var(--move-y, 100px)) rotate(360deg);
    }
}

/* Refined Title Glow Effects */
.hero-jade, .hero-vanity {
    text-shadow: 
        0 0 5px rgba(0, 168, 107, 0.3),
        0 0 10px rgba(0, 168, 107, 0.3),
        0 0 15px rgba(0, 168, 107, 0.3),
        0 0 20px rgba(0, 168, 107, 0.3),
        2px 2px 2px rgba(0, 0, 0, 0.5);  /* Adds subtle 3D effect */
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-links, .nav-bottom { display: none; }
    .mobile-menu-button { display: flex; }
    
    .guides-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .featured-guides-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    #fixed-logo { left: 1rem; height: 35px; }
    .nav-container { padding-left: 60px; }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 1rem; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 300px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features, .streams, .community, .contact { padding: 80px 1rem; }
    .game-modal-content { width: 95%; margin: 5% auto; }
    .game-modal-header { flex-direction: column; gap: 1rem; }
    
    .guides-container {
        padding: 0 1rem;
    }
    
    .guide-content {
        padding: 1.5rem;
    }
    
    .guide-content h1 {
        font-size: 2rem;
    }
    
    .guide-content h2 {
        font-size: 1.5rem;
    }
    
    .guide-content h3 {
        font-size: 1.3rem;
    }
    
    .recent-guide-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .recent-guide-meta {
        justify-content: space-between;
        width: 100%;
    }
    
    .guides-cta {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    
    .guide-categories {
        grid-template-columns: 1fr;
    }
    
    .featured-guide-content h3 {
        font-size: 1.2rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .guides-title {
        font-size: 1.8rem;
    }
    
    .guides-subtitle {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Codex Specific Styles --- */
.codex-header {
    padding-top: 100px;
    text-align: center;
    margin-bottom: 3rem;
}

.codex-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--primary-jade);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 168, 107, 0.5);
}

.codex-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.codex-navigation {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.codex-nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.codex-nav-item:hover,
.codex-nav-item.active {
    color: var(--primary-jade);
    background: rgba(0, 168, 107, 0.05);
}

.codex-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 2rem;
}

.codex-section {
    margin-bottom: 3rem;
}

.codex-section-title {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.codex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.codex-card {
    background: rgba(0, 168, 107, 0.05);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.codex-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 168, 107, 0.1);
    border-color: var(--primary-jade);
}

.codex-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.codex-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.codex-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.codex-tag {
    background: var(--primary-jade);
    color: var(--darker-bg);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

/* --- Guides Hub Specific Styles --- */
.guides-hub-wrapper {
    padding-top: 80px;
}

.guides-hub-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.guides-hub-header {
    text-align: center;
    margin-bottom: 3rem;
}

.guides-hub-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--primary-jade);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 168, 107, 0.5);
}

.guides-hub-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.guides-hub-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.guides-hub-category {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.guides-hub-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 168, 107, 0.1);
    border-color: var(--primary-jade);
}

.guides-hub-category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--darker-bg);
}

.guides-hub-category h3 {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.guides-hub-category p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.guides-hub-category-btn {
    display: inline-block;
    background: transparent;
    color: var(--primary-jade);
    border: 2px solid var(--primary-jade);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    width: 100%;
}

.guides-hub-category-btn:hover {
    background: var(--primary-jade);
    color: var(--darker-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 168, 107, 0.3);
}

.guides-hub-featured {
    margin-bottom: 4rem;
}

.guides-hub-section-heading {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.guides-hub-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.guides-hub-featured-guide {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guides-hub-featured-guide:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 168, 107, 0.1);
    border-color: var(--primary-jade);
}

.guides-hub-featured-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.guides-hub-featured-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.guides-hub-featured-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.guides-hub-guide-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.guides-hub-guide-meta span {
    display: inline-block;
    margin-right: 1rem;
}

.guides-hub-guide-meta i {
    color: var(--primary-jade);
    margin-right: 0.3rem;
}

.guides-hub-guide-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent));
    color: var(--darker-bg);
    padding: 0.8rem 0;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    text-align: center;
    width: 100%;
}

.guides-hub-guide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 168, 107, 0.3);
}

.guides-hub-recent {
    margin-bottom: 4rem;
}

.guides-hub-recent-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
}

.guides-hub-recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.guides-hub-recent-item:last-child {
    border-bottom: none;
}

.guides-hub-recent-item:hover {
    background: rgba(0, 168, 107, 0.05);
}

.guides-hub-recent-info {
    flex-grow: 1;
}

.guides-hub-recent-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.guides-hub-recent-item:hover h4 {
    color: var(--primary-jade);
}

.guides-hub-recent-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.guides-hub-recent-category {
    background: var(--primary-jade);
    color: var(--darker-bg);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    white-space: nowrap;
}

.guides-hub-cta {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.guides-hub-cta h3 {
    font-family: var(--font-heading);
    color: var(--primary-jade);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.guides-hub-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Fix for vertical navigation issues */
.vertical-nav, 
nav:not(.mobile-menu-nav):not(:first-of-type),
.side-nav,
.secondary-nav {
    display: none !important;
}

/* Fix for mobile menu nav */
.mobile-menu-nav {
    display: none;
}

.mobile-menu.active .mobile-menu-nav {
    display: block;
}

/* Ensure mobile menu is properly hidden when not active */
.mobile-menu {
    right: -100%;
    visibility: hidden;
}

.mobile-menu.active {
    right: 0;
    visibility: visible;
}

/* Fix for tables */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: left;
    color: var(--text-secondary);
}

th {
    background-color: rgba(0, 168, 107, 0.1);
    color: var(--primary-jade);
}

/* Fix for content pages */
.content-page {
    padding-top: 80px;
}

.content-page .container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* --- Hyperlink Styling --- */
a {
    color: var(--primary-jade);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--primary-accent);
    text-shadow: 0 0 8px rgba(0, 168, 107, 0.3);
}

/* Special styling for content links */
.content-area a, 
.guide-content a,
.codex-content a,
.guides-hub-content a {
    color: var(--primary-jade);
    border-bottom: 1px dotted var(--primary-jade);
    padding-bottom: 1px;
}

.content-area a:hover, 
.guide-content a:hover,
.codex-content a:hover,
.guides-hub-content a:hover {
    color: var(--primary-accent);
    border-bottom-color: var(--primary-accent);
    text-shadow: 0 0 8px rgba(153, 50, 204, 0.3);
}

/* Fix for guide links in cards and lists */
.guides-hub-recent-info a,
.guides-hub-featured-content a,
.recent-guide-info a,
.featured-guide-content a,
.guide-card a,
.codex-card a {
    color: var(--text-primary);
    border-bottom: none;
}

.guides-hub-recent-info a:hover,
.guides-hub-featured-content a:hover,
.recent-guide-info a:hover,
.featured-guide-content a:hover,
.guide-card a:hover,
.codex-card a:hover {
    color: var(--primary-jade);
    text-shadow: 0 0 8px rgba(0, 168, 107, 0.3);
}

/* Fix for navigation links - these are already styled properly */
.nav-links a,
.mobile-menu-nav a,
.footer-links a {
    border-bottom: none;
}

/* Fix for button links - these should not have link styling */
a.btn-primary,
a.btn-secondary,
a.cyber-button,
a.guide-btn,
a.category-btn,
a.game-info-btn,
a.game-store-btn,
a.stream-btn,
a.guides-hub-guide-btn,
a.guides-hub-category-btn {
    border-bottom: none;
    color: inherit;
}

a.btn-primary:hover,
a.cyber-button:hover,
a.guide-btn:hover,
a.guides-hub-guide-btn:hover {
    color: var(--darker-bg);
    text-shadow: none;
}

a.btn-secondary:hover,
a.category-btn:hover,
a.game-info-btn:hover,
a.guides-hub-category-btn:hover {
    color: var(--darker-bg);
    text-shadow: none;
}

/* Fix for recently added guides links */
.recent-guide-item a,
.guides-hub-recent-item a {
    color: var(--text-primary);
    border-bottom: none;
}

.recent-guide-item a:hover,
.guides-hub-recent-item a:hover {
    color: var(--primary-jade);
}

.recent-guide-item a h4,
.guides-hub-recent-item a h4 {
    transition: color 0.3s ease;
}

.recent-guide-item:hover a h4,
.guides-hub-recent-item:hover a h4 {
    color: var(--primary-jade);
}

/* Server Card Specific Fixes */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.server-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    position: relative;
    width: 100%;
}

.server-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 1;
}

.server-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-jade);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.server-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.server-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.server-meta-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.server-meta-item i {
    color: var(--primary-jade);
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.server-buttons {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.server-buttons a,
.server-buttons button {
    flex: 1;
    display: inline-block;
    padding: 0.8rem 0;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
}

/* Add background image for server card */
.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/servers/scum-server.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

/* Style for the "Scumnadia SCUM Survival" card specifically */
.server-card:first-child::before {
    background-image: url('/images/servers/scum-server.jpg');
}

/* Style for the "Coming Soon" card */
.server-card.coming-soon::before {
    background-image: url('/images/placeholders/server-placeholder.jpg');
}

/* Server Events Section Styles */
.server-events {
    padding: 120px 0;
    background: rgba(0, 168, 107, 0.02);
    position: relative;
}

.server-events::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 168, 107, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.event-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 168, 107, 0.1);
    border-color: var(--primary-jade);
}

.event-header {
    margin-bottom: 1.5rem;
}

.event-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-jade), var(--primary-accent));
    color: var(--darker-bg);
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.event-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-jade);
    margin-bottom: 0.5rem;
}

.event-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--primary-jade);
    border: 2px solid var(--primary-jade);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.event-button:hover {
    background: var(--primary-jade);
    color: var(--darker-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 168, 107, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .server-events {
        padding: 80px 1rem;
    }
}
