/* ============================================================
   PROJECT DETAIL PAGES - STYLES
   Shared by all project-*.html pages (loaded after style.css)
   ============================================================ */

/* ============================================================
   HERO FRAME (browser mockup for the cover image)
   ============================================================ */
.hero-frame {
    background: rgba(17, 34, 64, 0.6);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(100, 255, 218, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-frame-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(10, 25, 47, 0.9);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.hero-url {
    flex: 1;
    margin-inline-start: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #8892b0;
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 4px 14px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-frame-body {
    position: relative;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(120% 120% at 15% 0%, rgba(100, 255, 218, 0.09), transparent 55%),
        radial-gradient(120% 120% at 85% 100%, rgba(168, 85, 247, 0.09), transparent 55%),
        linear-gradient(135deg, rgba(100, 255, 218, 0.05), rgba(168, 85, 247, 0.05));
    overflow: hidden;
}

.hero-frame-body::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(100, 255, 218, 0.04), transparent 30%, transparent 70%, rgba(168, 85, 247, 0.06));
}

/* Hide the overlay when the image is missing so the placeholder stays clean */
.hero-frame-body.no-image::after {
    display: none;
}

.hero-frame-body img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: saturate(1.05) contrast(1.02);
}

.hero-frame:hover .hero-frame-body img {
    transform: scale(1.03);
}

/* ============================================================
   IMAGE PLACEHOLDER (shown until the owner adds screenshots)
   ============================================================ */
.img-placeholder {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    color: #8892b0;
    background:
        linear-gradient(135deg, rgba(100, 255, 218, 0.04), rgba(168, 85, 247, 0.04)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 10px, transparent 10px 20px);
}

.img-placeholder i {
    color: rgba(100, 255, 218, 0.5);
}

.img-placeholder span {
    font-size: 14px;
    font-weight: 500;
}

.img-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(100, 255, 218, 0.7);
    background: rgba(10, 25, 47, 0.8);
    border: 1px dashed rgba(100, 255, 218, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
    max-width: 100%;
    word-break: break-all;
}

.no-image img {
    display: none !important;
}

.no-image .img-placeholder {
    display: flex;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(100, 255, 218, 0.08);
}

.gallery-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 20% 0%, rgba(100, 255, 218, 0.08), transparent 55%),
        radial-gradient(120% 120% at 80% 100%, rgba(168, 85, 247, 0.08), transparent 55%),
        rgba(10, 25, 47, 0.6);
    cursor: zoom-in;
}

.gallery-media::before {
    /* subtle top glow strip for depth */
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: saturate(1.05) contrast(1.02);
}

/* Portrait screenshots (mobile app) get a phone-mockup presentation:
   contained, rounded device frame, glow behind - never cropped */
.gallery-media.is-portrait {
    background:
        radial-gradient(90% 70% at 50% 45%, rgba(100, 255, 218, 0.12), transparent 65%),
        radial-gradient(120% 120% at 50% 100%, rgba(168, 85, 247, 0.1), transparent 60%),
        rgba(10, 25, 47, 0.65);
}

.gallery-media.is-portrait img {
    object-fit: contain;
    padding: clamp(18px, 6%, 34px) 0;
    border-radius: 14px;
    filter: saturate(1.06) contrast(1.03) drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.gallery-card:hover .gallery-media img {
    transform: scale(1.06);
}

.gallery-card:hover .gallery-media::before {
    opacity: 1;
}

.gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 25, 47, 0.45);
    color: var(--neon-cyan);
    font-size: 28px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-card:hover .gallery-zoom {
    opacity: 1;
}

.gallery-caption {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(17, 34, 64, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(100, 255, 218, 0.35);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(100, 255, 218, 0.06);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(100, 255, 218, 0.08);
    border: 1px solid rgba(100, 255, 218, 0.15);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
    transform: rotate(-8deg) scale(1.1);
}

/* ============================================================
   ARTICLE (overview prose)
   ============================================================ */
.article-prose p {
    color: var(--text-secondary);
}

.article-prose h2 {
    color: var(--text-heading);
}

/* ============================================================
   STACK CHIPS
   ============================================================ */
.stack-chip {
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(100, 255, 218, 0.25);
    background: rgba(100, 255, 218, 0.06);
}

/* ============================================================
   RELATED CARDS
   ============================================================ */
.related-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover {
    transform: translateY(-6px);
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(100, 255, 218, 0.08);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
}

#lightbox-img {
    background: rgba(10, 25, 47, 0.6);
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */
@media (max-width: 640px) {
    .hero-frame-body {
        aspect-ratio: 16 / 10;
    }
}
