/* Huiina Core Styling — 2019 Era Web Layout */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  background-color: #e3e3e3;
  color: #393b3d;
  font-size: 14px;
}

/* Header Navbar */

.site-header {
  height: 40px;
  background-color: #00a2ff;
  border-bottom: 1px solid #0082cc;
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 970px;
  height: 100%;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.brand-mark {
  width: 24px;
  height: 24px;
  background: #ffffff;
  color: #00a2ff;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transform: rotate(-8deg);
}

.brand-text {
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  margin-right: 15px;
}

.nav-links a:hover {
  text-decoration: underline;
}

.login-btn {
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 3px 12px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.login-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Page Layout */

.page {
  min-height: calc(100vh - 100px);
  padding: 30px 10px 50px;
  display: flex;
  justify-content: center;
}

.signup-wrapper {
  width: 100%;
  max-width: 400px;
}

/* Card Container */

.signup-card {
  background: #ffffff;
  border: 1px solid #c3c3c3;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e1e1e1;
  text-align: center;
}

.card-header h1 {
  font-size: 18px;
  font-weight: 700;
  color: #393b3d;
}

/* Form Controls */

#signup-form {
  padding: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label,
.group-label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #656768;
  margin-bottom: 4px;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 35px;
  padding: 0 8px;
  border: 1px solid #b8b8b8;
  border-radius: 3px;
  background-color: #f7f7f7;
  font-size: 13px;
  color: #393b3d;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #00a2ff;
  background-color: #ffffff;
}

.birthday-row {
  display: flex;
  gap: 6px;
}

.birthday-row select {
  flex: 1;
}

.input-hint {
  display: block;
  font-size: 11px;
  color: #888888;
  margin-top: 3px;
}

.terms-text {
  font-size: 11px;
  color: #757575;
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

.terms-text a {
  color: #00a2ff;
  text-decoration: none;
}

.terms-text a:hover {
  text-decoration: underline;
}

/* Button */

.btn-signup {
  width: 100%;
  height: 38px;
  background-color: #00e640;
  border: 1px solid #00b332;
  border-radius: 3px;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.btn-signup:hover {
  background-color: #00cc39;
}

.btn-signup:active {
  background-color: #00b332;
}

/* Card Footer */

.card-footer {
  background-color: #f2f2f2;
  border-top: 1px solid #e1e1e1;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: #656768;
}

.card-footer a {
  color: #00a2ff;
  text-decoration: none;
  font-weight: 700;
  margin-left: 3px;
}

.card-footer a:hover {
  text-decoration: underline;
}

/* Status Messages */

.status-message {
  display: none;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.status-message.error {
  display: block;
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  color: #a94442;
}

.status-message.success {
  display: block;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  color: #3c763d;
}

/* Footer Styling */

.site-footer {
  background: #ffffff;
  border-top: 1px solid #c3c3c3;
  padding: 20px 10px;
  text-align: center;
  font-size: 12px;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  color: #656768;
  text-decoration: none;
  margin: 0 6px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  color: #a0a0a0;
  font-size: 11px;
}

/* Mobile Adjustments */

@media (max-width: 600px) {
  .nav-links {
    display: none;
    /* --- Admin Panel Styling --- */

.admin-body {
  background-color: #f2f4f5;
}

.admin-header {
  height: 45px;
  background-color: #191919;
  border-bottom: 2px solid #00a2ff;
  color: #ffffff;
}

.admin-header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
}

.exit-btn {
  color: #00a2ff;
  text-decoration: none;
  font-weight: bold;
}

.exit-btn:hover {
  text-decoration: underline;
}

.admin-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
  display: flex;
  gap: 20px;
}

.admin-sidebar {
  width: 200px;
  flex-shrink: 0;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #c3c3c3;
  border-radius: 3px;
}

.admin-menu a {
  padding: 12px 15px;
  color: #393b3d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #eeeeee;
}

.admin-menu a:hover {
  background-color: #f8f8f8;
}

.admin-menu a.active {
  background-color: #00a2ff;
  color: #ffffff;
}

.admin-content {
  flex-grow: 1;
}

.admin-content h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #c3c3c3;
  border-radius: 3px;
  padding: 15px;
}

.stat-card h4 {
  font-size: 12px;
  color: #757575;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 24px;
  font-weight: 800;
  color: #393b3d;
}

.status-online {
  color: #00e640;
}

.admin-section {
  background: #ffffff;
  border: 1px solid #c3c3c3;
  border-radius: 3px;
  padding: 15px;
}

.admin-section h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th, .admin-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e3e3e3;
}

.admin-table th {
  background-color: #f7f7f7;
  color: #656768;
  font-weight: 700;
}

.role-badge {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.role-badge.admin {
  background-color: #ffdede;
  color: #d9534f;
}

.role-badge.user {
  background-color: #e2e2e2;
  color: #555555;
}

.action-btn {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
}

.ban-btn {
  background-color: #d9534f;
  color: white;
}

.ban-btn:hover {
  background-color: #c9302c;
}
    /* --- Home Screen Page Layout --- */

.home-body {
  background-color: #e3e3e3;
}

.home-header {
  max-width: 1100px;
}

.currency-display {
  background: rgba(0, 0, 0, 0.15);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.currency-icon {
  color: #ffcc00;
}

.user-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-greeting {
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

.logout-btn {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Home Layout Container */

.main-container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 10px;
  display: flex;
  gap: 20px;
}

/* Sidebar Styles */

.sidebar {
  width: 180px;
  flex-shrink: 0;
}

.user-profile-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.avatar-headshot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #00a2ff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.profile-info-mini {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-name {
  font-weight: 700;
  font-size: 14px;
  color: #393b3d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-id {
  font-size: 11px;
  color: #757575;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #c3c3c3;
  border-radius: 3px;
}

.sidebar-menu a {
  padding: 10px 15px;
  color: #393b3d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu a:last-child {
  border-bottom: none;
}

.sidebar-menu a:hover {
  background-color: #f2f2f2;
}

.sidebar-menu a.active {
  border-left: 4px solid #00a2ff;
  background-color: #f8f8f8;
  font-weight: 700;
}

/* Feed Content */

.feed {
  flex-grow: 1;
}

.feed-section {
  background: #ffffff;
  border: 1px solid #c3c3c3;
  border-radius: 3px;
  padding: 16px;
  margin-bottom: 18px;
}

.welcome-heading {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.user-banner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #00a2ff;
  border: 3px solid #e3e3e3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 28px;
}

.greeting-text {
  font-size: 16px;
  font-weight: 700;
  color: #393b3d;
  margin-bottom: 4px;
}

.view-profile-link {
  color: #00a2ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.view-profile-link:hover {
  text-decoration: underline;
}

/* Games Grid */

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title-row h3 {
  font-size: 16px;
  font-weight: 700;
}

.section-title-row a {
  color: #00a2ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 12px;
}

.game-card {
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.1s ease;
}

.game-card:hover {
  border-color: #a0a0a0;
  transform: translateY(-2px);
}

.game-thumb {
  width: 100%;
  height: 120px;
  background-color: #cccccc;
}

.thumb-1 { background-color: #3498db; }
.thumb-2 { background-color: #e67e22; }
.thumb-3 { background-color: #2ecc71; }
.thumb-4 { background-color: #9b59b6; }

.game-details {
  padding: 8px;
}

.game-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #393b3d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-creator {
  display: block;
  font-size: 11px;
  color: #757575;
  margin-top: 2px;
}

.game-playing {
  display: block;
  font-size: 10px;
  color: #00a2ff;
  font-weight: bold;
  margin-top: 4px;
}

/* Empty Friends Area */

.friends-panel {
  padding: 15px 0;
  text-align: center;
}

.no-friends {
  color: #888888;
  font-size: 13px;
}

  }
}