/* Projects page specific styles */
.projects-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
}

.breadcrumb {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb .current {
    color: var(--text-primary);
}

.projects-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.project-item:hover {
    background: var(--card-bg);
    transform: translateX(4px);
}

.project-item[data-preview]:hover::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 12px;
    z-index: 1000;
    opacity: 0;
    animation: fadeInPreview 0.3s ease forwards;
    pointer-events: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 12px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.project-preview.show {
    opacity: 1;
}

.project-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    transform: scale(0.8);
    transform-origin: top left;
}

.project-preview .preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-family: 'Space Grotesk', sans-serif;
}

.project-preview .preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
    padding: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

@keyframes fadeInPreview {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .projects-container {
        padding: 2rem 1rem;
    }
    
    .projects-title {
        font-size: 2rem;
    }
    
    .project-item {
        margin: 0 -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .project-item:hover {
        transform: translateX(2px);
    }
    
    .project-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .project-name {
        font-size: 1rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .projects-title {
        font-size: 1.75rem;
    }
    
    .project-item {
        gap: 0.75rem;
    }
    
    .project-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}
