/* FireFlag-SMP — Ember Theme */

:root {
    --ember: #ff6b2b;
    --ember-dark: #ff3d00;
    --ember-gold: #ffaa00;
    --bg-dark: #0c0805;
    --card-bg: #161210;
    --darker-bg: #0a0704;
    --text-primary: #ffffff;
    --text-secondary: #999;
    --success-color: #00ff88;
    --error-color: #ff4444;
    --warning-color: #ffaa00;
    --glow: rgba(255, 107, 43, 0.4);
    --glow-strong: rgba(255, 107, 43, 0.6);
    --border: rgba(255, 107, 43, 0.15);
    --border-radius: 14px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Legacy aliases so admin.css still works */
    --frost-cyan: var(--ember);
    --frost-blue: var(--ember-dark);
    --frost-dark: var(--bg-dark);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.background-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,107,43,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,61,0,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255,170,0,0.04) 0%, transparent 50%),
        var(--bg-dark);
}

/* Ember particles (rising sparks) */
.ember-particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--ember);
    border-radius: 50%;
    opacity: 0;
    animation: rise 4s ease-in infinite;
    box-shadow: 0 0 6px var(--ember), 0 0 12px rgba(255,107,43,0.3);
}
.ember-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 5s; }
.ember-particle:nth-child(2) { left: 25%; animation-delay: 1s; animation-duration: 4s; }
.ember-particle:nth-child(3) { left: 40%; animation-delay: 0.5s; animation-duration: 6s; }
.ember-particle:nth-child(4) { left: 55%; animation-delay: 2s; animation-duration: 4.5s; }
.ember-particle:nth-child(5) { left: 70%; animation-delay: 1.5s; animation-duration: 5.5s; }
.ember-particle:nth-child(6) { left: 85%; animation-delay: 0.8s; animation-duration: 4.2s; }
.ember-particle:nth-child(7) { left: 15%; animation-delay: 2.5s; animation-duration: 5.8s; }
.ember-particle:nth-child(8) { left: 60%; animation-delay: 3s; animation-duration: 4.8s; }
.ember-particle:nth-child(9) { left: 35%; animation-delay: 1.8s; animation-duration: 5.2s; }
.ember-particle:nth-child(10) { left: 90%; animation-delay: 0.3s; animation-duration: 6.2s; }

@keyframes rise {
    0% { bottom: -10px; opacity: 0; transform: translateX(0) scale(1); }
    20% { opacity: 1; }
    80% { opacity: 0.6; }
    100% { bottom: 100vh; opacity: 0; transform: translateX(40px) scale(0.3); }
}

/* Legacy orb classes (hidden — replaced by ember particles) */
.grid-background, .orb, .orb-1, .orb-2, .orb-3 { display: none; }

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(12, 8, 5, 0.92);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--ember), var(--ember-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 36px;
    width: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-menu a {
    color: #ccc;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background: rgba(255, 107, 43, 0.12);
    color: var(--ember);
}

.nav-menu a.active {
    background: linear-gradient(135deg, var(--ember), var(--ember-dark));
    color: white;
    box-shadow: 0 0 20px var(--glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--ember);
    border-radius: 3px;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--ember);
    border-radius: 3px;
    transition: var(--transition);
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(12, 8, 5, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    flex-direction: column;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 16px 24px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 107, 43, 0.08);
    transition: var(--transition);
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu a:hover,
.mobile-menu a.active {
    background: rgba(255, 107, 43, 0.1);
    color: var(--ember);
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.nav-overlay.active { display: block; }

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 8rem 2rem 5rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 107, 43, 0.15);
    border: 1px solid rgba(255, 107, 43, 0.3);
    color: var(--ember);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, var(--ember), var(--ember-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -3px;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.server-ip-box {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 107, 43, 0.08);
    backdrop-filter: blur(10px);
    padding: 1.2rem 2rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 107, 43, 0.3);
    box-shadow: 0 0 40px rgba(255, 107, 43, 0.1);
    margin-bottom: 2rem;
}

.server-ip {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ember);
    letter-spacing: 1px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ember), var(--ember-dark));
    color: white;
    box-shadow: 0 4px 20px var(--glow);
}

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

.btn-secondary {
    background: transparent;
    color: var(--ember);
    border: 2px solid rgba(255, 107, 43, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 107, 43, 0.1);
    transform: translateY(-3px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-color), #cc0000);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.copy-btn {
    background: linear-gradient(135deg, var(--ember), var(--ember-dark));
    color: white;
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px var(--glow); }
.copy-btn.copied { background: linear-gradient(135deg, var(--success-color), #00cc77); }

/* ===== STATS BAR ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    background: rgba(255, 107, 43, 0.06);
    border: 1px solid rgba(255, 107, 43, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem 1rem;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--ember);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== CARDS ===== */
.card {
    background: rgba(255, 107, 43, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.card:hover {
    border-color: rgba(255, 107, 43, 0.3);
    box-shadow: 0 10px 40px rgba(255, 107, 43, 0.1);
    transform: translateY(-3px);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ember);
    margin-bottom: 1rem;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, white, var(--ember));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: rgba(255, 107, 43, 0.04);
    border: 1px solid rgba(255, 107, 43, 0.12);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 43, 0.4);
    box-shadow: 0 10px 40px rgba(255, 107, 43, 0.1);
}

.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--ember); font-weight: 700; }
.feature-card p { color: var(--text-secondary); line-height: 1.7; }

/* ===== STAFF CARDS ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.staff-card {
    background: rgba(255, 107, 43, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.staff-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 43, 0.4);
    box-shadow: 0 15px 40px rgba(255, 107, 43, 0.1);
}

.staff-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 3px solid var(--ember);
    box-shadow: 0 0 20px var(--glow);
    margin: 0 auto 1rem;
    display: block;
    object-fit: cover;
}

.staff-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.staff-role {
    display: inline-block;
    background: linear-gradient(135deg, var(--ember), var(--ember-dark));
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.staff-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.staff-discord {
    color: var(--ember);
    font-size: 0.85rem;
}

.role-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ember);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* ===== LEGAL PAGES ===== */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
}

.legal-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--ember), var(--ember-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.legal-header .last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

.legal-content h2 {
    color: var(--ember);
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 25px;
}

.legal-content ul li { margin-bottom: 8px; }

.legal-content a { color: var(--ember); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

.contact-box {
    background: rgba(255, 107, 43, 0.08);
    border: 1px solid var(--ember);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.contact-box h3 { color: var(--ember); margin-bottom: 10px; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(22, 18, 16, 0.8);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--ember);
    box-shadow: 0 0 20px rgba(255, 107, 43, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-secondary); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--card-bg); }

/* ===== ALERTS / MESSAGES ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-weight: 600;
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-info {
    background: rgba(255, 107, 43, 0.1);
    border: 1px solid var(--ember);
    color: var(--ember);
}

/* ===== STATUS DOT ===== */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ===== LOADING ===== */
.loading { text-align: center; padding: 3rem; }

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 107, 43, 0.1);
    border-top-color: var(--ember);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, transparent, rgba(12, 8, 5, 0.9));
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 107, 43, 0.12);
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--ember), var(--ember-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover { color: var(--ember); }

.footer p { color: #555; margin: 0.5rem 0; }

/* ===== TABLES ===== */
.table-container { overflow-x: auto; border-radius: var(--border-radius); }

table { width: 100%; border-collapse: collapse; }

thead th {
    background: linear-gradient(135deg, rgba(255, 107, 43, 0.15), rgba(255, 61, 0, 0.15));
    color: var(--ember);
    padding: 1rem 1.2rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--ember);
}

tbody tr {
    border-bottom: 1px solid rgba(255, 107, 43, 0.08);
    transition: var(--transition);
}

tbody tr:hover { background-color: rgba(255, 107, 43, 0.04); }
tbody td { padding: 1rem 1.2rem; color: var(--text-secondary); }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-cyan { color: var(--ember); }
.text-muted { color: var(--text-secondary); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu { display: none !important; }
    .nav-toggle { display: block !important; }
    .navbar { padding: 0.8rem 1rem; }

    .hero h1 { font-size: 2.8rem; letter-spacing: -1px; }
    .hero p { font-size: 1.1rem; }
    .hero { padding: 5rem 2rem 3rem; }

    .server-ip-box { flex-direction: column; padding: 1.2rem 1.8rem; }
    .server-ip { font-size: 1.2rem; }

    .cta-buttons { flex-direction: column; width: 100%; padding: 0 1rem; }
    .btn { width: 100%; justify-content: center; }

    .container { padding: 2rem 1rem; }
    .section-title { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .staff-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .legal-content { padding: 20px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) {
    .mobile-menu { display: none !important; }
    .nav-toggle { display: none !important; }
    .nav-menu { display: flex !important; }
}
