/* ═══════════════════════════════════════════════════
   Battery Tester — styles
   ═══════════════════════════════════════════════════ */

.battery-tester {
    padding: 60px 0;
    background: #f8f9fa;
}

/* ── Main card ───────────────────────────────────── */
.battery-main-card {
    background: #fff;
    border-radius: 15px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

/* ── Visual battery ──────────────────────────────── */
.battery-visual-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.battery-visual {
    display: flex;
    align-items: center;
    gap: 0;
}

.battery-terminal {
    width: 10px;
    height: 28px;
    background: #adb5bd;
    border-radius: 0 4px 4px 0;
    flex-shrink: 0;
}

.battery-body {
    position: relative;
    width: 160px;
    height: 80px;
    border: 4px solid #495057;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f3f4;
    order: -1;
}

.battery-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 0%;
    transition: width 0.6s ease, background 0.4s ease;
    border-radius: 6px;
}

.battery-percent-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #212529;
    text-shadow: 0 1px 3px rgba(255, 255, 255, .7);
    pointer-events: none;
}

/* ── Stat cards ──────────────────────────────────── */
.stat-card {
    background: #fff;
    border: 1.5px solid;
    border-radius: 12px;
    padding: 16px 18px;
    text-align: center;
    height: 100%;
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #212529;
}

/* ── SEO content ─────────────────────────────────── */
.seo-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.seo-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.seo-content h3 {
    color: #007bff;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.seo-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.seo-content ul {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.seo-content li {
    margin-bottom: 8px;
}

.seo-content strong {
    color: #495057;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .battery-main-card {
        padding: 20px 16px;
    }

    .battery-body {
        width: 130px;
        height: 65px;
    }
}