/* Beldholm Nutrition Calculator - Stylesheet v1.0.0 */

.bb-calc {
    background: #22265F;
    border-radius: 12px;
    padding: 2rem;
    font-family: 'Oxygen', sans-serif;
    color: #ffffff;
    max-width: 680px;
    box-sizing: border-box;
}

.bb-calc *,
.bb-calc *::before,
.bb-calc *::after {
    box-sizing: border-box;
}

.bb-calc h2 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #C6A466;
    margin: 0 0 0.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
}

.bb-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 1rem;
    line-height: 1.6;
}

.bb-subtitle-gold {
    color: #C6A466 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 0.5rem !important;
}

.bb-subtitle:last-of-type {
    margin-bottom: 1.75rem;
}

.bb-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    display: block;
    font-family: 'Oxygen', sans-serif;
}

.bb-section {
    margin-bottom: 1.5rem;
}

/* Segmented button groups */
.bb-seg {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid #C6A466;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
}

.bb-seg button {
    padding: 9px 20px !important;
    font-size: 13px !important;
    font-family: 'Oxygen', sans-serif !important;
    font-weight: 400 !important;
    background: #22265F !important;
    border: none !important;
    border-right: 1px solid #C6A466 !important;
    cursor: pointer !important;
    color: #ffffff !important;
    transition: background 0.18s !important;
    white-space: nowrap !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.bb-seg button:last-child {
    border-right: none !important;
}

.bb-seg button.active {
    background: #C6A466 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.bb-seg button:hover:not(.active) {
    background: rgba(198, 164, 102, 0.25) !important;
    color: #ffffff !important;
}

/* Weight input */
.bb-weight-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.bb-weight-input {
    width: 160px;
    padding: 9px 12px;
    font-size: 15px;
    font-family: 'Oxygen', sans-serif;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(198, 164, 102, 0.5);
    border-radius: 6px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.18s;
    -webkit-appearance: none;
    appearance: none;
}

.bb-weight-input:focus {
    border-color: #C6A466;
}

.bb-weight-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Calculate button */
.bb-calc-btn {
    width: 100%;
    padding: 13px !important;
    font-size: 15px !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    background: #C6A466 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    margin-top: 0.5rem !important;
    transition: background 0.18s, transform 0.1s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
    display: block !important;
}

.bb-calc-btn:hover {
    background: #d4b87a !important;
    color: #ffffff !important;
}

.bb-calc-btn:active {
    transform: scale(0.99) !important;
    background: #b8923e !important;
}

/* Results section */
.bb-results {
    display: none;
    margin-top: 1.75rem;
    border-top: 1px solid rgba(198, 164, 102, 0.3);
    padding-top: 1.5rem;
}

.bb-results.visible {
    display: block;
}

.bb-section-title {
    font-size: 11px;
    font-family: Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #C6A466;
    margin-bottom: 12px;
    font-weight: 700;
}

/* Metric cards */
.bb-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 1.5rem;
}

.bb-metric {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(198, 164, 102, 0.25);
    border-radius: 8px;
    padding: 0.875rem 1rem;
}

.bb-metric-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}

.bb-metric-value {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1;
    margin: 0;
}

.bb-metric-unit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 3px;
}

.bb-divider {
    border: none;
    border-top: 1px solid rgba(198, 164, 102, 0.2);
    margin: 1.25rem 0;
}

/* Protein rows */
.bb-protein-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #ffffff;
}

.bb-protein-row:last-child {
    border-bottom: none;
}

.bb-protein-phase {
    color: rgba(255, 255, 255, 0.65);
}

.bb-protein-range {
    font-weight: 700;
    color: #C6A466;
    font-family: Helvetica, Arial, sans-serif;
}

/* Alert boxes */
.bb-alert {
    border-radius: 6px;
    padding: 0.875rem 1rem;
    font-size: 12.5px;
    line-height: 1.65;
    margin-bottom: 10px;
    border-left: 3px solid;
    color: inherit;
}

.bb-alert strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 700;
}

.bb-alert-danger {
    background: rgba(227, 75, 75, 0.15);
    border-color: #e34b4b;
    color: #ffc4c4;
}

.bb-alert-warning {
    background: rgba(198, 164, 102, 0.12);
    border-color: #C6A466;
    color: #e8d5a8;
}

.bb-alert-info {
    background: rgba(99, 153, 255, 0.12);
    border-color: #6399ff;
    color: #c4d8ff;
}

.bb-alert-success {
    background: rgba(80, 180, 120, 0.12);
    border-color: #50b478;
    color: #b8f0cf;
}

/* Disclaimer */
.bb-disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    border-top: 1px solid rgba(198, 164, 102, 0.2);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .bb-calc {
        padding: 1.25rem;
    }
    .bb-seg button {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    .bb-metrics {
        grid-template-columns: 1fr 1fr;
    }
}
