/* Shared design system for filipdelac.com (not used by /explore/ tools) */

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/assets/fonts/space-grotesk.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/assets/fonts/ibm-plex-sans.woff2') format('woff2');
}

:root {
    --bg: #131110;
    --text-main: #f3ede2;
    --text-heading: #faf6ee;
    --text-muted: #b3a89a;
    --text-faint: #8a8074;
    --accent: #e0883c;
    --accent-hover: #f0a15e;
    --card-bg: #1c1916;
    --border: #2d2822;
}

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

html { width: 100%; overflow-x: hidden; }
body { width: 100%; }

body {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

h1, h2, h3, .mono {
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

a { color: inherit; }

/* Keyboard-focus visibility (mouse users don't see it, keyboard users do) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* NAV */
.nav-bar {
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(19,17,16,0.85);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-mark {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--accent); color: var(--bg); font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.nav-name { font-weight: 600; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
    color: var(--text-muted); font-size: 14px; font-weight: 500;
    text-decoration: none; transition: color .15s ease;
}
.nav-link:hover { color: var(--text-heading); }

.nav-toggle {
    display: none;
    background: none; border: 1px solid var(--border); border-radius: 8px;
    color: var(--text-heading); cursor: pointer; padding: 8px;
    align-items: center; justify-content: center;
}

.mobile-nav {
    display: none;
    flex-direction: column; gap: 2px;
    padding: 8px 24px 20px;
    border-top: 1px solid var(--border);
    background: rgba(19,17,16,0.98);
}
.mobile-nav.active { display: flex; }
.mobile-nav .nav-link { padding: 12px 0; }
.mobile-nav .btn-primary, .mobile-nav .btn-ghost { margin-top: 10px; justify-content: center; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: var(--bg); font-weight: 600; font-size: 14px;
    padding: 12px 22px; border-radius: 8px; border: none; cursor: pointer;
    text-decoration: none; transition: transform .15s ease, background .15s ease;
    font-family: inherit;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--text-heading); font-weight: 600; font-size: 14px;
    padding: 11px 20px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer;
    text-decoration: none; transition: border-color .15s ease, background .15s ease;
    font-family: inherit;
}
.btn-ghost:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* HERO */
.hero { padding: 72px 24px 56px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 56px; align-items: center; }
.eyebrow {
    color: var(--accent); font-size: 13px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px;
}
h1 { font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; color: var(--text-heading); margin-bottom: 20px; }
.hero-sub { font-size: 17px; color: var(--text-muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.stats-row { display: flex; gap: 36px; flex-wrap: wrap; }
.stat-num { font-size: 24px; font-weight: 700; color: var(--text-heading); }
.stat-label { font-size: 13px; color: var(--text-faint); }

.hero-photo { position: relative; max-width: 260px; justify-self: center; }
.hero-photo-frame {
    position: absolute; top: 14px; left: 14px; width: 100%; height: 100%;
    border: 2px solid var(--accent); border-radius: 16px;
}
.hero-photo img {
    position: relative; width: 100%; aspect-ratio: 1/1; object-fit: cover;
    border-radius: 16px; filter: grayscale(100%) contrast(1.05);
    display: block; border: 1px solid var(--border);
}
.hero-photo-tag {
    position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
    white-space: nowrap; padding: 8px 14px; display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-muted);
}

/* SECTIONS */
section { padding: 8px 24px 64px; }
.card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px;
}
h2 { font-size: 26px; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; }
.section-sub { font-size: 15px; color: var(--text-faint); margin-bottom: 24px; }

.tag {
    display: inline-block; font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
    color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--card-bg));
    padding: 5px 10px; border-radius: 6px; margin-bottom: 14px;
}

.item-link {
    color: var(--accent); font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.item-link:hover { color: var(--accent-hover); }

/* Philosophy */
.philosophy-card { padding: 40px; position: relative; overflow: hidden; }
.philosophy-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent);
}
.philosophy-quote {
    font-family: 'Space Grotesk', sans-serif; font-size: 44px; color: var(--accent);
    line-height: 1; margin-bottom: 4px;
}
.philosophy-lead { font-size: 19px; color: #e4ddd0; max-width: 700px; margin-bottom: 16px; }
.philosophy-sub { font-size: 15px; color: var(--text-faint); max-width: 680px; }

/* Ventures grid */
.ventures-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.venture-card { padding: 24px; display: flex; flex-direction: column; }
.venture-card img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px;
    border: 1px solid var(--border); margin-bottom: 18px;
}
.venture-card h3 { font-size: 17px; color: var(--text-heading); margin-bottom: 8px; }
.venture-card p { font-size: 14px; color: var(--text-faint); margin-bottom: 14px; flex-grow: 1; }

/* Courses */
.courses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.course-card { padding: 24px; display: flex; flex-direction: column; }
.course-card img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px;
    border: 1px solid var(--border); margin-bottom: 18px;
}
.course-card h3 { font-size: 17px; color: var(--text-heading); margin-bottom: 8px; }
.course-card p { font-size: 14px; color: var(--text-faint); margin-bottom: 14px; flex-grow: 1; }

/* YouTube */
.youtube-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.yt-card { padding: 24px; display: flex; flex-direction: column; }
.yt-card img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px;
    border: 1px solid var(--border); margin-bottom: 18px;
}
.yt-card h3 { font-size: 17px; color: var(--text-heading); margin-bottom: 8px; }
.yt-card p { font-size: 14px; color: var(--text-faint); margin-bottom: 14px; flex-grow: 1; }

/* Featured product */
.featured-product {
    overflow: hidden; border-color: var(--accent);
}
.featured-product img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.featured-details { padding: 36px; }
.featured-details h3 { font-size: 22px; color: var(--text-heading); margin-bottom: 8px; }
.featured-price { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.featured-details p.desc { font-size: 14.5px; color: var(--text-muted); margin-bottom: 18px; }
.feature-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.feature-list div { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-muted); }
.feature-list .check { color: #8fae86; }

/* Dev resources / coming-soon style cards */
.devres-card {
    padding: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.devres-badge {
    font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase; color: var(--bg);
    background: var(--accent); padding: 5px 12px; border-radius: 20px;
}
.devres-card p { font-size: 15px; color: var(--text-muted); max-width: 620px; }

/* Contact */
.contact-card { padding: 48px; text-align: center; }
.contact-card h2 { border: none; }
.contact-card p { font-size: 15px; color: var(--text-faint); margin-bottom: 24px; }

/* Simple content page (legal.html) */
.page-card { padding: 40px; }
.page-card h1 { font-size: 32px; margin-bottom: 8px; }
.page-card .last-updated { font-size: 13px; color: var(--text-faint); margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.page-card h2 { font-size: 20px; margin-top: 32px; }
.page-card h3 { font-size: 16px; color: var(--text-heading); margin-top: 20px; margin-bottom: 8px; }
.page-card p, .page-card ul { color: var(--text-muted); margin-bottom: 14px; font-size: 14.5px; }
.page-card ul { padding-left: 20px; }
.page-card li { margin-bottom: 6px; }
.page-card strong { color: var(--text-main); }
.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); text-decoration: none; font-weight: 500;
    margin-bottom: 24px; transition: color .15s ease;
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 18px; height: 18px; }
.placeholder { color: var(--accent); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px; padding: 28px 24px;
}
.footer-inner .copyright { font-size: 13px; color: var(--text-faint); }
.footer-links { display: flex; align-items: center; gap: 18px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text-heading); }
.social-icon:hover circle { stroke: var(--accent); }
.social-icon:hover path { fill: var(--accent); }

/* Modal (contact form) */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.75); backdrop-filter: blur(4px); z-index: 1000;
    justify-content: center; align-items: center; opacity: 0; transition: opacity .3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background-color: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
    width: 90%; max-width: 500px; padding: 30px; position: relative;
    transform: translateY(20px); transition: transform .3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal {
    position: absolute; top: 20px; right: 20px; background: none; border: none;
    color: var(--text-muted); font-size: 1.5rem; cursor: pointer; line-height: 1;
    transition: color .2s;
}
.close-modal:hover { color: var(--accent); }

/* Forms (shared by the index modal + contact.html) */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-main); font-weight: 500; font-size: .95rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 15px; background-color: var(--bg); border: 1px solid var(--border);
    border-radius: 6px; color: var(--text-main); font-family: inherit; font-size: 1rem; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.privacy-note { font-size: .85rem; color: var(--text-faint); margin-top: 15px; margin-bottom: 20px; }

/* Honeypot: hidden from sighted users AND screen readers, not display:none
   (some bots skip display:none fields, defeating the point) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact page (contact.html) two-column layout */
.contact-page { padding: 72px 24px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-pitch h1 { font-size: 34px; margin-bottom: 12px; }
.contact-pitch .subtitle { color: var(--accent); font-size: 16px; font-weight: 600; margin-bottom: 24px; }
.contact-pitch p { color: var(--text-muted); margin-bottom: 20px; font-size: 15px; }
.value-point { margin-bottom: 18px; padding-left: 22px; position: relative; }
.value-point::before { content: "\25b9"; position: absolute; left: 0; color: var(--accent); font-weight: bold; }
.value-point strong { color: var(--text-heading); display: block; margin-bottom: 4px; }
.value-point span { color: var(--text-faint); font-size: 14px; }
.contact-form-card { padding: 32px; }

/* Utilities (replace one-off inline style="" attributes so CSP style-src
   can stay 'self' with no unsafe-inline on the main site) */
.u-center-text { text-align: center; }
.u-center-flex { justify-content: center; }
.u-mt-18 { margin-top: 18px; }
.u-mt-20 { margin-top: 20px; }
.u-mt-40 { margin-top: 40px; }
.u-mt-64 { margin-top: 64px; }
.btn-compact { padding: 9px 18px; }
.btn-lg { padding: 13px 28px; }
.btn-block { width: 100%; justify-content: center; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8fae86; display: inline-block; }
.emph { color: var(--text-heading); }
.link-accent { color: var(--accent); text-decoration: none; }
.textarea-lg { min-height: 130px; }

/* Component-specific one-offs */
.modal-title { border-bottom: none; padding-bottom: 0; margin-bottom: 10px; margin-top: 5px; font-size: 22px; }
.modal-subtitle { font-size: 0.9rem; margin-bottom: 20px; color: var(--text-muted); }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success svg { width: 48px; height: 48px; fill: #8fae86; margin: 0 auto 16px auto; display: block; }
.form-success h3 { color: var(--text-heading); margin-bottom: 10px; }
.form-success p { color: var(--text-muted); margin-bottom: 20px; }
.legal-wrap { max-width: 800px; padding-top: 48px; }
.error-wrap { max-width: 640px; padding-top: 96px; }
.h1-sm { font-size: 40px; }
.hero-sub-centered { margin-left: auto; margin-right: auto; margin-bottom: 32px; text-align: center; }
.contact-secondary { margin-top: 18px; margin-bottom: 0; }

/* Subscribe block (Gumroad follow CTA, reused across /sologamedevs/ pages) */
.subscribe-block { padding: 40px; text-align: center; }
.subscribe-block h2 { border: none; }
.subscribe-block p {
    font-size: 15px; color: var(--text-faint); margin-bottom: 24px;
    max-width: 480px; margin-left: auto; margin-right: auto;
}

/* Game cards (sologamedevs hub grid) */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game-card { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.game-card img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
    border-bottom: 1px solid var(--border);
}
.game-card-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.game-card-body .tag { margin-bottom: 10px; }
.game-card-body h3 { font-size: 17px; color: var(--text-heading); margin-bottom: 8px; }
.game-card-body p { font-size: 14px; color: var(--text-faint); margin-bottom: 18px; flex-grow: 1; }
.game-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.game-card-soon-thumb {
    aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
    background: var(--bg); border-bottom: 1px solid var(--border);
}

/* Game wrapper page (iframe embed) */
.game-frame-wrapper {
    position: relative; width: 100%; aspect-ratio: 16/9; max-height: 78vh;
    background: #000; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.game-frame-wrapper iframe { width: 100%; height: 100%; border: none; display: block; }
.game-click-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(19,17,16,0.82); cursor: pointer; border: none; width: 100%; height: 100%;
    color: var(--text-heading); font-family: inherit;
}
.game-click-overlay .btn-primary { pointer-events: none; }
.game-click-overlay.hidden { display: none; }

.touch-warning {
    display: none; margin-top: 14px; padding: 14px 18px; border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 12%, var(--card-bg)); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 14px;
}
@media (pointer: coarse) {
    [data-supports-touch="false"] .touch-warning { display: block; }
}

.game-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap; margin-top: 16px;
}
.game-toolbar-right { display: flex; gap: 10px; flex-wrap: wrap; }

.game-controls-card { padding: 24px; margin-top: 24px; }
.game-controls-card h3 { font-size: 15px; color: var(--text-heading); margin-bottom: 8px; }
.game-controls-card p { font-size: 14px; color: var(--text-muted); }

/* Asset directory */
.asset-filters { padding: 24px; margin-bottom: 28px; }
.filter-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; }
.filter-search-group, .asset-filters .form-group { margin-bottom: 0; }
.filter-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.filter-count { font-size: 13px; color: var(--text-faint); }

.assets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.asset-card { padding: 0; overflow: hidden; }
.asset-card[hidden] { display: none; }

/* Per-type accent color, set once per card via the data-type attribute
   already used for filtering - no per-asset styling needed. */
.asset-card[data-type="3d-models"] { --type-accent: #e0883c; }
.asset-card[data-type="textures"] { --type-accent: #c96f4a; }
.asset-card[data-type="sprites-2d"] { --type-accent: #d94f70; }
.asset-card[data-type="ui-icons"] { --type-accent: #6a9fd8; }
.asset-card[data-type="fonts"] { --type-accent: #a889d8; }
.asset-card[data-type="sound-effects"] { --type-accent: #5fb88f; }
.asset-card[data-type="music"] { --type-accent: #d9b568; }

.asset-card-icon {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16/7; color: var(--type-accent, var(--accent));
    background: color-mix(in srgb, var(--type-accent, var(--accent)) 14%, var(--card-bg));
    border-bottom: 1px solid var(--border);
}
.asset-card-icon svg { width: 40px; height: 40px; }

.asset-card-body { padding: 22px; display: flex; flex-direction: column; }
.asset-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.asset-card-tags .tag { margin-bottom: 10px; }
.tag-muted { color: var(--text-faint); background: color-mix(in srgb, var(--text-faint) 14%, var(--card-bg)); }
.tag-license { color: #8fae86; background: color-mix(in srgb, #8fae86 16%, var(--card-bg)); }
.tag-license-other { color: var(--text-heading); background: color-mix(in srgb, var(--text-faint) 18%, var(--card-bg)); }
.asset-card-body h3 { font-size: 17px; color: var(--text-heading); margin-bottom: 4px; }
.asset-source { font-size: 13px; color: var(--text-faint); margin-bottom: 10px; }
.asset-card-body p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.asset-engine-notes { font-size: 13px; color: var(--text-faint); margin-bottom: 10px; }
.asset-source-note { font-size: 13px; color: #d9b568; margin-bottom: 10px; }
.asset-meta { font-size: 12px; color: var(--text-faint); margin-bottom: 16px; }
.asset-card-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.no-results-note { font-size: 14px; color: var(--text-faint); text-align: center; padding: 40px 0; }
.link-accent-btn {
    background: none; border: none; padding: 0; color: var(--accent); font-family: inherit;
    font-size: inherit; font-weight: 600; cursor: pointer; text-decoration: underline;
}
.link-accent-btn:hover { color: var(--accent-hover); }

@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-photo { order: -1; max-width: 220px; margin: 0 auto 8px; }
    h1 { font-size: 36px; }
    .ventures-grid, .courses-grid, .youtube-grid { grid-template-columns: 1fr; }
    .stats-row { flex-wrap: wrap; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-page { padding: 48px 24px; }
    .games-grid { grid-template-columns: 1fr; }
    .game-frame-wrapper { aspect-ratio: 4/3; max-height: none; }
    .filter-row { grid-template-columns: 1fr; }
    .assets-grid { grid-template-columns: 1fr; }
}
