/* BlackRock Academy — Custom CSS v1.0 */

:root {
  --brac-red:     #D50000;
  --brac-red-dk:  #B71C1C;
  --brac-dark:    #050505;
  --brac-surface: #111111;
  --brac-card:    #1a1a1a;
  --brac-border:  rgba(255,255,255,.08);
  --font-body:    'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
body { font-family: var(--font-body); display: flex; flex-direction: column; min-height: 100vh; }
h1,h2,h3,h4,h5 { font-family: var(--font-heading); font-weight: 700; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn { font-weight: 600; }
.btn-danger  { background: var(--brac-red); border-color: var(--brac-red); }
.btn-danger:hover { background: var(--brac-red-dk); border-color: var(--brac-red-dk); }
.btn-outline-danger { color: var(--brac-red); border-color: var(--brac-red); }
.btn-outline-danger:hover { background: var(--brac-red); border-color: var(--brac-red); color: #fff; }
.text-danger { color: var(--brac-red) !important; }
.bg-danger   { background: var(--brac-red) !important; }
.border-danger { border-color: var(--brac-red) !important; }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.brac-navbar {
  background: var(--brac-dark) !important;
  border-bottom: 1px solid rgba(213,0,0,.25);
  padding: .7rem 0;
}
.brac-navbar .navbar-brand { color: #fff !important; font-weight: 700; }
.brac-navbar .brand-text { font-family: var(--font-heading); font-size: 1.1rem; }
.brac-navbar .nav-link { color: rgba(255,255,255,.8) !important; font-weight: 500; transition: color .2s; }
.brac-navbar .nav-link:hover,
.brac-navbar .nav-link.active { color: #fff !important; }
.brac-navbar .navbar-toggler { border-color: rgba(255,255,255,.3); }
.brac-navbar .navbar-toggler-icon { filter: invert(1); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.brac-hero {
  background: linear-gradient(135deg, var(--brac-dark) 0%, #1a0000 50%, #2d0000 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}
.brac-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D50000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .4;
}
.brac-hero .hero-badge {
  display: inline-block;
  background: rgba(213,0,0,.15);
  border: 1px solid rgba(213,0,0,.3);
  color: #ff6b6b;
  padding: .35rem .9rem;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.brac-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; }
.hero-stat { text-align: center; }
.hero-stat .stat-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--brac-red); }
.hero-stat .stat-lbl { font-size: .8rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .05em; }

/* ── Section headings ─────────────────────────────────────────────────────── */
.section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.section-subtitle { color: #666; max-width: 600px; }
.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brac-red); margin-bottom: .5rem;
}

/* ── Course Cards ─────────────────────────────────────────────────────────── */
.course-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
  overflow: hidden;
}
.course-card:hover {
  box-shadow: 0 8px 32px rgba(213,0,0,.12);
  transform: translateY(-4px);
  text-decoration: none;
}
.course-card .card-thumbnail {
  height: 160px;
  background: linear-gradient(135deg, var(--brac-dark), #3a0000);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.course-card .card-thumbnail i { font-size: 3rem; color: rgba(213,0,0,.5); }
.course-card .card-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.course-card .card-body { padding: 1.25rem; }
.course-card .course-title { font-weight: 700; font-size: 1rem; color: #111; margin-bottom: .5rem; line-height: 1.35; }
.course-card .course-meta { font-size: .8rem; color: #666; }
.course-card .course-price { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--brac-red); }
.course-card .course-price.free { color: #2e7d32; }
.badge.bg-foundation   { background: #e8f5e9 !important; color: #2e7d32 !important; }
.badge.bg-intermediate { background: #fff8e1 !important; color: #f57f17 !important; }
.badge.bg-advanced     { background: #ffebee !important; color: var(--brac-red) !important; }

/* ── Category Pills ───────────────────────────────────────────────────────── */
.cat-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.1rem; border-radius: 30px;
  font-size: .85rem; font-weight: 600;
  border: 2px solid transparent;
  transition: all .2s;
  cursor: pointer;
  background: #f5f5f5; color: #333;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--brac-red); color: #fff; border-color: var(--brac-red);
  text-decoration: none;
}

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.dash-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 1.5rem;
  background: #fff;
  height: 100%;
}
.dash-stat-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; }
.progress-course { border-radius: 8px; height: 8px; }
.progress-course .progress-bar { background: var(--brac-red); border-radius: 8px; }

/* ── Lesson Player ────────────────────────────────────────────────────────── */
.lesson-sidebar {
  border-right: 1px solid #eee;
  height: calc(100vh - 70px);
  overflow-y: auto;
  position: sticky;
  top: 70px;
}
.lesson-sidebar::-webkit-scrollbar { width: 4px; }
.lesson-sidebar::-webkit-scrollbar-track { background: #f5f5f5; }
.lesson-sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.lesson-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border-left: 3px solid transparent;
  font-size: .9rem; color: #333; cursor: pointer;
  transition: all .15s; text-decoration: none;
}
.lesson-item:hover { background: #f9f9f9; color: var(--brac-red); text-decoration: none; }
.lesson-item.active { border-left-color: var(--brac-red); background: #fff5f5; color: var(--brac-red); font-weight: 600; }
.lesson-item.done .li-icon { color: #2e7d32; }
.li-icon { width: 24px; text-align: center; flex-shrink: 0; color: #999; }
.lesson-content-area { padding: 2rem; }

/* ── Quiz ─────────────────────────────────────────────────────────────────── */
.quiz-option {
  border: 2px solid #e0e0e0;
  border-radius: 10px; padding: 1rem 1.25rem;
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; gap: 1rem;
}
.quiz-option:hover { border-color: var(--brac-red); background: #fff5f5; }
.quiz-option.selected { border-color: var(--brac-red); background: #fff5f5; }
.quiz-option.correct  { border-color: #2e7d32; background: #e8f5e9; }
.quiz-option.wrong    { border-color: #c62828; background: #ffebee; }
.quiz-option input[type=radio] { accent-color: var(--brac-red); transform: scale(1.3); }

/* ── Certificate ──────────────────────────────────────────────────────────── */
.certificate-wrapper {
  background: #fff;
  border: 3px solid var(--brac-red);
  border-radius: 4px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.cert-header {
  background: var(--brac-dark);
  padding: 2rem;
  text-align: center;
  border-bottom: 4px solid var(--brac-red);
}
.cert-body { padding: 3rem 4rem; text-align: center; }
.cert-title { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--brac-dark); letter-spacing: .05em; }
.cert-subtitle { font-size: 1rem; color: #555; text-transform: uppercase; letter-spacing: .15em; }
.cert-name { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--brac-red); margin: 1.5rem 0 .5rem; border-bottom: 2px solid var(--brac-red); display: inline-block; padding-bottom: .25rem; }
.cert-course { font-size: 1.2rem; font-weight: 600; color: #333; }
.cert-footer { background: #f8f8f8; padding: 1.5rem 4rem; border-top: 1px solid #eee; }
.cert-code { font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: .85rem; color: #888; letter-spacing: .1em; }
@media print {
  .no-print { display: none !important; }
  .certificate-wrapper { box-shadow: none; border: 2px solid var(--brac-red); }
  body { padding: 0; background: #fff; }
}

/* ── Admin Panel ──────────────────────────────────────────────────────────── */
.admin-body { background: var(--brac-dark); color: #e0e0e0; min-height: 100vh; font-family: var(--font-body); }
.admin-topbar {
  background: #111; border-bottom: 1px solid #222;
  padding: .65rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1000;
}
.admin-topbar .brand { font-family: var(--font-heading); font-size: 1.1rem; color: #fff; font-weight: 700; }
.admin-sidebar {
  background: #0d0d0d; border-right: 1px solid #1a1a1a;
  min-height: calc(100vh - 52px); width: 240px; flex-shrink: 0;
  padding: 1rem 0; position: sticky; top: 52px; align-self: flex-start;
  height: calc(100vh - 52px); overflow-y: auto;
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.6); padding: .6rem 1.25rem;
  display: flex; align-items: center; gap: .75rem; font-size: .9rem; border-radius: 0;
  border-left: 3px solid transparent; transition: all .15s;
}
.admin-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.admin-sidebar .nav-link.active { color: #fff; border-left-color: var(--brac-red); background: rgba(213,0,0,.1); }
.admin-sidebar .nav-link i { width: 18px; text-align: center; }
.admin-content { flex: 1; padding: 1.5rem; overflow-x: hidden; }
.admin-card {
  background: #161616; border: 1px solid #222; border-radius: 10px; padding: 1.5rem; margin-bottom: 1.25rem;
}
.admin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid #222;
}
.admin-card-title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; margin: 0; }
.admin-stat-card {
  background: #161616; border: 1px solid #222; border-radius: 10px; padding: 1.25rem;
  border-left: 4px solid var(--brac-red);
}
.admin-stat-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: #fff; }
.admin-stat-lbl { font-size: .8rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .05em; }
.admin-table { color: #ccc; }
.admin-table th { color: rgba(255,255,255,.4); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; border-color: #222 !important; }
.admin-table td { border-color: #1e1e1e !important; vertical-align: middle; }
.admin-table tbody tr:hover { background: rgba(255,255,255,.03); }
.admin-form .form-label { color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 500; }
.admin-form .form-control,
.admin-form .form-select { background: #1a1a1a; border-color: #2a2a2a; color: #e0e0e0; }
.admin-form .form-control:focus,
.admin-form .form-select:focus { background: #1e1e1e; border-color: var(--brac-red); box-shadow: 0 0 0 .2rem rgba(213,0,0,.15); color: #fff; }

/* ── Corporate Portal ─────────────────────────────────────────────────────── */
.corp-header { background: linear-gradient(135deg, var(--brac-dark), #1a0000); color: #fff; padding: 2.5rem 0; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.brac-footer { background: var(--brac-dark); color: rgba(255,255,255,.7); margin-top: auto; }
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { color: rgba(255,255,255,.5); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-links li { color: rgba(255,255,255,.5); font-size: .9rem; }
.footer-social { display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; transition: all .2s; }
.footer-social.wa { background: rgba(37,211,102,.1); color: #25D366; }
.footer-social.wa:hover { background: #25D366; color: #fff; }
.footer-social.ig { background: rgba(225,48,108,.1); color: #E1306C; }
.footer-social.ig:hover { background: #E1306C; color: #fff; }
.footer-social.em { background: rgba(255,255,255,.05); color: rgba(255,255,255,.6); }
.footer-social.em:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Progress bar ─────────────────────────────────────────────────────────── */
.progress { border-radius: 50px; }
.progress-bar { background: var(--brac-red); border-radius: 50px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .lesson-sidebar { height: auto; position: static; border-right: none; border-bottom: 1px solid #eee; }
  .cert-body { padding: 2rem 1.5rem; }
  .cert-footer { padding: 1rem 1.5rem; }
  .cert-title { font-size: 1.8rem; }
  .cert-name { font-size: 1.6rem; }
}
@media (max-width: 767px) {
  .brac-hero { padding: 60px 0 50px; }
  .admin-sidebar { display: none; }
}
