/* ==========================================================================
   Project placeholder graphics — consistent dimensions & design language
   ========================================================================== */

.project-placeholder {
    --ph-height: 300px;
    position: relative;
    width: 100%;
    height: var(--ph-height);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    animation: placeholder-float 5s ease-in-out infinite;
}

.project-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

.project-placeholder::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(255, 255, 255, 0.04) 25%, transparent 50%);
    animation: placeholder-shimmer 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.project-placeholder:hover {
    transform: scale(1.02);
    border-color: var(--border-default);
    box-shadow: var(--shadow-lg), 0 0 40px var(--ph-glow, var(--accent-glow));
}

.project-placeholder__inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--space-lg);
}

.project-placeholder__inner svg,
.project-placeholder__inner img {
    width: 100%;
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.project-placeholder__label {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    padding: 0.375rem 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

/* Theme variants */
.project-placeholder--nemacolin {
    --ph-glow: rgba(99, 102, 241, 0.3);
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #1e3a5f 100%);
}

.project-placeholder--onlyodds {
    --ph-glow: rgba(45, 212, 191, 0.25);
    background: linear-gradient(145deg, #042f2e 0%, #134e4a 45%, #0e7490 100%);
    animation-delay: 0.5s;
}

.project-placeholder--pins {
    --ph-glow: rgba(168, 85, 247, 0.25);
    background: linear-gradient(145deg, #1e1033 0%, #4c1d95 45%, #581c87 100%);
    animation-delay: 1s;
}

.project-placeholder--portfolio {
    --ph-glow: rgba(59, 130, 246, 0.25);
    background: linear-gradient(145deg, #0c1929 0%, #1e3a5f 45%, #1d4ed8 100%);
    animation-delay: 1.5s;
}

.project-placeholder--duquesne {
    --ph-glow: rgba(245, 158, 11, 0.25);
    background: linear-gradient(145deg, #1c1410 0%, #451a03 45%, #92400e 100%);
    animation-delay: 2s;
}

/* Pins & Pieces inline preview animations */
.project-placeholder--pins .pins-flow {
    animation: pins-flow-dash 1.6s linear infinite;
}

.project-placeholder--pins .pins-pulse {
    animation: pins-pulse 2.4s ease-in-out infinite;
}

@keyframes pins-flow-dash {
    to { stroke-dashoffset: -14; }
}

@keyframes pins-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.case-study__visual-wrap {
    position: relative;
}

.case-study__visual-wrap .ring-glow {
    border-radius: var(--radius-xl);
}

@keyframes placeholder-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.project-placeholder:hover {
    animation-play-state: paused;
}

@keyframes placeholder-shimmer {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .project-placeholder {
        animation: none;
    }

    .project-placeholder::after {
        animation: none;
        display: none;
    }

    .project-placeholder:hover {
        transform: none;
    }

    .project-placeholder--pins .pins-flow,
    .project-placeholder--pins .pins-pulse {
        animation: none;
    }
}
