/* ============================================
   BODH Gating Styles
   Mobile-first, Vanilla CSS
   ============================================ */

.bodh-toolkit-container {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    margin: 32px 0;
    overflow: hidden;
    border: 1px solid #e8edf4;
}

.bodh-toolkit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8faff;
    border-bottom: 1px solid #e8edf4;
}

.bodh-toolkit-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a2332;
}

.bodh-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bodh-badge.premium { background: #e6f7e6; color: #0a7e0a; }
.bodh-badge.locked  { background: #fef3e8; color: #b45a1c; }

.bodh-toolkit-body {
    padding: 20px;
    position: relative;
}

.bodh-calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .bodh-calc-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.bodh-input-group { display: flex; flex-direction: column; gap: 4px; }

.bodh-input-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #4a5a6e;
}

.bodh-input-group input {
    padding: 10px 14px;
    border: 1.5px solid #dce2ec;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #1a2332;
    background: #fafcff;
    transition: border-color 0.2s;
}

.bodh-input-group input:focus { outline: none; border-color: #2d7aff; }
.bodh-input-group input:disabled { background: #f0f3f8; color: #7a8a9e; cursor: not-allowed; }

.bodh-btn-primary {
    width: 100%;
    padding: 14px;
    background: #2d7aff;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.bodh-btn-primary:hover  { background: #1a5fd9; }
.bodh-btn-primary:active { transform: scale(0.98); }

.bodh-calc-results {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px dashed #e8edf4;
}

@media (min-width: 768px) {
    .bodh-calc-results { grid-template-columns: 1fr 1fr 1fr; }
}

.bodh-result-card {
    background: #f8faff;
    padding: 14px 16px;
    border-radius: 10px;
    text-align: center;
}

.bodh-result-card.highlight {
    background: #eef5ff;
    border: 1.5px solid #2d7aff;
}

.bodh-result-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6a7a8e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bodh-result-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a2332;
    margin-top: 4px;
}

.bodh-result-card.highlight .bodh-result-value { color: #2d7aff; }

/* Gate Overlay */
.bodh-toolkit-container.gated { position: relative; }

.bodh-gate-mockup {
    filter: blur(4px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.bodh-gate-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 20px;
    z-index: 10;
}

.bodh-gate-card {
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(45, 122, 255, 0.15);
}

.bodh-gate-icon { font-size: 2.8rem; margin-bottom: 8px; }

.bodh-gate-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2332;
}

.bodh-gate-card p {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    color: #4a5a6e;
    line-height: 1.5;
}

.bodh-btn-premium {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #2d7aff, #1a5fd9);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(45, 122, 255, 0.3);
}

.bodh-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(45, 122, 255, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.bodh-gate-subtext { display: block; margin-top: 12px; font-size: 0.75rem; color: #8a9aae; }

@media (max-width: 480px) {
    .bodh-gate-card { padding: 24px 16px; }
    .bodh-gate-card h4 { font-size: 1rem; }
    .bodh-btn-premium { padding: 12px 24px; font-size: 0.9rem; }
    .bodh-result-value { font-size: 1.1rem; }
}
