/* ======== Africa Result HA – Frontend Styles ======== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.arha-wrap * { box-sizing: border-box; margin: 0; padding: 0; }

.arha-wrap {
    direction: ltr;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    max-width: 820px;
    margin: 30px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.12), 0 4px 20px rgba(0,0,0,.06);
    background: #fff;
    animation: arhaSlideIn .6s ease-out;
}

@keyframes arhaSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.arha-head {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    padding: 35px 30px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.arha-head::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
    animation: arhaGlow 6s ease-in-out infinite alternate;
}
@keyframes arhaGlow {
    0%   { transform: translate(10%, 10%); }
    100% { transform: translate(-10%, -10%); }
}
.arha-head h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.arha-head .arha-subtitle {
    color: rgba(255,255,255,.75);
    font-size: 15px;
    position: relative;
}
.arha-head .arha-badge {
    display: inline-block;
    margin-top: 12px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    padding: 5px 18px;
    border-radius: 30px;
    color: #fff;
    font-size: 13px;
    position: relative;
}

/* Body */
.arha-body {
    padding: 30px 25px 35px;
}

/* Semester Title */
.arha-sem-title {
    font-size: 19px;
    font-weight: 700;
    color: #2c5364;
    margin: 25px 0 14px;
    padding-bottom: 8px;
    border-bottom: 3px solid #2c5364;
    display: inline-block;
}
.arha-sem-title:first-child { margin-top: 0; }

/* Table */
.arha-tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecf1;
}
.arha-tbl th {
    background: #f1f5f9;
    padding: 13px 16px;
    text-align: left;
    font-weight: 700;
    color: #334155;
    font-size: 14px;
    border-bottom: 2px solid #e2e8f0;
}
.arha-tbl td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
    transition: background .2s;
}
.arha-tbl tr:last-child td { border-bottom: none; }
.arha-tbl tr:hover td { background: #f8fafc; }

/* Score Badges */
.arha-sc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 5px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: transform .2s;
}
.arha-sc:hover { transform: scale(1.08); }
.arha-sc-hi  { background: linear-gradient(135deg, #d4edda, #c3e6cb); color: #155724; }
.arha-sc-md  { background: linear-gradient(135deg, #fff3cd, #ffeeba); color: #856404; }
.arha-sc-lo  { background: linear-gradient(135deg, #f8d7da, #f5c6cb); color: #721c24; }
.arha-sc-na  { background: #f1f5f9; color: #94a3b8; font-weight: 500; }

/* Final Score */
.arha-final {
    margin-top: 30px;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    position: relative;
    overflow: hidden;
}
.arha-final::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 60%);
}
.arha-final-label {
    color: rgba(255,255,255,.7);
    font-size: 16px;
    margin-bottom: 10px;
    position: relative;
}
.arha-final-val {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    position: relative;
    text-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.arha-final-val .arha-sc {
    font-size: 52px;
    padding: 6px 24px;
    border-radius: 12px;
}
.arha-final-val .arha-sc-na {
    font-size: 26px;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.5);
}

/* Message Box */
.arha-msg {
    font-family: 'Inter', system-ui, sans-serif;
    max-width: 600px;
    margin: 30px auto;
    padding: 28px 24px;
    border-radius: 14px;
    border-left: 5px solid var(--arha-msg-accent, #ccc);
    text-align: center;
    font-size: 17px;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
}
.arha-msg-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .arha-wrap { margin: 15px 10px; border-radius: 14px; }
    .arha-head { padding: 25px 18px; }
    .arha-head h2 { font-size: 22px; }
    .arha-body { padding: 20px 15px; }
    .arha-tbl th, .arha-tbl td { padding: 10px 12px; font-size: 13px; }
    .arha-sc { min-width: 38px; padding: 4px 10px; font-size: 13px; }
    .arha-final-val { font-size: 38px; }
    .arha-final-val .arha-sc { font-size: 38px; }
}
