/* calc/assets/css/calculators/steam_fee.css */

:root {
    --accent-slate: #475569; /* Slate 600 */
    --accent-slate-dark: #0F172A; /* Slate 900 */
    --gradient-slate-card: linear-gradient(135deg, #334155 0%, #0F172A 100%);
    --text-on-slate: #ffffff;
    
    --color-profit: #10B981; /* Green */
    --color-loss: #EF4444; /* Red */
}

.calc-header { margin-bottom: 24px; }
.subtitle { color: var(--text-secondary); margin-top: 8px; font-size: 16px; }

/* Grid */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1.2fr 0.8fr; } }

/* Tabs */
.mode-switcher-tabs {
    display: flex; background: #F1F5F9; padding: 4px; border-radius: 12px; margin-bottom: 24px;
}
.mode-tab {
    flex: 1; padding: 12px; border: none; background: transparent;
    color: var(--text-secondary); font-weight: 600; font-size: 14px;
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.mode-tab.active { background: #fff; color: #0F172A; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* Inputs */
.input-block-title {
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-secondary); margin-bottom: 12px; font-weight: 700;
}

.input-group { margin-bottom: 16px; }
.input-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.input-wrapper { position: relative; display: flex; align-items: center; }

.input-wrapper input {
    width: 100%; padding: 12px 14px; padding-right: 50px; /* Place for currency */
    font-size: 16px; font-weight: 500;
    border: 1px solid #E2E8F0; border-radius: 10px;
    outline: none; transition: all 0.2s;
    font-family: var(--font-main);
    background: #fff;
}
.input-wrapper input:focus { 
    border-color: #94A3B8; 
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1); 
}
.helper-text { font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.4; }

.soft-divider-small { border: none; height: 1px; background: #F1F5F9; margin: 24px 0; }

/* Currency Select inside input */
.currency-select-box {
    position: absolute; right: 6px; top: 6px; bottom: 6px;
    background: #F8FAFC; border-radius: 6px; padding: 0 8px;
    display: flex; align-items: center;
}
.curr-select {
    border: none; background: transparent; font-weight: 700;
    color: #475569; font-size: 14px; cursor: pointer; outline: none;
    appearance: none; padding-right: 0;
}

/* Result Card */
.card--slate { background: var(--gradient-slate-card); color: var(--text-on-slate); border: none; }
.card--slate h2 { color: rgba(255,255,255,0.7); font-size: 13px; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.05em; }

.result-main { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.result-value { font-size: 48px; font-weight: 800; line-height: 1; }
.result-unit { font-size: 20px; font-weight: 600; opacity: 0.7; }

.fee-row {
    background: rgba(255,255,255,0.1); padding: 10px 14px;
    border-radius: 8px; display: flex; justify-content: space-between;
    font-size: 14px; margin-bottom: 20px;
}

.summary-divider { height: 1px; background: rgba(255,255,255,0.15); margin: 20px 0; }

/* Profit Monitor */
.profit-monitor h4 { font-size: 13px; margin: 0 0 8px 0; opacity: 0.8; font-weight: 500; }
.profit-val { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.profit-val.neutral { color: #fff; opacity: 0.5; }
.profit-val.win { color: #34D399; } /* Emerald */
.profit-val.loss { color: #F87171; } /* Red */

.profit-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-item { font-size: 13px; opacity: 0.9; }
.pm-item b { display: block; font-size: 15px; margin-top: 2px; }

.steam-tip {
    margin-top: 20px; display: flex; gap: 10px; align-items: flex-start;
    font-size: 12px; opacity: 0.7; line-height: 1.4;
}

/* Content */
.info-wrapper { padding: 40px 0; margin-top: 40px; border-top: 1px solid rgba(0,0,0,0.06); margin-bottom: 20px; }
.info-wrapper .container { max-width: 800px; margin: 0 auto; }
.icon-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; font-size: 22px; font-weight: 800; color: var(--text-primary); line-height: 1.3; }
.header-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.04); flex-shrink: 0; margin-top: -2px; }
.header-icon svg { width: 20px; height: 20px; stroke-width: 2px; }

.slate-icon svg { color: #475569; }
.blue-icon svg { color: #2563EB; }

.formulas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.formula-card { background: #fff; border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; }
.formula-header { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.formula-card h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.formula-card p { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; font-weight: 500; }
.badge-slate { background: #F1F5F9; color: #475569; padding: 4px 10px; border-radius: 99px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; }
.badge-dark { background: #1F2937; color: #fff; padding: 4px 10px; border-radius: 99px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; }
.math-expression { background: #F8FAFC; border: 1px solid #E2E8F0; padding: 10px 12px; border-radius: 10px; font-weight: 700; color: #475569; text-align: center; margin-bottom: 12px; font-size: 14px; }

.soft-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, #E5E7EB, transparent); margin: 40px 0; }
.calc-description p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 20px; }
.calc-description strong { color: var(--text-primary); }

/* FAQ */
.faq-slate-style .faq-item { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; margin-bottom: 10px; overflow: hidden; transition: all 0.2s ease; }
.faq-slate-style .faq-item[open] { border-color: #64748B; box-shadow: 0 4px 16px rgba(100, 116, 139, 0.15); }
.faq-slate-style summary.faq-question { padding: 14px 18px; cursor: pointer; font-weight: 600; color: var(--text-primary); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-slate-style summary.faq-question:hover { background-color: #F9FAFB; }
.faq-slate-style .faq-item[open] summary.faq-question { color: #334155; background: #F1F5F9; }
.faq-question::after { content: '+'; font-size: 18px; color: var(--text-secondary); }
.faq-slate-style .faq-item[open] summary.faq-question::after { content: '−'; color: #334155; }
.faq-answer { padding: 18px; color: var(--text-secondary); line-height: 1.6; font-size: 14px; }

@media (max-width: 900px) {
    .formulas-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
    .icon-heading { font-size: 20px; gap: 12px; margin-bottom: 20px; flex-direction: column; align-items: center; text-align: center; }
    .header-icon { width: 40px; height: 40px; margin-top: 0; }
    .header-icon svg { width: 20px; height: 20px; }
    .formula-card { padding: 24px; text-align: center; align-items: center; }
    .formula-header { align-items: center; width: 100%; }
    .math-expression { width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
    .info-wrapper { margin-top: 30px; padding-top: 30px; }
}