/*
Theme Name: De Bespaarcheck
Theme URI: https://jouwwebsite.nl
Author: Jouw Naam
Description: Een modern, supersnel en clean thema voor De Bespaarcheck.
Version: 1.0
Text Domain: bespaarcheck
*/

:root {
    --primary: #00A0DC;
    --primary-dark: #007bb0;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --text: #0F172A;
    --text-light: #64748B;
    --border: #E2E8F0;
    --radius-md: 16px;
    --radius-sm: 8px;
    --radius-hero: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Inter', sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

header { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); }
.top-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; max-width: 1280px; margin: 0 auto; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: -1px; }

.btn-outline { border: 2px solid var(--primary); color: var(--primary); padding: 8px 18px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: all 0.2s ease; }
.btn-outline:hover { background-color: var(--primary); color: white; }

.nav-container { border-top: 1px solid var(--border); padding: 12px 0; background-color: var(--bg); }
.pill-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px; max-width: 1280px; margin: 0 auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pill-nav::-webkit-scrollbar { display: none; }
.pill-nav a { background-color: var(--bg-alt); color: var(--text); padding: 8px 20px; border-radius: 50px; text-decoration: none; font-size: 0.9rem; font-weight: 600; white-space: nowrap; border: 1px solid var(--border); transition: all 0.2s ease; }
.pill-nav a:hover, .pill-nav a.active { background-color: var(--primary); color: white; border-color: var(--primary); }

.hero-container { padding: 40px 20px; max-width: 1280px; margin: 0 auto; }
.hero { background-color: #f0f9ff; background-image: radial-gradient(at 0% 0%, #bae6fd 0px, transparent 50%), radial-gradient(at 100% 100%, #e0f2fe 0px, transparent 50%), radial-gradient(at 80% 0%, #7dd3fc 0px, transparent 50%); border-radius: var(--radius-hero); padding: 80px 60px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; box-shadow: 0 20px 40px -10px rgba(0, 160, 220, 0.15); margin-bottom: 60px; position: relative; overflow: hidden; }
.hero-tagline { display: inline-block; background-color: rgba(0, 160, 220, 0.1); color: var(--primary-dark); padding: 6px 16px; border-radius: 50px; font-size: 0.9rem; font-weight: 700; margin-bottom: 24px; border: 1px solid rgba(0, 160, 220, 0.2); }
.hero h1 { font-size: 4rem; font-weight: 800; line-height: 1.05; letter-spacing: -2px; margin-bottom: 24px; color: #0c4a6e; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.25rem; color: #334155; margin-bottom: 40px; max-width: 550px; font-weight: 400; }
.hero-buttons { display: flex; gap: 16px; align-items: center; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; background-color: var(--primary); color: white; padding: 18px 40px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: all 0.3s ease; box-shadow: 0 10px 20px -5px rgba(0, 160, 220, 0.4); border: none; cursor: pointer; }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 15px 25px -5px rgba(0, 160, 220, 0.5); }
.btn-text { color: #0c4a6e; font-weight: 700; text-decoration: none; font-size: 1.1rem; transition: color 0.2s ease; text-align: center; }
.btn-text:hover { color: var(--primary); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
@keyframes float-delayed { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.glass-card { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 24px; padding: 32px; width: 100%; max-width: 380px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1); animation: float 6s ease-in-out infinite; position: relative; z-index: 2; }
.glass-header { font-size: 0.9rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.glass-amount { font-size: 3rem; font-weight: 800; color: #0c4a6e; margin-bottom: 24px; line-height: 1; }
.glass-amount span { font-size: 1.2rem; color: var(--text-light); font-weight: 600; }
.glass-bars { display: flex; align-items: flex-end; gap: 12px; height: 80px; margin-top: 20px; border-bottom: 2px solid rgba(0,0,0,0.05); padding-bottom: 10px; }
.bar { flex: 1; background-color: #e2e8f0; border-radius: 6px; transition: height 1s ease; }
.bar.active { background-color: var(--primary); }
.floating-badge { position: absolute; bottom: -20px; left: -30px; background: white; padding: 12px 20px; border-radius: 16px; font-weight: 700; color: #1e293b; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 8px; animation: float-delayed 7s ease-in-out infinite; z-index: 3; transition: opacity 0.4s ease-in-out; opacity: 1; }
.floating-badge .percent { color: #15803d; }

section { margin-bottom: 100px; }
.section-title { font-size: 2.25rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 48px; color: #0F172A; }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bento-rates { grid-template-columns: repeat(2, 1fr); }
.bento-card { background-color: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.bento-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px -10px rgba(0,160,220,0.15); }
.news-featured { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(to bottom right, #ffffff, #f8fafc); }
.card-meta { font-size: 0.85rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: block; }
.bento-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.bento-card p { color: var(--text-light); margin-bottom: 24px; font-size: 1rem; }
.card-link { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.95rem; margin-top: auto; display: inline-block; }
.news-small { display: flex; flex-direction: column; }
.news-small .icon-placeholder { width: 48px; height: 48px; background-color: #e0f2fe; border-radius: var(--radius-sm); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

.bento-grid-5 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.cat-card { grid-column: span 2; text-align: center; }
.cat-card-large { grid-column: span 3; text-align: center; }
.cat-card h3, .cat-card-large h3 { font-size: 1.25rem; margin-bottom: 12px; }
.category-icon { font-size: 2.5rem; margin-bottom: 20px; display: block; }

.bento-tips { grid-template-columns: repeat(4, 1fr); }
.tip-card { text-align: center; padding: 24px; }
.tip-card .icon-placeholder { margin: 0 auto 16px; background-color: #f1f5f9; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

footer { background-color: #0F172A; color: #94A3B8; padding: 60px 0; border-top: 1px solid #1E293B; font-size: 0.9rem; }
footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-weight: 700; color: white; font-size: 1.25rem; text-decoration: none; margin-bottom: 10px; display: block; }
.footer-socials { display: flex; gap: 16px; font-size: 1.2rem; }
.footer-socials a { color: #94A3B8; text-decoration: none; }
.footer-socials a:hover { color: white; }

/* Calculator Styling */
.calc-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 40px auto 100px; }
.calc-card { background-color: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 40px; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper span { position: absolute; left: 16px; color: var(--text-light); font-weight: 600; }
.input-wrapper input { width: 100%; padding: 14px 16px 14px 35px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 1rem; font-family: 'Inter', sans-serif; transition: border-color 0.2s; }
.input-wrapper input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 160, 220, 0.1); }
.calc-btn { width: 100%; margin-top: 30px; font-size: 1.1rem; padding: 16px; }
.result-box { background-color: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-sm); padding: 24px; margin-bottom: 30px; text-align: center; }
.result-box h3 { color: #166534; font-size: 1.2rem; margin-bottom: 5px; }
.result-box .amount { font-size: 2.5rem; font-weight: 800; color: #15803d; }
.chart-container { position: relative; height: 300px; width: 100%; }
.tips-container { margin-top: 30px; }
.tip-item { background: var(--bg-alt); padding: 16px; border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 12px; font-size: 0.95rem; }

@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding: 60px 40px; }
    .hero h1 { font-size: 3.5rem; }
    .hero p { margin: 0 auto 40px auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .bento-grid, .bento-grid-5, .bento-tips, .bento-rates { grid-template-columns: repeat(2, 1fr); }
    .news-featured, .cat-card-large, .cat-card { grid-column: span 2; }
}

@media (max-width: 640px) {
    .hero-container { padding: 20px 10px; }
    .hero { padding: 50px 20px; border-radius: 30px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-primary { width: 100%; justify-content: center; }
    .floating-badge { left: 10px; bottom: -15px; font-size: 0.9rem; padding: 8px 16px; }
    .bento-grid, .bento-grid-5, .bento-tips, .bento-rates, .calc-wrapper { grid-template-columns: 1fr; }
    .news-featured, .cat-card-large, .cat-card { grid-column: span 1; }
    footer .container { flex-direction: column; text-align: center; gap: 20px; }
    .logo { font-size: 1.2rem; }
    .btn-outline { padding: 6px 12px; font-size: 0.8rem; }
}