<?php
require_once '../config/config.php';
$lockFile = dirname(__DIR__) . '/config/.installed';
if (!file_exists($lockFile)) { header('Location: ../install.php'); exit; }
require_once '../config/database.php';
require_once '../includes/functions.php';
require_once '../includes/Auth.php';
if (session_status() === PHP_SESSION_NONE) { session_start(); }
auth()->requireUser();
$user = auth()->refreshUser();
if (empty($user)) { header('Location: login.php'); exit; }

$pageName = ucwords(str_replace('-', ' ', 'education'));
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= $pageName ?> - <?= APP_NAME ?></title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Inter',sans-serif;background:#0a0e17;color:#fff;min-height:100vh}
.header{display:flex;align-items:center;padding:14px 16px;background:#1a1f2e;border-bottom:1px solid #2a3344}
.back-btn{width:40px;height:40px;background:#232a36;border:none;border-radius:10px;color:#fff;cursor:pointer;margin-right:12px;font-size:1rem}
.header h1{font-size:1.1rem;font-weight:600}
.content{padding:20px}
.coming-soon{text-align:center;padding:60px 20px}
.coming-soon i{font-size:4rem;color:#fbbf24;margin-bottom:20px}
.coming-soon h2{font-size:1.5rem;margin-bottom:10px}
.coming-soon p{color:#8b92a8}
.feature-list{margin-top:30px}
.feature-item{display:flex;align-items:center;gap:14px;padding:16px;background:#1a1f2e;border-radius:12px;margin-bottom:12px}
.feature-icon{width:50px;height:50px;background:linear-gradient(135deg,#fbbf24,#f59e0b);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.3rem}
.feature-info h3{font-size:1rem;font-weight:600;margin-bottom:4px}
.feature-info p{font-size:.85rem;color:#8b92a8}
.btn{display:inline-block;padding:12px 28px;background:linear-gradient(135deg,#26a69a,#00897b);color:#fff;text-decoration:none;border-radius:10px;font-weight:600;margin-top:20px}
</style>
</head>
<body>
<header class="header">
    <button class="back-btn" onclick="location.href='trade.php'"><i class="fas fa-arrow-left"></i></button>
    <h1><?= $pageName ?></h1>
</header>
<div class="content">
    <div class="coming-soon">
        <i class="fas fa-rocket"></i>
        <h2><?= $pageName ?></h2>
        <p>This feature is coming soon!</p>
        <div class="feature-list">
            <div class="feature-item">
                <div class="feature-icon">🚀</div>
                <div class="feature-info"><h3>New Features</h3><p>We're working on exciting new features</p></div>
            </div>
            <div class="feature-item">
                <div class="feature-icon">🎁</div>
                <div class="feature-info"><h3>Special Rewards</h3><p>Earn bonuses and rewards</p></div>
            </div>
            <div class="feature-item">
                <div class="feature-icon">📈</div>
                <div class="feature-info"><h3>Better Trading</h3><p>Advanced trading tools</p></div>
            </div>
        </div>
        <a href="trade.php" class="btn">Back to Trading</a>
    </div>
</div>
</body>
</html>
