<?php
$page_title = "Account | ECUPRATIX";
$active = "account";
$user_name = $_SESSION["user_name"] ?? "User";
include __DIR__ . "/partials/head.php";
?>
<main class="main">
  <?php include __DIR__ . "/partials/topbar.php"; ?>
  <style>
    .account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; padding: 20px; }
    .account-block { background: linear-gradient(145deg, #121212, #080808); border: 1px solid rgba(255,255,255,0.05); border-radius: 25px; padding: 30px; }
    .block-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,0,0,0.2); }
    .block-icon { width: 40px; height: 40px; background: #000; border: 2px solid #ff0000; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #ff0000; box-shadow: 0 0 10px rgba(255,0,0,0.3); }
    .block-title { font-size: 16px; font-weight: 900; color: #fff; text-transform: uppercase; }
    .info-row { display: flex; justify-content: space-between; padding: 12px 15px; background: rgba(255,255,255,0.02); border-radius: 12px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.03); }
    .info-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; }
    .info-value { font-size: 13px; font-weight: 800; color: #fff; }
    .prefix-input { width: 100%; padding: 12px 15px; background: #000; border: 1px solid rgba(255,0,0,0.2); border-radius: 12px; color: #fff; margin-bottom: 15px; outline: none; }
    .save-btn { width: 100%; background: #ff0000; color: #fff; padding: 12px; border-radius: 12px; border: none; font-weight: 900; cursor: pointer; text-transform: uppercase; }
    .files-list { max-height: 350px; overflow-y: auto; padding-right: 10px; }
    .file-item { padding: 12px; background: rgba(255,255,255,0.02); border-radius: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,0.03); }
    .file-type { background: #ff0000; color: #fff; font-size: 9px; font-weight: 900; padding: 3px 8px; border-radius: 6px; }
    @media (max-width: 1000px) { .account-grid { grid-template-columns: 1fr; } }
  </style>

  <div class="account-grid">
    <div class="account-block">
        <div class="block-header"><div class="block-icon">👤</div><div class="block-title">Kullanıcı Bilgileri</div></div>
        <div class="info-row"><span class="info-label">Ad Soyad</span><span class="info-value"><?= htmlspecialchars($user_name) ?></span></div>
        <div class="info-row"><span class="info-label">E-posta</span><span class="info-value">support@aktifperformance.com.tr</span></div>
        <div class="info-row"><span class="info-label">Paket</span><span class="info-value">CAR PACK Premium</span></div>
    </div>
    <div class="account-block">
        <div class="block-header"><div class="block-icon">📊</div><div class="block-title">Kullanıcı Logları</div></div>
        <div class="files-list">
            <div class="info-row"><div><div style="font-weight: 800;">Login</div><div style="font-size: 9px; color: rgba(255,255,255,0.3);">185.123.45.67</div></div><span class="info-value">2 saat önce</span></div>
            <div class="info-row"><div><div style="font-weight: 800;">File Upload</div><div style="font-size: 9px; color: rgba(255,255,255,0.3);">185.123.45.67</div></div><span class="info-value">3 saat önce</span></div>
        </div>
    </div>
    <div class="account-block">
        <div class="block-header"><div class="block-icon">🏷️</div><div class="block-title">Dosya Prefix</div></div>
        <input type="text" class="prefix-input" value="AktifPerformance">
        <button class="save-btn">Kaydet</button>
    </div>
    <div class="account-block">
        <div class="block-header"><div class="block-icon">🔒</div><div class="block-title">Şifre Değişimi</div></div>
        <input type="password" class="prefix-input" placeholder="Yeni Şifre">
        <button class="save-btn">Güncelle</button>
    </div>
    <div class="account-block" style="grid-column: span 2;">
        <div class="block-header"><div class="block-icon">📁</div><div class="block-title">Son 20 Dosya</div></div>
        <div class="files-list">
            <?php for($i=1; $i<=20; $i++): ?>
            <div class="file-item"><div style="flex: 1;"><div style="font-weight: 800; font-size: 13px;">File_Name_<?= $i ?>.bin</div><div style="font-size: 10px; color: rgba(255,255,255,0.3);">1.<?= $i ?> MB • <?= $i ?> gün önce</div></div><span class="file-type">Stage <?= $i ?></span></div>
            <?php endfor; ?>
        </div>
    </div>
  </div>
</main>
<?php include __DIR__ . "/partials/footer.php"; ?>
