/* --- WORKS ARCHIVE STYLES --- */

.works-container {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    color: #fff;
    animation: fadePageIn 0.8s ease-out;
}
@keyframes fadePageIn { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

/* HEADER */
.page-header { text-align: center; margin-bottom: 80px; position: relative; }
.neon-title { 
    font-family: 'Rajdhani', sans-serif; font-size: 4rem; margin: 0; 
    letter-spacing: 6px; color: #ffffff; text-transform: uppercase;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.5); display: inline-block;
}
.header-line { 
    width: 150px; height: 3px; background: var(--neon); 
    margin: 20px auto; box-shadow: 0 0 25px var(--neon);
    position: relative; overflow: hidden;
}
.header-line::after {
    content:''; position:absolute; top:0; left:-100%; width:100%; height:100%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: scanLine 3s infinite linear;
}
@keyframes scanLine { 0% { left:-100%; } 100% { left:100%; } }
.subtitle { color: #aaa; font-family: 'JetBrains Mono', monospace; font-size: 1rem; letter-spacing: 3px; text-transform: uppercase; }

/* GRID */
.works-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 34px; margin-bottom: 100px;
}

/* --- WORK CARD STANDARD --- */
.work-card {
    background: rgba(10, 12, 18, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
}

.work-card:hover {
    border-color: var(--neon);
    background: rgba(15, 20, 30, 0.95);
    box-shadow: 0 20px 60px rgba(0, 243, 255, 0.15);
    transform: translateY(-8px);
}

/* FULL-CARD NAVIGATION */
.work-card-clickable { cursor: pointer; }
.work-card-hitbox {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
    text-decoration: none;
}
.work-card-clickable .work-btn {
    position: relative;
    z-index: 7;
}
.work-card-clickable .card-status {
    z-index: 10;
}
.work-card-clickable:focus-within {
    border-color: var(--neon);
    box-shadow: 0 20px 60px rgba(0, 243, 255, 0.15);
}

.work-card-featured {
    box-shadow: 0 0 0 1px rgba(0, 243, 255, 0.15), 0 25px 70px rgba(0, 243, 255, 0.08);
}

.work-card-affittala:hover { box-shadow: 0 20px 60px rgba(255, 106, 125, 0.12); }
.work-card-tbg:hover { box-shadow: 0 20px 60px rgba(255, 255, 255, 0.12); }

/* STATUS BADGE */
.card-status {
    position: absolute; top: 15px; right: 15px; z-index: 10;
    font-family: 'JetBrains Mono'; font-size: 0.7rem; font-weight: bold;
    padding: 4px 10px; border-radius: 20px; text-transform: uppercase;
    backdrop-filter: blur(5px);
}
.status-live { background: rgba(0, 255, 136, 0.2); color: #00ff88; border: 1px solid #00ff88; }
.status-lock { background: rgba(255, 85, 85, 0.2); color: #ff5555; border: 1px solid #ff5555; }
.status-warn { background: rgba(255, 204, 0, 0.2); color: #ffcc00; border: 1px solid #ffcc00; }

/* VISUAL AREA */
.work-visual {
    height: 218px; position: relative;
    display: flex; align-items: center; justify-content: center;
    background: #050505; border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}
.work-icon { width: 50px; height: 50px; color: var(--neon); z-index: 2; opacity: 0.8; }
.visual-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 100%);
}
.logo-visual::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.5;
}
.logo-stage {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(84%, 440px);
    min-height: 110px;
    padding: 18px 24px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 12px 40px rgba(0,0,0,0.28);
    backdrop-filter: blur(8px);
}
.logo-stage-dark {
    background: linear-gradient(180deg, rgba(9, 12, 18, 0.92), rgba(3, 6, 10, 0.82));
}
.logo-stage-light {
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245,248,252,0.86));
}
.work-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 118px;
    object-fit: contain;
}
.work-logo-barber { width: 100%; max-width: 390px; max-height: 150px; object-fit: contain; }
.work-logo-tbg { width: 88%; max-width: 330px; max-height: 178px; object-fit: contain; }
.work-logo-affittala { width: 94%; max-width: 390px; max-height: 108px; object-fit: contain; }

/* Sfondi Specifici */
.barber-bg { background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.12), transparent 35%), linear-gradient(135deg, #050608 0%, #10141b 100%); }
.barber-bg::before { background: rgba(0, 243, 255, 0.15); }
.work-card-tbg .logo-stage { min-height: 148px; padding: 10px 14px; }
.work-card-affittala .logo-stage { min-height: 112px; padding: 10px 16px; }
.tbg-bg { background: radial-gradient(circle at 75% 30%, rgba(255,255,255,0.14), transparent 32%), linear-gradient(135deg, #0a0a0a 0%, #111827 100%); }
.tbg-bg::before { background: rgba(255,255,255,0.12); }
.affittala-bg { background: radial-gradient(circle at 20% 25%, rgba(255, 120, 120, 0.18), transparent 34%), linear-gradient(135deg, #fff5f6 0%, #f9fbff 100%); }
.affittala-bg::before { background: rgba(255, 111, 128, 0.22); }
.os-bg { background: radial-gradient(circle, #1a2340 0%, #050505 100%); }
.ai-bg { background: #000; }
.glitch-bg { background: repeating-linear-gradient(0deg, transparent, transparent 2px, #111 3px); }

/* INFO AREA */
.work-info { padding: 30px; }
.work-cat { color: var(--neon); font-size: 0.75rem; font-family: 'JetBrains Mono'; margin-bottom: 10px; letter-spacing: 1px; }
.work-card h3 { 
    margin: 0 0 15px 0; font-family: 'Rajdhani'; font-size: 1.8rem; color: #fff; text-transform: uppercase; 
}
.work-card p { color: #ccc; font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; min-height: 76px; }

/* TECH TAGS */
.tech-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 25px; }
.tech-tags span { 
    font-size: 0.7rem; color: #aaa; border: 1px solid #444; padding: 3px 8px; border-radius: 4px; font-family: 'JetBrains Mono';
}
.tech-tags.dimmed span { opacity: 0.5; }

/* BUTTON */
.work-btn {
    display: inline-block; padding: 12px 25px;
    background: var(--neon); color: #000; font-weight: bold;
    text-decoration: none; border-radius: 4px; font-family: 'Rajdhani';
    text-transform: uppercase; letter-spacing: 1px;
    transition: 0.3s;
}
.work-btn:hover { background: #fff; box-shadow: 0 0 20px var(--neon); }
.work-btn-ghost { background: #fff; color: #050505; }
.work-btn-ghost:hover { box-shadow: 0 0 20px rgba(255,255,255,0.25); }
.work-btn-affittala { background: #ff6c80; color: #fff; }
.work-btn-affittala:hover { background: #ff7f91; box-shadow: 0 0 20px rgba(255,108,128,0.35); }

/* --- STILE CARTE "LOCKED" (RISERVATE) --- */
.locked-card { border-color: rgba(255, 85, 85, 0.3); }
.locked-card:hover { border-color: #ff5555; box-shadow: 0 0 30px rgba(255, 85, 85, 0.15); }

/* Censura Testo */
.redacted-text {
    background: #fff; color: transparent; user-select: none;
    display: inline-block; opacity: 0.2;
}

/* Overlay Top Secret */
.redacted-overlay {
    position: absolute; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transform: rotate(-10deg); pointer-events: none;
}
.redacted-overlay span {
    font-size: 2rem; font-weight: 900; color: rgba(255, 85, 85, 0.1);
    border: 3px solid rgba(255, 85, 85, 0.1); padding: 5px 20px;
    text-transform: uppercase; letter-spacing: 5px; font-family: 'Rajdhani';
}

/* Animazione Rotazione Lenta per AI */
.spin-slow { animation: spin 10s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

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

@media (max-width: 768px) {
    .neon-title { font-size: 2.6rem; }
    .work-visual { height: 190px; }
    .work-info { padding: 24px; }
    .work-card p { min-height: 0; }
}
