/* Color Palette matched to NovusTools Standard */
: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; }
.hidden { display: none !important; }
.mt-4 { margin-top: 16px; }

/* 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; }

/* Editor Card (Left) */
.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); }

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

/* Textarea */
.textarea-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.autosave-status { font-size: 0.75rem; color: var(--accent-green); display: flex; align-items: center; gap: 4px; opacity: 0; transition: opacity 0.3s; }
.autosave-status.visible { opacity: 1; }

textarea {
    width: 100%; height: 400px; padding: 16px; border: 1px solid var(--border-light);
    border-radius: 12px; resize: vertical; font-family: 'Inter', sans-serif;
    font-size: 1rem; box-sizing: border-box; margin-bottom: 20px; background: var(--bg-page);
    color: var(--text-main); line-height: 1.6; transition: border-color 0.2s;
}
textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }

.format-options { display: flex; gap: 12px; }
.outline-btn {
    display: flex; align-items: center; gap: 6px; padding: 8px 16px;
    background: transparent; border: 1px solid var(--border-light); border-radius: 8px;
    color: var(--text-main); font-weight: 500; font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
}
.outline-btn:hover { background: var(--bg-page); border-color: var(--text-muted); }
.outline-btn .material-symbols-rounded { font-size: 18px; }

/* Dashboard Card (Right) */
.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: 16px; }

.insight-box { display: flex; align-items: flex-start; gap: 12px; background: #EEF2FF; border: 1px solid #C7D2FE; padding: 16px; border-radius: 12px; }

.metrics-row { display: flex; justify-content: space-between; gap: 10px; 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); }
.metric-value.error { color: var(--accent-red); }
.highlight-blue { color: var(--primary-color); }

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

.preview-box {
    background: var(--bg-page); border: 1px solid var(--border-light); border-radius: 12px;
    padding: 16px; min-height: 120px; max-height: 250px; overflow-y: auto;
    font-size: 0.9rem; color: var(--text-muted); white-space: pre-wrap; word-wrap: break-word;
}

.primary-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--primary-color); color: white; border: none; padding: 14px;
    border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.2s;
}
.primary-btn:hover { background: var(--primary-hover); }

/* Content Cards & Footer */
.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); }
.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 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; outline: 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); }

/* Ad slots */
.ad-slot { min-height: 100px; border: 1px dashed var(--border-light); background: var(--bg-page); display: flex; align-items: center; justify-content: center; position: relative; border-radius: 12px; margin: 40px 0; }
.ad-label { position: absolute; top: 8px; left: 12px; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

/* 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; }
}