
/* --- Galeria --- */
.project-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-preview, .btn-github {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-preview {
    background: var(--primary-color);
    color: white;
}

.btn-preview:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-github {
    background: var(--bg-alt);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-github:hover {
    background: var(--border-color);
}

.btn-disabled {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Animação de entrada */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Modal de Visualização (Enhanced) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-body);
    width: 100%;
    height: 100%;
    max-width: 1400px;
    max-height: 90vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.modal-header {
    height: 60px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.device-controls {
    display: flex;
    gap: 10px;
    background: var(--bg-body);
    padding: 5px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.device-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 35px;
    height: 35px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-size: 1.2rem;
}

.device-btn:hover, .device-btn.active {
    background: var(--primary-color);
    color: white;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-frame-container {
    flex: 1;
    background: #1e293b; /* Fundo escuro para destacar o frame */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: auto;
    transition: all 0.3s ease;
}

.modal-frame-container iframe {
    background: white;
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* Device Sizes */
.modal-frame-container.desktop iframe {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.modal-frame-container.tablet iframe {
    width: 768px;
    height: 1024px;
    max-height: 100%;
    border-radius: 12px;
}

.modal-frame-container.mobile iframe {
    width: 375px;
    height: 667px; /* iPhone SE size as base */
    max-height: 100%;
    border-radius: 20px;
    border: 8px solid #333; /* Fake bezel */
}
