/* ==========================================================================
   BASE.CSS - Game Website Styling
   ========================================================================== */

/* ---------- RESET & BASE ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.4;
  font-size: 13px;
}

/* ---------- CSS VARIABLES ---------- */
:root {
  --gold: #d4af37;
  --dark-gold: #b48c24;
  --black: #0a0a0a;
  --gray-dark: #151515;
  --gray-medium: #1d1d1d;
  --gray-border: #222;
  --text-light: #ddd;
  --text-muted: #888;
  --success: #00c300;
  --warning: #d4af37;
  --danger: #b91d1d;
  
  --header-height: 70px;
  --sidebar-width: 220px;
}

/* ---------- HEADER ---------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--gray-dark), var(--black));
  border-bottom: 2px solid var(--gold);
  padding: 8px 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.logo-img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.25));
  transition: transform 0.2s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
}

.logo {
  font-size: 20px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  font-weight: 700;
}

.logo span {
  color: #fff;
}

/* ---------- MAIN LAYOUT ---------- */
.game-layout {
  display: flex;
  min-height: 100vh;
}

/* ---------- SIDEBARS ---------- */
.sidebar {
  position: fixed;
  top: 66px;
  width: var(--sidebar-width);
  height: calc(105vh - var(--header-height));
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--gray-dark);
  border: 1px solid var(--gray-border);
  padding: 12px 10px;
  z-index: 100;
  font-size: 12px;
}

/* Linker sidebar - meerdere selectoren voor flexibiliteit */
.sidebar.left-sidebar,
.left-sidebar,
.sidebar:first-of-type {
  left: 0;
  border-left: none;
  border-top: none;
}

/* Rechter sidebar - meerdere selectoren voor flexibiliteit */
.sidebar.right-sidebar,
.right-sidebar,
.sidebar:last-of-type {
  right: 0;
  border-right: none;
  border-top: none;
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--dark-gold);
}

/* Sidebar headings */
.sidebar h3 {
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.sidebar h4 {
  color: var(--gold);
  font-size: 12px;
  margin: 10px 0 6px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gray-border);
  text-transform: uppercase;
  font-weight: 600;
}

/* Sidebar lists */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin: 4px 0;
}

.sidebar ul a {
  color: var(--text-light);
  text-decoration: none;
  display: block;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 12px;
}

.sidebar ul a:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateX(2px);
}

.sidebar p {
  margin: 5px 0;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

/* ---------- MAIN CONTENT AREA ---------- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  margin-right: var(--sidebar-width);
  padding-top: 66px;
  padding-left: 20px;
  padding-right: 20px;
  background: #111;
  border-left: 1px solid var(--gray-border);
  border-right: 1px solid var(--gray-border);
  min-height: calc(100vh - var(--header-height));
}

/* ---------- PROGRESS BARS ---------- */
.bar {
  background: #333;
  border-radius: 3px;
  overflow: hidden;
  height: 8px;
  margin: 4px 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.fill {
  height: 8px;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.fill.energy {
  background: linear-gradient(90deg, #e0c000, #ffd700);
}

.fill.gold {
  background: linear-gradient(90deg, #ffcc00, var(--gold));
}

.fill.red {
  background: linear-gradient(90deg, var(--danger), #d32f2f);
}

.fill.health {
  background: linear-gradient(90deg, #00c300, #00ff00);
}

/* ---------- STAT DISPLAY ---------- */
.stat {
  margin-bottom: 8px;
}

.stat-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: 11px;
}

.stat-value {
  color: var(--gold);
  font-weight: 600;
}

/* ---------- LEADERBOARD ---------- */
.leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  margin: 3px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  border-left: 2px solid var(--gold);
  font-size: 11px;
  transition: background 0.2s ease;
}

.leaderboard-list li:hover {
  background: rgba(212, 175, 55, 0.1);
}

.rank-number {
  color: var(--gold);
  font-weight: 700;
  margin-right: 6px;
}

.cash {
  color: #a8ff60;
  font-weight: 600;
}

/* ---------- NEWS FEED ---------- */
.news-item {
  font-size: 11px;
  color: #ccc;
  margin: 6px 0;
  padding: 5px 8px;
  border-left: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
  transition: background 0.2s ease;
  line-height: 1.4;
}

.news-item:hover {
  background: rgba(212, 175, 55, 0.05);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 7px 14px;
  margin: 4px;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn:hover {
  background: var(--dark-gold);
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(212, 175, 55, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: var(--gray-medium);
  color: var(--text-light);
}

.btn.secondary:hover {
  background: #2a2a2a;
}

.btn.danger {
  background: var(--danger);
  color: #fff;
}

.btn.danger:hover {
  background: #8b1515;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--gray-dark);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 15px;
  margin: 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.card h3 {
  color: var(--gold);
  margin-bottom: 8px;
  font-size: 15px;
}

.card p {
  color: #ccc;
  line-height: 1.5;
  font-size: 12px;
}

/* ---------- TABLES ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--gray-dark);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
}

thead {
  background: var(--gray-medium);
}

th {
  padding: 8px 10px;
  text-align: left;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gold);
}

td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--gray-border);
  color: var(--text-light);
}

tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

tr:last-child td {
  border-bottom: none;
}

tr.unread {
  background: rgba(255, 215, 0, 0.08);
  font-weight: 600;
}

/* ---------- STATUS INDICATORS ---------- */
.status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status.online {
  color: var(--success);
  background: rgba(0, 195, 0, 0.1);
  border: 1px solid var(--success);
}

.status.away {
  color: var(--warning);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--warning);
}

.status.offline {
  color: var(--text-muted);
  background: rgba(119, 119, 119, 0.1);
  border: 1px solid var(--text-muted);
}

/* ---------- HOME PAGE ---------- */
.home-intro {
  text-align: center;
  margin: 30px 0 40px 0;
}

.home-intro h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--gold);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.home-intro h2 span {
  color: #fff;
}

.home-intro .tagline {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* ---------- FOOTER ---------- */
.main-footer {
  background: var(--gray-dark);
  text-align: center;
  padding: 15px;
  border-top: 2px solid var(--gold);
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 40px;
}

.main-footer a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-footer a:hover {
  color: var(--dark-gold);
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 1200px) {
  .main-content {
    margin-left: 0;
    margin-right: 0;
    border-left: none;
    border-right: none;
  }
  
  .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 55px;
  }
  
  body {
    font-size: 12px;
  }
  
  .logo-img {
    height: 38px;
  }
  
  .logo {
    font-size: 16px;
  }
  
  .main-content {
    padding: 15px 12px;
  }
  
  .home-intro h2 {
    font-size: 22px;
  }
  
  .home-intro .tagline {
    font-size: 12px;
  }
  
  .home-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---------- UTILITY CLASSES ---------- */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.text-gold {
  color: var(--gold);
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}