/* Volunteer Value Calculator — embedded in blog post */

.vc-calculator {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.vc-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(52, 211, 153, 0.2));
}

.vc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.vc-header-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

.vc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.vc-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: vc-pulse 2s ease-in-out infinite;
}

@keyframes vc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Form Controls */

.vc-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.vc-field {
    flex: 1;
    min-width: 0;
}

.vc-label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vc-select,
.vc-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.vc-select:focus,
.vc-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.vc-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.vc-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.vc-input {
    font-family: var(--font-mono);
    font-size: 16px;
}

.vc-input::placeholder {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
}

/* Skilled Volunteers */

.vc-skilled-section {
    margin-bottom: 24px;
}

.vc-skilled-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    border-top: 1px solid rgba(51, 65, 85, 0.6);
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    text-align: left;
}

.vc-skilled-toggle:hover {
    color: var(--accent-hover);
}

.vc-skilled-chevron {
    transition: transform 0.3s var(--ease-out);
    font-size: 12px;
}

.vc-skilled-section.open .vc-skilled-chevron {
    transform: rotate(180deg);
}

.vc-skilled-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
}

.vc-skilled-section.open .vc-skilled-panel {
    max-height: 500px;
}

.vc-skilled-inner {
    padding: 16px 0 8px;
}

.vc-skilled-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.vc-skilled-label {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
}

.vc-skilled-rate {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 56px;
    text-align: right;
}

.vc-skilled-input {
    width: 100px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    text-align: right;
    outline: none;
    transition: border-color 0.2s ease;
}

.vc-skilled-input:focus {
    border-color: var(--accent);
}

.vc-skilled-input::placeholder {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 12px;
}

/* Output Display */

.vc-output {
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    margin-bottom: 20px;
}

.vc-total {
    font-family: var(--font-mono);
    font-size: 52px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 4px;
    transition: transform 0.15s ease;
}

.vc-total.vc-bump {
    transform: scale(1.04);
}

.vc-total-label {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.vc-stats-row {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.vc-stat-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.vc-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Grant Language */

.vc-grant-section {
    margin-bottom: 8px;
}

.vc-grant-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.vc-grant-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
    max-height: 120px;
    overflow-y: auto;
}

.vc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.vc-copy-btn:hover {
    background: var(--accent-hover);
}

.vc-copy-btn:active {
    transform: scale(0.97);
}

.vc-copy-btn.copied {
    background: var(--accent);
    pointer-events: none;
}

/* Product Proof */

.vc-proof {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    margin: 48px 0;
    text-align: center;
}

.vc-proof-heading {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.vc-proof-sub {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.vc-proof img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lift);
}

.vc-proof figcaption {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
}

.vc-proof-cta {
    margin-top: 20px;
}

.vc-proof-cta a.btn {
    color: var(--bg-primary);
    text-decoration: none;
}

/* State Rate Table */

.vc-rate-table-wrap {
    margin: 32px 0;
}

.vc-rate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.vc-rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
    border-right: 1px solid rgba(51, 65, 85, 0.4);
    transition: background 0.15s ease;
}

.vc-rate-item:hover {
    background: var(--bg-card);
}

.vc-rate-item:nth-child(3n) {
    border-right: none;
}

.vc-rate-state {
    font-size: 14px;
    color: var(--text-secondary);
}

.vc-rate-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.vc-rate-item.vc-rate-highlight {
    background: var(--accent-dim);
}

.vc-rate-item.vc-rate-highlight .vc-rate-state,
.vc-rate-item.vc-rate-highlight .vc-rate-value {
    color: var(--accent);
    font-weight: 600;
}

/* FAQ overrides for blog context */

.vc-faq .faq-item {
    background: var(--bg-secondary);
}

/* Responsive */

@media (max-width: 640px) {
    .vc-calculator {
        padding: 20px;
    }

    .vc-form-row {
        flex-direction: column;
        gap: 12px;
    }

    .vc-total {
        font-size: 40px;
    }

    .vc-stats-row {
        flex-direction: column;
        gap: 16px;
    }

    .vc-rate-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vc-rate-item:nth-child(3n) {
        border-right: 1px solid rgba(51, 65, 85, 0.4);
    }

    .vc-rate-item:nth-child(2n) {
        border-right: none;
    }

    .vc-skilled-row {
        flex-wrap: wrap;
    }

    .vc-skilled-input {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .vc-calculator {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .vc-total {
        font-size: 34px;
    }

    .vc-output {
        padding: 20px 16px;
    }

    .vc-rate-grid {
        grid-template-columns: 1fr;
    }

    .vc-rate-item:nth-child(2n) {
        border-right: none;
    }

    .vc-rate-item {
        border-right: none;
    }
}
