﻿/* ZeroSSL website — app.css */
:root {
    --blue-900: #0e2a5c;
    --blue-800: #1a3d8a;
    --blue-700: #1a56db;
    --blue-600: #2563eb;
    --blue-400: #60a5fa;
    --blue-100: #dbeafe;
    --blue-50:  #eff6ff;
    --green:    #16a34a;
    --red:      #dc2626;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --white:    #ffffff;
    --radius:   8px;
    --shadow:   0 4px 24px rgba(26,86,219,.10);
    --shadow-lg:0 12px 40px rgba(26,86,219,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--gray-900); background: var(--gray-100); line-height: 1.6; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.zssl-nav { background: var(--white); border-bottom: 1px solid var(--gray-300); position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow: visible; }
.zssl-nav-inner { max-width: 1200px; margin: 0 auto; padding: .75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; overflow: visible; }
.zssl-brand { position: relative; z-index: 1001; align-self: stretch; min-width: 140px; }
.zssl-brand img { position: absolute; height: 100px; width: auto; top: -35px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.12)); }
.nav-links { display: flex; gap: .75rem; list-style: none; align-items: center; flex-wrap: wrap; }
.nav-links a:not(.nav-btn) { color: var(--gray-700); font-weight: 500; font-size: .93rem; padding: .3rem .1rem; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:not(.nav-btn):hover { color: var(--blue-700); border-bottom-color: var(--blue-700); text-decoration: none; }
.nav-btn { display: inline-block; padding: .45rem 1.1rem; border-radius: 6px; font-size: .93rem; font-weight: 600; cursor: pointer; border: none; transition: all .2s; white-space: nowrap; }
.nav-btn-primary { background: var(--blue-700); color: var(--white) !important; }
.nav-btn-primary:hover { background: var(--blue-800); text-decoration: none; }
.nav-btn-ghost { background: transparent; color: var(--blue-700) !important; border: 1.5px solid var(--blue-700); }
.nav-btn-ghost:hover { background: var(--blue-50); text-decoration: none; }
/* Taal dropdown */
.lang-dropdown-wrap { position: relative; display: flex; align-items: center; margin-left: .25rem; padding-left: .75rem; border-left: 1px solid var(--gray-300); }
.lang-dropdown-btn { display: flex; align-items: center; gap: .35rem; background: none; border: 1.5px solid var(--gray-300); border-radius: 6px; padding: .3rem .6rem; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--gray-700); transition: all .2s; white-space: nowrap; }
.lang-dropdown-btn:hover { border-color: var(--blue-600); color: var(--blue-700); }
.lang-dropdown-btn img { border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.lang-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--gray-300); border-radius: 8px; box-shadow: var(--shadow-lg); min-width: 140px; list-style: none; padding: .35rem 0; z-index: 2000; }
.lang-dropdown.open { display: block; }
.lang-dropdown li a { display: flex; align-items: center; gap: .5rem; padding: .5rem .9rem; font-size: .9rem; color: var(--gray-700); text-decoration: none; transition: background .15s; }
.lang-dropdown li a:hover { background: var(--blue-50); color: var(--blue-700); }
.lang-dropdown li a.active { font-weight: 700; color: var(--blue-700); }
.lang-dropdown li a img { border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
@media (max-width: 768px) {
    .lang-dropdown-wrap { padding-left: 0; border-left: none; }
    .lang-dropdown { position: static; box-shadow: none; border: 1px solid var(--gray-300); margin-top: .25rem; }
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .3rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 62px; left: 0; background: var(--white); border-bottom: 1px solid var(--gray-300); padding: 1rem 1.5rem; gap: .6rem; }
    .nav-links.open { display: flex; }
}

/* ── MAIN & FOOTER ────────────────────────────────────────────────────────── */
main { min-height: calc(100vh - 130px); }
.zssl-footer { background: var(--blue-900); color: rgba(255,255,255,.65); padding: 1.25rem 1.5rem; font-size: .85rem; }
.zssl-footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,.7); }
.footer-links a:hover { color: var(--white); text-decoration: none; }

/* ── MODALS ───────────────────────────────────────────────────────────────── */
.zssl-modal { border-radius: 12px; border: none; box-shadow: var(--shadow-lg); }
.zssl-modal .modal-header { padding: 1.5rem 1.5rem .5rem; }
.zssl-modal .modal-body { padding: 1rem 1.5rem 1.5rem; }
.modal-body a { color: var(--blue-700); }
.modal-body a:hover { text-decoration: underline; }

/* ── HOMEPAGE ─────────────────────────────────────────────────────────────── */
.hero-section { background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%); color: var(--white); padding: 5rem 1.5rem 4rem; text-align: center; }
.hero-section h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.hero-section .subtitle { font-size: 1.2rem; opacity: .85; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary { background: var(--white); color: var(--blue-700); padding: .85rem 2rem; border-radius: 8px; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; transition: all .2s; display: inline-block; }
.btn-hero-primary:hover { background: var(--blue-50); text-decoration: none; color: var(--blue-800); }
.btn-hero-ghost { background: transparent; color: var(--white); padding: .85rem 2rem; border-radius: 8px; font-weight: 700; font-size: 1rem; border: 2px solid rgba(255,255,255,.5); cursor: pointer; transition: all .2s; display: inline-block; }
.btn-hero-ghost:hover { background: rgba(255,255,255,.1); text-decoration: none; color: var(--white); }

/* Domein-invoer op homepage */
.domain-form-section { background: #cfe0f7; padding: 3rem 1.5rem; border-bottom: 1px solid #a8c8ef; }
.domain-form-wrap { max-width: 700px; margin: 0 auto; text-align: center; }
.domain-form-wrap h2 { font-size: 1.6rem; font-weight: 700; color: var(--blue-900); margin-bottom: .5rem; }
.domain-form-wrap p { color: var(--gray-500); margin-bottom: 1.5rem; }
.domain-input-row { display: flex; gap: .5rem; }
.domain-input-row input { flex: 1; padding: .75rem 1rem; border: 1.5px solid var(--gray-300); border-radius: 8px; font-size: 1rem; transition: border-color .2s; }
.domain-input-row input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.domain-input-row button { background: var(--blue-700); color: var(--white); border: none; padding: .75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .2s; white-space: nowrap; }
.domain-input-row button:hover { background: var(--blue-800); }
.san-list { margin-top: 1rem; text-align: left; }
.san-item { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; font-size: .95rem; color: var(--gray-700); }
.san-item .san-badge { background: var(--blue-100); color: var(--blue-700); font-size: .75rem; padding: .15rem .5rem; border-radius: 20px; font-weight: 600; }
.san-remove { background: none; border: none; color: var(--gray-500); cursor: pointer; font-size: 1.1rem; padding: 0 .25rem; }
.san-remove:hover { color: var(--red); }
.add-san-btn { background: none; border: 1.5px dashed var(--blue-400); color: var(--blue-700); padding: .45rem 1rem; border-radius: 8px; font-size: .9rem; cursor: pointer; margin-top: .5rem; transition: all .2s; }
.add-san-btn:hover { background: var(--blue-50); border-color: var(--blue-700); }

/* Features */
.features-section { background: #deeaf8; padding: 4rem 1.5rem; }
.features-section h2 { text-align: center; font-size: 1.75rem; font-weight: 700; color: var(--blue-900); margin-bottom: 2.5rem; }
.features-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--white); border-radius: 12px; padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--blue-900); margin-bottom: .5rem; }
.feature-card p { color: var(--gray-500); font-size: .9rem; line-height: 1.5; }

/* Pricing */
.pricing-section { background: #b8d4f0; padding: 4rem 1.5rem; }
.pricing-section h2 { text-align: center; font-size: 1.75rem; font-weight: 700; color: var(--blue-900); margin-bottom: 2.5rem; }
.pricing-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.pricing-card { border-radius: 12px; padding: 2rem; border: 2px solid var(--gray-300); position: relative; background: var(--white); transition: all .2s; display: flex; flex-direction: column; }
.pricing-card .pricing-features { flex: 1; }
.pricing-card .btn-pricing { margin-top: auto; }
.pricing-card:hover { border-color: var(--blue-600); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pricing-card.popular { border-color: var(--blue-700); }
.pricing-card .popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--blue-700); color: var(--white); font-size: .78rem; font-weight: 700; padding: .25rem .9rem; border-radius: 20px; white-space: nowrap; }
.pricing-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--blue-900); margin-bottom: .75rem; }
.pricing-price { font-size: 2rem; font-weight: 800; color: var(--blue-700); margin-bottom: .25rem; }
.pricing-price small { font-size: .9rem; font-weight: 400; color: var(--gray-500); }
.pricing-desc { color: var(--gray-500); font-size: .9rem; margin-bottom: 1.5rem; }
.pricing-features { list-style: none; margin-bottom: 1.5rem; }
.pricing-features li { padding: .5rem 0; border-bottom: 1px solid var(--gray-100); font-size: .9rem; color: var(--gray-700); display: flex; gap: .5rem; align-items: flex-start; }
.pricing-features li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-features li:last-child { border-bottom: none; }
.btn-pricing { display: block; text-align: center; padding: .75rem; border-radius: 8px; font-weight: 700; font-size: .95rem; transition: all .2s; background: var(--blue-700); color: var(--white); border: none; cursor: pointer; }
.btn-pricing:hover { background: var(--blue-800); text-decoration: none; color: var(--white); }
.btn-pricing.ghost { background: transparent; color: var(--blue-700); border: 2px solid var(--blue-700); }
.btn-pricing.ghost:hover { background: var(--blue-50); }

/* ── DASHBOARD ────────────────────────────────────────────────────────────── */
.dashboard-wrapper { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.dashboard-header { margin-bottom: 2rem; }
.dashboard-header h1 { font-size: 1.75rem; font-weight: 700; color: var(--blue-900); }
.dashboard-header p { color: var(--gray-500); margin-top: .25rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.dash-card { background: var(--white); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--gray-300); }
.dash-card h3 { font-size: .85rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.dash-card .dash-value { font-size: 2rem; font-weight: 800; color: var(--blue-900); }
.dash-card .dash-sub { font-size: .85rem; color: var(--gray-500); margin-top: .25rem; }

/* Certificatenlijst */
.cert-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.cert-table th { background: var(--blue-900); color: var(--white); padding: .85rem 1rem; text-align: left; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cert-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: .92rem; vertical-align: middle; }
.cert-table tr:last-child td { border-bottom: none; }
.cert-table tr:hover td { background: var(--blue-50); }
.status-badge { display: inline-block; padding: .25rem .7rem; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.status-issued           { background: #d1fae5; color: #065f46; }
.status-pending_validation { background: #fef3c7; color: #92400e; }
.status-draft            { background: var(--gray-100); color: var(--gray-700); }
.status-expired          { background: #fee2e2; color: #991b1b; }
.status-revoked          { background: #fee2e2; color: #991b1b; }
.days-warning            { color: #d97706; font-weight: 600; }
.days-critical           { color: var(--red); font-weight: 700; }

/* Betalingsgeschiedenis */
.payment-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.payment-table th { background: var(--blue-900); color: var(--white); padding: .85rem 1rem; text-align: left; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.payment-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: .9rem; }
.payment-table tr:last-child td { border-bottom: none; }
.payment-paid   { color: var(--green); font-weight: 600; }
.payment-open   { color: #d97706; font-weight: 600; }
.payment-failed { color: var(--red); font-weight: 600; }

/* ── SUBSCRIPTIE UPGRADE ──────────────────────────────────────────────────── */
.upgrade-modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }
.upgrade-option { border: 2px solid var(--gray-300); border-radius: 10px; padding: 1.25rem; cursor: pointer; transition: all .2s; text-align: center; }
.upgrade-option:hover, .upgrade-option.selected { border-color: var(--blue-700); background: var(--blue-50); }
.upgrade-option h4 { color: var(--blue-900); font-weight: 700; margin-bottom: .25rem; }
.upgrade-option .price { font-size: 1.5rem; font-weight: 800; color: var(--blue-700); }

/* ── UTILITY ──────────────────────────────────────────────────────────────── */
.btn { display: inline-block; padding: .55rem 1.25rem; border-radius: 7px; font-weight: 600; font-size: .93rem; border: none; cursor: pointer; transition: all .2s; }
.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--blue-800); color: var(--white); text-decoration: none; }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-secondary:hover { background: var(--gray-300); text-decoration: none; }
.btn-danger { background: #fee2e2; color: var(--red); border: 1px solid #fca5a5; }
.btn-danger:hover { background: #fca5a5; text-decoration: none; }
.btn-sm { padding: .35rem .85rem; font-size: .83rem; }
.text-muted { color: var(--gray-500); }
.alert { padding: .85rem 1rem; border-radius: 8px; font-size: .92rem; margin-bottom: 1rem; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-info { background: var(--blue-100); color: #1e40af; border: 1px solid #93c5fd; }
.section-title { font-size: 1.25rem; font-weight: 700; color: var(--blue-900); margin-bottom: 1rem; border-bottom: 2px solid var(--blue-100); padding-bottom: .5rem; }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--gray-500); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.page-card { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 2rem; margin-bottom: 1.5rem; }
