/* Inflation Calculator — style.css v1.0 */

.ifcc-wrap {
    max-width: 620px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
}

/* Header */
.ifcc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ifcc-icon   { font-size: 34px; line-height: 1; }
.ifcc-title  {
    font-size: 22px !important; font-weight: 600 !important;
    margin: 0 0 3px !important; padding: 0 !important;
    border: none !important; color: #1a1a1a !important;
}
.ifcc-sub { font-size: 13px; color: #666; margin: 0; }

/* Tabs */
.ifcc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 22px;
}
@media (max-width: 500px) { .ifcc-tabs { grid-template-columns: 1fr; } }

.ifcc-tab {
    padding: 11px 10px;
    font-size: 13px; font-weight: 500;
    border: 1px solid #d8d8d8; border-radius: 10px;
    background: #fff; color: #555;
    cursor: pointer; transition: background .13s, color .13s, border-color .13s;
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; line-height: 1.3; text-align: center;
}
.ifcc-tab:hover:not(.act) { background: #fff8e1; }
.ifcc-tab.act { background: #fff3cd; color: #7A4F00; border-color: #F5C400; }
.ifcc-tab-icon { font-size: 16px; }
.ifcc-tab-sub  { font-size: 11px; font-weight: 400; opacity: .7; }

/* Panels */
.ifcc-panel { display: none; }
.ifcc-panel.act { display: block; }

/* Section label */
.ifcc-section-lbl {
    font-size: 12px; font-weight: 600; color: #888;
    margin-bottom: 12px; margin-top: 2px;
    font-style: italic;
}

/* Grid */
.ifcc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 4px;
}
@media (max-width: 480px) { .ifcc-grid { grid-template-columns: 1fr; } }

/* Labels */
.ifcc-lbl {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 500; color: #555;
    margin-bottom: 6px;
}
.ifcc-tip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%;
    background: #ebebeb; font-size: 10px; color: #777;
    cursor: help; flex-shrink: 0; font-style: normal;
}

/* Inputs */
.ifcc-iw { position: relative; }
.ifcc-iw input[type="number"],
.ifcc-iw select {
    width: 100%; box-sizing: border-box;
    padding: 9px 36px 9px 26px;
    border: 1px solid #d0d0d0; border-radius: 8px;
    font-size: 14px; color: #1a1a1a; background: #fff;
    outline: none; transition: border-color .15s;
    -moz-appearance: textfield;
}
.ifcc-iw input::-webkit-inner-spin-button,
.ifcc-iw input::-webkit-outer-spin-button { -webkit-appearance: none; }
.ifcc-iw input:focus { border-color: #B58A00; box-shadow: 0 0 0 3px rgba(181,138,0,.1); }
.ifcc-iw select {
    padding: 9px 12px; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; cursor: pointer;
}
.ifcc-pre {
    position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
    font-size: 13px; color: #999; pointer-events: none;
}
.ifcc-suf {
    position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
    font-size: 12px; color: #999; pointer-events: none;
}

/* Result card */
.ifcc-result-card {
    background: #fffbee; border: 1px solid #F5C400;
    border-radius: 12px; padding: 18px 20px;
    margin-top: 20px; margin-bottom: 16px;
    animation: ifcc-in .22s ease;
}
@keyframes ifcc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.ifcc-res-row { display: flex; align-items: center; margin-bottom: 14px; }
.ifcc-metric  { flex: 1; text-align: center; }
.ifcc-res-sep { width: 1px; height: 44px; background: #F5C400; }
.ifcc-res-val { font-size: 19px; font-weight: 700; color: #4A2E00; }
.ifcc-res-lbl { font-size: 11px; color: #B58A00; margin-top: 3px; }

/* Breakdown */
.ifcc-breakdown { border-top: 1px solid #F5C400; padding-top: 12px; margin-bottom: 12px; }
.ifcc-brow {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; font-size: 13px; border-bottom: 1px solid #fde99a;
}
.ifcc-brow:last-child { border-bottom: none; font-weight: 600; }
.ifcc-blbl { color: #7A5200; }
.ifcc-bval { color: #4A2E00; }

/* Bars */
.ifcc-bars { border-top: 1px solid #F5C400; padding-top: 12px; }
.ifcc-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.ifcc-bar-row:last-child { margin-bottom: 0; }
.ifcc-barlbl { font-size: 12px; color: #7A5200; width: 130px; flex-shrink: 0; }
.ifcc-track  { flex: 1; height: 7px; background: #fde99a; border-radius: 4px; overflow: hidden; }
.ifcc-fill   { height: 100%; border-radius: 4px; transition: width .5s ease; }
.ifcc-baramt { font-size: 12px; color: #4A2E00; width: 110px; text-align: right; flex-shrink: 0; }

/* Table */
.ifcc-table-wrap { margin-bottom: 14px; }
.ifcc-table-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ifcc-table-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }

table.ifcc-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
}
table.ifcc-table th {
    padding: 8px 10px; text-align: right; color: #888;
    font-weight: 600; font-size: 11px; text-transform: uppercase;
    letter-spacing: .4px; border-bottom: 1px solid #e8e8e8; background: #fafafa;
}
table.ifcc-table th:first-child { text-align: left; }
table.ifcc-table td {
    padding: 7px 10px; text-align: right;
    color: #1a1a1a; border-bottom: 1px solid #f0f0f0;
}
table.ifcc-table td:first-child { text-align: left; color: #555; font-weight: 500; }
table.ifcc-table tr:hover td { background: #fffbee; }
table.ifcc-table tr:last-child td { border-bottom: none; font-weight: 600; }

.ifcc-more-btn {
    width: 100%; margin-top: 8px; padding: 9px;
    font-size: 13px; color: #555; background: #fff;
    border: 1px solid #e0e0e0; border-radius: 8px;
    cursor: pointer; transition: background .13s;
}
.ifcc-more-btn:hover { background: #fffbee; }

.ifcc-reset-btn {
    display: block; width: 100%; margin-top: 10px; padding: 9px;
    font-size: 13px; color: #999; background: none;
    border: 1px solid #e8e8e8; border-radius: 8px;
    cursor: pointer; transition: background .13s;
}
.ifcc-reset-btn:hover { background: #f5f5f5; color: #333; }
