/*
Theme Name: PhotoRname
Theme URI: https://photorname.com
Author: Bryze
Author URI: https://bryze.nl
Description: Eigen thema voor photorname.com — download + informatie over de PhotoRname macOS/Windows-app.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: photorname-theme
*/

:root {
    --pr-accent: #2C6E8E;
    --pr-accent-dark: #1F4F66;
    --pr-ink: #1A1F22;
    --pr-muted: #5A6268;
    --pr-bg: #F7F9FA;
    --pr-card: #FFFFFF;
    --pr-border: #E3E8EA;
    --pr-radius: 12px;
    --pr-max-width: 1280px;
    --pr-tint: #EAF1F4;
    --pr-tint-text: #1F3A46;
    --pr-green: #3F8F5C;
    --pr-amber: #B4790A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--pr-ink);
    line-height: 1.55;
    background-color: var(--pr-bg);
}

a { color: var(--pr-accent); }
img { max-width: 100%; display: block; }

.pr-container {
    max-width: var(--pr-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.pr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--pr-border);
    background: var(--pr-card);
}

.pr-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--pr-ink);
    margin-right: 48px;
}

.pr-brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
}

.pr-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.pr-brand-title { font-weight: 700; font-size: 1.25rem; }
.pr-brand-tagline { font-size: 0.78rem; color: var(--pr-muted); font-weight: 400; }

.pr-nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.pr-nav a { color: var(--pr-ink); text-decoration: none; font-size: 0.95rem; }
.pr-nav a:hover { color: var(--pr-accent); }

.pr-nav-toggle-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.pr-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--pr-ink);
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .pr-nav-toggle { display: flex; }
    .pr-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--pr-card);
        border-bottom: 1px solid var(--pr-border);
        padding: 10px 24px 18px;
        box-shadow: 0 16px 32px -16px rgba(26, 31, 34, 0.25);
        z-index: 30;
    }
    .pr-nav-toggle-checkbox:checked ~ .pr-nav { display: flex; }
    .pr-nav a { padding: 10px 4px; }
    .pr-header { position: relative; flex-wrap: wrap; }
}

/* Buttons */
.pr-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.12s ease, opacity 0.12s ease;
}
.pr-btn:hover { transform: translateY(-1px); }
.pr-btn-primary { background: var(--pr-accent); color: #fff; }
.pr-btn-primary:hover { background: var(--pr-accent-dark); color: #fff; }
.pr-btn-outline { background: transparent; color: var(--pr-ink); border: 1.5px solid var(--pr-border); }
.pr-btn-outline:hover { border-color: var(--pr-accent); color: var(--pr-accent); }

.pr-notarized-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 14px 6px 0;
    font-size: 0.85rem;
    color: var(--pr-muted);
}
.pr-notarized-badge svg { color: var(--pr-green); flex-shrink: 0; }

.pr-warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 14px 6px 0;
    font-size: 0.85rem;
    color: var(--pr-muted);
    text-align: left;
}
.pr-warning-badge svg { color: var(--pr-amber); flex-shrink: 0; }
.pr-btn-disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.pr-btn-disabled:hover { transform: none; }

/* Hero */
.pr-hero { text-align: center; padding: 76px 0 88px; background: linear-gradient(180deg, var(--pr-tint) 0%, var(--pr-bg) 100%); }
.pr-hero-panel { max-width: 680px; margin: 0 auto; }
.pr-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 16px; letter-spacing: -0.02em; }
.pr-hero p.pr-payoff { color: var(--pr-muted); font-size: 1.08rem; max-width: 600px; margin: 0 auto 28px; }
.pr-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pr-hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--pr-muted); }
.pr-hero-version {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding: 6px 14px;
    border: 1px solid var(--pr-border);
    border-radius: 999px;
    background: var(--pr-card);
    color: var(--pr-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}
.pr-hero-version-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pr-green); flex: none; }

/* Section shell */
.pr-section { padding: 64px 0; }
.pr-section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); text-align: center; margin: 0 0 12px; }
.pr-section-intro { text-align: center; color: var(--pr-muted); max-width: 620px; margin: 0 auto 44px; }
.pr-section-alt { background: var(--pr-card); border-top: 1px solid var(--pr-border); border-bottom: 1px solid var(--pr-border); }

/* How it works */
.pr-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: pr-step; }
.pr-step { position: relative; padding: 28px 22px; background: var(--pr-card); border: 1px solid var(--pr-border); border-radius: var(--pr-radius); }
.pr-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pr-tint);
    color: var(--pr-accent);
    font-weight: 700;
    margin-bottom: 14px;
}
.pr-step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.pr-step p { margin: 0; color: var(--pr-muted); font-size: 0.92rem; }

/* Feature grid */
.pr-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pr-feature-card { padding: 26px 24px; background: var(--pr-card); border: 1px solid var(--pr-border); border-radius: var(--pr-radius); }
.pr-feature-card .pr-icon {
    width: 40px; height: 40px; border-radius: 10px; background: var(--pr-tint); color: var(--pr-accent);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.pr-feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.pr-feature-card p { margin: 0; color: var(--pr-muted); font-size: 0.92rem; }

/* Pricing */
.pr-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.pr-pricing-card {
    position: relative;
    padding: 30px 26px;
    background: var(--pr-card);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius);
    text-align: center;
}
.pr-pricing-card-highlight { border-color: var(--pr-accent); box-shadow: 0 12px 32px -18px rgba(44, 110, 142, 0.45); }
.pr-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pr-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
}
.pr-pricing-card h3 { margin: 6px 0 12px; font-size: 1.1rem; }
.pr-pricing-price { font-size: 2rem; font-weight: 700; }
.pr-pricing-price .amount { font-size: inherit; }
.pr-pricing-period { font-size: 0.9rem; font-weight: 400; color: var(--pr-muted); margin-left: 4px; }
.pr-pricing-vat { margin: 2px 0 14px; font-size: 0.78rem; color: var(--pr-muted); }
.pr-pricing-desc { color: var(--pr-muted); font-size: 0.9rem; margin: 0 0 20px; min-height: 40px; }

/* Download section */
.pr-product-box { display: block; margin: 0 auto 32px; height: auto; }

.pr-download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1040px; margin: 0 auto; }
.pr-download-card {
    padding: 28px 24px;
    background: var(--pr-card);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius);
    text-align: center;
}
.pr-download-card h3 { margin: 0 0 6px; }
.pr-download-card p { color: var(--pr-muted); font-size: 0.88rem; margin: 0 0 18px; }
.pr-platform-note {
    margin-top: 28px;
    text-align: center;
    color: var(--pr-muted);
    font-size: 0.88rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* Generic content page (page.php fallback) */
.pr-page-content { max-width: 780px; margin: 0 auto; padding: 64px 24px 88px; }
.pr-page-content h1 { font-size: 2.1rem; margin-bottom: 24px; }

/* Manual page */
.pr-manual-page { padding: 56px 0 88px; }
.pr-manual-intro { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.pr-manual-intro h1 { font-size: 2.2rem; margin-bottom: 12px; }
.pr-manual-intro p { color: var(--pr-muted); }
.pr-manual-section {
    background: var(--pr-card);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius);
    padding: 28px 30px;
    margin-bottom: 20px;
}
.pr-manual-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pr-manual-icon {
    width: 36px; height: 36px; border-radius: 9px; background: var(--pr-tint); color: var(--pr-accent);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pr-manual-heading h2 { margin: 0; font-size: 1.2rem; }
.pr-manual-section h3 { font-size: 1rem; margin: 18px 0 8px; }
.pr-manual-section p { margin: 0 0 10px; color: var(--pr-ink); }
.pr-manual-section ul.pr-steps-list { margin: 0 0 10px; padding-left: 20px; }
.pr-manual-section ul.pr-steps-list li { margin-bottom: 6px; }
.pr-manual-tip {
    background: var(--pr-tint);
    color: var(--pr-tint-text);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin: 10px 0;
}
.pr-manual-shortcuts { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 0.9rem; }
.pr-manual-shortcuts td { padding: 6px 10px; border-bottom: 1px solid var(--pr-border); }
.pr-manual-shortcuts td:first-child { font-weight: 600; width: 140px; }
.pr-manual-sep { border: none; border-top: 1px solid var(--pr-border); margin: 18px 0; }

/* Versie / changelog */
.pr-versie-page { padding: 56px 0 88px; }
.pr-versie-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.pr-versie-header h1 { margin: 0 0 6px; }
.pr-versie-badge {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--pr-tint);
    color: var(--pr-accent);
    font-weight: 700;
}
.pr-versie-timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.pr-versie-item { display: flex; gap: 20px; }
.pr-versie-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 8px; flex-shrink: 0; position: relative; }
.pr-versie-dot::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 5px;
    width: 2px;
    height: calc(100% + 16px);
    background: var(--pr-border);
}
.pr-versie-item:last-child .pr-versie-dot::after { display: none; }
.pr-versie-content { background: var(--pr-card); border: 1px solid var(--pr-border); border-radius: var(--pr-radius); padding: 20px 24px; margin-bottom: 24px; flex: 1; }
.pr-versie-item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.pr-versie-version { font-weight: 700; }
.pr-versie-type-badge { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pr-versie-date { color: var(--pr-muted); font-size: 0.82rem; }
.pr-versie-content h3 { margin: 0 0 6px; font-size: 1.05rem; }
.pr-versie-content p { margin: 0; color: var(--pr-muted); font-size: 0.92rem; }
.pr-versie-downloads { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* Specs table */
.pr-specs-page { padding: 56px 0 88px; max-width: 820px; margin: 0 auto; }
.pr-specs-table { width: 100%; border-collapse: collapse; margin: 24px 0 40px; }
.pr-specs-table th, .pr-specs-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--pr-border); font-size: 0.94rem; }
.pr-specs-table th { width: 260px; color: var(--pr-muted); font-weight: 600; }
.pr-specs-note { background: var(--pr-tint); color: var(--pr-tint-text); border-radius: 8px; padding: 14px 18px; font-size: 0.9rem; margin-bottom: 30px; }

/* Contact form */
.pr-contact-page { padding: 56px 0 88px; max-width: 560px; margin: 0 auto; }
.pr-form-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem; }
.pr-form-notice.success { background: #E3F3E9; color: #235C3D; }
.pr-form-notice.error { background: #FBE7E7; color: #7A2B2B; }
.pr-contact-form { display: flex; flex-direction: column; gap: 14px; }
.pr-contact-form input, .pr-contact-form textarea {
    padding: 12px 14px;
    border: 1px solid var(--pr-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}
.pr-contact-form .pr-hp { position: absolute; left: -9999px; }

/* Footer */
.pr-footer { padding: 40px 0; border-top: 1px solid var(--pr-border); background: var(--pr-card); }
.pr-footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.pr-footer-links a { color: var(--pr-muted); text-decoration: none; font-size: 0.9rem; }
.pr-footer-links a:hover { color: var(--pr-accent); }
.pr-footer p { color: var(--pr-muted); font-size: 0.85rem; margin: 0; }

@media (max-width: 640px) {
    .pr-versie-header { flex-direction: column; align-items: flex-start; }
}
