/* 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 380px; gap: 32px; margin-bottom: 60px; }

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

/* Presets */
.preset-wrapper, .drill-wrapper { margin-bottom: 20px; }
.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, .drill-btn {
    padding: 6px 14px; 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;
}
.preset-btn.active, .drill-btn.active, .preset-btn:hover, .drill-btn:hover {
    background: #EEF2FF; color: var(--primary-color); border-color: var(--primary-color);
}

/* Play Area */
.play-area-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); }
#game-status { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
.start-btn { background: var(--primary-color); color: white; border: none; padding: 10px 24px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: background 0.2s; font-size: 1rem; }
.start-btn:hover { background: var(--primary-hover); }

.play-area {
    width: 100%; height: 450px; background: #111827; /* Dark background for contrast */
    border-radius: 12px; position: relative; overflow: hidden;
    cursor: crosshair; box-shadow: inset 0 4px 20px rgba(0,0,0,0.5);
}

/* Target Logic */
.target {
    position: absolute; width: 40px; height: 40px;
    background: radial-gradient(circle, #38BDF8 0%, #6366F1 100%);
    border: 2px solid #FFFFFF; border-radius: 50%;
    cursor: crosshair; transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
    transition: transform 0.05s ease-out;
}
.target:active { transform: translate(-50%, -50%) scale(0.8); }

/* Dashboard 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: 24px; 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; }

.live-stats { display: flex; justify-content: space-between; background: var(--bg-page); border: 1px solid var(--border-light); border-radius: 12px; padding: 16px; margin-bottom: 24px; }
.stat-block { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.stat-live-val { font-size: 1.8rem; font-weight: 800; color: var(--text-main); font-family: 'Space Grotesk', sans-serif; line-height: 1; }
.highlight-blue { color: var(--primary-color); }

.metrics-row { display: flex; justify-content: space-between; border-top: 1px solid var(--border-light); padding-top: 16px; margin-bottom: 24px; }
.metric-item { display: flex; flex-direction: column; gap: 4px; }
.metric-label { font-size: 0.85rem; color: var(--text-muted); }
.metric-value { font-size: 1.2rem; font-weight: 700; color: var(--text-main); }

/* Performance Report */
.divider { height: 1px; background: var(--border-light); margin: 24px 0; }
.rank-container { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rank-badge { padding: 6px 16px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; color: white; background: var(--text-muted); }
.rank-pro { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); } /* Gold */
.rank-radiant { background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%); } /* Pink */
.rank-diamond { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%); } /* Blue */

.insight-list { list-style: none; margin-bottom: 20px; padding: 0; }
.insight-list li { font-size: 0.9rem; color: var(--text-main); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.insight-list li .material-symbols-rounded { font-size: 18px; color: var(--primary-color); }
.insight-list li span:last-child { margin-left: auto; color: var(--text-muted); font-weight: 500; }

.share-btn { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--primary-color); background: #EEF2FF; color: var(--primary-color); font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s; }
.share-btn:hover { background: #E0E7FF; }

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

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

.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; font-size: 0.9rem; }

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