/* Shared theme for project detail pages — extends css/main.css */

body.project-page {
    position: relative;
    padding-top: 0;
}

body.project-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(600px circle at 15% 10%, rgba(139, 92, 246, 0.16), transparent 60%),
        radial-gradient(700px circle at 85% 30%, rgba(60, 247, 247, 0.12), transparent 60%),
        radial-gradient(600px circle at 50% 100%, rgba(244, 114, 182, 0.10), transparent 60%);
    pointer-events: none;
}

.project-main {
    position: relative;
    z-index: 1;
    max-width: 1150px;
    margin: 0 auto;
    padding: 7.5rem 1.5rem 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.25s, transform 0.25s;
}

.back-link:hover {
    color: var(--cyan);
    transform: translateX(-3px);
}

/* Banner / hero for a project */
.project-banner-hero {
    border-radius: 18px;
    padding: 3.5rem 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.project-banner-hero .glyph {
    font-size: 3rem;
    line-height: 1;
}

.project-banner-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-top: 0.7rem;
}

.project-banner-hero p {
    color: var(--text-dim);
    max-width: 640px;
    margin: 0.9rem auto 0;
}

.project-hero-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.7rem;
}

.stat-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-box {
    padding: 1.1rem 1.6rem;
    text-align: center;
    min-width: 140px;
}

.stat-box .num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cyan);
}

.stat-box .label {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* Content card */
.project-body {
    padding: 2rem;
    margin-bottom: 2rem;
}

.project-body h2 {
    font-size: 1.4rem;
    margin: 1.8rem 0 0.9rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.project-body h2:first-child {
    margin-top: 0;
}

.project-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.project-body p {
    color: var(--text-dim);
    line-height: 1.75;
    margin: 0.8rem 0;
}

.project-body a {
    color: var(--cyan);
}

.arch-diagram {
    background: #050512;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    margin: 0.8rem 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #8fd6e8;
    white-space: pre;
}

.repo-list {
    list-style: none;
    margin: 0.6rem 0;
}

.repo-list li {
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--glass-border);
    color: var(--text-dim);
    font-size: 0.92rem;
}

.repo-list li:last-child {
    border-bottom: none;
}

.repo-list code {
    background: rgba(60, 247, 247, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--cyan);
}

/* Screenshot slider */
.shot-slider {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    min-height: 340px;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    margin-bottom: 2rem;
}

.shot-slides {
    position: relative;
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shot-slides img {
    display: none;
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: 8px;
}

.shot-slides img.displaySlide {
    display: block;
    animation: slideFade 0.5s ease;
}

.shot-prev,
.shot-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(7, 7, 24, 0.7);
    color: var(--cyan);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
}

.shot-prev:hover,
.shot-next:hover {
    background: rgba(60, 247, 247, 0.15);
}

.shot-prev {
    left: 0.8rem;
}

.shot-next {
    right: 0.8rem;
}

.shot-dots {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.shot-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.shot-dots .dot.active {
    background: var(--cyan);
    transform: scale(1.2);
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin: 1rem 0;
}

.feature-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.feature-item h4 {
    color: var(--text);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.feature-item p {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.5;
}

/* Info / workflow grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.info-card {
    padding: 1.4rem;
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.info-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin: 0;
}

.info-card pre {
    background: #050512;
    border-radius: 8px;
    padding: 0.9rem;
    overflow-x: auto;
    font-size: 0.78rem;
    color: #8fd6e8;
    margin-top: 0.5rem;
}

.info-card ul {
    padding-left: 1.1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Two-column split layout (e.g. gallery + summary) */
.split-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.8rem;
    align-items: start;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .split-grid {
        grid-template-columns: 1fr;
    }
}
