/**
 * Netto-Brutto-Rechner 2026 - Calculator Page Styles
 * Specific styles for the main calculator (index.php)
 */

/* ===== Calculator Form Enhancements ===== */
.calculator-form .form-group input[type="number"] {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ===== Result Display ===== */
.results-wrapper {
    margin-top: 2rem;
}

.result-big {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.result-big .label {
    font-size: 0.875rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-big .amount {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.25rem;
}

/* ===== Breakdown Grid ===== */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.breakdown-item {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.breakdown-item .label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.breakdown-item .value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.breakdown-item .value.positive {
    color: var(--success);
}

.breakdown-item .value.negative {
    color: var(--danger);
}

.breakdown-item .value.warning {
    color: var(--warning);
}

/* ===== Detailed Breakdown Table ===== */
.breakdown-section {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.breakdown-section h4 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.breakdown-row .label {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breakdown-row .value {
    font-weight: 600;
}

.breakdown-row.total {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
}

/* ===== Chart Container ===== */
.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin: 1.5rem 0;
}

/* ===== Action Buttons Row ===== */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ===== Historical Comparison Card ===== */
.historical-card {
    margin-top: 2rem;
}

.historical-card .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: var(--input-bg);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-box .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-box .label {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

/* ===== FAQ Accordion ===== */
.faq-section {
    margin-top: 2rem;
}

.faq-section details {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.faq-section summary {
    font-weight: 600;
    cursor: pointer;
    padding: 1rem 1.25rem;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 300;
}

.faq-section details[open] summary::after {
    content: '−';
}

.faq-section details[open] summary {
    background: rgba(99, 102, 241, 0.05);
}

.faq-section details>div,
.faq-section details>p {
    padding: 0 1.25rem 1.25rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== Tooltip / Info Icons ===== */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    cursor: help;
    margin-left: 0.25rem;
}

/* ===== Mode Toggle (Easy/Expert) ===== */
.mode-toggle {
    display: flex;
    background: var(--input-bg);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.mode-toggle button {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.mode-toggle button.active {
    background: var(--primary);
    color: white;
}

/* ===== Responsive Calculator ===== */
@media (max-width: 640px) {
    .result-big .amount {
        font-size: 2.25rem;
    }

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

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}