/**
 * Health Hub Premium Styling
 */
:root {
    --hh-primary: #3b82f6;
    --hh-secondary: #06b6d4;
    --hh-accent: #f43f5e;
    --hh-success: #10b981;
    --hh-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --hh-card: #ffffff;
}

[data-theme="dark"] {
    --hh-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --hh-card: #1e293b;
}

.health-hub {
    background: var(--hh-bg);
    border-radius: 40px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.hh-header {
    text-align: center;
    margin-bottom: 50px;
}

.hh-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gray-800);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

[data-theme="dark"] .hh-title {
    color: #fff;
}

.hh-title .icon {
    color: var(--hh-primary);
    width: 40px;
    height: 40px;
}

.hh-desc {
    color: var(--gray-500);
    font-weight: 600;
}

.hh-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 850px) {
    .hh-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Card */
.hh-form-card {
    background: var(--hh-card);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.hh-gender-selector {
    display: flex;
    background: var(--gray-100);
    padding: 6px;
    border-radius: 20px;
    margin-bottom: 30px;
}

[data-theme="dark"] .hh-gender-selector {
    background: rgba(255, 255, 255, 0.05);
}

.gender-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    border-radius: 16px;
    font-weight: 800;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.gender-btn.active {
    background: #fff;
    color: var(--hh-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .gender-btn.active {
    background: var(--hh-primary);
    color: #fff;
}

.hh-field {
    margin-bottom: 24px;
}

.hh-field label {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.hh-input-box {
    position: relative;
}

.hh-input-box input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: 2px solid var(--gray-100);
    background: var(--gray-50);
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s;
}

[data-theme="dark"] .hh-input-box input {
    background: rgba(0, 0, 0, 0.2);
    border-color: #334155;
    color: #fff;
}

.hh-input-box .unit {
    position: absolute;
    left: 20px;
    top: 18px;
    color: var(--gray-400);
    font-weight: 900;
    font-size: 0.8rem;
}

.hh-select {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid var(--gray-100);
    background: var(--gray-50);
    font-weight: 700;
}

[data-theme="dark"] .hh-select {
    background: rgba(0, 0, 0, 0.2);
    border-color: #334155;
    color: #fff;
}

.hh-submit-btn {
    width: 100%;
    background: var(--hh-primary);
    color: #fff;
    border: none;
    padding: 20px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.hh-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Result Card */
.hh-result-card {
    background: var(--hh-card);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hh-gauge-container {
    position: relative;
    margin: 0 auto 30px;
    width: 200px;
}

.hh-gauge-value {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}

.hh-gauge-value span {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--hh-primary);
}

.hh-gauge-value small {
    font-weight: 800;
    color: var(--gray-500);
    display: block;
    margin-top: -5px;
}

.hh-cal-main {
    margin-bottom: 30px;
}

.hh-cal-main h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--hh-primary);
    margin: 0;
}

.hh-cal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.hh-cal-box {
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.hh-cal-box span {
    font-size: 0.8rem;
    font-weight: 800;
    opacity: 0.8;
}

.hh-cal-box strong {
    font-size: 1.5rem;
    font-weight: 900;
}

.hh-cal-box.loss {
    background: #fef2f2;
    color: #ef4444;
}

.hh-cal-box.gain {
    background: #f0fdf4;
    color: #10b981;
}

.hh-advice {
    margin-top: 30px;
    background: var(--gray-50);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    text-align: right;
}

[data-theme="dark"] .hh-advice {
    background: rgba(255, 255, 255, 0.02);
}

.hh-advice i {
    color: var(--hh-primary);
    flex-shrink: 0;
}

.hh-advice p {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

[data-theme="dark"] .hh-advice p {
    color: var(--gray-400);
}