/* =========================
   Theme: Vercel "Geist" Exact Replica
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-body: #000000;
  --bg-card: #000000;
  --border: #333333;
  --text-main: #ededed;
  --text-muted: #888888;
  --accent-blue: #0070f3;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   Header
   ========================= */
.site-header {
  background: #000;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-triangle {
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid #fff;
}

.slash {
  color: #444;
  font-size: 20px;
  font-weight: 200;
}

.user-gradient {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #10b981);
}

.project-name { font-weight: 600; font-size: 14px; color: #fff; }

.badge {
  background: #222;
  border: 1px solid #333;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Nav Menu */
.header-nav {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 24px;
  overflow-x: auto;
}

.nav-item {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-item:hover { color: #fff; }
.nav-item.active { color: #fff; border-bottom-color: #fff; }

/* Right Side */
.header-right { display: flex; align-items: center; gap: 16px; }
.fake-search {
  background: #111; border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px; color: #666;
  font-size: 12px; width: 200px; display: flex; justify-content: space-between;
}
@media (max-width: 768px) { .fake-search { display: none; } }

/* =========================
   Layout & Components
   ========================= */
.container { max-width: 1100px; margin: 30px auto; padding: 0 24px; }
.page-title { font-size: 24px; font-weight: 600; margin-bottom: 20px; }

/* Cards */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-bottom: 40px;
}
.stat-card {
  background: #000; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; transition: border-color 0.2s;
}
.stat-card:hover { border-color: #fff; }
.stat-label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 48px; font-weight: 700; margin: 12px 0; letter-spacing: -2px; color: #fff; }
.stat-sub { color: #666; font-size: 13px; font-family: monospace; }

/* Chart Container */
.chart-container {
  background: #000; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; height: 400px;
}

/* Creator Profile */
.creator-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; text-align: center; max-width: 400px; margin: 40px auto;
}
.creator-img {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, #0070f3, #f81ce5); margin: 0 auto 20px;
}
.creator-name { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.creator-role { color: var(--text-muted); margin-bottom: 24px; }
.social-link {
  display: inline-block; padding: 8px 16px; border: 1px solid #333;
  border-radius: 4px; color: #fff; text-decoration: none; font-size: 13px; margin: 0 5px;
}
.social-link:hover { background: #fff; color: #000; }
.control {
  display: flex;
  gap: 8px; /* ระยะห่างระหว่างปุ่ม */
}

.control button {
  background: transparent;      /* พื้นใส */
  border: 1px solid #333;       /* ขอบสีเทาเข้ม */
  color: #888;                  /* ตัวหนังสือสีเทา */
  padding: 0 16px;
  height: 32px;                 /* ความสูงมาตรฐาน Vercel */
  border-radius: 6px;           /* มุมมน */
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* เมื่อเอาเมาส์ชี้ */
.control button:hover {
  border-color: #666;
  color: #ededed;
}

/* เมื่อปุ่มถูกเลือก (Active) - ไฮไลท์สีขาว */
.control button.active {
  background: #ededed;
  color: #000;
  border-color: #ededed;
}
/* =========================
   Table Design (Vercel Data Grid)
   ========================= */
.table-wrap {
  border: 1px solid #333;       /* กรอบรอบนอกสีเทาเข้ม */
  border-radius: 6px;           /* มุมมน */
  overflow: hidden;             /* ตัดมุมมนให้เนียน */
  margin-top: 20px;
  background: #000;             /* พื้นหลังดำ */
}

table {
  width: 100%;
  border-collapse: collapse;    /* ให้เส้นขอบเชื่อมกัน */
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

/* หัวตาราง */
thead th {
  background-color: #0a0a0a;    /* สีพื้นหลังหัวตารางเข้มกว่านิดนึง */
  color: #888;                  /* ตัวหนังสือสีเทา */
  font-weight: 500;
  text-transform: uppercase;    /* ตัวพิมพ์ใหญ่ทั้งหมด */
  font-size: 11px;
  letter-spacing: 0.05em;       /* ระยะห่างตัวอักษร */
  padding: 12px 24px;
  text-align: left;
  border-bottom: 1px solid #333; /* เส้นคั่นหัวตาราง */
}

/* แถวข้อมูล */
tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background-color: #111;       /* ไฮไลท์สีเทาอ่อนเมื่อเอาเมาส์ชี้ */
}

tbody tr:last-child td {
  border-bottom: none;          /* ลบเส้นขอบล่างของแถวสุดท้าย */
}

/* เซลล์ข้อมูล */
tbody td {
  padding: 14px 24px;           /* เพิ่มพื้นที่หายใจ */
  border-bottom: 1px solid #333; /* เส้นคั่นระหว่างแถว */
  color: #ededed;               /* สีตัวหนังสือขาวนวล */
  vertical-align: middle;
}

/* ปรับแต่งแต่ละคอลัมน์ */
/* คอลัมน์ 1: เวลา (Time) */
tbody td:nth-child(1) {
  font-family: 'Monaco', 'Consolas', monospace; /* ใช้ฟอนต์แบบ Code */
  color: #666;                 /* สีเทาจางลงหน่อย */
  width: 180px;                /* ฟิกความกว้างให้เท่ากัน */
}

/* คอลัมน์ 2: อุปกรณ์ (Device) */
tbody td:nth-child(2) {
  font-weight: 500;
}

/* คอลัมน์ 3: ค่าแก๊ส (Gas Value) */
/* จัดชิดขวาเพื่อให้ตัวเลขตรงกันสวยงาม */
thead th:nth-child(3),
tbody td:nth-child(3) {
  text-align: right;
  font-family: 'Monaco', 'Consolas', monospace;
  font-weight: 600;
}
/* ... (ส่วน Header เดิมคงไว้) ... */

/* =========================
   Creator Layout & Profiles
   ========================= */

.creator-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.section-advisor {
  display: flex;
  justify-content: center;
  width: 100%;
}

.section-team {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; 
  gap: 24px;
  width: 100%;
}

/* บัตรข้อมูลใหม่ */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  transition: all 0.2s ease;
}

.profile-card:hover {
  border-color: #fff;
  transform: translateY(-4px); /* เพิ่มลูกเล่นเวลายกตัว */
}

/* ไฮไลท์การ์ดอาจารย์ */
.advisor-highlight {
  border-color: var(--accent-blue);
  max-width: 350px;
}

/* การจัดการรูปภาพ */
.avatar-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #fff;
}

.profile-role {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
  line-height: 1.4;
}

.action-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-link {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-link:hover {
  background: #fff;
  color: #000;
}