/* Modal do Visualizador de Projetos */
.project-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-viewer-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.browser-window {
    width: 90%;
    max-width: 1400px;
    height: 90vh;
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.project-viewer-modal.active .browser-window {
    transform: scale(1);
}

/* Barra do Navegador */
.browser-header {
    background: linear-gradient(135deg, #334155, #1e293b);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.browser-dot:hover {
    transform: scale(1.2);
}

.browser-dot.close {
    background: #ef4444;
}

.browser-dot.minimize {
    background: #f59e0b;
}

.browser-dot.maximize {
    background: #10b981;
}

.browser-url-bar {
    flex: 1;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.browser-url-bar i {
    color: #94a3b8;
    font-size: 0.9rem;
}

.browser-url {
    flex: 1;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-actions {
    display: flex;
    gap: 10px;
}

.browser-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.browser-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Conteúdo do Navegador */
.browser-content {
    flex: 1;
    background: white;
    position: relative;
    overflow: hidden;
}

.browser-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.browser-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(59, 130, 246, 0.2);
    overflow: hidden;
    z-index: 10;
}

.browser-loading-bar {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    animation: loading 1.5s ease-in-out infinite;
}

/* Loading Overlay */
.browser-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 5;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.browser-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
}

.loading-subtext {
    color: #94a3b8;
    font-size: 0.9rem;
    text-align: center;
    max-width: 300px;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Informações do Projeto */
.project-info-bar {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-title-viewer {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
}

.project-category-viewer {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-external-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    transition: all 0.2s;
}

.project-external-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Responsivo */
@media (max-width: 768px) {
    .browser-window {
        width: 95%;
        height: 95vh;
    }
    
    .browser-header {
        padding: 10px 15px;
    }
    
    .browser-url-bar {
        padding: 6px 10px;
    }
    
    .browser-url {
        font-size: 0.8rem;
    }
    
    .browser-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .project-info-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
