/* assets/css/calculators/calorie-calculator.css */

/* Widget Container */
.cal-widget-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Calculator Form */
.calculator-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

/* Input Group */
.input-wrapper {
    margin-bottom: 1.5rem;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.input-header label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.unit-select {
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #f8fafc;
    cursor: pointer;
    color: #334151;
}

.unit-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Inputs */
.input-field {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fff;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Dual Inputs (ft/in) */
.dual-input-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dual-input-wrapper {
    position: relative;
}

.dual-input-wrapper input {
    width: 100%;
    padding: 0.8rem;
    padding-right: 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
}

/* Select Field */
select.input-field {
    cursor: pointer;
    background-color: #fff;
}

/* Action Button */
.calc-action-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    margin-top: 10px;
}

.calc-action-btn:hover {
    transform: translateY(-2px);
}

/* Results Grid */
.result-container {
    margin-top: 2rem;
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.result-card:hover {
    transform: translateY(-3px);
}

/* Card Colors */
.result-card.maintenance {
    border-top: 5px solid #3b82f6;
}

/* Blue */
.result-card.loss {
    border-top: 5px solid #10b981;
}

/* Green */
.result-card.extreme {
    border-top: 5px solid #f59e0b;
}

/* Orange */
.result-card.gain {
    border-top: 5px solid #ef4444;
}

/* Red */

.result-card h4 {
    color: #64748b;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.result-unit {
    font-size: 1rem;
    color: #9ca3af;
    font-weight: 500;
}

/* SEO Content */
.info-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 3rem;
}

.info-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.info-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.info-section ul {
    padding-left: 20px;
    color: var(--text-muted);
}

.info-section li {
    margin-bottom: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}