/* Nazarie Ventures — shared components (cards, case studies, homepage blocks) */

/* Case study content */
.case-study {
    padding: 0;
}

.case-study h2,
.project-section-title {
    font-size: var(--heading-section, clamp(1.65rem, 2.2vw, 2rem));
    font-weight: 600;
    margin: var(--subsection-gap, 2rem) 0 0.75rem;
    color: var(--text-primary, #fff);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.case-study h2:first-child,
.project-section-title:first-child {
    margin-top: 0;
}

.case-study h3 {
    font-size: var(--heading-sub, clamp(1.05rem, 1.5vw, 1.25rem));
    font-weight: 600;
    margin: 0 0 0.65rem;
    color: var(--text-primary, #fff);
}

.case-study p,
.case-study li {
    color: var(--text-secondary, #a1a1aa);
    font-size: var(--text-body, 1.0625rem);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.case-study ul {
    list-style: none;
    margin: 0.35rem 0 0.75rem;
    padding: 0;
}

.case-study li {
    padding-left: 1.25rem;
    position: relative;
}

.case-study li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-green, #00C896);
}

.case-status,
.project-status {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary, #a1a1aa);
}

.case-status.active,
.project-status.active { border-color: rgba(0, 200, 150, 0.4); color: #7eecc8; }
.case-status.private,
.project-status.private { border-color: rgba(255, 107, 107, 0.35); color: #ffb4b4; }
.case-status.experimental,
.project-status.experimental { border-color: rgba(247, 147, 26, 0.4); color: #ffc87a; }
.case-status.wip,
.project-status.wip { border-color: rgba(78, 205, 196, 0.4); color: #8ee8df; }

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0 0.75rem;
}

.tech-stack span {
    font-size: 0.78rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary, #a1a1aa);
}

.case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.btn-case {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-case-primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-case-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-case-secondary {
    background: transparent;
    color: var(--text-primary, #fff);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-case-secondary:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.05);
}

/* Homepage hero */
.hero-eyebrow {
    font-size: 0.85rem;
    color: var(--text-secondary, #999);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.hero-quote {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

/* Project cards */
a.project-card-v2 > * {
    pointer-events: none;
}

.project-card-v2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.project-card-v2:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
}

.project-card-visual {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.project-card-visual img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.project-card-visual.icon-only {
    font-size: 2.5rem;
}

.project-card-visual.icon-only img {
    width: 2.5rem;
    height: 2.5rem;
    max-width: 2.5rem;
    max-height: 2.5rem;
    border-radius: 0.55rem;
    object-fit: cover;
}

.project-card-body {
    padding: 1.15rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.project-card-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.project-card-desc {
    color: var(--text-secondary, #a1a1aa);
    font-size: 0.925rem;
    line-height: 1.55;
    margin-bottom: 0.65rem;
    flex: 1;
}

.project-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    min-height: 1.5rem;
}

.project-card-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted, #71717a);
}

.project-card-status.private { color: #ffb4b4; border-color: rgba(255, 107, 107, 0.35); }
.project-card-status.experimental { color: #ffc87a; border-color: rgba(247, 147, 26, 0.35); }
.project-card-status.wip { color: #8ee8df; border-color: rgba(78, 205, 196, 0.35); }

.project-card-body .tech-stack {
    margin-bottom: 0.75rem;
    min-height: 1.75rem;
}

.project-card-cta {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text-primary, #fff);
    margin-top: auto;
    padding-top: 0.15rem;
}

.projects-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

/* Currently building — compact grid */
.building-section {
    padding: var(--section-y-sm, 2.5rem) 0 0;
    margin-top: var(--block-gap, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.building-section h2 {
    font-size: var(--heading-sub, 1.15rem);
    font-weight: 600;
    margin: 0 0 1rem;
}

.building-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.building-item {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.building-item strong {
    display: block;
    color: var(--text-primary, #fff);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.building-item span {
    color: var(--text-secondary, #a1a1aa);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* FastFactor showcase + demo */
.showcase-grid {
    display: grid;
    grid-template-columns: minmax(200px, 300px) 1fr;
    gap: 1.75rem 2rem;
    align-items: start;
}

.showcase-figure {
    margin: 0;
}

.showcase-frame {
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px;
}

.showcase-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.showcase-caption {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted, #71717a);
    text-align: center;
}

.showcase-copy h2 {
    margin-top: 0;
}

.showcase-points li::before {
    content: '→';
    color: var(--accent-green, #00C896);
}

/* FastFactor demo block */
.demo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
}

.demo-section h2 {
    font-size: var(--heading-section, clamp(1.65rem, 2.2vw, 2rem));
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text-primary, #fff);
    letter-spacing: -0.02em;
}

.demo-section > p {
    color: var(--text-secondary, #a1a1aa);
    font-size: var(--text-body, 1.0625rem);
    margin: 0 0 1.25rem;
    max-width: 42ch;
}

.demo-video-wrap {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #000;
    cursor: pointer;
}

.demo-video-wrap.is-playing {
    cursor: default;
}

.demo-video-player {
    display: block;
    width: 100%;
    vertical-align: top;
    background: #000;
}

.demo-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.demo-video-wrap.is-playing .demo-video-play {
    display: none;
}

.demo-video-play-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.demo-video-play-icon::before {
    content: '';
    width: 0;
    height: 0;
    margin-left: 6px;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #111;
}

/* Roadmap */
.roadmap-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    margin-top: 0.5rem;
}

.roadmap-block {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1024px) {
    .projects-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .building-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .projects-grid-v2 {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .showcase-frame {
        max-width: 320px;
        margin: 0 auto;
    }

    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .demo-section {
        max-width: 100%;
    }

    .demo-video-wrap {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .building-list {
        grid-template-columns: 1fr;
    }
}
