/* HafrikPlay Distro - shared stylesheet */

:root {
  --hafrik-green: #0b8557;
  --hafrik-dark: #063f2a;
  --bg: #f5f8f6;
  --radius: 14px;
  --font: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: #1a1a1a;
}

a { color: var(--hafrik-green); }

/* ---------- Top navbar (site + admin) ---------- */
.navbar {
  background: var(--hafrik-green);
  color: #fff;
  padding: 14px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.navbar-brand img { height: 32px; display: block; }
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: 0.2s;
}
.navbar-links a:hover { background: rgba(255,255,255,0.15); color: #ffe75c; }

@media (max-width: 768px) {
  .navbar-toggle { display: inline-block; }
  .navbar-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 12px;
  }
  .navbar-links.is-open { display: flex; }
  .navbar-links a { margin: 2px 0; }
}

/* ---------- Generic layout ---------- */
.container {
  max-width: 1100px;
  margin: 30px auto;
  background: #fff;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
@media (max-width: 600px) {
  .container { margin: 16px; padding: 18px; }
}

.section, .card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  padding: 25px;
}
@media (max-width: 600px) {
  .section, .card { padding: 16px; }
}

h2 { color: var(--hafrik-dark); }

/* ---------- Auth form boxes (login/register/reset) ---------- */
.auth-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://distro.hafrikplay.com/wp-content/uploads/2025/09/pexels-anthonyshkraba-production-8043836-scaled.jpg') no-repeat center center fixed;
  background-size: cover;
}
.form-box {
  width: 90%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  padding: 35px 30px;
  text-align: center;
  margin: 20px;
}
.form-box .logo { width: 120px; margin-bottom: 15px; }
.form-box h2 { margin-bottom: 20px; font-size: 1.5rem; }
.form-box input, .form-box select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
.form-box button, .btn {
  display: inline-block;
  width: 100%;
  background: var(--hafrik-green);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: 0.3s;
}
.btn { width: auto; padding: 10px 22px; }
.form-box button:hover, .btn:hover { background: var(--hafrik-dark); }
.form-box p { font-size: 0.9rem; color: #333; }

@media (max-width: 600px) {
  .form-box { padding: 25px 20px; }
  .auth-page { background-attachment: scroll; }
}

/* ---------- Alerts / flash banners ---------- */
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 500;
  text-align: left;
}
.alert.success, .success { color: #0b8557; background: #e6f9f0; border: 1px solid #b2e8cf; }
.alert.error, .error { color: #b00020; background: #fdecea; border: 1px solid #f5bcbc; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: url('https://distro.hafrikplay.com/wp-content/uploads/2025/09/pexels-anthonyshkraba-production-8043836-scaled.jpg') center/cover no-repeat;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 15px;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 133, 87, 0.6);
}
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-content h1 { font-size: 2rem; margin-bottom: 8px; letter-spacing: 1px; }
.hero-content p { font-size: 1rem; opacity: 0.9; }
@media (max-width: 600px) {
  .hero-content h1 { font-size: 1.4rem; }
}

/* ---------- Grids ---------- */
.stats-grid, .actions, .link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 25px 0;
}
.stat-card, .stat-box, .action-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  padding: 22px;
  text-align: center;
  transition: 0.3s;
}
.stat-card:hover, .stat-box:hover, .action-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.stat-card i, .stat-box i, .action-box i { font-size: 1.8rem; color: var(--hafrik-green); margin-bottom: 8px; }

/* ---------- Responsive tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table, .container table, .section table {
  width: 100%;
  border-collapse: collapse;
}
table.table th, table.table td,
.container table th, .container table td,
.section table th, .section table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
table.table th, .container table th, .section table th { background: #f0f0f0; color: #444; }
table.table img, .container table img, .section table img {
  border-radius: 8px;
  width: 55px;
  height: 55px;
  object-fit: cover;
}

@media (max-width: 640px) {
  table.table.stack, table.stack {
    border: 0;
    width: 100%;
  }
  table.table.stack thead, table.stack thead { display: none; }
  table.table.stack tr, table.stack tr {
    display: block;
    margin-bottom: 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  }
  table.table.stack td, table.stack td {
    display: block;
    border-bottom: 1px solid #f2f2f2;
    padding: 10px 14px;
    text-align: left;
  }
  table.table.stack td:last-child, table.stack td:last-child { border-bottom: 0; }
  table.table.stack td::before, table.stack td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--hafrik-green);
    margin-bottom: 3px;
  }
}

/* ---------- Forms ---------- */
form.stack-form input,
form.stack-form select,
form.stack-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
footer.site-footer {
  text-align: center;
  padding: 25px 10px;
  font-size: 0.85rem;
  color: #777;
  border-top: 1px solid #ddd;
  margin-top: 30px;
}
