/* ===== BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #000; color: #fff; overflow-x: hidden; }

/* ===== HEADER / NAV ===== */
.header { background: linear-gradient(135deg, #1a1a1a 0%, #000 100%); padding: 20px 0; border-bottom: 3px solid #ff8c00; box-shadow: 0 4px 6px rgba(255,140,0,0.3); position: sticky; top: 0; z-index: 100; }
.header .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.header-brand { display: flex; align-items: center; gap: 15px; }
.header-brand img { height: 50px; width: auto; }
.header h1 { color: #ff8c00; font-size: 28px; text-shadow: 0 0 20px rgba(255,140,0,0.5); margin: 0; }
.header nav { display: flex; align-items: center; gap: 30px; }
.header nav a { color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 6px; transition: all 0.3s; font-weight: 500; }
.header nav a:hover { background: #ff8c00; color: #000; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(255,140,0,0.4); }

/* ===== DROPDOWN ===== */
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle { color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 6px; transition: all 0.3s; font-weight: 500; cursor: pointer; display: inline-block; }
.dropdown-toggle i { font-size: 12px; margin-left: 5px; transition: transform 0.3s; }
.dropdown-toggle:hover { background: #ff8c00; color: #000; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(255,140,0,0.4); }
.dropdown-content { display: none; position: absolute; background: #1a1a1a; border: 1px solid #ff8c00; border-radius: 6px; box-shadow: 0 8px 16px rgba(0,0,0,0.3); z-index: 500; top: 100%; left: 0; margin-top: 2px; width: max-content; }
.dropdown-content a { color: #fff; padding: 12px; display: block; text-decoration: none; white-space: nowrap; }
.dropdown-content a:hover { background: #ff8c00; color: #000; }
.dropdown-content a img { height: 20px; width: auto; margin-right: 8px; vertical-align: middle; }
.dropdown.active .dropdown-content { display: block; }
.dropdown.active .dropdown-toggle i { transform: rotate(180deg); }

/* ===== FLOATING LOGIN ===== */
.floating-login { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #ff8c00; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(255,140,0,0.5); z-index: 1000; transition: all 0.3s; text-decoration: none; }
.floating-login i { color: #000; font-size: 28px; }
.floating-login:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(255,140,0,0.7); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; scroll-margin-top: 80px; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(0,0,0,0.9) 100%), url('/uploads/HSTMGaming.png') center/cover no-repeat; height: 100vh; width: 100vw; margin-left: calc(-50vw + 50%); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; overflow: hidden; padding: 20px; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,140,0,0.1) 0%, transparent 70%); }
.hero h2 { font-size: 56px; margin-bottom: 20px; color: #ff8c00; text-shadow: 0 0 30px rgba(255,140,0,0.6); position: relative; z-index: 1; }
.hero p { font-size: 24px; color: #fff; margin-bottom: 30px; position: relative; z-index: 1; }
.hero-scroll { position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%); color: #ff8c00; font-size: 16px; z-index: 1; text-decoration: none; text-align: center; animation: bounce 2s infinite; }
.hero-scroll span { display: block; font-size: 24px; margin-top: 5px; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== DISCORD BUTTON ===== */
.discord-btn { display: block; width: 256px; height: 64px; line-height: 64px; background: linear-gradient(135deg, #5865F2, #4752C4); color: #fff; text-decoration: none; border-radius: 8px; font-weight: bold; font-size: 16px; transition: all 0.3s; box-shadow: 0 4px 12px rgba(88,101,242,0.4); position: relative; z-index: 1; text-align: center; }
.discord-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(88,101,242,0.6); }

/* ===== SECTIONS ===== */
.section-title { font-size: 36px; color: #ff8c00; margin-bottom: 40px; text-align: center; text-shadow: 0 0 20px rgba(255,140,0,0.4); }

.oath-section { background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(10,10,10,0.9) 100%), url('/uploads/wUOM8Ye.jpeg') center/cover no-repeat; padding: 60px 40px; border-radius: 12px; border: 2px solid #ff8c00; margin-bottom: 60px; text-align: center; box-shadow: 0 10px 30px rgba(255,140,0,0.2); }
.oath-section p { font-size: 18px; line-height: 2; margin-bottom: 20px; color: #fff; font-style: italic; }
.oath-title { font-size: 32px; color: #ff8c00; font-weight: bold; margin-bottom: 30px; text-shadow: 0 0 20px rgba(255,140,0,0.4); }

.about-section { background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%); padding: 40px; border-radius: 12px; border: 2px solid #333; margin-bottom: 60px; }
.about-section p { font-size: 18px; line-height: 1.8; margin-bottom: 20px; }

.founder-section { background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%); padding: 40px; border-radius: 12px; border: 2px solid #ff8c00; margin-bottom: 60px; display: flex; gap: 30px; align-items: center; }
.founder-photo { width: 150px; height: 150px; border-radius: 50%; border: 3px solid #ff8c00; object-fit: cover; box-shadow: 0 0 20px rgba(255,140,0,0.4); flex-shrink: 0; }
.founder-info h3 { color: #ff8c00; font-size: 28px; margin-bottom: 15px; }
.founder-info p { font-size: 16px; line-height: 1.8; }

.staff-section { margin-bottom: 60px; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.staff-card { background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%); padding: 30px; border-radius: 12px; border: 2px solid #333; text-align: center; transition: all 0.3s; }
.staff-card:hover { border-color: #ff8c00; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255,140,0,0.3); }
.staff-photo { width: 100px; height: 100px; border-radius: 50%; border: 3px solid #ff8c00; object-fit: cover; margin-bottom: 15px; box-shadow: 0 0 15px rgba(255,140,0,0.3); }
.staff-card h3 { color: #ff8c00; font-size: 20px; margin-bottom: 10px; }
.staff-card .role { color: #fff; font-size: 14px; font-weight: bold; margin-bottom: 5px; }
.staff-card .badge { margin-top: 10px; font-weight: bold; }

.testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; }
.testimonial { background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%); padding: 30px; border-radius: 12px; border: 2px solid #333; }
.testimonial p { font-style: italic; margin-bottom: 15px; line-height: 1.6; }
.testimonial .author { color: #ff8c00; font-weight: bold; }

/* ===== FOOTER ===== */
.footer { background: linear-gradient(135deg, #000 0%, #1a1a1a 100%); color: #fff; padding: 60px 20px 30px; margin-top: 80px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h3 { color: #ff8c00; margin-bottom: 20px; font-size: 24px; }
.footer h4 { color: #ff8c00; margin-bottom: 20px; font-size: 18px; }
.footer p { color: #ccc; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #ccc; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: #ff8c00; }
.footer-socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.footer-socials a { color: #fff; font-size: 24px; transition: color 0.3s; }
.footer-socials a:hover { color: #ff8c00; }
.footer-bottom { border-top: 1px solid #333; padding-top: 30px; text-align: center; color: #888; }

/* ===== HAMBURGER (hidden on desktop) ===== */
.nav-hamburger { display: none; background: #ff8c00; color: #000; border: none; border-radius: 6px; width: 44px; height: 44px; font-size: 20px; cursor: pointer; align-items: center; justify-content: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
    .header .container { flex-wrap: wrap; gap: 12px; }
    .header h1 { font-size: 20px; }
    .header-brand { flex: 1; min-width: 0; }
    .header-brand h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Show the hamburger; hide the nav until toggled. */
    .nav-hamburger { display: inline-flex; }
    .header nav {
        display: none; flex-direction: column; align-items: stretch;
        width: 100%; gap: 6px; margin-top: 8px;
    }
    .header nav.nav-open { display: flex; }
    .header nav a, .dropdown, .dropdown-toggle { width: 100%; }
    .header nav a, .dropdown-toggle { padding: 12px 15px; font-size: 15px; }

    /* Dropdowns expand inline (accordion) instead of floating. */
    .dropdown-content { position: static; margin-top: 4px; width: 100%; box-shadow: none; border-left: 3px solid #ff8c00; }
    .dropdown-content a { white-space: normal; }

    .hero { height: auto; min-height: 88vh; width: 100%; margin-left: 0; }
    .hero h2 { font-size: 34px; }
    .hero p { font-size: 17px; }
    .section-title { font-size: 28px; }
    .container { padding: 40px 16px; }
    .oath-section { padding: 30px 20px; }
    .oath-title { font-size: 24px; }
    .oath-section p { font-size: 16px; }
    .about-section { padding: 24px; }
    .founder-section { flex-direction: column; text-align: center; padding: 30px 20px; }
    .founder-photo { width: 120px; height: 120px; }
    .founder-info h3 { font-size: 22px; }
    .staff-grid { grid-template-columns: 1fr; }
    .testimonials { grid-template-columns: 1fr; }
    .floating-login { bottom: 20px; right: 20px; width: 52px; height: 52px; }
    .floating-login i { font-size: 24px; }
}

@media (min-width: 821px) and (max-width: 1024px) {
    .header h1 { font-size: 24px; }
    .header nav { gap: 16px; }
    .hero h2 { font-size: 48px; }
    .staff-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials { grid-template-columns: repeat(2, 1fr); }
}

/* ===== RICH CONTENT (rendered from the admin editor) =====
   Every field rendered via Router::renderContent() is wrapped in .rich-text,
   so this one block styles headings, paragraphs, lists, dividers, links, and
   colors consistently EVERYWHERE (about pages, FAQ, rules, support, popups). */
.rich-text h1, .rich-text h2, .rich-text h3,
.rich-text h4, .rich-text h5, .rich-text h6 {
    color: #ff8c00; line-height: 1.25; margin: 24px 0 12px; font-weight: 700;
}
.rich-text h1 { font-size: 32px; }
.rich-text h2 { font-size: 26px; }
.rich-text h3 { font-size: 21px; }
.rich-text h4 { font-size: 18px; }
.rich-text p { margin: 0 0 16px; line-height: 1.8; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { margin: 0 0 16px 24px; line-height: 1.8; }
.rich-text li { margin-bottom: 6px; }
.rich-text a { color: #ff8c00; text-decoration: underline; }
.rich-text blockquote {
    border-left: 4px solid #ff8c00; margin: 16px 0; padding: 8px 0 8px 18px; color: #ccc; font-style: italic;
}
.rich-text hr { border: none; border-top: 2px solid rgba(255,140,0,0.4); margin: 28px 0; }
/* Quill alignment fallbacks (in case a ql-align class comes through). */
.rich-text .ql-align-center { text-align: center; }
.rich-text .ql-align-right { text-align: right; }
.rich-text .ql-align-justify { text-align: justify; }

/* ===== REDACTED (hover-to-reveal black bar) — usable in any rich-text field ===== */
.redacted { background: #000; color: #000; padding: 2px 8px; border-radius: 3px; user-select: none; position: relative; cursor: help; }
.redacted::after {
    content: attr(data-name); position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 100%; margin-bottom: 8px; padding: 8px 12px; background: rgba(0,0,0,0.95);
    color: #00ff00; border: 1px solid #ff8c00; border-radius: 4px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.3s; font-family: 'Courier New', monospace;
    font-size: 14px; z-index: 100;
}
.redacted:hover::after { opacity: 1; }
