/* Statistics page scoped styles
   Uses brand CSS variables from assets/css/brand_overrides.css
*/

/* Containers */
.containers {
  width: 100%;
  max-width: 980px;
  margin: 0 auto; /* center horizontally */
  padding: 0 16px; /* balanced side padding */
}

@media (max-width: 768px) {
  .containers { max-width: 600px; padding: 0 14px; }
}

/* ---------------------------------
   Profile Section
--------------------------------- */
.profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-info {
  text-align: left;
  flex-grow: 1;
  margin-left: 10px;
}
.profile-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}
.profile-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
  display: flex;
  align-items: center;
}
.profile-info p span { margin-left: 4px; }
.notification {
  font-size: 20px;
  color: var(--text-secondary);
  margin-right: 20px;
  cursor: pointer;
}

/* ---------------------------------
   Wallet Section
--------------------------------- */
.wallet {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.wallet::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -40%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, rgba(5,252,149,0.1) 0%, rgba(5,252,149,0) 80%);
  transform: rotate(25deg);
  pointer-events: none;
}
.wallet-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 12px;
}
.wallet-img { max-width: 40px; height: auto; }
.wallet-title {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: left;
  margin-top: 4px;
}
.wallet h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  margin-top: 8px;
}
.wallet-button { margin-top: 16px; display: flex; justify-content: flex-start; }
.wallet .btn, .wallet-button .btn {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.wallet .btn:hover, .wallet-button .btn:hover { opacity: 0.9; background: var(--primary-dark); }
.wallet .btn i, .wallet-button .btn i { margin-left: 8px; font-size: 1rem; }

/* ---------------------------------
   Buttons Row (Quick Actions) – Two columns
--------------------------------- */
.wallet-buttons-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.wallet-buttons-row .btn {
  background-color: var(--primary);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wallet-buttons-row .btn:hover { transform: scale(1.03); opacity: 0.9; }
.wallet-buttons-row .btn i { margin-left: 6px; font-size: 1rem; }
.btn-boost-socials, .btn-monetization, .btn-buy-sell, .btn-verification { background-color: var(--primary); color: #fff; }

/* ---------------------------------
   Image Banner
--------------------------------- */
.banner-img {
  width: 100%;
  max-width: 370px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 10px auto;
  display: block;
}

/* ---------------------------------
   Stats Section
--------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.stat-box {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.stat-box h3 { font-size: 1.5rem; margin: 5px 0; color: var(--text-primary); }
.stat-box p { font-size: 0.85rem; color: var(--text-secondary); }

/* ---------------------------------
   Recent Orders Section
--------------------------------- */
.recent-orders {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.recent-orders h3 { color: var(--text-primary); margin-bottom: 10px; font-size: 1.1rem; }
.recent-orders ul { list-style: none; padding: 0; }
.recent-orders li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.recent-orders li:last-child { border-bottom: none; }
.order-status { padding: 5px 10px; border-radius: 5px; font-size: 0.75rem; font-weight: 500; }
.completed { background-color: var(--primary); color: #fff; }
.pending { background-color: var(--text-secondary); color: #fff; }
.failed { background-color: #DC3545; color: #FFFFFF; }

/* ---------------------------------
   Price Container (if used elsewhere)
--------------------------------- */
.price-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  border-radius: 10px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.price-text { color: var(--primary); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topit-button {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, opacity 0.2s ease;
}
.topit-button:hover { background-color: var(--primary-dark); }

/* ---------------------------------
   Ad Banner Placeholder
--------------------------------- */
.ad-banner {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  text-align: center;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ad-banner p { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.ad-banner a {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.ad-banner a:hover { background: var(--primary); color: #fff; }

/* ---------------------------------
   Mobile / Responsive Adjustments
--------------------------------- */
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .wallet-buttons-row .btn { flex: 1 1 100%; }
}
