/* ============================================================
   PCPal.nl - eigen stijlen bovenop Bootstrap 5.3.8
   ------------------------------------------------------------
   Dit bestand stond tot 15-11-2026 als <style>-blok in
   src/header.php. Het staat nu los, omdat de
   Content-Security-Policy geen 'unsafe-inline' meer toestaat in
   style-src: Internet.nl keurt dat af. Daarom horen hier ook
   alle regels die eerder als style="..." in de pagina's stonden.
   Voeg nieuwe opmaak dus hier toe, nooit in de HTML.
   ============================================================ */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --bg-color: #f8f9fa;
}

body {
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Menu ---------- */

.navbar-custom {
    background-color: var(--primary-color);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: #ffffff;
    font-weight: 500;
}

.navbar-custom .nav-link:hover {
    color: var(--secondary-color);
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* De naam in de merkregel, met de zachtere toevoeging erachter. */
.brand-tagline {
    font-weight: 300;
    opacity: 0.75;
    margin-left: 4px;
}

/* De overslaanlink moet boven het vaste menu blijven. */
.skip-link {
    z-index: 2000;
}

main {
    flex-grow: 1;
    padding: 3rem 0;
}

/* ---------- Hulpklassen ---------- */

.text-primary-custom { color: var(--primary-color); }
.text-secondary-custom { color: var(--secondary-color); }
.bg-primary-custom { background-color: var(--primary-color); }
.bg-secondary-custom { background-color: var(--secondary-color); }
.btn-custom { background-color: var(--secondary-color); color: white; border: none; }
.btn-custom:hover { background-color: #2980b9; color: white; }

/* Donkerblauwe kop zonder de variabele, voor losse koppen in de inhoud. */
.text-pcpal-dark { color: #2c3e50; }

/* Een link in de accentkleur zonder onderstreping. */
.link-secondary-custom { color: var(--secondary-color); text-decoration: none; }

/* Leesbreedte voor een tekstblok dat gecentreerd staat. */
.measure-800 { max-width: 800px; }
.narrow-800 { max-width: 800px; margin: 0 auto; }

.card-custom {
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.card-custom:hover {
    transform: translateY(-5px);
}

/* ---------- Kop van een pagina ---------- */

.page-hero {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #34495e 100%);
    color: white; padding: 3.5rem 2rem; border-radius: 1rem;
    margin-bottom: 3rem; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(52,152,219,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(52,152,219,0.08) 0%, transparent 50%);
    animation: heroShimmer 8s ease-in-out infinite alternate;
}
.page-hero.hero-gold::before {
    background: radial-gradient(circle at 30% 70%, rgba(52,152,219,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(241,196,15,0.1) 0%, transparent 50%);
}
.page-hero.hero-green::before {
    background: radial-gradient(circle at 30% 70%, rgba(46,204,113,0.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(52,152,219,0.1) 0%, transparent 50%);
}
.page-hero.hero-red::before {
    background: radial-gradient(circle at 30% 70%, rgba(231,76,60,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(52,152,219,0.12) 0%, transparent 50%);
}
@keyframes heroShimmer { 0% { transform: translate(0,0); } 100% { transform: translate(-5%,5%); } }
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.page-hero .hero-subtitle { font-size: 1.15rem; opacity: 0.85; max-width: 650px; margin: 0 auto; }
.page-hero .hero-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.page-hero .hero-badge {
    display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    padding: 0.3rem 1rem; border-radius: 2rem; font-size: 0.85rem; margin-top: 1rem;
    letter-spacing: 0.5px; text-transform: uppercase; font-weight: 500;
}

/* Het scheve gekleurde vlak achter het blok op de voorpagina. */
.hero-skew-backdrop {
    background-color: var(--secondary-color);
    opacity: 0.15;
    top: 10%;
    left: -10%;
    transform: skewY(-6deg);
    z-index: -1;
    border-radius: 1rem;
}

/* Doel van de link "Naar de inhoud": niet onder het vaste menu schuiven en
   geen kader om de hele inhoud. */
#inhoud { scroll-margin-top: 7.5rem; }
#inhoud:focus { outline: none; }

/* ---------- Mededelingen en meldingen ---------- */

/* De gele mededeling bovenaan de voorpagina. */
.alert-notice {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}
.icon-notice { color: #856404; }

/* Een voorwaarden- of privacyblok dat als doorlopende tekst gelezen wordt. */
.alert-readable { font-size: 1rem; line-height: 1.6; }

/* De versieregel onderaan een juridisch document. */
.doc-footnote { margin-top: 3em; font-size: 0.9em; color: #888; }
.doc-footnote-tight { margin-top: 2em; font-size: 0.9em; color: #888; }

/* ---------- Voet ---------- */

.site-footer {
    background-color: #1a252f;
    color: #ecf0f1;
    padding: 4rem 0 2rem 0;
    margin-top: auto;
}
.footer-heading { color: #3498db; }
.footer-link-accent { color: #3498db; text-decoration: none; }
.footer-bottom { border-top: 1px solid #2c3e50; }

/* ---------- Foutpagina in de applicatie (pages/404.php) ---------- */

.error-page {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 20px;
}
.error-code {
    color: var(--accent-color);
    font-size: 4rem;
    margin-bottom: 10px;
}
.error-title { color: var(--primary-color); }
.error-lead { margin-top: 20px; font-size: 1.1em; }
.error-box {
    margin-top: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: inline-block;
}
.error-box-title { margin-bottom: 15px; color: var(--primary-color); }

/* ---------- Contactformulier ---------- */

/* Melding boven het formulier: verstuurd, geweigerd of een storing.
   js/app.js zet dezelfde klassen op zijn eigen melding, dus pas ze
   daar mee aan als de opmaak hier wijzigt. */
.form-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.form-notice-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-notice-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
}
.form-row { margin-bottom: 20px; }
.form-label-bold {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}
.form-textarea { resize: vertical; }
.btn-submit {
    width: 100%;
    font-size: 1.1em;
    padding: 12px;
    border: none;
    cursor: pointer;
}

.next-steps {
    margin-top: 30px;
    padding: 24px;
    background: #f7f9fb;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}
.next-steps h2 { font-size: 1.25em; }
.next-steps > h2:first-child { margin-top: 0; }

/* ---------- Afbeeldingen ---------- */

/* Een keurmerk of logo naast tekst, op hoogte begrensd. */
.logo-80 { max-height: 80px; width: auto; }

/* ---------- Ervaringen (pages/wat-zeggen-de-klanten-over-pcpal.php) ---------- */

.platform-card {
    background: white; border-radius: 1rem; padding: 2rem; position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06); border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%;
}
.platform-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }

.platform-logo { width: 48px; height: 48px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.platform-logo.google { background: linear-gradient(135deg, #4285f4, #34a853); color: white; }
.platform-logo.trustpilot { background: linear-gradient(135deg, #00b67a, #005128); color: white; }

.score-display { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.25rem; }
.score-display .score { font-size: 2.8rem; font-weight: 800; color: #2c3e50; line-height: 1; }
.score-display .max { font-size: 1.1rem; color: #95a5a6; font-weight: 500; }

.stars { display: flex; gap: 3px; margin-bottom: 0.5rem; }
.stars .star { color: #f1c40f; font-size: 1.3rem; filter: drop-shadow(0 1px 2px rgba(241,196,15,0.4));
    animation: starPop 0.4s ease backwards; }
.stars .star:nth-child(1) { animation-delay: 0.1s; }
.stars .star:nth-child(2) { animation-delay: 0.2s; }
.stars .star:nth-child(3) { animation-delay: 0.3s; }
.stars .star:nth-child(4) { animation-delay: 0.4s; }
.stars .star:nth-child(5) { animation-delay: 0.5s; }
.stars .star-half { color: #f1c40f; opacity: 0.5; }
@keyframes starPop { 0% { transform: scale(0) rotate(-30deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }

.review-count { font-size: 0.9rem; color: #7f8c8d; margin-bottom: 1.25rem; }
.platform-desc { color: #555; font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.25rem; }

.review-quote {
    background: #f8f9fa; border-left: 3px solid #3498db; padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0; margin-bottom: 0.75rem;
    font-style: italic; color: #444; font-size: 0.92rem; line-height: 1.5;
    transition: border-color 0.3s ease;
}
.review-quote:hover { border-color: #f1c40f; }
.review-quote .quote-context { font-style: normal; color: #95a5a6; font-size: 0.82rem; display: block; margin-top: 0.4rem; }

.platform-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: #3498db; text-decoration: none; font-weight: 600; font-size: 0.95rem;
    padding: 0.5rem 1rem; border-radius: 0.5rem; transition: all 0.25s ease; margin-top: 0.5rem;
}
.platform-link:hover { background: rgba(52,152,219,0.08); color: #2980b9; gap: 0.75rem; }
.platform-link svg { transition: transform 0.25s ease; }
.platform-link:hover svg { transform: translateX(3px); }

.trust-banner {
    background: linear-gradient(135deg, #f8f9fa, #fff); border: 1px solid #e8ecf0;
    border-radius: 1rem; padding: 2rem; text-align: center; margin-top: 2rem;
}
.trust-badges { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; margin-top: 1rem; }
.trust-badge { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.trust-badge .badge-icon { font-size: 1.8rem; }
.trust-badge .badge-label { font-size: 0.8rem; color: #7f8c8d; font-weight: 500; }
.trust-badge .badge-value { font-size: 1.1rem; font-weight: 700; color: #2c3e50; }

/* ---------- Schermbreedte en voorkeuren ---------- */

/* Op een telefoon kan het uitgeklapte menu met een open submenu hoger zijn
   dan het scherm. Het menu staat vast bovenaan, dus zonder deze regel zijn
   de onderste links dan niet te bereiken: nu schuift het menu zelf. */
@media (max-width: 991.98px) {
    #navbarNav .navbar-nav {
        max-height: calc(100vh - 7.5rem);
        max-height: calc(100dvh - 7.5rem);
        overflow-y: auto;
    }
}

/* Bezoekers die bewegende beelden hebben uitgezet krijgen een stilstaande pagina */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
