/* project-content.css — Detail page content components */

/* Problem & Solution — tension grid */
.tension {
    display: grid; grid-template-columns: 1fr 48px 1fr;
    gap: 0; align-items: stretch; margin-top: 32px;
}

.tension-col {
    padding: 32px;
    border: 1px solid var(--rule); background: var(--white);
}
.tension-col:first-child { border-radius: 12px 0 0 12px; border-right: none; }
.tension-col:last-child { border-radius: 0 12px 12px 0; border-left: none; }
.tension-col:last-child .tension-item { color: var(--ink); }
.tension-col:last-child .t-marker { color: var(--accent); }

.tension-arrow {
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    color: var(--accent); font-family: var(--font-mono); font-size: 1.25rem;
}

.tension-label {
    font-family: var(--font-mono); font-size: 0.625rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 20px;
}

.tension-item {
    display: flex; align-items: baseline; gap: 10px;
    padding: 10px 0; font-size: 0.875rem;
    line-height: 1.55; color: var(--mid);
}
.tension-item + .tension-item { border-top: 1px solid var(--rule); }

.t-marker {
    font-family: var(--font-mono); font-size: 0.625rem;
    color: var(--muted); flex-shrink: 0; width: 14px;
}

/* Key Systems — numbered walkthrough */
.systems {
    display: flex; flex-direction: column; gap: 0;
    margin-top: 32px;
    border: 1px solid var(--rule); border-radius: 12px;
    overflow: hidden;
}

.system-row {
    display: grid; grid-template-columns: 80px 1fr; gap: 0;
    border-bottom: 1px solid var(--rule);
    background: var(--white); transition: background 0.2s var(--ease);
}
.system-row:last-child { border-bottom: none; }

@media (hover: hover) {
    .system-row:hover { background: var(--accent-soft); }
}

.system-idx {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 0.8125rem;
    color: var(--muted); border-right: 1px solid var(--rule);
    background: var(--surface); transition: color 0.2s var(--ease);
}

@media (hover: hover) {
    .system-row:hover .system-idx { color: var(--accent); }
}

.system-content { padding: 24px 28px; }

.system-content h3 {
    font-size: 0.9375rem; font-weight: 700;
    color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em;
}

.system-content p {
    font-size: 0.8125rem; color: var(--mid);
    line-height: 1.65; max-width: 56ch;
}

.system-content strong { color: var(--ink); font-weight: 600; }

/* Screenshot frame */
.screenshot-frame {
    margin-top: 32px; border: 1px solid var(--rule);
    border-radius: 12px; overflow: hidden;
    background: var(--white);
}

.screenshot-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-bottom: 1px solid var(--rule);
    background: var(--surface);
}

.screenshot-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--rule);
}

.screenshot-bar-url {
    flex: 1; text-align: center;
    font-family: var(--font-mono); font-size: 0.625rem;
    color: var(--muted); letter-spacing: 0.04em;
}

.screenshot-img { display: block; width: 100%; height: auto; }

.screenshot-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 400px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
    color: var(--muted); font-family: var(--font-mono);
    font-size: 0.75rem; letter-spacing: 0.06em;
}

/* Business model */
.model-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 24px; margin-top: 32px;
}

.model-card {
    border: 1px solid var(--rule); border-radius: 12px;
    overflow: hidden; background: var(--white);
}

.model-card-head {
    padding: 16px 24px; border-bottom: 1px solid var(--rule);
    background: var(--surface); font-size: 0.8125rem;
    font-weight: 700; color: var(--ink);
}

.model-row {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 14px 24px; border-bottom: 1px solid var(--rule);
    font-size: 0.8125rem; transition: background 0.15s var(--ease);
}
.model-row:last-child { border-bottom: none; }

@media (hover: hover) {
    .model-row:hover { background: var(--accent-soft); }
}

.model-row-label { color: var(--mid); }

.model-row-val {
    font-family: var(--font-mono); font-weight: 500;
    color: var(--ink); font-size: 0.8125rem;
}

/* Revenue bar */
.rev-bar-track {
    margin-top: 32px; border: 1px solid var(--rule);
    border-radius: 8px; overflow: hidden;
    display: flex; height: 36px;
}

.rev-bar-seg {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 0.625rem;
    letter-spacing: 0.04em; font-weight: 500;
    transition: opacity 0.2s var(--ease);
}
.rev-bar-seg:nth-child(1) { flex: 70; background: var(--ink); color: var(--white); }
.rev-bar-seg:nth-child(2) { flex: 15; background: var(--accent); color: var(--white); }
.rev-bar-seg:nth-child(3) { flex: 15; background: var(--surface); color: var(--mid); border-left: 1px solid var(--rule); }

.rev-legend { display: flex; gap: 24px; margin-top: 12px; }

.rev-legend-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.75rem; color: var(--mid);
}

.rev-legend-dot { width: 8px; height: 8px; border-radius: 2px; }

/* Architecture diagram */
.arch-diagram {
    margin-top: 32px; border: 1px solid var(--rule);
    border-radius: 12px; overflow: hidden;
    background: var(--white);
}

.arch-svg-wrap {
    padding: 40px; display: flex; justify-content: center;
}
.arch-svg-wrap svg { width: 100%; max-width: 560px; height: auto; }
.arch-svg-wrap svg text { font-family: var(--font-body); font-weight: 600; }
.arch-svg-wrap svg .arch-label-mono { font-family: var(--font-mono); font-weight: 400; }

.arch-legend {
    display: flex; gap: 20px; padding: 14px 24px;
    border-top: 1px solid var(--rule); background: var(--surface);
    flex-wrap: wrap;
}

.arch-legend-item {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.625rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--mid); cursor: default;
}

.arch-legend-dot { width: 8px; height: 8px; border-radius: 2px; }

/* Responsive */
@media (max-width: 900px) {
    .tension { grid-template-columns: 1fr; gap: 0; }
    .tension-col:first-child {
        border-radius: 12px 12px 0 0;
        border-right: 1px solid var(--rule); border-bottom: none;
    }
    .tension-arrow {
        border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
        border-top: none; border-bottom: none;
        padding: 10px; transform: rotate(90deg);
    }
    .tension-col:last-child {
        border-radius: 0 0 12px 12px;
        border-left: 1px solid var(--rule); border-top: none;
    }
    .model-grid { grid-template-columns: 1fr; }
    .system-row { grid-template-columns: 56px 1fr; }
    .rev-legend { flex-wrap: wrap; }
    .model-row { min-height: 44px; }
}

@media (max-width: 560px) {
    .tension-col { padding: 24px 20px; }
    .system-content { padding: 18px 20px; }
    .rev-bar-track { height: 28px; }
    .rev-bar-seg { font-size: 0.5625rem; }
    .arch-svg-wrap { padding: 24px 16px; }
}
