/* NovusTools Standard Variables (Blue Theme) */
:root {
    --bg-page: #F9FAFB;
    --bg-card: #FFFFFF;
    --border-light: #E5E7EB;
    --text-main: #111827;
    --text-muted: #6B7280;
    --primary-color: #0071e3;
    --primary-hover: #005bb5;
    --accent-green: #10B981;
}

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

/* Strict Centering */
.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: #f0f7ff; 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 Section */
.hero-section { text-align: center; margin-bottom: 50px; }
.update-badge {
    display: inline-flex; align-items: center; gap: 6px; background: #f0f7ff;
    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-family: 'Space Grotesk', sans-serif; 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; }

/* Layout Grid */
.calc-grid { display: grid; grid-template-columns: 1fr 450px; gap: 32px; margin-bottom: 60px; align-items: start; }
.bento-card { background: var(--bg-card); border-radius: 16px; padding: 32px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); border: 1px solid var(--border-light); }

/* Left Panel */
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-header h2, .sticky-wrapper h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; margin: 0; color: var(--text-main); }

.text-btn { background: none; border: none; color: var(--text-muted); display: flex; align-items: center; gap: 4px; font-size: 0.9rem; cursor: pointer; transition: color 0.2s; font-weight: 500; }
.text-btn:hover { color: var(--accent-red); }
.text-btn span { font-size: 1.1rem; }

textarea {
    width: 100%; height: 250px; padding: 16px; border: 1px solid var(--border-light);
    border-radius: 12px; background: var(--bg-page); color: var(--text-main);
    font-family: 'Inter', monospace; font-size: 1rem; resize: vertical;
    box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s; line-height: 1.6;
}
textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1); }
textarea[readonly] { background: #F3F4F6; cursor: default; }

/* Preset Buttons */
.preset-wrapper { margin-top: 20px; }
.preset-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.preset-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.case-btn {
    background: var(--bg-card); border: 1px solid var(--border-light);
    color: var(--text-main); padding: 8px 16px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease;
}
.case-btn:hover, .case-btn.active { border-color: var(--primary-color); color: var(--primary-color); background: #f0f7ff; }

/* Right Panel (Sticky) */
.result-card-container { position: relative; }
.sticky-wrapper { position: sticky; top: 100px; display: flex; flex-direction: column; border-top: 4px solid var(--primary-color); }
.sticky-wrapper textarea { flex-grow: 1; min-height: 250px; margin-top: 16px; }

.metrics-bar { display: flex; justify-content: space-between; background: var(--bg-page); border-radius: 8px; padding: 12px 16px; margin-top: 16px; border: 1px solid var(--border-light); }
.metric { display: flex; flex-direction: column; align-items: center; }
.metric span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.metric strong { font-size: 1.25rem; color: var(--text-main); font-weight: 700; }

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

/* SEO & Content Zones */
.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); font-family: 'Space Grotesk', sans-serif; }
.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; }

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

/* Footer */
.tool-footer { border-top: 1px solid var(--border-light); padding: 60px 0 30px; margin-top: 60px; background: var(--bg-card); }
.footer-col h4 { margin-bottom: 16px; color: var(--text-main); font-size: 0.95rem; font-weight: 700; }
.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; transition: background 0.2s; }
.cookie-btn:hover { background: var(--primary-hover); }

/* Responsive */
@media (max-width: 900px) {
    .calc-grid { grid-template-columns: 1fr; }
    .sticky-wrapper { position: relative; top: 0; }
    .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; }
}