/* Frank Builds — main.css */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ------------------------------------------------------------------ */
/* Reset & Base                                                        */
/* ------------------------------------------------------------------ */

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

:root {
    --bg:           #f5f4f0;
    --bg-surface:   #eeecea;
    --bg-hover:     #e8e6e2;
    --border:       #d8d6d2;
    --border-open:  #ccc9c4;
    --text:         #111111;
    --text-dim:     #888;
    --text-muted:   #bbb;
    --accent:       #00aa55;
    --accent-dim:   #00aa5533;
    --accent-ghost: #00aa5511;
    --warn:         #c97a1a;
    --font-mono:    'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
    --radius:       4px;
    --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */

.fb-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ------------------------------------------------------------------ */
/* Site Header                                                         */
/* ------------------------------------------------------------------ */

.fb-site-header {
    padding: 64px 0 48px;
    margin-bottom: 40px;
    text-align: center;
}

.fb-prompt {
    display: block;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    opacity: 0.7;
}

.fb-site-title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.fb-site-tagline {
    color: var(--text-dim);
    font-size: 13px;
}

/* ------------------------------------------------------------------ */
/* Project List                                                        */
/* ------------------------------------------------------------------ */

.fb-project-list {
    list-style: none;
}

/* ------------------------------------------------------------------ */
/* Project Trigger                                                     */
/* ------------------------------------------------------------------ */

.fb-project-trigger {
    display: block;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 0;
    text-align: center;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}

.fb-project-trigger:hover {
    color: #888;
}

.fb-project-item.is-open .fb-project-trigger {
    color: #888;
    padding-bottom: 0;
}

.fb-project-item.is-open .fb-project-trigger::after {
    content: '';
    display: block;
    width: 1px;
    height: 7px;
    background: #bbb;
    margin: 14px auto 0;
}

/* ------------------------------------------------------------------ */
/* Project Body                                                        */
/* ------------------------------------------------------------------ */

.fb-project-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition);
}

.fb-project-body[hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
}

.fb-project-item.is-open .fb-project-body {
    visibility: visible;
    pointer-events: auto;
}

.fb-project-body-inner {
    padding: 14px 0 32px;
    text-align: center;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition);
}

.fb-project-item.is-open .fb-project-body-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Video Cover + Play Button */

.fb-video-cover {
    position: relative;
    display: block;
    cursor: pointer;
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    line-height: 0;
}

.fb-video-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.fb-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.fb-play-btn svg {
    margin-left: 3px; /* optical center for play triangle */
}

.fb-video-cover:hover .fb-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Embed */

.fb-project-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: var(--radius);
    background: var(--bg-surface);
    border: none;
    outline: none;
    box-shadow: none;
}

.fb-project-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    border-radius: var(--radius);
}

@media (max-width: 480px) {
    .fb-project-video {
        width: calc(100vw - 50px);
        margin: 0 auto 20px;
        border-radius: var(--radius);
    }
}

/* Screenshots */

.fb-project-screenshots {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.fb-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: block;
}

/* Description */

.fb-project-description {
    color: var(--text);
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 20px;
}

.fb-project-description p {
    margin-bottom: 12px;
}

.fb-project-description p:last-child {
    margin-bottom: 0;
}

/* Action Buttons */

.fb-project-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 7px 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    text-decoration: none;
    letter-spacing: 0.03em;
}

.fb-btn--primary {
    background: #111;
    border-color: #111;
    color: #f5f4f0;
}

.fb-btn--primary:hover {
    background: #333;
    border-color: #333;
    color: #f5f4f0;
    text-decoration: none;
}

.fb-btn--ghost {
    background: #111;
    border-color: #111;
    color: #f5f4f0;
}

.fb-btn--ghost:hover {
    background: #333;
    border-color: #333;
    color: #f5f4f0;
    text-decoration: none;
}

.fb-btn--local {
    background: transparent;
    border-color: #ff9f4322;
    color: var(--warn);
    opacity: 0.7;
    cursor: default;
}

/* ------------------------------------------------------------------ */
/* Empty State                                                         */
/* ------------------------------------------------------------------ */

.fb-empty {
    color: var(--text-dim);
    font-size: 13px;
    padding: 40px 0;
    text-align: center;
}

/* ------------------------------------------------------------------ */
/* Site Footer                                                         */
/* ------------------------------------------------------------------ */

.fb-site-footer {
    margin-top: 64px;
    padding-top: 24px;
    text-align: center;
}

.fb-site-footer::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--border);
    margin: 0 auto 24px;
}

.fb-footer-text {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 480px) {
    .fb-main {
        padding: 0 16px 60px;
    }

    .fb-site-header {
        padding: 40px 0 32px;
        margin-bottom: 24px;
    }
}
