@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0c0d11;
    --bg-card: #14151a;
    --bg-card-hover: #1c1d24;
    --bg-nav: #08090b;
    
    --primary: #c5a059; /* Hogwarts Gold */
    --primary-hover: #dfbc73;
    
    --text-white: #ffffff;
    --text-gray: #9ba0ad;
    
    --discord: #5865F2;
    --discord-hover: #4752C4;
    --success: #2eeb7a;
    --danger: #eb2e4a;
    
    --border: #21232c;
    --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-main);
    color: var(--text-gray);
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-white);
    text-transform: uppercase;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: 14px; text-transform: uppercase; border-radius: var(--radius);
    transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: var(--discord-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text-white); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ================= NAVBAR ================= */
.fm-nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(8, 9, 11, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.fm-nav-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 20px; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
}
.fm-logo { font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.fm-logo span { color: var(--primary); }

.fm-links { display: flex; gap: 30px; }
.fm-links a { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; color: var(--text-gray); }
.fm-links a:hover, .fm-links a.active { color: var(--text-white); }

.fm-dropdown { position: relative; }
.fm-dropdown-menu {
    position: absolute; top: 100%; left: 0; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px 0; min-width: 200px; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: 0.2s; box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.fm-dropdown:hover .fm-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.fm-dropdown-menu a { display: block; padding: 10px 20px; font-size: 13px; border-bottom: 1px solid var(--border); }
.fm-dropdown-menu a:last-child { border-bottom: none; }
.fm-dropdown-menu a:hover { background: var(--border); color: var(--primary); padding-left: 25px; }

.fm-actions { display: flex; gap: 15px; align-items: center; }

/* ================= HERO ================= */
.fm-hero {
    position: relative; height: 100vh; min-height: 700px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: url('https://v4.cdnpk.net/videvo_files/video/free/video0467/large_watermarked/_import_615155d045a905.02492223_FPpreview.mp4') center/cover;
}
.fm-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12, 13, 17, 0.7), var(--bg-main)); z-index: 1; }
.fm-hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }

.fm-badge {
    display: inline-block; background: rgba(197, 160, 89, 0.1); color: var(--primary);
    padding: 5px 15px; border-radius: 50px; font-size: 12px; font-weight: 700;
    letter-spacing: 1px; margin-bottom: 20px; border: 1px solid rgba(197, 160, 89, 0.3);
}
.fm-hero h1 { font-size: 5rem; font-weight: 900; line-height: 1; margin-bottom: 20px; letter-spacing: -2px; }
.fm-hero p { font-size: 18px; color: var(--text-gray); margin-bottom: 40px; }
.fm-hero-btns { display: flex; gap: 20px; justify-content: center; }

/* ================= SERVER STATUS ================= */
.fm-status {
    position: relative; z-index: 10; max-width: 1000px; margin: -50px auto 60px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); display: flex; box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.fm-s-box {
    flex: 1; padding: 25px; display: flex; align-items: center; gap: 20px;
    border-right: 1px solid var(--border);
}
.fm-s-box:last-child { border-right: none; }
.fm-s-icon { width: 50px; height: 50px; border-radius: var(--radius); background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary); }
.fm-s-info h4 { font-size: 12px; color: var(--text-gray); margin-bottom: 5px; letter-spacing: 1px; }
.fm-s-info span { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 800; color: #fff; }
.text-success { color: var(--success) !important; text-shadow: 0 0 10px rgba(46, 235, 122, 0.4); }

/* ================= QUICK LINKS ================= */
.fm-quick { padding: 60px 0; }
.fm-q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.fm-q-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px 30px; text-align: center;
    transition: 0.3s;
}
.fm-q-card:hover { transform: translateY(-10px); border-color: var(--primary); background: var(--bg-card-hover); }
.fm-q-card i { font-size: 40px; color: var(--primary); margin-bottom: 20px; }
.fm-q-card h3 { font-size: 18px; margin-bottom: 15px; }
.fm-q-card p { font-size: 14px; line-height: 1.6; }

/* ================= SECTIONS (NEWS & LEADERBOARDS) ================= */
.fm-section { padding: 60px 0; }
.fm-sec-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--border); padding-bottom: 15px; margin-bottom: 40px; }
.fm-sec-title { font-size: 28px; font-weight: 800; }
.fm-sec-title span { color: var(--primary); }
.fm-sec-link { font-size: 14px; font-weight: 600; color: var(--primary); text-transform: uppercase; }
.fm-sec-link:hover { color: #fff; }

.fm-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.fm-news-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: 0.3s; }
.fm-news-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.fm-news-img { height: 180px; background: #21232c; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #14151a; }
.fm-news-body { padding: 25px; }
.fm-news-cat { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; margin-bottom: 10px; display: block; }
.fm-news-title { font-size: 18px; margin-bottom: 15px; line-height: 1.4; }
.fm-news-desc { font-size: 14px; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.fm-rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.fm-rank-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 25px; }
.fm-rank-title { font-size: 18px; text-align: center; margin-bottom: 25px; color: var(--primary); }
.fm-r-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.fm-r-item:last-child { border-bottom: none; }
.fm-r-left { display: flex; align-items: center; gap: 15px; }
.fm-r-num { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--border); font-size: 20px; width: 25px; }
.fm-r-item:nth-child(1) .fm-r-num { color: var(--primary); }
.fm-r-name { font-weight: 500; color: #fff; }
.fm-r-val { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px; color: var(--primary); }

/* ================= FOOTER ================= */
.fm-footer { background: #08090b; border-top: 1px solid var(--border); padding: 60px 0 0; margin-top: 60px; }
.fm-f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.fm-f-about p { margin-top: 20px; font-size: 14px; line-height: 1.7; max-width: 300px; }
.fm-f-title { font-size: 16px; margin-bottom: 25px; color: #fff; }
.fm-f-links { display: flex; flex-direction: column; gap: 15px; }
.fm-f-links a { font-size: 14px; font-weight: 500; color: var(--text-gray); }
.fm-f-links a:hover { color: var(--primary); padding-left: 5px; }
.fm-f-bottom { border-top: 1px solid var(--border); padding: 25px 0; text-align: center; font-size: 13px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .fm-hero h1 { font-size: 3.5rem; }
    .fm-hero-btns { flex-direction: column; }
    .fm-status { flex-direction: column; margin: 20px; }
    .fm-s-box { border-right: none; border-bottom: 1px solid var(--border); }
    .fm-q-grid, .fm-news-grid, .fm-rank-grid, .fm-f-grid { grid-template-columns: 1fr; }
    .fm-links { display: none; }
}
