/* Color Palette matched to the Freelance Tool */
:root {
    --bg-page: #F9FAFB;
    --bg-card: #FFFFFF;
    --border-light: #E5E7EB;
    --text-main: #111827;
    --text-muted: #6B7280;
    --primary-color: #6366F1;
    --primary-hover: #4F46E5;
    --accent-green: #10B981;
    --accent-red: #EF4444;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body.light-bento-theme {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* GOLYÓÁLLÓ KÖZÉPRE IGAZÍTÁS */
.centered-wrapper {
    max-width: 1100px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.material-symbols-rounded { vertical-align: middle; }

/* Tool Header */
.tool-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tool-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.1rem;
}

.tool-logo .logo-icon {
    color: var(--primary-color);
    background: #EEF2FF;
    padding: 6px;
    border-radius: 8px;
    font-size: 22px;
}

.tool-logo strong { font-weight: 700; }

.tool-nav { display: flex; gap: 24px; }
.tool-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.tool-nav a:hover { color: var(--primary-color); }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text-main); }

/* Hero & Badge */
.hero-section { text-align: center; margin-bottom: 50px; }

.update-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EEF2FF;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}
.update-badge .material-symbols-rounded { font-size: 16px; }

.hero-section h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-main);
}

.subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Grid Layout */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    margin-bottom: 60px;
}

/* Input Card */
.input-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; color: var(--text-main); }

/* Presets */
.preset-wrapper { margin-bottom: 24px; }
.preset-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.preset-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.preset-btn {
    padding: 6px 14px; border: 1px solid var(--border-light); background: var(--bg-card);
    border-radius: 20px; color: var(--text-muted); font-size: 0.85rem; cursor: pointer;
    transition: all 0.2s; font-family: inherit; font-weight: 500;
}
.preset-btn.active, .preset-btn:hover {
    background: var(--primary-color); color: white; border-color: var(--primary-color);
}

/* Sliders & Inputs */
.input-group { margin-bottom: 24px; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.label-row label { font-size: 0.9rem; font-weight: 600; color: var(--text-main); }
.input-value-display { background: var(--bg-page); padding: 4px 12px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; border: 1px solid var(--border-light); }
.help-icon { font-size: 0.8rem; color: var(--text-muted); border-bottom: 1px dotted var(--text-muted); cursor: help; }

.range-slider {
    width: 100%; height: 6px; background: #E5E7EB; border-radius: 4px;
    outline: none; -webkit-appearance: none; margin-bottom: 8px;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
    border-radius: 50%; background: var(--primary-color); cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hidden-number { display: none; }

.divider { height: 1px; background: var(--border-light); margin: 32px 0; }

/* Sticky Results Card */
.result-card-container { position: relative; }
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.result-header { font-size: 0.8rem; text-transform: uppercase; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
.main-result { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text-main); line-height: 1; margin-bottom: 4px; }
.sub-result { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }

/* Progress Bar Breakdown */
.breakdown-box { background: var(--bg-page); border-radius: 12px; padding: 16px; margin-bottom: 24px; }
.breakdown-title { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 12px 0; }
.progress-bar { width: 100%; height: 8px; background: #E5E7EB; border-radius: 4px; display: flex; overflow: hidden; margin-bottom: 12px; }
.human-segment { background: var(--accent-red); transition: width 0.5s ease; }
.ai-segment { background: var(--primary-color); transition: width 0.5s ease; }

.legend { display: flex; flex-direction: column; gap: 8px; }
.legend-item { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-human { background: var(--accent-red); }
.dot-ai { background: var(--primary-color); }
.legend-item strong { margin-left: auto; color: var(--text-main); }

/* Metrics Row */
.metrics-row { display: flex; justify-content: space-between; border-top: 1px solid var(--border-light); padding-top: 24px; margin-bottom: 24px; }
.metric-item { display: flex; flex-direction: column; gap: 4px; }
.metric-label { font-size: 0.8rem; color: var(--text-muted); }
.metric-value { font-size: 1.25rem; font-weight: 700; color: var(--text-main); }
.highlight-blue { color: var(--primary-color); }

/* Insight Box */
.insight-box {
    display: flex; align-items: flex-start; gap: 12px; background: #EEF2FF;
    border: 1px solid #C7D2FE; padding: 16px; border-radius: 12px;
}
.insight-box .material-symbols-rounded { color: var(--primary-color); }
.insight-box p { margin: 0; font-size: 0.85rem; color: #3730A3; line-height: 1.5; }

/* Content Cards (SEO & FAQ) */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
}
.content-card h2, .faq-section h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 24px; color: var(--text-main); }

.authority-links { display: flex; gap: 12px; list-style: none; padding: 0; flex-wrap: wrap; }
.authority-links a {
    display: inline-block; padding: 8px 16px; background: #EEF2FF; color: var(--primary-color);
    border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: background 0.2s;
}
.authority-links a:hover { background: #E0E7FF; }

/* SEO Typography */
.seo-article h3 { font-size: 1.4rem; margin: 32px 0 16px; color: var(--text-main); }
.seo-article p { margin-bottom: 16px; color: var(--text-muted); line-height: 1.8; }
.seo-article ul { margin-left: 20px; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }

/* FAQ Accordion Native */
.faq-accordion details {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: 12px; margin-bottom: 12px; padding: 16px 20px;
}
.faq-accordion summary {
    font-weight: 600; font-size: 1rem; color: var(--text-main);
    cursor: pointer; list-style: none; outline: none;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion details[open] summary { margin-bottom: 12px; color: var(--primary-color); }
.faq-accordion .faq-content { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* Footer Links & Styles */
.tool-footer {
    border-top: 1px solid var(--border-light);
    padding: 60px 0 30px;
    margin-top: 60px;
    background: var(--bg-card);
}
.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-link:hover { color: var(--primary-color); }

.back-to-hub-btn {
    display: inline-flex; align-items: center; gap: 8px; background: var(--bg-page);
    border: 1px solid var(--border-light); padding: 10px 20px; border-radius: 8px;
    color: var(--text-main); font-weight: 600; text-decoration: none;
    transition: all 0.2s; font-size: 0.9rem;
}
.back-to-hub-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

.footer-copy { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-legal a:hover { color: var(--primary-color); }

/* Cookie Bar */
.cookie-bar {
    position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card);
    border-top: 1px solid var(--border-light); padding: 16px 0; z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05); display: none;
}
.cookie-content { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-content p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.cookie-btn { background: var(--primary-color); color: white; border: none; padding: 8px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* Responsive */
@media (max-width: 900px) {
    .calc-grid { grid-template-columns: 1fr; }
    .result-card { position: static; }
    .tool-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border-light); padding: 20px; }
    .tool-nav.open { display: flex; }
    .mobile-menu-btn { display: block; }
}